CreateSecretVersionRequest: {
    data: string;
    dataCrc32?: number;
    description?: string;
    disablePrevious?: boolean;
    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.

  • Optionalregion?: Region

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

  • secretId: string

    ID of the secret.