@aws-sdk/client-sts 3.288.0 → 3.289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AssumeRoleCommand.d.ts +47 -0
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +34 -0
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +34 -0
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +16 -0
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +48 -0
- package/dist-types/commands/GetFederationTokenCommand.d.ts +38 -0
- package/dist-types/commands/GetSessionTokenCommand.d.ts +23 -0
- package/package.json +29 -29
|
@@ -116,6 +116,53 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB
|
|
|
116
116
|
* @see {@link AssumeRoleCommandOutput} for command's `response` shape.
|
|
117
117
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
118
118
|
*
|
|
119
|
+
* @example To assume a role
|
|
120
|
+
* ```javascript
|
|
121
|
+
* //
|
|
122
|
+
* const input = {
|
|
123
|
+
* "ExternalId": "123ABC",
|
|
124
|
+
* "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
|
125
|
+
* "RoleArn": "arn:aws:iam::123456789012:role/demo",
|
|
126
|
+
* "RoleSessionName": "testAssumeRoleSession",
|
|
127
|
+
* "Tags": [
|
|
128
|
+
* {
|
|
129
|
+
* "Key": "Project",
|
|
130
|
+
* "Value": "Unicorn"
|
|
131
|
+
* },
|
|
132
|
+
* {
|
|
133
|
+
* "Key": "Team",
|
|
134
|
+
* "Value": "Automation"
|
|
135
|
+
* },
|
|
136
|
+
* {
|
|
137
|
+
* "Key": "Cost-Center",
|
|
138
|
+
* "Value": "12345"
|
|
139
|
+
* }
|
|
140
|
+
* ],
|
|
141
|
+
* "TransitiveTagKeys": [
|
|
142
|
+
* "Project",
|
|
143
|
+
* "Cost-Center"
|
|
144
|
+
* ]
|
|
145
|
+
* };
|
|
146
|
+
* const command = new AssumeRoleCommand(input);
|
|
147
|
+
* const response = await client.send(command);
|
|
148
|
+
* /* response ==
|
|
149
|
+
* {
|
|
150
|
+
* "AssumedRoleUser": {
|
|
151
|
+
* "Arn": "arn:aws:sts::123456789012:assumed-role/demo/Bob",
|
|
152
|
+
* "AssumedRoleId": "ARO123EXAMPLE123:Bob"
|
|
153
|
+
* },
|
|
154
|
+
* "Credentials": {
|
|
155
|
+
* "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
|
|
156
|
+
* "Expiration": "2011-07-15T23:28:33.359Z",
|
|
157
|
+
* "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
|
158
|
+
* "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
|
|
159
|
+
* },
|
|
160
|
+
* "PackedPolicySize": 8
|
|
161
|
+
* }
|
|
162
|
+
* *\/
|
|
163
|
+
* // example id: to-assume-a-role-1480532402212
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
119
166
|
*/
|
|
120
167
|
export declare class AssumeRoleCommand extends $Command<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig> {
|
|
121
168
|
readonly input: AssumeRoleCommandInput;
|
|
@@ -157,6 +157,40 @@ export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLRespo
|
|
|
157
157
|
* @see {@link AssumeRoleWithSAMLCommandOutput} for command's `response` shape.
|
|
158
158
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
159
159
|
*
|
|
160
|
+
* @example To assume a role using a SAML assertion
|
|
161
|
+
* ```javascript
|
|
162
|
+
* //
|
|
163
|
+
* const input = {
|
|
164
|
+
* "DurationSeconds": 3600,
|
|
165
|
+
* "PrincipalArn": "arn:aws:iam::123456789012:saml-provider/SAML-test",
|
|
166
|
+
* "RoleArn": "arn:aws:iam::123456789012:role/TestSaml",
|
|
167
|
+
* "SAMLAssertion": "VERYLONGENCODEDASSERTIONEXAMPLExzYW1sOkF1ZGllbmNlPmJsYW5rPC9zYW1sOkF1ZGllbmNlPjwvc2FtbDpBdWRpZW5jZVJlc3RyaWN0aW9uPjwvc2FtbDpDb25kaXRpb25zPjxzYW1sOlN1YmplY3Q+PHNhbWw6TmFtZUlEIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6dHJhbnNpZW50Ij5TYW1sRXhhbXBsZTwvc2FtbDpOYW1lSUQ+PHNhbWw6U3ViamVjdENvbmZpcm1hdGlvbiBNZXRob2Q9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpjbTpiZWFyZXIiPjxzYW1sOlN1YmplY3RDb25maXJtYXRpb25EYXRhIE5vdE9uT3JBZnRlcj0iMjAxOS0xMS0wMVQyMDoyNTowNS4xNDVaIiBSZWNpcGllbnQ9Imh0dHBzOi8vc2lnbmluLmF3cy5hbWF6b24uY29tL3NhbWwiLz48L3NhbWw6U3ViamVjdENvbmZpcm1hdGlvbj48L3NhbWw6U3ViamVjdD48c2FtbDpBdXRoblN0YXRlbWVudCBBdXRoPD94bWwgdmpSZXNwb25zZT4="
|
|
168
|
+
* };
|
|
169
|
+
* const command = new AssumeRoleWithSAMLCommand(input);
|
|
170
|
+
* const response = await client.send(command);
|
|
171
|
+
* /* response ==
|
|
172
|
+
* {
|
|
173
|
+
* "AssumedRoleUser": {
|
|
174
|
+
* "Arn": "arn:aws:sts::123456789012:assumed-role/TestSaml",
|
|
175
|
+
* "AssumedRoleId": "ARO456EXAMPLE789:TestSaml"
|
|
176
|
+
* },
|
|
177
|
+
* "Audience": "https://signin.aws.amazon.com/saml",
|
|
178
|
+
* "Credentials": {
|
|
179
|
+
* "AccessKeyId": "ASIAV3ZUEFP6EXAMPLE",
|
|
180
|
+
* "Expiration": "2019-11-01T20:26:47Z",
|
|
181
|
+
* "SecretAccessKey": "8P+SQvWIuLnKhh8d++jpw0nNmQRBZvNEXAMPLEKEY",
|
|
182
|
+
* "SessionToken": "IQoJb3JpZ2luX2VjEOz////////////////////wEXAMPLEtMSJHMEUCIDoKK3JH9uGQE1z0sINr5M4jk+Na8KHDcCYRVjJCZEvOAiEA3OvJGtw1EcViOleS2vhs8VdCKFJQWPQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
|
|
183
|
+
* },
|
|
184
|
+
* "Issuer": "https://integ.example.com/idp/shibboleth",
|
|
185
|
+
* "NameQualifier": "SbdGOnUkh1i4+EXAMPLExL/jEvs=",
|
|
186
|
+
* "PackedPolicySize": 6,
|
|
187
|
+
* "Subject": "SamlExample",
|
|
188
|
+
* "SubjectType": "transient"
|
|
189
|
+
* }
|
|
190
|
+
* *\/
|
|
191
|
+
* // example id: to-assume-role-with-saml-14882749597814
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
160
194
|
*/
|
|
161
195
|
export declare class AssumeRoleWithSAMLCommand extends $Command<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig> {
|
|
162
196
|
readonly input: AssumeRoleWithSAMLCommandInput;
|
|
@@ -161,6 +161,40 @@ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWe
|
|
|
161
161
|
* @see {@link AssumeRoleWithWebIdentityCommandOutput} for command's `response` shape.
|
|
162
162
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
163
163
|
*
|
|
164
|
+
* @example To assume a role as an OpenID Connect-federated user
|
|
165
|
+
* ```javascript
|
|
166
|
+
* //
|
|
167
|
+
* const input = {
|
|
168
|
+
* "DurationSeconds": 3600,
|
|
169
|
+
* "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
|
170
|
+
* "ProviderId": "www.amazon.com",
|
|
171
|
+
* "RoleArn": "arn:aws:iam::123456789012:role/FederatedWebIdentityRole",
|
|
172
|
+
* "RoleSessionName": "app1",
|
|
173
|
+
* "WebIdentityToken": "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ"
|
|
174
|
+
* };
|
|
175
|
+
* const command = new AssumeRoleWithWebIdentityCommand(input);
|
|
176
|
+
* const response = await client.send(command);
|
|
177
|
+
* /* response ==
|
|
178
|
+
* {
|
|
179
|
+
* "AssumedRoleUser": {
|
|
180
|
+
* "Arn": "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1",
|
|
181
|
+
* "AssumedRoleId": "AROACLKWSDQRAOEXAMPLE:app1"
|
|
182
|
+
* },
|
|
183
|
+
* "Audience": "client.5498841531868486423.1548@apps.example.com",
|
|
184
|
+
* "Credentials": {
|
|
185
|
+
* "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
|
|
186
|
+
* "Expiration": "2014-10-24T23:00:23Z",
|
|
187
|
+
* "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
|
188
|
+
* "SessionToken": "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE"
|
|
189
|
+
* },
|
|
190
|
+
* "PackedPolicySize": 123,
|
|
191
|
+
* "Provider": "www.amazon.com",
|
|
192
|
+
* "SubjectFromWebIdentityToken": "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE"
|
|
193
|
+
* }
|
|
194
|
+
* *\/
|
|
195
|
+
* // example id: to-assume-a-role-as-an-openid-connect-federated-user-1480533445696
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
164
198
|
*/
|
|
165
199
|
export declare class AssumeRoleWithWebIdentityCommand extends $Command<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig> {
|
|
166
200
|
readonly input: AssumeRoleWithWebIdentityCommandInput;
|
|
@@ -64,6 +64,22 @@ export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthoriza
|
|
|
64
64
|
* @see {@link DecodeAuthorizationMessageCommandOutput} for command's `response` shape.
|
|
65
65
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
66
66
|
*
|
|
67
|
+
* @example To decode information about an authorization status of a request
|
|
68
|
+
* ```javascript
|
|
69
|
+
* //
|
|
70
|
+
* const input = {
|
|
71
|
+
* "EncodedMessage": "<encoded-message>"
|
|
72
|
+
* };
|
|
73
|
+
* const command = new DecodeAuthorizationMessageCommand(input);
|
|
74
|
+
* const response = await client.send(command);
|
|
75
|
+
* /* response ==
|
|
76
|
+
* {
|
|
77
|
+
* "DecodedMessage": "{\"allowed\": \"false\",\"explicitDeny\": \"false\",\"matchedStatements\": \"\",\"failures\": \"\",\"context\": {\"principal\": {\"id\": \"AIDACKCEVSQ6C2EXAMPLE\",\"name\": \"Bob\",\"arn\": \"arn:aws:iam::123456789012:user/Bob\"},\"action\": \"ec2:StopInstances\",\"resource\": \"arn:aws:ec2:us-east-1:123456789012:instance/i-dd01c9bd\",\"conditions\": [{\"item\": {\"key\": \"ec2:Tenancy\",\"values\": [\"default\"]},{\"item\": {\"key\": \"ec2:ResourceTag/elasticbeanstalk:environment-name\",\"values\": [\"Default-Environment\"]}},(Additional items ...)]}}"
|
|
78
|
+
* }
|
|
79
|
+
* *\/
|
|
80
|
+
* // example id: to-decode-information-about-an-authorization-status-of-a-request-1480533854499
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
67
83
|
*/
|
|
68
84
|
export declare class DecodeAuthorizationMessageCommand extends $Command<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig> {
|
|
69
85
|
readonly input: DecodeAuthorizationMessageCommandInput;
|
|
@@ -38,6 +38,54 @@ export interface GetCallerIdentityCommandOutput extends GetCallerIdentityRespons
|
|
|
38
38
|
* @see {@link GetCallerIdentityCommandOutput} for command's `response` shape.
|
|
39
39
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
40
40
|
*
|
|
41
|
+
* @example To get details about a calling IAM user
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012.
|
|
44
|
+
* const input = {};
|
|
45
|
+
* const command = new GetCallerIdentityCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* /* response ==
|
|
48
|
+
* {
|
|
49
|
+
* "Account": "123456789012",
|
|
50
|
+
* "Arn": "arn:aws:iam::123456789012:user/Alice",
|
|
51
|
+
* "UserId": "AKIAI44QH8DHBEXAMPLE"
|
|
52
|
+
* }
|
|
53
|
+
* *\/
|
|
54
|
+
* // example id: to-get-details-about-a-calling-iam-user-1480540050376
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @example To get details about a calling user federated with AssumeRole
|
|
58
|
+
* ```javascript
|
|
59
|
+
* // This example shows a request and response made with temporary credentials created by AssumeRole. The name of the assumed role is my-role-name, and the RoleSessionName is set to my-role-session-name.
|
|
60
|
+
* const input = {};
|
|
61
|
+
* const command = new GetCallerIdentityCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* /* response ==
|
|
64
|
+
* {
|
|
65
|
+
* "Account": "123456789012",
|
|
66
|
+
* "Arn": "arn:aws:sts::123456789012:assumed-role/my-role-name/my-role-session-name",
|
|
67
|
+
* "UserId": "AKIAI44QH8DHBEXAMPLE:my-role-session-name"
|
|
68
|
+
* }
|
|
69
|
+
* *\/
|
|
70
|
+
* // example id: to-get-details-about-a-calling-user-federated-with-assumerole-1480540158545
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @example To get details about a calling user federated with GetFederationToken
|
|
74
|
+
* ```javascript
|
|
75
|
+
* // This example shows a request and response made with temporary credentials created by using GetFederationToken. The Name parameter is set to my-federated-user-name.
|
|
76
|
+
* const input = {};
|
|
77
|
+
* const command = new GetCallerIdentityCommand(input);
|
|
78
|
+
* const response = await client.send(command);
|
|
79
|
+
* /* response ==
|
|
80
|
+
* {
|
|
81
|
+
* "Account": "123456789012",
|
|
82
|
+
* "Arn": "arn:aws:sts::123456789012:federated-user/my-federated-user-name",
|
|
83
|
+
* "UserId": "123456789012:my-federated-user-name"
|
|
84
|
+
* }
|
|
85
|
+
* *\/
|
|
86
|
+
* // example id: to-get-details-about-a-calling-user-federated-with-getfederationtoken-1480540231316
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
41
89
|
*/
|
|
42
90
|
export declare class GetCallerIdentityCommand extends $Command<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig> {
|
|
43
91
|
readonly input: GetCallerIdentityCommandInput;
|
|
@@ -115,6 +115,44 @@ export interface GetFederationTokenCommandOutput extends GetFederationTokenRespo
|
|
|
115
115
|
* @see {@link GetFederationTokenCommandOutput} for command's `response` shape.
|
|
116
116
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
117
117
|
*
|
|
118
|
+
* @example To get temporary credentials for a role by using GetFederationToken
|
|
119
|
+
* ```javascript
|
|
120
|
+
* //
|
|
121
|
+
* const input = {
|
|
122
|
+
* "DurationSeconds": 3600,
|
|
123
|
+
* "Name": "testFedUserSession",
|
|
124
|
+
* "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
|
125
|
+
* "Tags": [
|
|
126
|
+
* {
|
|
127
|
+
* "Key": "Project",
|
|
128
|
+
* "Value": "Pegasus"
|
|
129
|
+
* },
|
|
130
|
+
* {
|
|
131
|
+
* "Key": "Cost-Center",
|
|
132
|
+
* "Value": "98765"
|
|
133
|
+
* }
|
|
134
|
+
* ]
|
|
135
|
+
* };
|
|
136
|
+
* const command = new GetFederationTokenCommand(input);
|
|
137
|
+
* const response = await client.send(command);
|
|
138
|
+
* /* response ==
|
|
139
|
+
* {
|
|
140
|
+
* "Credentials": {
|
|
141
|
+
* "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
|
|
142
|
+
* "Expiration": "2011-07-15T23:28:33.359Z",
|
|
143
|
+
* "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
|
144
|
+
* "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
|
|
145
|
+
* },
|
|
146
|
+
* "FederatedUser": {
|
|
147
|
+
* "Arn": "arn:aws:sts::123456789012:federated-user/Bob",
|
|
148
|
+
* "FederatedUserId": "123456789012:Bob"
|
|
149
|
+
* },
|
|
150
|
+
* "PackedPolicySize": 8
|
|
151
|
+
* }
|
|
152
|
+
* *\/
|
|
153
|
+
* // example id: to-get-temporary-credentials-for-a-role-by-using-getfederationtoken-1480540749900
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
118
156
|
*/
|
|
119
157
|
export declare class GetFederationTokenCommand extends $Command<GetFederationTokenCommandInput, GetFederationTokenCommandOutput, STSClientResolvedConfig> {
|
|
120
158
|
readonly input: GetFederationTokenCommandInput;
|
|
@@ -87,6 +87,29 @@ export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, _
|
|
|
87
87
|
* @see {@link GetSessionTokenCommandOutput} for command's `response` shape.
|
|
88
88
|
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
|
89
89
|
*
|
|
90
|
+
* @example To get temporary credentials for an IAM user or an AWS account
|
|
91
|
+
* ```javascript
|
|
92
|
+
* //
|
|
93
|
+
* const input = {
|
|
94
|
+
* "DurationSeconds": 3600,
|
|
95
|
+
* "SerialNumber": "YourMFASerialNumber",
|
|
96
|
+
* "TokenCode": "123456"
|
|
97
|
+
* };
|
|
98
|
+
* const command = new GetSessionTokenCommand(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* /* response ==
|
|
101
|
+
* {
|
|
102
|
+
* "Credentials": {
|
|
103
|
+
* "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
|
|
104
|
+
* "Expiration": "2011-07-11T19:55:29.611Z",
|
|
105
|
+
* "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
|
106
|
+
* "SessionToken": "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE"
|
|
107
|
+
* }
|
|
108
|
+
* }
|
|
109
|
+
* *\/
|
|
110
|
+
* // example id: to-get-temporary-credentials-for-an-iam-user-or-an-aws-account-1480540814038
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
90
113
|
*/
|
|
91
114
|
export declare class GetSessionTokenCommand extends $Command<GetSessionTokenCommandInput, GetSessionTokenCommandOutput, STSClientResolvedConfig> {
|
|
92
115
|
readonly input: GetSessionTokenCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.289.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -22,37 +22,37 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-sdk-sts": "3.
|
|
37
|
-
"@aws-sdk/middleware-serde": "3.
|
|
38
|
-
"@aws-sdk/middleware-signing": "3.
|
|
39
|
-
"@aws-sdk/middleware-stack": "3.
|
|
40
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
41
|
-
"@aws-sdk/node-config-provider": "3.
|
|
42
|
-
"@aws-sdk/node-http-handler": "3.
|
|
43
|
-
"@aws-sdk/protocol-http": "3.
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
-
"@aws-sdk/types": "3.
|
|
46
|
-
"@aws-sdk/url-parser": "3.
|
|
25
|
+
"@aws-sdk/config-resolver": "3.289.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.289.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.289.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.289.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.289.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.289.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.289.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.289.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.289.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.289.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.289.0",
|
|
36
|
+
"@aws-sdk/middleware-sdk-sts": "3.289.0",
|
|
37
|
+
"@aws-sdk/middleware-serde": "3.289.0",
|
|
38
|
+
"@aws-sdk/middleware-signing": "3.289.0",
|
|
39
|
+
"@aws-sdk/middleware-stack": "3.289.0",
|
|
40
|
+
"@aws-sdk/middleware-user-agent": "3.289.0",
|
|
41
|
+
"@aws-sdk/node-config-provider": "3.289.0",
|
|
42
|
+
"@aws-sdk/node-http-handler": "3.289.0",
|
|
43
|
+
"@aws-sdk/protocol-http": "3.289.0",
|
|
44
|
+
"@aws-sdk/smithy-client": "3.289.0",
|
|
45
|
+
"@aws-sdk/types": "3.289.0",
|
|
46
|
+
"@aws-sdk/url-parser": "3.289.0",
|
|
47
47
|
"@aws-sdk/util-base64": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
49
49
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
-
"@aws-sdk/util-endpoints": "3.
|
|
53
|
-
"@aws-sdk/util-retry": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.289.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.289.0",
|
|
52
|
+
"@aws-sdk/util-endpoints": "3.289.0",
|
|
53
|
+
"@aws-sdk/util-retry": "3.289.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.289.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.289.0",
|
|
56
56
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
57
57
|
"fast-xml-parser": "4.1.2",
|
|
58
58
|
"tslib": "^2.3.1"
|