Skip to content

Commit

Permalink
Update Greengrass IPC (#515)
Browse files Browse the repository at this point in the history
* Add refresh field to GetSecretValueRequest
  • Loading branch information
sfod authored Jul 12, 2024
1 parent 229c51f commit e18d9e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/greengrasscoreipc/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down
2 changes: 2 additions & 0 deletions lib/greengrasscoreipc/model_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e18d9e0

Please sign in to comment.