From 817667af9960fae164e1f3538aa0981d90f6d0d4 Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 6 Jun 2023 18:14:56 +0000 Subject: [PATCH] feat(client-iam): This release updates the AccountAlias regex pattern with the same length restrictions enforced by the length constraint. --- .../src/commands/CreateAccountAliasCommand.ts | 10 +- .../commands/DeactivateMFADeviceCommand.ts | 4 + .../src/commands/DeleteAccountAliasCommand.ts | 9 +- .../DeleteSigningCertificateCommand.ts | 4 + .../commands/DeleteVirtualMFADeviceCommand.ts | 4 + .../src/commands/EnableMFADeviceCommand.ts | 4 + .../src/commands/ListAccountAliasesCommand.ts | 5 +- .../src/commands/ResyncMFADeviceCommand.ts | 4 + .../UploadSigningCertificateCommand.ts | 4 + clients/client-iam/src/endpoint/ruleset.ts | 69 +- clients/client-iam/src/models/models_0.ts | 44 +- clients/client-iam/src/protocols/Aws_query.ts | 24 + codegen/sdk-codegen/aws-models/iam.json | 1255 +++++------------ 13 files changed, 436 insertions(+), 1004 deletions(-) diff --git a/clients/client-iam/src/commands/CreateAccountAliasCommand.ts b/clients/client-iam/src/commands/CreateAccountAliasCommand.ts index b39fdb815543..969c5351af07 100644 --- a/clients/client-iam/src/commands/CreateAccountAliasCommand.ts +++ b/clients/client-iam/src/commands/CreateAccountAliasCommand.ts @@ -37,9 +37,9 @@ export interface CreateAccountAliasCommandOutput extends __MetadataBearer {} /** * @public *

Creates an alias for your Amazon Web Services account. For information about using an Amazon Web Services account - * alias, see Using an - * alias for your Amazon Web Services account ID in the - * IAM User Guide.

+ * alias, see Creating, deleting, and + * listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User + * Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -61,6 +61,10 @@ export interface CreateAccountAliasCommandOutput extends __MetadataBearer {} * @see {@link CreateAccountAliasCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link EntityAlreadyExistsException} (client fault) *

The request was rejected because it attempted to create a resource that already * exists.

diff --git a/clients/client-iam/src/commands/DeactivateMFADeviceCommand.ts b/clients/client-iam/src/commands/DeactivateMFADeviceCommand.ts index 34ea0098b830..7eb97ecb7cc1 100644 --- a/clients/client-iam/src/commands/DeactivateMFADeviceCommand.ts +++ b/clients/client-iam/src/commands/DeactivateMFADeviceCommand.ts @@ -63,6 +63,10 @@ export interface DeactivateMFADeviceCommandOutput extends __MetadataBearer {} * @see {@link DeactivateMFADeviceCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link EntityTemporarilyUnmodifiableException} (client fault) *

The request was rejected because it referenced an entity that is temporarily unmodifiable, * such as a user name that was deleted and then recreated. The error indicates that the request diff --git a/clients/client-iam/src/commands/DeleteAccountAliasCommand.ts b/clients/client-iam/src/commands/DeleteAccountAliasCommand.ts index 3b8f6640e363..eb30663efabe 100644 --- a/clients/client-iam/src/commands/DeleteAccountAliasCommand.ts +++ b/clients/client-iam/src/commands/DeleteAccountAliasCommand.ts @@ -37,8 +37,9 @@ export interface DeleteAccountAliasCommandOutput extends __MetadataBearer {} /** * @public *

Deletes the specified Amazon Web Services account alias. For information about using an Amazon Web Services - * account alias, see Using an alias for your Amazon Web Services account ID in the - * IAM User Guide.

+ * account alias, see Creating, deleting, and + * listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User + * Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -60,6 +61,10 @@ export interface DeleteAccountAliasCommandOutput extends __MetadataBearer {} * @see {@link DeleteAccountAliasCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link LimitExceededException} (client fault) *

The request was rejected because it attempted to create resources beyond the current * Amazon Web Services account limits. The error message describes the limit exceeded.

diff --git a/clients/client-iam/src/commands/DeleteSigningCertificateCommand.ts b/clients/client-iam/src/commands/DeleteSigningCertificateCommand.ts index ca48dd742e4a..f6438603eb4a 100644 --- a/clients/client-iam/src/commands/DeleteSigningCertificateCommand.ts +++ b/clients/client-iam/src/commands/DeleteSigningCertificateCommand.ts @@ -63,6 +63,10 @@ export interface DeleteSigningCertificateCommandOutput extends __MetadataBearer * @see {@link DeleteSigningCertificateCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link LimitExceededException} (client fault) *

The request was rejected because it attempted to create resources beyond the current * Amazon Web Services account limits. The error message describes the limit exceeded.

diff --git a/clients/client-iam/src/commands/DeleteVirtualMFADeviceCommand.ts b/clients/client-iam/src/commands/DeleteVirtualMFADeviceCommand.ts index 7350e6889982..1fb3d904428e 100644 --- a/clients/client-iam/src/commands/DeleteVirtualMFADeviceCommand.ts +++ b/clients/client-iam/src/commands/DeleteVirtualMFADeviceCommand.ts @@ -62,6 +62,10 @@ export interface DeleteVirtualMFADeviceCommandOutput extends __MetadataBearer {} * @see {@link DeleteVirtualMFADeviceCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link DeleteConflictException} (client fault) *

The request was rejected because it attempted to delete a resource that has attached * subordinate entities. The error message describes these entities.

diff --git a/clients/client-iam/src/commands/EnableMFADeviceCommand.ts b/clients/client-iam/src/commands/EnableMFADeviceCommand.ts index 7fcef71e1b57..71783391c1a5 100644 --- a/clients/client-iam/src/commands/EnableMFADeviceCommand.ts +++ b/clients/client-iam/src/commands/EnableMFADeviceCommand.ts @@ -63,6 +63,10 @@ export interface EnableMFADeviceCommandOutput extends __MetadataBearer {} * @see {@link EnableMFADeviceCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link EntityAlreadyExistsException} (client fault) *

The request was rejected because it attempted to create a resource that already * exists.

diff --git a/clients/client-iam/src/commands/ListAccountAliasesCommand.ts b/clients/client-iam/src/commands/ListAccountAliasesCommand.ts index 7f78230a38ac..1fe765d76220 100644 --- a/clients/client-iam/src/commands/ListAccountAliasesCommand.ts +++ b/clients/client-iam/src/commands/ListAccountAliasesCommand.ts @@ -37,8 +37,9 @@ export interface ListAccountAliasesCommandOutput extends ListAccountAliasesRespo /** * @public *

Lists the account alias associated with the Amazon Web Services account (Note: you can have only - * one). For information about using an Amazon Web Services account alias, see Using an alias for your - * Amazon Web Services account ID in the IAM User Guide.

+ * one). For information about using an Amazon Web Services account alias, see Creating, + * deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In + * User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-iam/src/commands/ResyncMFADeviceCommand.ts b/clients/client-iam/src/commands/ResyncMFADeviceCommand.ts index d6d106a8ec92..b7c34b19a670 100644 --- a/clients/client-iam/src/commands/ResyncMFADeviceCommand.ts +++ b/clients/client-iam/src/commands/ResyncMFADeviceCommand.ts @@ -64,6 +64,10 @@ export interface ResyncMFADeviceCommandOutput extends __MetadataBearer {} * @see {@link ResyncMFADeviceCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link InvalidAuthenticationCodeException} (client fault) *

The request was rejected because the authentication code was not recognized. The error * message describes the specific error.

diff --git a/clients/client-iam/src/commands/UploadSigningCertificateCommand.ts b/clients/client-iam/src/commands/UploadSigningCertificateCommand.ts index 3c9e444d923e..5dae9f6b3393 100644 --- a/clients/client-iam/src/commands/UploadSigningCertificateCommand.ts +++ b/clients/client-iam/src/commands/UploadSigningCertificateCommand.ts @@ -86,6 +86,10 @@ export interface UploadSigningCertificateCommandOutput extends UploadSigningCert * @see {@link UploadSigningCertificateCommandOutput} for command's `response` shape. * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape. * + * @throws {@link ConcurrentModificationException} (client fault) + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ * * @throws {@link DuplicateCertificateException} (client fault) *

The request was rejected because the same certificate is associated with an IAM user in * the account.

diff --git a/clients/client-iam/src/endpoint/ruleset.ts b/clients/client-iam/src/endpoint/ruleset.ts index 0881da18a01a..89b73c4ca974 100644 --- a/clients/client-iam/src/endpoint/ruleset.ts +++ b/clients/client-iam/src/endpoint/ruleset.ts @@ -6,51 +6,38 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/iam.json */ -const G="required", -H="type", -I="rules", -J="conditions", -K="fn", -L="argv", -M="ref", -N="url", -O="properties", -P="headers", -Q="authSchemes", -R="name", -S="signingName", -T="signingRegion"; +const A="required", +B="fn", +C="argv", +D="ref", +E="authSchemes", +F="signingName", +G="signingRegion"; const a="isSet", b="tree", c="error", d="endpoint", e="PartitionResult", f="stringEquals", -g={[G]:false,[H]:"String"}, -h={[G]:true,"default":false,[H]:"Boolean"}, -i={[M]:"Endpoint"}, -j={}, -k={[M]:"Region"}, -l={[K]:"getAttr",[L]:[{[M]:e},"name"]}, -m={[J]:[{[K]:"booleanEquals",[L]:[{[M]:"UseFIPS"},true]},{[K]:"booleanEquals",[L]:[{[M]:"UseDualStack"},true]}],[H]:b,[I]:[{[J]:[{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsFIPS"]}]},{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsDualStack"]}]}],[H]:b,[I]:[{[d]:{[N]:"https://iam-fips.{Region}.api.aws",[O]:{},[P]:{}},[H]:d}]},{[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[H]:c}]}, -n={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[H]:c}, -o={[N]:"https://iam-fips.amazonaws.com",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"us-east-1"}]},[P]:{}}, -p={[c]:"FIPS is enabled but this partition does not support FIPS",[H]:c}, -q={[J]:[{[K]:"booleanEquals",[L]:[{[M]:"UseDualStack"},true]}],[H]:b,[I]:[{[J]:[{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsDualStack"]}]}],[H]:b,[I]:[{[d]:{[N]:"https://iam.{Region}.api.aws",[O]:{},[P]:{}},[H]:d}]},{[c]:"DualStack is enabled but this partition does not support DualStack",[H]:c}]}, -r={[c]:"DualStack is enabled but this partition does not support DualStack",[H]:c}, -s={[N]:"https://iam.amazonaws.com",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"us-east-1"}]},[P]:{}}, -t={[N]:"https://iam.cn-north-1.amazonaws.com.cn",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"cn-north-1"}]},[P]:{}}, -u={[d]:{[N]:"https://iam.us-gov.amazonaws.com",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"us-gov-west-1"}]},[P]:{}},[H]:d}, -v={[N]:"https://iam.us-iso-east-1.c2s.ic.gov",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"us-iso-east-1"}]},[P]:{}}, -w={[N]:"https://iam.us-isob-east-1.sc2s.sgov.gov",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"us-isob-east-1"}]},[P]:{}}, -x={[J]:[{[K]:f,[L]:[k,"aws-us-gov-global"]}],[d]:{[N]:"https://iam.us-gov.amazonaws.com",[O]:{[Q]:[{[R]:"sigv4",[S]:"iam",[T]:"us-gov-west-1"}]},[P]:{}},[H]:d}, -y=[{[K]:"booleanEquals",[L]:[{[M]:"UseFIPS"},true]}], -z=[{[K]:"booleanEquals",[L]:[{[M]:"UseDualStack"},true]}], -A=[k], -B=[{[K]:"booleanEquals",[L]:[{[M]:"UseFIPS"},true]},{[K]:"booleanEquals",[L]:[{[M]:"UseDualStack"},true]}], -C=[{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsFIPS"]}]},{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsDualStack"]}]}], -D=[{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsFIPS"]}]}], -E=[{[K]:"booleanEquals",[L]:[true,{[K]:"getAttr",[L]:[{[M]:e},"supportsDualStack"]}]}], -F=[{[K]:f,[L]:[k,"aws-global"]}]; -const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},[I]:[{[J]:[{[K]:a,[L]:[i]}],[H]:b,[I]:[{[J]:y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[H]:c},{[H]:b,[I]:[{[J]:z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[H]:c},{endpoint:{[N]:i,[O]:j,[P]:j},[H]:d}]}]},{[H]:b,[I]:[{[J]:[{[K]:a,[L]:A}],[H]:b,[I]:[{[J]:[{[K]:"aws.partition",[L]:A,assign:e}],[H]:b,[I]:[{[J]:[{[K]:f,[L]:[l,"aws"]}],[H]:b,[I]:[m,{[J]:y,[H]:b,[I]:[{[J]:D,[H]:b,[I]:[{endpoint:o,[H]:d}]},p]},q,{endpoint:s,[H]:d}]},{[J]:[{[K]:f,[L]:[l,"aws-cn"]}],[H]:b,[I]:[{[J]:B,[H]:b,[I]:[{[J]:C,[H]:b,[I]:[{endpoint:{[N]:"https://iam-fips.{Region}.api.amazonwebservices.com.cn",[O]:j,[P]:j},[H]:d}]},n]},{[J]:y,[H]:b,[I]:[{[J]:D,[H]:b,[I]:[{endpoint:{[N]:"https://iam-fips.{Region}.amazonaws.com.cn",[O]:j,[P]:j},[H]:d}]},p]},{[J]:z,[H]:b,[I]:[{[J]:E,[H]:b,[I]:[{endpoint:{[N]:"https://iam.{Region}.api.amazonwebservices.com.cn",[O]:j,[P]:j},[H]:d}]},r]},{endpoint:t,[H]:d}]},{[J]:[{[K]:f,[L]:[l,"aws-us-gov"]}],[H]:b,[I]:[m,{[J]:y,[H]:b,[I]:[{[J]:D,[H]:b,[I]:[u]},p]},q,u]},{[J]:[{[K]:f,[L]:[l,"aws-iso"]}],[H]:b,[I]:[{[J]:y,[H]:b,[I]:[{[J]:D,[H]:b,[I]:[{endpoint:{[N]:"https://iam-fips.{Region}.c2s.ic.gov",[O]:j,[P]:j},[H]:d}]},p]},{endpoint:v,[H]:d}]},{[J]:[{[K]:f,[L]:[l,"aws-iso-b"]}],[H]:b,[I]:[{[J]:y,[H]:b,[I]:[{[J]:D,[H]:b,[I]:[{endpoint:{[N]:"https://iam-fips.{Region}.sc2s.sgov.gov",[O]:j,[P]:j},[H]:d}]},p]},{endpoint:w,[H]:d}]},{[J]:B,[H]:b,[I]:[{[J]:C,[H]:b,[I]:[{[H]:b,[I]:[{endpoint:{[N]:"https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[O]:j,[P]:j},[H]:d}]}]},n]},{[J]:y,[H]:b,[I]:[{[J]:D,[H]:b,[I]:[{[H]:b,[I]:[{[J]:F,endpoint:o,[H]:d},x,{endpoint:{[N]:"https://iam-fips.{Region}.{PartitionResult#dnsSuffix}",[O]:j,[P]:j},[H]:d}]}]},p]},{[J]:z,[H]:b,[I]:[{[J]:E,[H]:b,[I]:[{[H]:b,[I]:[{endpoint:{[N]:"https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}",[O]:j,[P]:j},[H]:d}]}]},r]},{[H]:b,[I]:[{[J]:F,endpoint:s,[H]:d},{[J]:[{[K]:f,[L]:[k,"aws-cn-global"]}],endpoint:t,[H]:d},x,{[J]:[{[K]:f,[L]:[k,"aws-iso-global"]}],endpoint:v,[H]:d},{[J]:[{[K]:f,[L]:[k,"aws-iso-b-global"]}],endpoint:w,[H]:d},{endpoint:{[N]:"https://iam.{Region}.{PartitionResult#dnsSuffix}",[O]:j,[P]:j},[H]:d}]}]}]},{error:"Invalid Configuration: Missing Region",[H]:c}]}]}; +g="sigv4", +h="iam", +i={[A]:false,"type":"String"}, +j={[A]:true,"default":false,"type":"Boolean"}, +k={[D]:"Endpoint"}, +l={[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}, +m={[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}, +n={}, +o={[B]:f,[C]:[{[B]:"getAttr",[C]:[{[D]:e},"name"]},"aws"]}, +p={[B]:"getAttr",[C]:[{[D]:e},"name"]}, +q={[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},false]}, +r={[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},false]}, +s={[E]:[{"name":g,[F]:h,[G]:"us-east-1"}]}, +t={[B]:f,[C]:[p,"aws-us-gov"]}, +u={"url":"https://iam.us-gov.amazonaws.com","properties":{[E]:[{"name":g,[F]:h,[G]:"us-gov-west-1"}]},"headers":{}}, +v={[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:e},"supportsFIPS"]}]}, +w={[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:e},"supportsDualStack"]}]}, +x=[l], +y=[m], +z=[{[D]:"Region"}]; +const _data={version:"1.0",parameters:{Region:i,UseDualStack:j,UseFIPS:j,Endpoint:i},rules:[{conditions:[{[B]:a,[C]:[k]}],type:b,rules:[{conditions:x,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:y,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:k,properties:n,headers:n},type:d}]}]},{type:b,rules:[{conditions:[{[B]:a,[C]:z}],type:b,rules:[{conditions:[{[B]:"aws.partition",[C]:z,assign:e}],type:b,rules:[{conditions:[o,q,r],endpoint:{url:"https://iam.amazonaws.com",properties:s,headers:n},type:d},{conditions:[o,l,r],endpoint:{url:"https://iam-fips.amazonaws.com",properties:s,headers:n},type:d},{conditions:[{[B]:f,[C]:[p,"aws-cn"]},q,r],endpoint:{url:"https://iam.cn-north-1.amazonaws.com.cn",properties:{[E]:[{name:g,[F]:h,[G]:"cn-north-1"}]},headers:n},type:d},{conditions:[t,q,r],endpoint:u,type:d},{conditions:[t,l,r],endpoint:u,type:d},{conditions:[{[B]:f,[C]:[p,"aws-iso"]},q,r],endpoint:{url:"https://iam.us-iso-east-1.c2s.ic.gov",properties:{[E]:[{name:g,[F]:h,[G]:"us-iso-east-1"}]},headers:n},type:d},{conditions:[{[B]:f,[C]:[p,"aws-iso-b"]},q,r],endpoint:{url:"https://iam.us-isob-east-1.sc2s.sgov.gov",properties:{[E]:[{name:g,[F]:h,[G]:"us-isob-east-1"}]},headers:n},type:d},{conditions:[l,m],type:b,rules:[{conditions:[v,w],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:x,type:b,rules:[{conditions:[v],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iam-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:y,type:b,rules:[{conditions:[w],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://iam.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iam/src/models/models_0.ts b/clients/client-iam/src/models/models_0.ts index d8ad2b45622a..602425be730e 100644 --- a/clients/client-iam/src/models/models_0.ts +++ b/clients/client-iam/src/models/models_0.ts @@ -664,6 +664,27 @@ export interface CreateAccessKeyResponse { AccessKey: AccessKey | undefined; } +/** + * @public + *

The request was rejected because multiple requests to change this object were submitted + * simultaneously. Wait a few minutes and submit your request again.

+ */ +export class ConcurrentModificationException extends __BaseException { + readonly name: "ConcurrentModificationException" = "ConcurrentModificationException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConcurrentModificationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ConcurrentModificationException.prototype); + } +} + /** * @public */ @@ -767,27 +788,6 @@ export interface CreateGroupResponse { Group: Group | undefined; } -/** - * @public - *

The request was rejected because multiple requests to change this object were submitted - * simultaneously. Wait a few minutes and submit your request again.

- */ -export class ConcurrentModificationException extends __BaseException { - readonly name: "ConcurrentModificationException" = "ConcurrentModificationException"; - readonly $fault: "client" = "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ConcurrentModificationException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, ConcurrentModificationException.prototype); - } -} - /** * @public *

A structure that represents user-provided metadata that can be associated with an IAM @@ -1991,7 +1991,7 @@ export interface VirtualMFADevice { SerialNumber: string | undefined; /** - *

The base32 seed defined as specified in RFC3548. The Base32StringSeed is base64-encoded.

+ *

The base32 seed defined as specified in RFC3548. The Base32StringSeed is base32-encoded.

*/ Base32StringSeed?: Uint8Array; diff --git a/clients/client-iam/src/protocols/Aws_query.ts b/clients/client-iam/src/protocols/Aws_query.ts index b455b30e9a22..5a35a5be658c 100644 --- a/clients/client-iam/src/protocols/Aws_query.ts +++ b/clients/client-iam/src/protocols/Aws_query.ts @@ -3861,6 +3861,9 @@ const de_CreateAccountAliasCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "EntityAlreadyExists": case "com.amazonaws.iam#EntityAlreadyExistsException": throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context); @@ -4603,6 +4606,9 @@ const de_DeactivateMFADeviceCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "EntityTemporarilyUnmodifiable": case "com.amazonaws.iam#EntityTemporarilyUnmodifiableException": throw await de_EntityTemporarilyUnmodifiableExceptionRes(parsedOutput, context); @@ -4704,6 +4710,9 @@ const de_DeleteAccountAliasCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "LimitExceeded": case "com.amazonaws.iam#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); @@ -5524,6 +5533,9 @@ const de_DeleteSigningCertificateCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "LimitExceeded": case "com.amazonaws.iam#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); @@ -5766,6 +5778,9 @@ const de_DeleteVirtualMFADeviceCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "DeleteConflict": case "com.amazonaws.iam#DeleteConflictException": throw await de_DeleteConflictExceptionRes(parsedOutput, context); @@ -5977,6 +5992,9 @@ const de_EnableMFADeviceCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "EntityAlreadyExists": case "com.amazonaws.iam#EntityAlreadyExistsException": throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context); @@ -9529,6 +9547,9 @@ const de_ResyncMFADeviceCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "InvalidAuthenticationCode": case "com.amazonaws.iam#InvalidAuthenticationCodeException": throw await de_InvalidAuthenticationCodeExceptionRes(parsedOutput, context); @@ -11410,6 +11431,9 @@ const de_UploadSigningCertificateCommandError = async ( }; const errorCode = loadQueryErrorCode(output, parsedOutput.body); switch (errorCode) { + case "ConcurrentModification": + case "com.amazonaws.iam#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); case "DuplicateCertificate": case "com.amazonaws.iam#DuplicateCertificateException": throw await de_DuplicateCertificateExceptionRes(parsedOutput, context); diff --git a/codegen/sdk-codegen/aws-models/iam.json b/codegen/sdk-codegen/aws-models/iam.json index 2474acee3be4..37b5cf4d85ac 100644 --- a/codegen/sdk-codegen/aws-models/iam.json +++ b/codegen/sdk-codegen/aws-models/iam.json @@ -665,216 +665,91 @@ }, "aws" ] - } - ], - "type": "tree", - "rules": [ + }, { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.api.aws", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseDualStack" }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.amazonaws.com", + "properties": { + "authSchemes": [ { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-east-1" } ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ { - "ref": "UseFIPS" + "ref": "PartitionResult" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-east-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } + "name" ] }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } + "aws" ] }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam.{Region}.api.aws", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseFIPS" }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } + true ] }, { - "conditions": [], - "endpoint": { - "url": "https://iam.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-east-1" - } - ] + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] } - ] + ], + "endpoint": { + "url": "https://iam-fips.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [ @@ -892,208 +767,40 @@ }, "aws-cn" ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.api.amazonwebservices.com.cn", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.amazonaws.com.cn", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseFIPS" }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } + false ] }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam.{Region}.api.amazonwebservices.com.cn", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseDualStack" }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.cn-north-1.amazonaws.com.cn", + "properties": { + "authSchemes": [ { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" + "name": "sigv4", + "signingName": "iam", + "signingRegion": "cn-north-1" } ] }, - { - "conditions": [], - "endpoint": { - "url": "https://iam.cn-north-1.amazonaws.com.cn", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "cn-north-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } - ] + "headers": {} + }, + "type": "endpoint" }, { "conditions": [ @@ -1111,216 +818,91 @@ }, "aws-us-gov" ] - } - ], - "type": "tree", - "rules": [ + }, { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.api.aws", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseDualStack" }, + false + ] + } + ], + "endpoint": { + "url": "https://iam.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-gov-west-1" } ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ { - "ref": "UseFIPS" + "ref": "PartitionResult" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam.us-gov.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-gov-west-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } + "name" ] }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } + "aws-us-gov" ] }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam.{Region}.api.aws", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseFIPS" }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } + true ] }, { - "conditions": [], - "endpoint": { - "url": "https://iam.us-gov.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-gov-west-1" - } - ] + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] } - ] + ], + "endpoint": { + "url": "https://iam.us-gov.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [ @@ -1338,80 +920,40 @@ }, "aws-iso" ] - } - ], - "type": "tree", - "rules": [ + }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.c2s.ic.gov", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseFIPS" }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } + false ] }, { - "conditions": [], - "endpoint": { - "url": "https://iam.us-iso-east-1.c2s.ic.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-iso-east-1" - } - ] + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] } - ] + ], + "endpoint": { + "url": "https://iam.us-iso-east-1.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-iso-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [ @@ -1429,80 +971,40 @@ }, "aws-iso-b" ] - } - ], - "type": "tree", - "rules": [ + }, { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ + "fn": "booleanEquals", + "argv": [ { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://iam-fips.{Region}.sc2s.sgov.gov", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "ref": "UseFIPS" }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } + false ] }, { - "conditions": [], - "endpoint": { - "url": "https://iam.us-isob-east-1.sc2s.sgov.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-isob-east-1" - } - ] + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] } - ] + ], + "endpoint": { + "url": "https://iam.us-isob-east-1.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "iam", + "signingRegion": "us-isob-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [ @@ -1624,60 +1126,6 @@ "conditions": [], "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-global" - ] - } - ], - "endpoint": { - "url": "https://iam-fips.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-east-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-us-gov-global" - ] - } - ], - "endpoint": { - "url": "https://iam.us-gov.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-gov-west-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, { "conditions": [], "endpoint": { @@ -1760,141 +1208,6 @@ "conditions": [], "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-global" - ] - } - ], - "endpoint": { - "url": "https://iam.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-east-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-cn-global" - ] - } - ], - "endpoint": { - "url": "https://iam.cn-north-1.amazonaws.com.cn", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "cn-north-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-us-gov-global" - ] - } - ], - "endpoint": { - "url": "https://iam.us-gov.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-gov-west-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-iso-global" - ] - } - ], - "endpoint": { - "url": "https://iam.us-iso-east-1.c2s.ic.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-iso-east-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "aws-iso-b-global" - ] - } - ], - "endpoint": { - "url": "https://iam.us-isob-east-1.sc2s.sgov.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "iam", - "signingRegion": "us-isob-east-1" - } - ] - }, - "headers": {} - }, - "type": "endpoint" - }, { "conditions": [], "endpoint": { @@ -1938,9 +1251,9 @@ } }, "params": { + "Region": "aws-global", "UseFIPS": false, - "UseDualStack": false, - "Region": "aws-global" + "UseDualStack": false } }, { @@ -1960,9 +1273,9 @@ } }, "params": { + "Region": "aws-global", "UseFIPS": true, - "UseDualStack": false, - "Region": "aws-global" + "UseDualStack": false } }, { @@ -1973,9 +1286,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { @@ -1995,9 +1308,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -2008,9 +1321,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-east-1" + "UseDualStack": true } }, { @@ -2030,9 +1343,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-east-1" + "UseDualStack": false } }, { @@ -2052,9 +1365,9 @@ } }, "params": { + "Region": "aws-cn-global", "UseFIPS": false, - "UseDualStack": false, - "Region": "aws-cn-global" + "UseDualStack": false } }, { @@ -2065,9 +1378,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -2078,9 +1391,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -2091,9 +1404,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "cn-north-1" + "UseDualStack": true } }, { @@ -2113,9 +1426,9 @@ } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "cn-north-1" + "UseDualStack": false } }, { @@ -2135,9 +1448,9 @@ } }, "params": { + "Region": "aws-us-gov-global", "UseFIPS": false, - "UseDualStack": false, - "Region": "aws-us-gov-global" + "UseDualStack": false } }, { @@ -2157,9 +1470,9 @@ } }, "params": { + "Region": "aws-us-gov-global", "UseFIPS": true, - "UseDualStack": false, - "Region": "aws-us-gov-global" + "UseDualStack": false } }, { @@ -2170,9 +1483,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { @@ -2192,9 +1505,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -2205,9 +1518,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": true, - "Region": "us-gov-east-1" + "UseDualStack": true } }, { @@ -2227,9 +1540,9 @@ } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-gov-east-1" + "UseDualStack": false } }, { @@ -2249,9 +1562,20 @@ } }, "params": { + "Region": "aws-iso-global", "UseFIPS": false, - "UseDualStack": false, - "Region": "aws-iso-global" + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { @@ -2262,9 +1586,20 @@ } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-iso-east-1" + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { @@ -2284,9 +1619,9 @@ } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-iso-east-1" + "UseDualStack": false } }, { @@ -2306,9 +1641,20 @@ } }, "params": { + "Region": "aws-iso-b-global", "UseFIPS": false, - "UseDualStack": false, - "Region": "aws-iso-b-global" + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true } }, { @@ -2319,9 +1665,20 @@ } }, "params": { + "Region": "us-isob-east-1", "UseFIPS": true, - "UseDualStack": false, - "Region": "us-isob-east-1" + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { @@ -2341,9 +1698,9 @@ } }, "params": { + "Region": "us-isob-east-1", "UseFIPS": false, - "UseDualStack": false, - "Region": "us-isob-east-1" + "UseDualStack": false } }, { @@ -2354,9 +1711,9 @@ } }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -2379,9 +1736,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, - "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -2391,11 +1748,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { + "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, - "Region": "us-east-1", "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" @@ -3213,6 +2576,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#EntityAlreadyExistsException" }, @@ -3224,7 +2590,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an alias for your Amazon Web Services account. For information about using an Amazon Web Services account\n alias, see Using an\n alias for your Amazon Web Services account ID in the\n IAM User Guide.

" + "smithy.api#documentation": "

Creates an alias for your Amazon Web Services account. For information about using an Amazon Web Services account\n alias, see Creating, deleting, and\n listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User\n Guide.

" } }, "com.amazonaws.iam#CreateAccountAliasRequest": { @@ -4211,6 +3577,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#EntityTemporarilyUnmodifiableException" }, @@ -4303,6 +3672,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#LimitExceededException" }, @@ -4314,7 +3686,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified Amazon Web Services account alias. For information about using an Amazon Web Services\n account alias, see Using an alias for your Amazon Web Services account ID in the\n IAM User Guide.

" + "smithy.api#documentation": "

Deletes the specified Amazon Web Services account alias. For information about using an Amazon Web Services\n account alias, see Creating, deleting, and\n listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User\n Guide.

" } }, "com.amazonaws.iam#DeleteAccountAliasRequest": { @@ -5027,6 +4399,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#LimitExceededException" }, @@ -5195,6 +4570,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#DeleteConflictException" }, @@ -5475,6 +4853,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#EntityAlreadyExistsException" }, @@ -7995,7 +7376,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the account alias associated with the Amazon Web Services account (Note: you can have only\n one). For information about using an Amazon Web Services account alias, see Using an alias for your\n Amazon Web Services account ID in the IAM User Guide.

", + "smithy.api#documentation": "

Lists the account alias associated with the Amazon Web Services account (Note: you can have only\n one). For information about using an Amazon Web Services account alias, see Creating,\n deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In\n User Guide.

", "smithy.api#paginated": { "inputToken": "Marker", "outputToken": "Marker", @@ -11941,6 +11322,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#InvalidAuthenticationCodeException" }, @@ -14868,6 +14252,9 @@ "target": "com.amazonaws.iam#UploadSigningCertificateResponse" }, "errors": [ + { + "target": "com.amazonaws.iam#ConcurrentModificationException" + }, { "target": "com.amazonaws.iam#DuplicateCertificateException" }, @@ -15070,7 +14457,7 @@ "Base32StringSeed": { "target": "com.amazonaws.iam#BootstrapDatum", "traits": { - "smithy.api#documentation": "

The base32 seed defined as specified in RFC3548. The Base32StringSeed is base64-encoded.

" + "smithy.api#documentation": "

The base32 seed defined as specified in RFC3548. The Base32StringSeed is base32-encoded.

" } }, "QRCodePNG": { @@ -15140,7 +14527,7 @@ "min": 3, "max": 63 }, - "smithy.api#pattern": "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$" + "smithy.api#pattern": "^[a-z0-9]([a-z0-9]|-(?!-)){1,61}[a-z0-9]$" } }, "com.amazonaws.iam#arnType": { @@ -15594,7 +14981,7 @@ "min": 1, "max": 512 }, - "smithy.api#pattern": "^(\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)$" + "smithy.api#pattern": "^(\\u002F)|(\\u002F[\\u0021-\\u007E]+\\u002F)$" } }, "com.amazonaws.iam#policyDescriptionType": { @@ -15798,7 +15185,7 @@ "min": 0, "max": 1000 }, - "smithy.api#pattern": "^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$" + "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u00A1-\\u00FF]*$" } }, "com.amazonaws.iam#roleDetailListType": {