diff --git a/lib/greengrasscoreipc/model.ts b/lib/greengrasscoreipc/model.ts index 981eafc7..0b41d8d0 100644 --- a/lib/greengrasscoreipc/model.ts +++ b/lib/greengrasscoreipc/model.ts @@ -888,7 +888,12 @@ export interface GetSecretValueRequest { /** * (Optional) The staging label of the version to get. If you don't specify versionId or versionStage, this operation defaults to the version with the AWSCURRENT label. */ - versionStage?: string + versionStage?: string, + + /** + * (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false. + */ + refresh?: boolean } diff --git a/lib/greengrasscoreipc/model_utils.ts b/lib/greengrasscoreipc/model_utils.ts index f8435b20..a45b22db 100644 --- a/lib/greengrasscoreipc/model_utils.ts +++ b/lib/greengrasscoreipc/model_utils.ts @@ -1178,6 +1178,7 @@ export function normalizeGetSecretValueRequest(value : model.GetSecretValueReque eventstream_rpc_utils.setDefinedProperty(normalizedValue, 'secretId', value.secretId); eventstream_rpc_utils.setDefinedProperty(normalizedValue, 'versionId', value.versionId); eventstream_rpc_utils.setDefinedProperty(normalizedValue, 'versionStage', value.versionStage); + eventstream_rpc_utils.setDefinedProperty(normalizedValue, 'refresh', value.refresh); return normalizedValue; } @@ -1892,6 +1893,7 @@ export function validateGetSecretValueRequest(value : model.GetSecretValueReques eventstream_rpc_utils.validateValueAsString(value.secretId, 'secretId', 'GetSecretValueRequest'); eventstream_rpc_utils.validateValueAsOptionalString(value.versionId, 'versionId', 'GetSecretValueRequest'); eventstream_rpc_utils.validateValueAsOptionalString(value.versionStage, 'versionStage', 'GetSecretValueRequest'); + eventstream_rpc_utils.validateValueAsOptionalBoolean(value.refresh, 'refresh', 'GetSecretValueRequest'); } export function validateGetLocalDeploymentStatusResponse(value : model.GetLocalDeploymentStatusResponse) : void {