@aws-sdk/client-sts 3.299.0 → 3.301.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 +24 -0
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +12 -0
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +13 -0
- package/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +3 -0
- package/dist-types/commands/GetAccessKeyInfoCommand.d.ts +3 -0
- package/dist-types/commands/GetCallerIdentityCommand.d.ts +1 -0
- package/dist-types/commands/GetFederationTokenCommand.d.ts +16 -0
- package/dist-types/commands/GetSessionTokenCommand.d.ts +5 -0
- package/package.json +7 -7
|
@@ -113,6 +113,30 @@ export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataB
|
|
|
113
113
|
* import { STSClient, AssumeRoleCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
114
114
|
* // const { STSClient, AssumeRoleCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
115
115
|
* const client = new STSClient(config);
|
|
116
|
+
* const input = { // AssumeRoleRequest
|
|
117
|
+
* RoleArn: "STRING_VALUE", // required
|
|
118
|
+
* RoleSessionName: "STRING_VALUE", // required
|
|
119
|
+
* PolicyArns: [ // policyDescriptorListType
|
|
120
|
+
* { // PolicyDescriptorType
|
|
121
|
+
* arn: "STRING_VALUE",
|
|
122
|
+
* },
|
|
123
|
+
* ],
|
|
124
|
+
* Policy: "STRING_VALUE",
|
|
125
|
+
* DurationSeconds: Number("int"),
|
|
126
|
+
* Tags: [ // tagListType
|
|
127
|
+
* { // Tag
|
|
128
|
+
* Key: "STRING_VALUE", // required
|
|
129
|
+
* Value: "STRING_VALUE", // required
|
|
130
|
+
* },
|
|
131
|
+
* ],
|
|
132
|
+
* TransitiveTagKeys: [ // tagKeyListType
|
|
133
|
+
* "STRING_VALUE",
|
|
134
|
+
* ],
|
|
135
|
+
* ExternalId: "STRING_VALUE",
|
|
136
|
+
* SerialNumber: "STRING_VALUE",
|
|
137
|
+
* TokenCode: "STRING_VALUE",
|
|
138
|
+
* SourceIdentity: "STRING_VALUE",
|
|
139
|
+
* };
|
|
116
140
|
* const command = new AssumeRoleCommand(input);
|
|
117
141
|
* const response = await client.send(command);
|
|
118
142
|
* ```
|
|
@@ -154,6 +154,18 @@ export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLRespo
|
|
|
154
154
|
* import { STSClient, AssumeRoleWithSAMLCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
155
155
|
* // const { STSClient, AssumeRoleWithSAMLCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
156
156
|
* const client = new STSClient(config);
|
|
157
|
+
* const input = { // AssumeRoleWithSAMLRequest
|
|
158
|
+
* RoleArn: "STRING_VALUE", // required
|
|
159
|
+
* PrincipalArn: "STRING_VALUE", // required
|
|
160
|
+
* SAMLAssertion: "STRING_VALUE", // required
|
|
161
|
+
* PolicyArns: [ // policyDescriptorListType
|
|
162
|
+
* { // PolicyDescriptorType
|
|
163
|
+
* arn: "STRING_VALUE",
|
|
164
|
+
* },
|
|
165
|
+
* ],
|
|
166
|
+
* Policy: "STRING_VALUE",
|
|
167
|
+
* DurationSeconds: Number("int"),
|
|
168
|
+
* };
|
|
157
169
|
* const command = new AssumeRoleWithSAMLCommand(input);
|
|
158
170
|
* const response = await client.send(command);
|
|
159
171
|
* ```
|
|
@@ -158,6 +158,19 @@ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWe
|
|
|
158
158
|
* import { STSClient, AssumeRoleWithWebIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
159
159
|
* // const { STSClient, AssumeRoleWithWebIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
160
160
|
* const client = new STSClient(config);
|
|
161
|
+
* const input = { // AssumeRoleWithWebIdentityRequest
|
|
162
|
+
* RoleArn: "STRING_VALUE", // required
|
|
163
|
+
* RoleSessionName: "STRING_VALUE", // required
|
|
164
|
+
* WebIdentityToken: "STRING_VALUE", // required
|
|
165
|
+
* ProviderId: "STRING_VALUE",
|
|
166
|
+
* PolicyArns: [ // policyDescriptorListType
|
|
167
|
+
* { // PolicyDescriptorType
|
|
168
|
+
* arn: "STRING_VALUE",
|
|
169
|
+
* },
|
|
170
|
+
* ],
|
|
171
|
+
* Policy: "STRING_VALUE",
|
|
172
|
+
* DurationSeconds: Number("int"),
|
|
173
|
+
* };
|
|
161
174
|
* const command = new AssumeRoleWithWebIdentityCommand(input);
|
|
162
175
|
* const response = await client.send(command);
|
|
163
176
|
* ```
|
|
@@ -61,6 +61,9 @@ export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthoriza
|
|
|
61
61
|
* import { STSClient, DecodeAuthorizationMessageCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
62
62
|
* // const { STSClient, DecodeAuthorizationMessageCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
63
63
|
* const client = new STSClient(config);
|
|
64
|
+
* const input = { // DecodeAuthorizationMessageRequest
|
|
65
|
+
* EncodedMessage: "STRING_VALUE", // required
|
|
66
|
+
* };
|
|
64
67
|
* const command = new DecodeAuthorizationMessageCommand(input);
|
|
65
68
|
* const response = await client.send(command);
|
|
66
69
|
* ```
|
|
@@ -43,6 +43,9 @@ export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse,
|
|
|
43
43
|
* import { STSClient, GetAccessKeyInfoCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
44
44
|
* // const { STSClient, GetAccessKeyInfoCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
45
45
|
* const client = new STSClient(config);
|
|
46
|
+
* const input = { // GetAccessKeyInfoRequest
|
|
47
|
+
* AccessKeyId: "STRING_VALUE", // required
|
|
48
|
+
* };
|
|
46
49
|
* const command = new GetAccessKeyInfoCommand(input);
|
|
47
50
|
* const response = await client.send(command);
|
|
48
51
|
* ```
|
|
@@ -35,6 +35,7 @@ export interface GetCallerIdentityCommandOutput extends GetCallerIdentityRespons
|
|
|
35
35
|
* import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
36
36
|
* // const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
37
37
|
* const client = new STSClient(config);
|
|
38
|
+
* const input = {};
|
|
38
39
|
* const command = new GetCallerIdentityCommand(input);
|
|
39
40
|
* const response = await client.send(command);
|
|
40
41
|
* ```
|
|
@@ -112,6 +112,22 @@ export interface GetFederationTokenCommandOutput extends GetFederationTokenRespo
|
|
|
112
112
|
* import { STSClient, GetFederationTokenCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
113
113
|
* // const { STSClient, GetFederationTokenCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
114
114
|
* const client = new STSClient(config);
|
|
115
|
+
* const input = { // GetFederationTokenRequest
|
|
116
|
+
* Name: "STRING_VALUE", // required
|
|
117
|
+
* Policy: "STRING_VALUE",
|
|
118
|
+
* PolicyArns: [ // policyDescriptorListType
|
|
119
|
+
* { // PolicyDescriptorType
|
|
120
|
+
* arn: "STRING_VALUE",
|
|
121
|
+
* },
|
|
122
|
+
* ],
|
|
123
|
+
* DurationSeconds: Number("int"),
|
|
124
|
+
* Tags: [ // tagListType
|
|
125
|
+
* { // Tag
|
|
126
|
+
* Key: "STRING_VALUE", // required
|
|
127
|
+
* Value: "STRING_VALUE", // required
|
|
128
|
+
* },
|
|
129
|
+
* ],
|
|
130
|
+
* };
|
|
115
131
|
* const command = new GetFederationTokenCommand(input);
|
|
116
132
|
* const response = await client.send(command);
|
|
117
133
|
* ```
|
|
@@ -84,6 +84,11 @@ export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, _
|
|
|
84
84
|
* import { STSClient, GetSessionTokenCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
|
85
85
|
* // const { STSClient, GetSessionTokenCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
|
86
86
|
* const client = new STSClient(config);
|
|
87
|
+
* const input = { // GetSessionTokenRequest
|
|
88
|
+
* DurationSeconds: Number("int"),
|
|
89
|
+
* SerialNumber: "STRING_VALUE",
|
|
90
|
+
* TokenCode: "STRING_VALUE",
|
|
91
|
+
* };
|
|
87
92
|
* const command = new GetSessionTokenCommand(input);
|
|
88
93
|
* const response = await client.send(command);
|
|
89
94
|
* ```
|
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.301.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",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/config-resolver": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.301.0",
|
|
28
28
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
29
29
|
"@aws-sdk/hash-node": "3.296.0",
|
|
30
30
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
34
34
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
35
35
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
36
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
37
37
|
"@aws-sdk/middleware-sdk-sts": "3.299.0",
|
|
38
38
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
40
40
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
41
41
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
42
|
-
"@aws-sdk/node-config-provider": "3.
|
|
42
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
43
43
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
44
44
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
45
45
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
51
51
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
53
53
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
54
54
|
"@aws-sdk/util-retry": "3.296.0",
|
|
55
55
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
56
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
57
57
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
58
58
|
"fast-xml-parser": "4.1.2",
|
|
59
59
|
"tslib": "^2.5.0"
|