CreateSecretVersionRequest: {
    data: string;
    dataCrc32?: number;
    description?: string;
    disablePrevious?: boolean;
    passwordGeneration?: PasswordGenerationParams;
    region?: Region;
    secretId: string;
}

Type declaration

  • data: string

    The base64-encoded secret payload of the version.

  • OptionaldataCrc32?: number

    If specified, Secret Manager will verify the integrity of the data received against the given CRC32 checksum. An error is returned if the CRC32 does not match. If, however, the CRC32 matches, it will be stored and returned along with the SecretVersion on future access requests.

  • Optionaldescription?: string

    Description of the version.

  • OptionaldisablePrevious?: boolean

    (Optional.) If there is no previous version or if the previous version was already disabled, does nothing.

  • OptionalpasswordGeneration?: PasswordGenerationParams

    (Optional.) If specified, a random password will be generated. The data and data_crc32 fields must be empty. By default, the generator will use upper and lower case letters, and digits. This behavior can be tuned using the generation parameters.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.

  • secretId: string

    ID of the secret.