p6-cdk-s3-protector 0.0.41 → 0.0.43
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/.jsii +32 -6
- package/lib/p6cdks3protector.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +9 -9
- package/node_modules/@aws-sdk/client-s3-control/package.json +5 -5
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-sts/README.md +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +107 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetDelegatedAccessTokenCommand.js +23 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +20 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +66 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +7 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +3 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +5 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRootCommand.d.ts +9 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +62 -10
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetDelegatedAccessTokenCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/node_modules/@aws-sdk/client-sts/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +14 -14
package/.jsii
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"bundled": {
|
|
11
|
-
"@aws-sdk/client-s3": "^3.
|
|
12
|
-
"@aws-sdk/client-s3-control": "^3.
|
|
13
|
-
"@aws-sdk/client-sts": "^3.
|
|
11
|
+
"@aws-sdk/client-s3": "^3.928.0",
|
|
12
|
+
"@aws-sdk/client-s3-control": "^3.928.0",
|
|
13
|
+
"@aws-sdk/client-sts": "^3.928.0",
|
|
14
14
|
"@types/aws-lambda": "^8.10.157",
|
|
15
15
|
"aws-sdk": "^2.1692.0",
|
|
16
16
|
"cdk-iam-floyd": "^0.729.0",
|
|
@@ -3227,6 +3227,19 @@
|
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
3229
|
},
|
|
3230
|
+
"aws-cdk-lib.aws_rtbfabric": {
|
|
3231
|
+
"targets": {
|
|
3232
|
+
"dotnet": {
|
|
3233
|
+
"package": "Amazon.CDK.AWS.RTBFabric"
|
|
3234
|
+
},
|
|
3235
|
+
"java": {
|
|
3236
|
+
"package": "software.amazon.awscdk.services.rtbfabric"
|
|
3237
|
+
},
|
|
3238
|
+
"python": {
|
|
3239
|
+
"module": "aws_cdk.aws_rtbfabric"
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3230
3243
|
"aws-cdk-lib.aws_rum": {
|
|
3231
3244
|
"targets": {
|
|
3232
3245
|
"dotnet": {
|
|
@@ -3344,6 +3357,19 @@
|
|
|
3344
3357
|
}
|
|
3345
3358
|
}
|
|
3346
3359
|
},
|
|
3360
|
+
"aws-cdk-lib.aws_s3vectors": {
|
|
3361
|
+
"targets": {
|
|
3362
|
+
"dotnet": {
|
|
3363
|
+
"package": "Amazon.CDK.AWS.S3Vectors"
|
|
3364
|
+
},
|
|
3365
|
+
"java": {
|
|
3366
|
+
"package": "software.amazon.awscdk.services.s3vectors"
|
|
3367
|
+
},
|
|
3368
|
+
"python": {
|
|
3369
|
+
"module": "aws_cdk.aws_s3vectors"
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
},
|
|
3347
3373
|
"aws-cdk-lib.aws_sagemaker": {
|
|
3348
3374
|
"targets": {
|
|
3349
3375
|
"dotnet": {
|
|
@@ -4089,7 +4115,7 @@
|
|
|
4089
4115
|
},
|
|
4090
4116
|
"description": "AWS CDK: A Real-Time S3 Protector",
|
|
4091
4117
|
"homepage": "https://github.com/p6m7g8/p6-cdk-s3-protector.git",
|
|
4092
|
-
"jsiiVersion": "5.9.
|
|
4118
|
+
"jsiiVersion": "5.9.13 (build cc3e9a8)",
|
|
4093
4119
|
"keywords": [
|
|
4094
4120
|
"aws",
|
|
4095
4121
|
"cdk",
|
|
@@ -4172,6 +4198,6 @@
|
|
|
4172
4198
|
"symbolId": "src/p6cdks3protector:P6CDKS3Protector"
|
|
4173
4199
|
}
|
|
4174
4200
|
},
|
|
4175
|
-
"version": "0.0.
|
|
4176
|
-
"fingerprint": "
|
|
4201
|
+
"version": "0.0.43",
|
|
4202
|
+
"fingerprint": "PnWZBlIFJnNu7qnI2IC5/hhqJPby9gc9R1mUS+zgyYo="
|
|
4177
4203
|
}
|
package/lib/p6cdks3protector.js
CHANGED
|
@@ -41,7 +41,7 @@ const lambdajs = __importStar(require("aws-cdk-lib/aws-lambda-nodejs"));
|
|
|
41
41
|
const cr = __importStar(require("aws-cdk-lib/custom-resources"));
|
|
42
42
|
const floyd = __importStar(require("cdk-iam-floyd"));
|
|
43
43
|
class P6CDKS3Protector extends cdk.Resource {
|
|
44
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "p6-cdk-s3-protector.P6CDKS3Protector", version: "0.0.
|
|
44
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "p6-cdk-s3-protector.P6CDKS3Protector", version: "0.0.43" };
|
|
45
45
|
constructor(scope, id) {
|
|
46
46
|
super(scope, id);
|
|
47
47
|
const policy = new floyd.Statement.S3().allow().toPutObject().toPutObjectAcl();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
32
|
+
"@aws-sdk/core": "3.928.0",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
34
34
|
"@aws-sdk/middleware-bucket-endpoint": "3.922.0",
|
|
35
35
|
"@aws-sdk/middleware-expect-continue": "3.922.0",
|
|
36
|
-
"@aws-sdk/middleware-flexible-checksums": "3.
|
|
36
|
+
"@aws-sdk/middleware-flexible-checksums": "3.928.0",
|
|
37
37
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
38
38
|
"@aws-sdk/middleware-location-constraint": "3.922.0",
|
|
39
39
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
40
40
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
41
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
41
|
+
"@aws-sdk/middleware-sdk-s3": "3.928.0",
|
|
42
42
|
"@aws-sdk/middleware-ssec": "3.922.0",
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
44
44
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
45
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
45
|
+
"@aws-sdk/signature-v4-multi-region": "3.928.0",
|
|
46
46
|
"@aws-sdk/types": "3.922.0",
|
|
47
47
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
50
50
|
"@aws-sdk/xml-builder": "3.921.0",
|
|
51
51
|
"@smithy/config-resolver": "^4.4.2",
|
|
52
52
|
"@smithy/core": "^3.17.2",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"tslib": "^2.6.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
88
|
+
"@aws-sdk/signature-v4-crt": "3.928.0",
|
|
89
89
|
"@tsconfig/node18": "18.2.4",
|
|
90
90
|
"@types/node": "^18.19.69",
|
|
91
91
|
"concurrently": "7.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3-control",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3-control",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/core": "3.928.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
27
27
|
"@aws-sdk/middleware-bucket-endpoint": "3.922.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
31
31
|
"@aws-sdk/middleware-sdk-s3-control": "3.922.0",
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
33
33
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
34
34
|
"@aws-sdk/types": "3.922.0",
|
|
35
35
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
36
36
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
37
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
38
38
|
"@aws-sdk/xml-builder": "3.921.0",
|
|
39
39
|
"@smithy/config-resolver": "^4.4.2",
|
|
40
40
|
"@smithy/core": "^3.17.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
24
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
25
25
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
27
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
27
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
28
28
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
29
29
|
"@aws-sdk/types": "3.922.0",
|
|
30
30
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
32
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
32
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
33
33
|
"@smithy/config-resolver": "^4.4.2",
|
|
34
34
|
"@smithy/core": "^3.17.2",
|
|
35
35
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -262,6 +262,14 @@ GetCallerIdentity
|
|
|
262
262
|
|
|
263
263
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetCallerIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetCallerIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetCallerIdentityCommandOutput/)
|
|
264
264
|
|
|
265
|
+
</details>
|
|
266
|
+
<details>
|
|
267
|
+
<summary>
|
|
268
|
+
GetDelegatedAccessToken
|
|
269
|
+
</summary>
|
|
270
|
+
|
|
271
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetDelegatedAccessTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetDelegatedAccessTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetDelegatedAccessTokenCommandOutput/)
|
|
272
|
+
|
|
265
273
|
</details>
|
|
266
274
|
<details>
|
|
267
275
|
<summary>
|
|
@@ -113,6 +113,18 @@ class InvalidAuthorizationMessageException extends STSServiceException {
|
|
|
113
113
|
Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
class ExpiredTradeInTokenException extends STSServiceException {
|
|
117
|
+
name = "ExpiredTradeInTokenException";
|
|
118
|
+
$fault = "client";
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "ExpiredTradeInTokenException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
116
128
|
const CredentialsFilterSensitiveLog = (obj) => ({
|
|
117
129
|
...obj,
|
|
118
130
|
...(obj.SecretAccessKey && { SecretAccessKey: smithyClient.SENSITIVE_STRING }),
|
|
@@ -141,6 +153,14 @@ const AssumeRootResponseFilterSensitiveLog = (obj) => ({
|
|
|
141
153
|
...obj,
|
|
142
154
|
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
143
155
|
});
|
|
156
|
+
const GetDelegatedAccessTokenRequestFilterSensitiveLog = (obj) => ({
|
|
157
|
+
...obj,
|
|
158
|
+
...(obj.TradeInToken && { TradeInToken: smithyClient.SENSITIVE_STRING }),
|
|
159
|
+
});
|
|
160
|
+
const GetDelegatedAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
161
|
+
...obj,
|
|
162
|
+
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
163
|
+
});
|
|
144
164
|
const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
|
145
165
|
...obj,
|
|
146
166
|
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
@@ -220,6 +240,16 @@ const se_GetCallerIdentityCommand = async (input, context) => {
|
|
|
220
240
|
});
|
|
221
241
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
242
|
};
|
|
243
|
+
const se_GetDelegatedAccessTokenCommand = async (input, context) => {
|
|
244
|
+
const headers = SHARED_HEADERS;
|
|
245
|
+
let body;
|
|
246
|
+
body = buildFormUrlencodedString({
|
|
247
|
+
...se_GetDelegatedAccessTokenRequest(input),
|
|
248
|
+
[_A]: _GDAT,
|
|
249
|
+
[_V]: _,
|
|
250
|
+
});
|
|
251
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
+
};
|
|
223
253
|
const se_GetFederationTokenCommand = async (input, context) => {
|
|
224
254
|
const headers = SHARED_HEADERS;
|
|
225
255
|
let body;
|
|
@@ -331,6 +361,19 @@ const de_GetCallerIdentityCommand = async (output, context) => {
|
|
|
331
361
|
};
|
|
332
362
|
return response;
|
|
333
363
|
};
|
|
364
|
+
const de_GetDelegatedAccessTokenCommand = async (output, context) => {
|
|
365
|
+
if (output.statusCode >= 300) {
|
|
366
|
+
return de_CommandError(output, context);
|
|
367
|
+
}
|
|
368
|
+
const data = await core.parseXmlBody(output.body, context);
|
|
369
|
+
let contents = {};
|
|
370
|
+
contents = de_GetDelegatedAccessTokenResponse(data.GetDelegatedAccessTokenResult);
|
|
371
|
+
const response = {
|
|
372
|
+
$metadata: deserializeMetadata(output),
|
|
373
|
+
...contents,
|
|
374
|
+
};
|
|
375
|
+
return response;
|
|
376
|
+
};
|
|
334
377
|
const de_GetFederationTokenCommand = async (output, context) => {
|
|
335
378
|
if (output.statusCode >= 300) {
|
|
336
379
|
return de_CommandError(output, context);
|
|
@@ -388,6 +431,9 @@ const de_CommandError = async (output, context) => {
|
|
|
388
431
|
case "InvalidAuthorizationMessageException":
|
|
389
432
|
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
|
390
433
|
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput);
|
|
434
|
+
case "ExpiredTradeInTokenException":
|
|
435
|
+
case "com.amazonaws.sts#ExpiredTradeInTokenException":
|
|
436
|
+
throw await de_ExpiredTradeInTokenExceptionRes(parsedOutput);
|
|
391
437
|
default:
|
|
392
438
|
const parsedBody = parsedOutput.body;
|
|
393
439
|
return throwDefaultError({
|
|
@@ -406,6 +452,15 @@ const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
406
452
|
});
|
|
407
453
|
return smithyClient.decorateServiceException(exception, body);
|
|
408
454
|
};
|
|
455
|
+
const de_ExpiredTradeInTokenExceptionRes = async (parsedOutput, context) => {
|
|
456
|
+
const body = parsedOutput.body;
|
|
457
|
+
const deserialized = de_ExpiredTradeInTokenException(body.Error);
|
|
458
|
+
const exception = new ExpiredTradeInTokenException({
|
|
459
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
460
|
+
...deserialized,
|
|
461
|
+
});
|
|
462
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
463
|
+
};
|
|
409
464
|
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
|
410
465
|
const body = parsedOutput.body;
|
|
411
466
|
const deserialized = de_IDPCommunicationErrorException(body.Error);
|
|
@@ -633,6 +688,13 @@ const se_GetCallerIdentityRequest = (input, context) => {
|
|
|
633
688
|
const entries = {};
|
|
634
689
|
return entries;
|
|
635
690
|
};
|
|
691
|
+
const se_GetDelegatedAccessTokenRequest = (input, context) => {
|
|
692
|
+
const entries = {};
|
|
693
|
+
if (input[_TIT] != null) {
|
|
694
|
+
entries[_TIT] = input[_TIT];
|
|
695
|
+
}
|
|
696
|
+
return entries;
|
|
697
|
+
};
|
|
636
698
|
const se_GetFederationTokenRequest = (input, context) => {
|
|
637
699
|
const entries = {};
|
|
638
700
|
if (input[_N] != null) {
|
|
@@ -885,6 +947,13 @@ const de_ExpiredTokenException = (output, context) => {
|
|
|
885
947
|
}
|
|
886
948
|
return contents;
|
|
887
949
|
};
|
|
950
|
+
const de_ExpiredTradeInTokenException = (output, context) => {
|
|
951
|
+
const contents = {};
|
|
952
|
+
if (output[_m] != null) {
|
|
953
|
+
contents[_m] = smithyClient.expectString(output[_m]);
|
|
954
|
+
}
|
|
955
|
+
return contents;
|
|
956
|
+
};
|
|
888
957
|
const de_FederatedUser = (output, context) => {
|
|
889
958
|
const contents = {};
|
|
890
959
|
if (output[_FUI] != null) {
|
|
@@ -915,6 +984,19 @@ const de_GetCallerIdentityResponse = (output, context) => {
|
|
|
915
984
|
}
|
|
916
985
|
return contents;
|
|
917
986
|
};
|
|
987
|
+
const de_GetDelegatedAccessTokenResponse = (output, context) => {
|
|
988
|
+
const contents = {};
|
|
989
|
+
if (output[_C] != null) {
|
|
990
|
+
contents[_C] = de_Credentials(output[_C]);
|
|
991
|
+
}
|
|
992
|
+
if (output[_PPS] != null) {
|
|
993
|
+
contents[_PPS] = smithyClient.strictParseInt32(output[_PPS]);
|
|
994
|
+
}
|
|
995
|
+
if (output[_AP] != null) {
|
|
996
|
+
contents[_AP] = smithyClient.expectString(output[_AP]);
|
|
997
|
+
}
|
|
998
|
+
return contents;
|
|
999
|
+
};
|
|
918
1000
|
const de_GetFederationTokenResponse = (output, context) => {
|
|
919
1001
|
const contents = {};
|
|
920
1002
|
if (output[_C] != null) {
|
|
@@ -1012,6 +1094,7 @@ const SHARED_HEADERS = {
|
|
|
1012
1094
|
const _ = "2011-06-15";
|
|
1013
1095
|
const _A = "Action";
|
|
1014
1096
|
const _AKI = "AccessKeyId";
|
|
1097
|
+
const _AP = "AssumedPrincipal";
|
|
1015
1098
|
const _AR = "AssumeRole";
|
|
1016
1099
|
const _ARI = "AssumedRoleId";
|
|
1017
1100
|
const _ARU = "AssumedRoleUser";
|
|
@@ -1033,6 +1116,7 @@ const _FU = "FederatedUser";
|
|
|
1033
1116
|
const _FUI = "FederatedUserId";
|
|
1034
1117
|
const _GAKI = "GetAccessKeyInfo";
|
|
1035
1118
|
const _GCI = "GetCallerIdentity";
|
|
1119
|
+
const _GDAT = "GetDelegatedAccessToken";
|
|
1036
1120
|
const _GFT = "GetFederationToken";
|
|
1037
1121
|
const _GST = "GetSessionToken";
|
|
1038
1122
|
const _I = "Issuer";
|
|
@@ -1059,6 +1143,7 @@ const _ST = "SubjectType";
|
|
|
1059
1143
|
const _STe = "SessionToken";
|
|
1060
1144
|
const _T = "Tags";
|
|
1061
1145
|
const _TC = "TokenCode";
|
|
1146
|
+
const _TIT = "TradeInToken";
|
|
1062
1147
|
const _TP = "TargetPrincipal";
|
|
1063
1148
|
const _TPA = "TaskPolicyArn";
|
|
1064
1149
|
const _TTK = "TransitiveTagKeys";
|
|
@@ -1199,6 +1284,23 @@ class GetCallerIdentityCommand extends smithyClient.Command
|
|
|
1199
1284
|
.build() {
|
|
1200
1285
|
}
|
|
1201
1286
|
|
|
1287
|
+
class GetDelegatedAccessTokenCommand extends smithyClient.Command
|
|
1288
|
+
.classBuilder()
|
|
1289
|
+
.ep(EndpointParameters.commonParams)
|
|
1290
|
+
.m(function (Command, cs, config, o) {
|
|
1291
|
+
return [
|
|
1292
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1293
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1294
|
+
];
|
|
1295
|
+
})
|
|
1296
|
+
.s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {})
|
|
1297
|
+
.n("STSClient", "GetDelegatedAccessTokenCommand")
|
|
1298
|
+
.f(GetDelegatedAccessTokenRequestFilterSensitiveLog, GetDelegatedAccessTokenResponseFilterSensitiveLog)
|
|
1299
|
+
.ser(se_GetDelegatedAccessTokenCommand)
|
|
1300
|
+
.de(de_GetDelegatedAccessTokenCommand)
|
|
1301
|
+
.build() {
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1202
1304
|
class GetFederationTokenCommand extends smithyClient.Command
|
|
1203
1305
|
.classBuilder()
|
|
1204
1306
|
.ep(EndpointParameters.commonParams)
|
|
@@ -1241,6 +1343,7 @@ const commands = {
|
|
|
1241
1343
|
DecodeAuthorizationMessageCommand,
|
|
1242
1344
|
GetAccessKeyInfoCommand,
|
|
1243
1345
|
GetCallerIdentityCommand,
|
|
1346
|
+
GetDelegatedAccessTokenCommand,
|
|
1244
1347
|
GetFederationTokenCommand,
|
|
1245
1348
|
GetSessionTokenCommand,
|
|
1246
1349
|
};
|
|
@@ -1384,8 +1487,12 @@ exports.AssumeRootResponseFilterSensitiveLog = AssumeRootResponseFilterSensitive
|
|
|
1384
1487
|
exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
|
|
1385
1488
|
exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand;
|
|
1386
1489
|
exports.ExpiredTokenException = ExpiredTokenException;
|
|
1490
|
+
exports.ExpiredTradeInTokenException = ExpiredTradeInTokenException;
|
|
1387
1491
|
exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand;
|
|
1388
1492
|
exports.GetCallerIdentityCommand = GetCallerIdentityCommand;
|
|
1493
|
+
exports.GetDelegatedAccessTokenCommand = GetDelegatedAccessTokenCommand;
|
|
1494
|
+
exports.GetDelegatedAccessTokenRequestFilterSensitiveLog = GetDelegatedAccessTokenRequestFilterSensitiveLog;
|
|
1495
|
+
exports.GetDelegatedAccessTokenResponseFilterSensitiveLog = GetDelegatedAccessTokenResponseFilterSensitiveLog;
|
|
1389
1496
|
exports.GetFederationTokenCommand = GetFederationTokenCommand;
|
|
1390
1497
|
exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog;
|
|
1391
1498
|
exports.GetSessionTokenCommand = GetSessionTokenCommand;
|
|
@@ -6,6 +6,7 @@ import { AssumeRootCommand } from "./commands/AssumeRootCommand";
|
|
|
6
6
|
import { DecodeAuthorizationMessageCommand, } from "./commands/DecodeAuthorizationMessageCommand";
|
|
7
7
|
import { GetAccessKeyInfoCommand, } from "./commands/GetAccessKeyInfoCommand";
|
|
8
8
|
import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand";
|
|
9
|
+
import { GetDelegatedAccessTokenCommand, } from "./commands/GetDelegatedAccessTokenCommand";
|
|
9
10
|
import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
|
|
10
11
|
import { GetSessionTokenCommand, } from "./commands/GetSessionTokenCommand";
|
|
11
12
|
import { STSClient } from "./STSClient";
|
|
@@ -17,6 +18,7 @@ const commands = {
|
|
|
17
18
|
DecodeAuthorizationMessageCommand,
|
|
18
19
|
GetAccessKeyInfoCommand,
|
|
19
20
|
GetCallerIdentityCommand,
|
|
21
|
+
GetDelegatedAccessTokenCommand,
|
|
20
22
|
GetFederationTokenCommand,
|
|
21
23
|
GetSessionTokenCommand,
|
|
22
24
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { GetDelegatedAccessTokenRequestFilterSensitiveLog, GetDelegatedAccessTokenResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_GetDelegatedAccessTokenCommand, se_GetDelegatedAccessTokenCommand } from "../protocols/Aws_query";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GetDelegatedAccessTokenCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {})
|
|
18
|
+
.n("STSClient", "GetDelegatedAccessTokenCommand")
|
|
19
|
+
.f(GetDelegatedAccessTokenRequestFilterSensitiveLog, GetDelegatedAccessTokenResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_GetDelegatedAccessTokenCommand)
|
|
21
|
+
.de(de_GetDelegatedAccessTokenCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -5,5 +5,6 @@ export * from "./AssumeRootCommand";
|
|
|
5
5
|
export * from "./DecodeAuthorizationMessageCommand";
|
|
6
6
|
export * from "./GetAccessKeyInfoCommand";
|
|
7
7
|
export * from "./GetCallerIdentityCommand";
|
|
8
|
+
export * from "./GetDelegatedAccessTokenCommand";
|
|
8
9
|
export * from "./GetFederationTokenCommand";
|
|
9
10
|
export * from "./GetSessionTokenCommand";
|
|
@@ -96,6 +96,18 @@ export class InvalidAuthorizationMessageException extends __BaseException {
|
|
|
96
96
|
Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
+
export class ExpiredTradeInTokenException extends __BaseException {
|
|
100
|
+
name = "ExpiredTradeInTokenException";
|
|
101
|
+
$fault = "client";
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "ExpiredTradeInTokenException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts,
|
|
107
|
+
});
|
|
108
|
+
Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
99
111
|
export const CredentialsFilterSensitiveLog = (obj) => ({
|
|
100
112
|
...obj,
|
|
101
113
|
...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
|
|
@@ -124,6 +136,14 @@ export const AssumeRootResponseFilterSensitiveLog = (obj) => ({
|
|
|
124
136
|
...obj,
|
|
125
137
|
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
126
138
|
});
|
|
139
|
+
export const GetDelegatedAccessTokenRequestFilterSensitiveLog = (obj) => ({
|
|
140
|
+
...obj,
|
|
141
|
+
...(obj.TradeInToken && { TradeInToken: SENSITIVE_STRING }),
|
|
142
|
+
});
|
|
143
|
+
export const GetDelegatedAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
144
|
+
...obj,
|
|
145
|
+
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
146
|
+
});
|
|
127
147
|
export const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
|
128
148
|
...obj,
|
|
129
149
|
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
|
|
4
|
+
import { ExpiredTokenException, ExpiredTradeInTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
|
|
5
5
|
import { STSServiceException as __BaseException } from "../models/STSServiceException";
|
|
6
6
|
export const se_AssumeRoleCommand = async (input, context) => {
|
|
7
7
|
const headers = SHARED_HEADERS;
|
|
@@ -73,6 +73,16 @@ export const se_GetCallerIdentityCommand = async (input, context) => {
|
|
|
73
73
|
});
|
|
74
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
75
75
|
};
|
|
76
|
+
export const se_GetDelegatedAccessTokenCommand = async (input, context) => {
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
78
|
+
let body;
|
|
79
|
+
body = buildFormUrlencodedString({
|
|
80
|
+
...se_GetDelegatedAccessTokenRequest(input, context),
|
|
81
|
+
[_A]: _GDAT,
|
|
82
|
+
[_V]: _,
|
|
83
|
+
});
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
76
86
|
export const se_GetFederationTokenCommand = async (input, context) => {
|
|
77
87
|
const headers = SHARED_HEADERS;
|
|
78
88
|
let body;
|
|
@@ -184,6 +194,19 @@ export const de_GetCallerIdentityCommand = async (output, context) => {
|
|
|
184
194
|
};
|
|
185
195
|
return response;
|
|
186
196
|
};
|
|
197
|
+
export const de_GetDelegatedAccessTokenCommand = async (output, context) => {
|
|
198
|
+
if (output.statusCode >= 300) {
|
|
199
|
+
return de_CommandError(output, context);
|
|
200
|
+
}
|
|
201
|
+
const data = await parseBody(output.body, context);
|
|
202
|
+
let contents = {};
|
|
203
|
+
contents = de_GetDelegatedAccessTokenResponse(data.GetDelegatedAccessTokenResult, context);
|
|
204
|
+
const response = {
|
|
205
|
+
$metadata: deserializeMetadata(output),
|
|
206
|
+
...contents,
|
|
207
|
+
};
|
|
208
|
+
return response;
|
|
209
|
+
};
|
|
187
210
|
export const de_GetFederationTokenCommand = async (output, context) => {
|
|
188
211
|
if (output.statusCode >= 300) {
|
|
189
212
|
return de_CommandError(output, context);
|
|
@@ -241,6 +264,9 @@ const de_CommandError = async (output, context) => {
|
|
|
241
264
|
case "InvalidAuthorizationMessageException":
|
|
242
265
|
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
|
243
266
|
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
|
267
|
+
case "ExpiredTradeInTokenException":
|
|
268
|
+
case "com.amazonaws.sts#ExpiredTradeInTokenException":
|
|
269
|
+
throw await de_ExpiredTradeInTokenExceptionRes(parsedOutput, context);
|
|
244
270
|
default:
|
|
245
271
|
const parsedBody = parsedOutput.body;
|
|
246
272
|
return throwDefaultError({
|
|
@@ -259,6 +285,15 @@ const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
259
285
|
});
|
|
260
286
|
return __decorateServiceException(exception, body);
|
|
261
287
|
};
|
|
288
|
+
const de_ExpiredTradeInTokenExceptionRes = async (parsedOutput, context) => {
|
|
289
|
+
const body = parsedOutput.body;
|
|
290
|
+
const deserialized = de_ExpiredTradeInTokenException(body.Error, context);
|
|
291
|
+
const exception = new ExpiredTradeInTokenException({
|
|
292
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
293
|
+
...deserialized,
|
|
294
|
+
});
|
|
295
|
+
return __decorateServiceException(exception, body);
|
|
296
|
+
};
|
|
262
297
|
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
|
263
298
|
const body = parsedOutput.body;
|
|
264
299
|
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
|
@@ -486,6 +521,13 @@ const se_GetCallerIdentityRequest = (input, context) => {
|
|
|
486
521
|
const entries = {};
|
|
487
522
|
return entries;
|
|
488
523
|
};
|
|
524
|
+
const se_GetDelegatedAccessTokenRequest = (input, context) => {
|
|
525
|
+
const entries = {};
|
|
526
|
+
if (input[_TIT] != null) {
|
|
527
|
+
entries[_TIT] = input[_TIT];
|
|
528
|
+
}
|
|
529
|
+
return entries;
|
|
530
|
+
};
|
|
489
531
|
const se_GetFederationTokenRequest = (input, context) => {
|
|
490
532
|
const entries = {};
|
|
491
533
|
if (input[_N] != null) {
|
|
@@ -738,6 +780,13 @@ const de_ExpiredTokenException = (output, context) => {
|
|
|
738
780
|
}
|
|
739
781
|
return contents;
|
|
740
782
|
};
|
|
783
|
+
const de_ExpiredTradeInTokenException = (output, context) => {
|
|
784
|
+
const contents = {};
|
|
785
|
+
if (output[_m] != null) {
|
|
786
|
+
contents[_m] = __expectString(output[_m]);
|
|
787
|
+
}
|
|
788
|
+
return contents;
|
|
789
|
+
};
|
|
741
790
|
const de_FederatedUser = (output, context) => {
|
|
742
791
|
const contents = {};
|
|
743
792
|
if (output[_FUI] != null) {
|
|
@@ -768,6 +817,19 @@ const de_GetCallerIdentityResponse = (output, context) => {
|
|
|
768
817
|
}
|
|
769
818
|
return contents;
|
|
770
819
|
};
|
|
820
|
+
const de_GetDelegatedAccessTokenResponse = (output, context) => {
|
|
821
|
+
const contents = {};
|
|
822
|
+
if (output[_C] != null) {
|
|
823
|
+
contents[_C] = de_Credentials(output[_C], context);
|
|
824
|
+
}
|
|
825
|
+
if (output[_PPS] != null) {
|
|
826
|
+
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
|
827
|
+
}
|
|
828
|
+
if (output[_AP] != null) {
|
|
829
|
+
contents[_AP] = __expectString(output[_AP]);
|
|
830
|
+
}
|
|
831
|
+
return contents;
|
|
832
|
+
};
|
|
771
833
|
const de_GetFederationTokenResponse = (output, context) => {
|
|
772
834
|
const contents = {};
|
|
773
835
|
if (output[_C] != null) {
|
|
@@ -869,6 +931,7 @@ const SHARED_HEADERS = {
|
|
|
869
931
|
const _ = "2011-06-15";
|
|
870
932
|
const _A = "Action";
|
|
871
933
|
const _AKI = "AccessKeyId";
|
|
934
|
+
const _AP = "AssumedPrincipal";
|
|
872
935
|
const _AR = "AssumeRole";
|
|
873
936
|
const _ARI = "AssumedRoleId";
|
|
874
937
|
const _ARU = "AssumedRoleUser";
|
|
@@ -890,6 +953,7 @@ const _FU = "FederatedUser";
|
|
|
890
953
|
const _FUI = "FederatedUserId";
|
|
891
954
|
const _GAKI = "GetAccessKeyInfo";
|
|
892
955
|
const _GCI = "GetCallerIdentity";
|
|
956
|
+
const _GDAT = "GetDelegatedAccessToken";
|
|
893
957
|
const _GFT = "GetFederationToken";
|
|
894
958
|
const _GST = "GetSessionToken";
|
|
895
959
|
const _I = "Issuer";
|
|
@@ -916,6 +980,7 @@ const _ST = "SubjectType";
|
|
|
916
980
|
const _STe = "SessionToken";
|
|
917
981
|
const _T = "Tags";
|
|
918
982
|
const _TC = "TokenCode";
|
|
983
|
+
const _TIT = "TradeInToken";
|
|
919
984
|
const _TP = "TargetPrincipal";
|
|
920
985
|
const _TPA = "TaskPolicyArn";
|
|
921
986
|
const _TTK = "TransitiveTagKeys";
|
|
@@ -6,6 +6,7 @@ import { AssumeRootCommandInput, AssumeRootCommandOutput } from "./commands/Assu
|
|
|
6
6
|
import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
|
|
7
7
|
import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
|
|
8
8
|
import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
9
|
+
import { GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
|
|
9
10
|
import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
10
11
|
import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
11
12
|
import { STSClient } from "./STSClient";
|
|
@@ -53,6 +54,12 @@ export interface STS {
|
|
|
53
54
|
getCallerIdentity(args: GetCallerIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCallerIdentityCommandOutput>;
|
|
54
55
|
getCallerIdentity(args: GetCallerIdentityCommandInput, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
|
|
55
56
|
getCallerIdentity(args: GetCallerIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void;
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link GetDelegatedAccessTokenCommand}
|
|
59
|
+
*/
|
|
60
|
+
getDelegatedAccessToken(args: GetDelegatedAccessTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetDelegatedAccessTokenCommandOutput>;
|
|
61
|
+
getDelegatedAccessToken(args: GetDelegatedAccessTokenCommandInput, cb: (err: any, data?: GetDelegatedAccessTokenCommandOutput) => void): void;
|
|
62
|
+
getDelegatedAccessToken(args: GetDelegatedAccessTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDelegatedAccessTokenCommandOutput) => void): void;
|
|
56
63
|
/**
|
|
57
64
|
* @see {@link GetFederationTokenCommand}
|
|
58
65
|
*/
|