Skip to content

Commit

Permalink
chore(codegen): sync codegen (#4727)
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase committed May 15, 2023
1 parent 4a0c15a commit edd45f2
Show file tree
Hide file tree
Showing 163 changed files with 1,456 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ export interface CancelFlowExecutionsCommandOutput extends CancelFlowExecutionsR
* };
* const command = new CancelFlowExecutionsCommand(input);
* const response = await client.send(command);
* // { // CancelFlowExecutionsResponse
* // invalidExecutions: [ // ExecutionIds
* // "STRING_VALUE",
* // ],
* // };
*
* ```
*
* @param CancelFlowExecutionsCommandInput - {@link CancelFlowExecutionsCommandInput}
Expand All @@ -90,6 +96,8 @@ export interface CancelFlowExecutionsCommandOutput extends CancelFlowExecutionsR
* @throws {@link ValidationException} (client fault)
* <p> The request has invalid or missing parameters. </p>
*
* @throws {@link AppflowServiceException}
* <p>Base exception class for all service exceptions from Appflow service.</p>
*
*/
export class CancelFlowExecutionsCommand extends $Command<
Expand Down
6 changes: 3 additions & 3 deletions clients/client-appflow/src/commands/DescribeFlowCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export interface DescribeFlowCommandOutput extends DescribeFlowResponse, __Metad
* // lastRunExecutionDetails: { // ExecutionDetails
* // mostRecentExecutionMessage: "STRING_VALUE",
* // mostRecentExecutionTime: new Date("TIMESTAMP"),
* // mostRecentExecutionStatus: "InProgress" || "Successful" || "Error",
* // mostRecentExecutionStatus: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // },
* // triggerConfig: { // TriggerConfig
* // triggerType: "Scheduled" || "Event" || "OnDemand", // required
Expand Down Expand Up @@ -333,12 +333,12 @@ export interface DescribeFlowCommandOutput extends DescribeFlowResponse, __Metad
* // tableRegistrationOutput: { // RegistrationOutput
* // message: "STRING_VALUE",
* // result: "STRING_VALUE",
* // status: "InProgress" || "Successful" || "Error",
* // status: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // },
* // partitionRegistrationOutput: {
* // message: "STRING_VALUE",
* // result: "STRING_VALUE",
* // status: "InProgress" || "Successful" || "Error",
* // status: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // },
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface DescribeFlowExecutionRecordsCommandOutput
* // flowExecutions: [ // FlowExecutionList
* // { // ExecutionRecord
* // executionId: "STRING_VALUE",
* // executionStatus: "InProgress" || "Successful" || "Error",
* // executionStatus: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // executionResult: { // ExecutionResult
* // errorInfo: { // ErrorInfo
* // putFailuresCount: Number("long"),
Expand All @@ -76,12 +76,12 @@ export interface DescribeFlowExecutionRecordsCommandOutput
* // tableRegistrationOutput: { // RegistrationOutput
* // message: "STRING_VALUE",
* // result: "STRING_VALUE",
* // status: "InProgress" || "Successful" || "Error",
* // status: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // },
* // partitionRegistrationOutput: {
* // message: "STRING_VALUE",
* // result: "STRING_VALUE",
* // status: "InProgress" || "Successful" || "Error",
* // status: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // },
* // },
* // ],
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appflow/src/commands/ListFlowsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface ListFlowsCommandOutput extends ListFlowsResponse, __MetadataBea
* // lastRunExecutionDetails: { // ExecutionDetails
* // mostRecentExecutionMessage: "STRING_VALUE",
* // mostRecentExecutionTime: new Date("TIMESTAMP"),
* // mostRecentExecutionStatus: "InProgress" || "Successful" || "Error",
* // mostRecentExecutionStatus: "InProgress" || "Successful" || "Error" || "CancelStarted" || "Canceled",
* // },
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ export interface RegisterScalableTargetCommandOutput extends RegisterScalableTar
* "ServiceNamespace": "ecs"
* };
* const command = new RegisterScalableTargetCommand(input);
* await client.send(command);
* const response = await client.send(command);
* /* response ==
* {
* "ScalableTargetARN": "arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123"
* }
* *\/
* // example id: to-register-a-new-scalable-target-1470864910380
* ```
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export interface GetAutoScalingGroupRecommendationsCommandOutput
* // },
* // },
* // inferredWorkloadTypes: [ // InferredWorkloadTypes
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka",
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka" || "SQLServer",
* // ],
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ export interface GetEBSVolumeRecommendationsCommandOutput
* // ],
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
* // tags: [ // Tags
* // { // Tag
* // key: "STRING_VALUE",
* // value: "STRING_VALUE",
* // },
* // ],
* // },
* // ],
* // errors: [ // GetRecommendationErrors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,15 @@ export interface GetEC2InstanceRecommendationsCommandOutput
* // },
* // },
* // inferredWorkloadTypes: [ // InferredWorkloadTypes
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka",
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka" || "SQLServer",
* // ],
* // instanceState: "pending" || "running" || "shutting-down" || "terminated" || "stopping" || "stopped",
* // tags: [ // Tags
* // { // Tag
* // key: "STRING_VALUE",
* // value: "STRING_VALUE",
* // },
* // ],
* // },
* // ],
* // errors: [ // GetRecommendationErrors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ export interface GetECSServiceRecommendationsCommandOutput
* // },
* // ],
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
* // tags: [ // Tags
* // { // Tag
* // key: "STRING_VALUE",
* // value: "STRING_VALUE",
* // },
* // ],
* // },
* // ],
* // errors: [ // GetRecommendationErrors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ export interface GetLambdaFunctionRecommendationsCommandOutput
* // },
* // ],
* // currentPerformanceRisk: "VeryLow" || "Low" || "Medium" || "High",
* // tags: [ // Tags
* // { // Tag
* // key: "STRING_VALUE",
* // value: "STRING_VALUE",
* // },
* // ],
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ export interface GetRecommendationSummariesCommandOutput extends GetRecommendati
* // low: Number("long"),
* // veryLow: Number("long"),
* // },
* // inferredWorkloadSavings: [ // InferredWorkloadSavings
* // { // InferredWorkloadSaving
* // inferredWorkloadTypes: [ // InferredWorkloadTypes
* // "AmazonEmr" || "ApacheCassandra" || "ApacheHadoop" || "Memcached" || "Nginx" || "PostgreSql" || "Redis" || "Kafka" || "SQLServer",
* // ],
* // estimatedMonthlySavings: {
* // currency: "USD" || "CNY",
* // value: Number("double"),
* // },
* // },
* // ],
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ export interface DescribeQuerySuggestionsConfigCommandOutput
* // LastSuggestionsBuildTime: new Date("TIMESTAMP"),
* // LastClearTime: new Date("TIMESTAMP"),
* // TotalSuggestionsCount: Number("int"),
* // AttributeSuggestionsConfig: { // AttributeSuggestionsDescribeConfig
* // SuggestableConfigList: [ // SuggestableConfigList
* // { // SuggestableConfig
* // AttributeName: "STRING_VALUE",
* // Suggestable: true || false,
* // },
* // ],
* // AttributeSuggestionsMode: "ACTIVE" || "INACTIVE",
* // },
* // };
*
* ```
Expand Down
21 changes: 21 additions & 0 deletions clients/client-kendra/src/commands/GetQuerySuggestionsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,27 @@ export interface GetQuerySuggestionsCommandOutput extends GetQuerySuggestionsRes
* // ],
* // },
* // },
* // SourceDocuments: [ // SourceDocuments
* // { // SourceDocument
* // DocumentId: "STRING_VALUE",
* // SuggestionAttributes: [ // DocumentAttributeKeyList
* // "STRING_VALUE",
* // ],
* // AdditionalAttributes: [ // DocumentAttributeList
* // { // DocumentAttribute
* // Key: "STRING_VALUE", // required
* // Value: { // DocumentAttributeValue
* // StringValue: "STRING_VALUE",
* // StringListValue: [ // DocumentAttributeStringListValue
* // "STRING_VALUE",
* // ],
* // LongValue: Number("long"),
* // DateValue: new Date("TIMESTAMP"),
* // },
* // },
* // ],
* // },
* // ],
* // },
* // ],
* // };
Expand Down
44 changes: 1 addition & 43 deletions clients/client-kms/src/commands/DecryptCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export interface DecryptCommandOutput extends DecryptResponse, __MetadataBearer
* // KeyId: "STRING_VALUE",
* // Plaintext: "BLOB_VALUE",
* // EncryptionAlgorithm: "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
* // CiphertextForRecipient: "BLOB_VALUE",
* // };
*
* ```
Expand Down Expand Up @@ -303,49 +304,6 @@ export interface DecryptCommandOutput extends DecryptResponse, __MetadataBearer
* // example id: to-decrypt-data-for-a-nitro-enclave-2
* ```
*
* @example To decrypt data with an asymmetric encryption KMS key
* ```javascript
* // The following example decrypts data that was encrypted with an asymmetric encryption KMS key. When the KMS encryption key is asymmetric, you must specify the KMS key ID and the encryption algorithm that was used to encrypt the data.
* const input = {
* "CiphertextBlob": "<binary data>",
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
* "KeyId": "0987dcba-09fe-87dc-65ba-ab0987654321"
* };
* const command = new DecryptCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321",
* "Plaintext": "<binary data>"
* }
* *\/
* // example id: to-decrypt-data-2
* ```
*
* @example To decrypt data for a Nitro enclave
* ```javascript
* // The following Decrypt example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning the decrypted data in plaintext (Plaintext), the operation returns the decrypted data encrypted by the public key from the attestation document (CiphertextForRecipient).
* const input = {
* "CiphertextBlob": "<binary data>",
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
* "Recipient": {
* "AttestationDocument": "<attestation document>",
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
* }
* };
* const command = new DecryptCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "CiphertextForRecipient": "<binary data>",
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
* "Plaintext": ""
* }
* *\/
* // example id: to-decrypt-data-for-a-nitro-enclave-2
* ```
*
*/
export class DecryptCommand extends $Command<DecryptCommandInput, DecryptCommandOutput, KMSClientResolvedConfig> {
// Start section: command_properties
Expand Down
11 changes: 0 additions & 11 deletions clients/client-kms/src/commands/DisconnectCustomKeyStoreCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,6 @@ export interface DisconnectCustomKeyStoreCommandOutput extends DisconnectCustomK
* // example id: to-disconnect-a-custom-key-store-from-its-cloudhsm-cluster-234abcdefABC
* ```
*
* @example To disconnect a custom key store from its CloudHSM cluster
* ```javascript
* // This example disconnects an AWS KMS custom key store from its backing key store. For an AWS CloudHSM key store, it disconnects the key store from its AWS CloudHSM cluster. For an external key store, it disconnects the key store from the external key store proxy that communicates with your external key manager. This operation doesn't return any data. To verify that the custom key store is disconnected, use the <code>DescribeCustomKeyStores</code> operation.
* const input = {
* "CustomKeyStoreId": "cks-1234567890abcdef0"
* };
* const command = new DisconnectCustomKeyStoreCommand(input);
* await client.send(command);
* // example id: to-disconnect-a-custom-key-store-from-its-cloudhsm-cluster-234abcdefABC
* ```
*
*/
export class DisconnectCustomKeyStoreCommand extends $Command<
DisconnectCustomKeyStoreCommandInput,
Expand Down
20 changes: 0 additions & 20 deletions clients/client-kms/src/commands/EncryptCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,26 +278,6 @@ export interface EncryptCommandOutput extends EncryptResponse, __MetadataBearer
* // example id: to-encrypt-data-2
* ```
*
* @example To encrypt data with an asymmetric encryption KMS key
* ```javascript
* // The following example encrypts data with the specified RSA asymmetric KMS key. When you encrypt with an asymmetric key, you must specify the encryption algorithm.
* const input = {
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
* "KeyId": "0987dcba-09fe-87dc-65ba-ab0987654321",
* "Plaintext": "<binary data>"
* };
* const command = new EncryptCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "CiphertextBlob": "<binary data>",
* "EncryptionAlgorithm": "RSAES_OAEP_SHA_256",
* "KeyId": "arn:aws:kms:us-west-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321"
* }
* *\/
* // example id: to-encrypt-data-2
* ```
*
*/
export class EncryptCommand extends $Command<EncryptCommandInput, EncryptCommandOutput, KMSClientResolvedConfig> {
// Start section: command_properties
Expand Down
25 changes: 1 addition & 24 deletions clients/client-kms/src/commands/GenerateDataKeyCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
* // CiphertextBlob: "BLOB_VALUE",
* // Plaintext: "BLOB_VALUE",
* // KeyId: "STRING_VALUE",
* // CiphertextForRecipient: "BLOB_VALUE",
* // };
*
* ```
Expand Down Expand Up @@ -282,30 +283,6 @@ export interface GenerateDataKeyCommandOutput extends GenerateDataKeyResponse, _
* // example id: to-generate-a-data-key-for-a-nitro-enclave-2
* ```
*
* @example To generate a data key pair for a Nitro enclave
* ```javascript
* // The following example includes the Recipient parameter with a signed attestation document from an AWS Nitro enclave. Instead of returning a copy of the data key encrypted by the KMS key and a plaintext copy of the data key, GenerateDataKey returns one copy of the data key encrypted by the KMS key (CiphertextBlob) and one copy of the data key encrypted by the public key from the attestation document (CiphertextForRecipient). The operation doesn't return a plaintext data key.
* const input = {
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
* "KeySpec": "AES_256",
* "Recipient": {
* "AttestationDocument": "<attestation document>",
* "KeyEncryptionAlgorithm": "RSAES_OAEP_SHA_256"
* }
* };
* const command = new GenerateDataKeyCommand(input);
* const response = await client.send(command);
* /* response ==
* {
* "CiphertextBlob": "<binary data>",
* "CiphertextForRecipient": "<binary data>",
* "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
* "Plaintext": ""
* }
* *\/
* // example id: to-generate-a-data-key-for-a-nitro-enclave-2
* ```
*
*/
export class GenerateDataKeyCommand extends $Command<
GenerateDataKeyCommandInput,
Expand Down
Loading

0 comments on commit edd45f2

Please sign in to comment.