diff --git a/clients/client-rbin/README.md b/clients/client-rbin/README.md index 7eb3e31f9d98..b5a67733479d 100644 --- a/clients/client-rbin/README.md +++ b/clients/client-rbin/README.md @@ -16,7 +16,7 @@ expires. After you restore a resource from the Recycle Bin, the resource is remo Recycle Bin, and you can then use it in the same way you use any other resource of that type in your account. If the retention period expires and the resource is not restored, the resource is permanently deleted from the Recycle Bin and is no longer available for recovery. For more -information about Recycle Bin, see +information about Recycle Bin, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
## Installing diff --git a/clients/client-rbin/src/Rbin.ts b/clients/client-rbin/src/Rbin.ts index c5edd24df7c3..7e528add6e26 100644 --- a/clients/client-rbin/src/Rbin.ts +++ b/clients/client-rbin/src/Rbin.ts @@ -165,7 +165,7 @@ export interface Rbin { * Recycle Bin, and you can then use it in the same way you use any other resource of that type * in your account. If the retention period expires and the resource is not restored, the resource * is permanently deleted from the Recycle Bin and is no longer available for recovery. For more - * information about Recycle Bin, see + * information about Recycle Bin, see * Recycle Bin in the Amazon Elastic Compute Cloud User Guide. */ export class Rbin extends RbinClient implements Rbin {} diff --git a/clients/client-rbin/src/RbinClient.ts b/clients/client-rbin/src/RbinClient.ts index 2dadb4def0e6..1ce008137bc0 100644 --- a/clients/client-rbin/src/RbinClient.ts +++ b/clients/client-rbin/src/RbinClient.ts @@ -286,7 +286,7 @@ export interface RbinClientResolvedConfig extends RbinClientResolvedConfigType { * Recycle Bin, and you can then use it in the same way you use any other resource of that type * in your account. If the retention period expires and the resource is not restored, the resource * is permanently deleted from the Recycle Bin and is no longer available for recovery. For more - * information about Recycle Bin, see + * information about Recycle Bin, see * Recycle Bin in the Amazon Elastic Compute Cloud User Guide. */ export class RbinClient extends __Client< diff --git a/clients/client-rbin/src/commands/CreateRuleCommand.ts b/clients/client-rbin/src/commands/CreateRuleCommand.ts index 24020748ea40..c08d4afadc34 100644 --- a/clients/client-rbin/src/commands/CreateRuleCommand.ts +++ b/clients/client-rbin/src/commands/CreateRuleCommand.ts @@ -101,6 +101,7 @@ export interface CreateRuleCommandOutput extends CreateRuleResponse, __MetadataB * // }, * // }, * // LockState: "locked" || "pending_unlock" || "unlocked", + * // RuleArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-rbin/src/commands/GetRuleCommand.ts b/clients/client-rbin/src/commands/GetRuleCommand.ts index 7732b44d39d9..28aa06694ac9 100644 --- a/clients/client-rbin/src/commands/GetRuleCommand.ts +++ b/clients/client-rbin/src/commands/GetRuleCommand.ts @@ -72,6 +72,7 @@ export interface GetRuleCommandOutput extends GetRuleResponse, __MetadataBearer * // }, * // LockState: "locked" || "pending_unlock" || "unlocked", * // LockEndTime: new Date("TIMESTAMP"), + * // RuleArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-rbin/src/commands/ListRulesCommand.ts b/clients/client-rbin/src/commands/ListRulesCommand.ts index 0f2966a6a55f..4d0bb2441176 100644 --- a/clients/client-rbin/src/commands/ListRulesCommand.ts +++ b/clients/client-rbin/src/commands/ListRulesCommand.ts @@ -68,6 +68,7 @@ export interface ListRulesCommandOutput extends ListRulesResponse, __MetadataBea * // RetentionPeriodUnit: "DAYS", // required * // }, * // LockState: "locked" || "pending_unlock" || "unlocked", + * // RuleArn: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-rbin/src/commands/LockRuleCommand.ts b/clients/client-rbin/src/commands/LockRuleCommand.ts index cb471218fbe9..f5c09804d37d 100644 --- a/clients/client-rbin/src/commands/LockRuleCommand.ts +++ b/clients/client-rbin/src/commands/LockRuleCommand.ts @@ -77,6 +77,7 @@ export interface LockRuleCommandOutput extends LockRuleResponse, __MetadataBeare * // }, * // }, * // LockState: "locked" || "pending_unlock" || "unlocked", + * // RuleArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-rbin/src/commands/UnlockRuleCommand.ts b/clients/client-rbin/src/commands/UnlockRuleCommand.ts index 13ca1f1be44c..4a1cdfa0d82c 100644 --- a/clients/client-rbin/src/commands/UnlockRuleCommand.ts +++ b/clients/client-rbin/src/commands/UnlockRuleCommand.ts @@ -73,6 +73,7 @@ export interface UnlockRuleCommandOutput extends UnlockRuleResponse, __MetadataB * // }, * // LockState: "locked" || "pending_unlock" || "unlocked", * // LockEndTime: new Date("TIMESTAMP"), + * // RuleArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-rbin/src/commands/UpdateRuleCommand.ts b/clients/client-rbin/src/commands/UpdateRuleCommand.ts index 2d707785ea7b..d4bc34ac4324 100644 --- a/clients/client-rbin/src/commands/UpdateRuleCommand.ts +++ b/clients/client-rbin/src/commands/UpdateRuleCommand.ts @@ -81,6 +81,7 @@ export interface UpdateRuleCommandOutput extends UpdateRuleResponse, __MetadataB * // Status: "pending" || "available", * // LockState: "locked" || "pending_unlock" || "unlocked", * // LockEndTime: new Date("TIMESTAMP"), + * // RuleArn: "STRING_VALUE", * // }; * * ``` @@ -100,6 +101,9 @@ export interface UpdateRuleCommandOutput extends UpdateRuleResponse, __MetadataB * @throws {@link ResourceNotFoundException} (client fault) *The specified resource was not found.
* + * @throws {@link ServiceQuotaExceededException} (client fault) + *The request would cause a service quota for the number of tags per resource to be exceeded.
+ * * @throws {@link ValidationException} (client fault) *One or more of the parameters in the request is not valid.
* diff --git a/clients/client-rbin/src/index.ts b/clients/client-rbin/src/index.ts index 1b6cba44c13a..0f7c34d9c9be 100644 --- a/clients/client-rbin/src/index.ts +++ b/clients/client-rbin/src/index.ts @@ -11,7 +11,7 @@ * Recycle Bin, and you can then use it in the same way you use any other resource of that type * in your account. If the retention period expires and the resource is not restored, the resource * is permanently deleted from the Recycle Bin and is no longer available for recovery. For more - * information about Recycle Bin, see + * information about Recycle Bin, see * Recycle Bin in the Amazon Elastic Compute Cloud User Guide. * * @packageDocumentation diff --git a/clients/client-rbin/src/models/models_0.ts b/clients/client-rbin/src/models/models_0.ts index fa4476d3bb3c..e9dd970a0fb0 100644 --- a/clients/client-rbin/src/models/models_0.ts +++ b/clients/client-rbin/src/models/models_0.ts @@ -295,6 +295,12 @@ export interface CreateRuleResponse { * */ LockState?: LockState; + + /** + * @public + *The Amazon Resource Name (ARN) of the retention rule.
+ */ + RuleArn?: string; } /** @@ -597,6 +603,12 @@ export interface GetRuleResponse { * delay period. */ LockEndTime?: Date; + + /** + * @public + *The Amazon Resource Name (ARN) of the retention rule.
+ */ + RuleArn?: string; } /** @@ -692,6 +704,12 @@ export interface RuleSummary { * */ LockState?: LockState; + + /** + * @public + *The Amazon Resource Name (ARN) of the retention rule.
+ */ + RuleArn?: string; } /** @@ -826,6 +844,12 @@ export interface LockRuleResponse { * */ LockState?: LockState; + + /** + * @public + *The Amazon Resource Name (ARN) of the retention rule.
+ */ + RuleArn?: string; } /** @@ -945,6 +969,12 @@ export interface UnlockRuleResponse { * delay period. */ LockEndTime?: Date; + + /** + * @public + *The Amazon Resource Name (ARN) of the retention rule.
+ */ + RuleArn?: string; } /** @@ -1092,4 +1122,10 @@ export interface UpdateRuleResponse { * delay period. */ LockEndTime?: Date; + + /** + * @public + *The Amazon Resource Name (ARN) of the retention rule.
+ */ + RuleArn?: string; } diff --git a/clients/client-rbin/src/protocols/Aws_restJson1.ts b/clients/client-rbin/src/protocols/Aws_restJson1.ts index 7e2c1d8ba1b0..34b5b84f3f33 100644 --- a/clients/client-rbin/src/protocols/Aws_restJson1.ts +++ b/clients/client-rbin/src/protocols/Aws_restJson1.ts @@ -353,6 +353,7 @@ export const de_CreateRuleCommand = async ( ResourceTags: _json, ResourceType: __expectString, RetentionPeriod: _json, + RuleArn: __expectString, Status: __expectString, Tags: _json, }); @@ -467,6 +468,7 @@ export const de_GetRuleCommand = async ( ResourceTags: _json, ResourceType: __expectString, RetentionPeriod: _json, + RuleArn: __expectString, Status: __expectString, }); Object.assign(contents, doc); @@ -631,6 +633,7 @@ export const de_LockRuleCommand = async ( ResourceTags: _json, ResourceType: __expectString, RetentionPeriod: _json, + RuleArn: __expectString, Status: __expectString, }); Object.assign(contents, doc); @@ -747,6 +750,7 @@ export const de_UnlockRuleCommand = async ( ResourceTags: _json, ResourceType: __expectString, RetentionPeriod: _json, + RuleArn: __expectString, Status: __expectString, }); Object.assign(contents, doc); @@ -859,6 +863,7 @@ export const de_UpdateRuleCommand = async ( ResourceTags: _json, ResourceType: __expectString, RetentionPeriod: _json, + RuleArn: __expectString, Status: __expectString, }); Object.assign(contents, doc); @@ -887,6 +892,9 @@ const de_UpdateRuleCommandError = async ( case "ResourceNotFoundException": case "com.amazonaws.rbin#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); + case "ServiceQuotaExceededException": + case "com.amazonaws.rbin#ServiceQuotaExceededException": + throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.rbin#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); diff --git a/codegen/sdk-codegen/aws-models/rbin.json b/codegen/sdk-codegen/aws-models/rbin.json index 5a5a0efa59b6..d305d8e6f0ab 100644 --- a/codegen/sdk-codegen/aws-models/rbin.json +++ b/codegen/sdk-codegen/aws-models/rbin.json @@ -76,7 +76,7 @@ "name": "rbin" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "This is the Recycle Bin API Reference. This documentation provides \n descriptions and syntax for each of the actions and data types in Recycle Bin.
\nRecycle Bin is a resource recovery feature that enables you to restore accidentally \n deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are \n deleted, they are retained in the Recycle Bin for a time period that you specify.
\nYou can restore a resource from the Recycle Bin at any time before its retention period \n expires. After you restore a resource from the Recycle Bin, the resource is removed from the \n Recycle Bin, and you can then use it in the same way you use any other resource of that type \n in your account. If the retention period expires and the resource is not restored, the resource \n is permanently deleted from the Recycle Bin and is no longer available for recovery. For more \n information about Recycle Bin, see \n Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
", + "smithy.api#documentation": "This is the Recycle Bin API Reference. This documentation provides \n descriptions and syntax for each of the actions and data types in Recycle Bin.
\nRecycle Bin is a resource recovery feature that enables you to restore accidentally \n deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are \n deleted, they are retained in the Recycle Bin for a time period that you specify.
\nYou can restore a resource from the Recycle Bin at any time before its retention period \n expires. After you restore a resource from the Recycle Bin, the resource is removed from the \n Recycle Bin, and you can then use it in the same way you use any other resource of that type \n in your account. If the retention period expires and the resource is not restored, the resource \n is permanently deleted from the Recycle Bin and is no longer available for recovery. For more \n information about Recycle Bin, see \n Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
", "smithy.api#title": "Amazon Recycle Bin", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -1125,6 +1125,12 @@ "traits": { "smithy.api#documentation": "The lock state for the retention rule.
\n\n locked
- The retention rule is locked and can't be modified or deleted.
\n pending_unlock
- The retention rule has been unlocked but it is still within \n the unlock delay period. The retention rule can be modified or deleted only after the unlock \n delay period has expired.
\n unlocked
- The retention rule is unlocked and it can be modified or deleted by \n any user with the required permissions.
\n null
- The retention rule has never been locked. Once a retention rule has \n been locked, it can transition between the locked
and unlocked
states \n only; it can never transition back to null
.
The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -1294,6 +1300,12 @@ "traits": { "smithy.api#documentation": "The date and time at which the unlock delay is set to expire. Only returned \n for retention rules that have been unlocked and that are still within the unlock \n delay period.
" } + }, + "RuleArn": { + "target": "com.amazonaws.rbin#RuleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -1577,6 +1589,12 @@ "traits": { "smithy.api#documentation": "The lock state for the retention rule.
\n\n locked
- The retention rule is locked and can't be modified or deleted.
\n pending_unlock
- The retention rule has been unlocked but it is still within \n the unlock delay period. The retention rule can be modified or deleted only after the unlock \n delay period has expired.
\n unlocked
- The retention rule is unlocked and it can be modified or deleted by \n any user with the required permissions.
\n null
- The retention rule has never been locked. Once a retention rule has \n been locked, it can transition between the locked
and unlocked
states \n only; it can never transition back to null
.
The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -1814,6 +1832,12 @@ "traits": { "smithy.api#documentation": "The lock state for the retention rule.
\n\n locked
- The retention rule is locked and can't be modified or deleted.
\n pending_unlock
- The retention rule has been unlocked but it is still within \n the unlock delay period. The retention rule can be modified or deleted only after the unlock \n delay period has expired.
\n unlocked
- The retention rule is unlocked and it can be modified or deleted by \n any user with the required permissions.
\n null
- The retention rule has never been locked. Once a retention rule has \n been locked, it can transition between the locked
and unlocked
states \n only; it can never transition back to null
.
The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -2128,6 +2152,12 @@ "traits": { "smithy.api#documentation": "The date and time at which the unlock delay is set to expire. Only returned \n for retention rules that have been unlocked and that are still within the unlock \n delay period.
" } + }, + "RuleArn": { + "target": "com.amazonaws.rbin#RuleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -2211,6 +2241,9 @@ { "target": "com.amazonaws.rbin#ResourceNotFoundException" }, + { + "target": "com.amazonaws.rbin#ServiceQuotaExceededException" + }, { "target": "com.amazonaws.rbin#ValidationException" } @@ -2311,6 +2344,12 @@ "traits": { "smithy.api#documentation": "The date and time at which the unlock delay is set to expire. Only returned \n for retention rules that have been unlocked and that are still within the unlock \n delay period.
" } + }, + "RuleArn": { + "target": "com.amazonaws.rbin#RuleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": {