From d23330266f2b4a57891ca6b7fe1f224f134fc483 Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 2 Oct 2023 18:20:26 +0000 Subject: [PATCH] feat(client-sts): STS API updates for assumeRole --- codegen/sdk-codegen/aws-models/sts.json | 160 ++++++++++++------------ 1 file changed, 83 insertions(+), 77 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/sts.json b/codegen/sdk-codegen/aws-models/sts.json index a99b034d90080..a60bbc4493d85 100644 --- a/codegen/sdk-codegen/aws-models/sts.json +++ b/codegen/sdk-codegen/aws-models/sts.json @@ -1665,9 +1665,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1684,10 +1684,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-1", - "UseGlobalEndpoint": true + "Region": "ap-northeast-1" } }, { @@ -1697,9 +1697,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1716,10 +1716,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "ap-south-1", - "UseGlobalEndpoint": true + "Region": "ap-south-1" } }, { @@ -1729,9 +1729,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1748,10 +1748,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1", - "UseGlobalEndpoint": true + "Region": "ap-southeast-1" } }, { @@ -1761,9 +1761,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1780,10 +1780,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-2", - "UseGlobalEndpoint": true + "Region": "ap-southeast-2" } }, { @@ -1793,9 +1793,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1812,10 +1812,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "aws-global", - "UseGlobalEndpoint": true + "Region": "aws-global" } }, { @@ -1825,9 +1825,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1844,10 +1844,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "ca-central-1", - "UseGlobalEndpoint": true + "Region": "ca-central-1" } }, { @@ -1857,9 +1857,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1876,10 +1876,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "eu-central-1", - "UseGlobalEndpoint": true + "Region": "eu-central-1" } }, { @@ -1889,9 +1889,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1908,10 +1908,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "eu-north-1", - "UseGlobalEndpoint": true + "Region": "eu-north-1" } }, { @@ -1921,9 +1921,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1940,10 +1940,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-1", - "UseGlobalEndpoint": true + "Region": "eu-west-1" } }, { @@ -1953,9 +1953,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -1972,10 +1972,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-2", - "UseGlobalEndpoint": true + "Region": "eu-west-2" } }, { @@ -1985,9 +1985,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2004,10 +2004,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-3", - "UseGlobalEndpoint": true + "Region": "eu-west-3" } }, { @@ -2017,9 +2017,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2036,10 +2036,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "sa-east-1", - "UseGlobalEndpoint": true + "Region": "sa-east-1" } }, { @@ -2049,9 +2049,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2068,10 +2068,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-1", - "UseGlobalEndpoint": true + "Region": "us-east-1" } }, { @@ -2081,9 +2081,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2100,10 +2100,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-2", - "UseGlobalEndpoint": true + "Region": "us-east-2" } }, { @@ -2113,9 +2113,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2132,10 +2132,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-1", - "UseGlobalEndpoint": true + "Region": "us-west-1" } }, { @@ -2145,9 +2145,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-1", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2164,10 +2164,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-2", - "UseGlobalEndpoint": true + "Region": "us-west-2" } }, { @@ -2177,9 +2177,9 @@ "properties": { "authSchemes": [ { - "name": "sigv4", "signingRegion": "us-east-3", - "signingName": "sts" + "signingName": "sts", + "name": "sigv4" } ] }, @@ -2196,10 +2196,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-3", - "UseGlobalEndpoint": true + "Region": "us-east-3" } }, { @@ -2220,10 +2220,10 @@ } ], "params": { + "UseGlobalEndpoint": true, "UseDualStack": false, "UseFIPS": false, "Region": "us-west-1", - "UseGlobalEndpoint": true, "Endpoint": "https://example.com" } }, @@ -2235,10 +2235,10 @@ } }, "params": { + "UseGlobalEndpoint": false, "UseDualStack": false, "UseFIPS": false, - "Endpoint": "https://example.com", - "UseGlobalEndpoint": false + "Endpoint": "https://example.com" } } ], @@ -2292,10 +2292,7 @@ "Value": "12345" } ], - "TransitiveTagKeys": [ - "Project", - "Cost-Center" - ], + "TransitiveTagKeys": ["Project", "Cost-Center"], "ExternalId": "123ABC" }, "output": { @@ -2339,7 +2336,7 @@ } }, "Policy": { - "target": "com.amazonaws.sts#sessionPolicyDocumentType", + "target": "com.amazonaws.sts#unrestrictedSessionPolicyDocumentType", "traits": { "smithy.api#documentation": "

An IAM policy in JSON format that you want to use as an inline session policy.

\n

This parameter is optional. Passing policies to this operation returns new \n temporary credentials. The resulting session's permissions are the intersection of the \n role's identity-based policy and the session policies. You can use the role's temporary \n credentials in subsequent Amazon Web Services API calls to access resources in the account that owns \n the role. You cannot use session policies to grant more permissions than those allowed \n by the identity-based policy of the role that is being assumed. For more information, see\n Session\n Policies in the IAM User Guide.

\n

The plaintext that you use for both inline and managed session policies can't exceed\n 2,048 characters. The JSON policy characters can be any ASCII character from the space\n character to the end of the valid character list (\\u0020 through \\u00FF). It can also\n include the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)\n characters.

\n \n

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,\n and session tags into a packed binary format that has a separate limit. Your request can\n fail for this limit even if your plaintext meets the other requirements. The\n PackedPolicySize response element indicates by percentage how close the\n policies and tags for your request are to the upper size limit.

\n
" } @@ -3683,6 +3680,15 @@ "com.amazonaws.sts#tokenType": { "type": "string" }, + "com.amazonaws.sts#unrestrictedSessionPolicyDocumentType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + }, + "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$" + } + }, "com.amazonaws.sts#urlType": { "type": "string", "traits": { @@ -3715,4 +3721,4 @@ } } } -} \ No newline at end of file +}