@cdklabs/cdk-ecs-codedeploy 0.0.131 → 0.0.133
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 +3 -3
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/CodeDeploy.js +51 -658
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeploy.js +51 -658
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeploy.d.ts +146 -278
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeploy.d.ts +4 -1
- package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +8 -56
- package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +8 -56
- package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +27 -47
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +7 -42
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +7 -42
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +21 -26
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +12 -112
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +12 -112
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +19 -577
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/smithy-client/dist-cjs/create-aggregated-client.js +25 -0
- package/node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-es/create-aggregated-client.js +21 -0
- package/node_modules/@aws-sdk/smithy-client/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/create-aggregated-client.d.ts +9 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +5 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/object-mapping.d.ts +1 -1
- package/node_modules/@aws-sdk/smithy-client/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.STS = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AssumeRoleCommand_1 = require("./commands/AssumeRoleCommand");
|
|
5
6
|
const AssumeRoleWithSAMLCommand_1 = require("./commands/AssumeRoleWithSAMLCommand");
|
|
6
7
|
const AssumeRoleWithWebIdentityCommand_1 = require("./commands/AssumeRoleWithWebIdentityCommand");
|
|
@@ -10,118 +11,17 @@ const GetCallerIdentityCommand_1 = require("./commands/GetCallerIdentityCommand"
|
|
|
10
11
|
const GetFederationTokenCommand_1 = require("./commands/GetFederationTokenCommand");
|
|
11
12
|
const GetSessionTokenCommand_1 = require("./commands/GetSessionTokenCommand");
|
|
12
13
|
const STSClient_1 = require("./STSClient");
|
|
14
|
+
const commands = {
|
|
15
|
+
AssumeRoleCommand: AssumeRoleCommand_1.AssumeRoleCommand,
|
|
16
|
+
AssumeRoleWithSAMLCommand: AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand,
|
|
17
|
+
AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand,
|
|
18
|
+
DecodeAuthorizationMessageCommand: DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand,
|
|
19
|
+
GetAccessKeyInfoCommand: GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand,
|
|
20
|
+
GetCallerIdentityCommand: GetCallerIdentityCommand_1.GetCallerIdentityCommand,
|
|
21
|
+
GetFederationTokenCommand: GetFederationTokenCommand_1.GetFederationTokenCommand,
|
|
22
|
+
GetSessionTokenCommand: GetSessionTokenCommand_1.GetSessionTokenCommand,
|
|
23
|
+
};
|
|
13
24
|
class STS extends STSClient_1.STSClient {
|
|
14
|
-
assumeRole(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new AssumeRoleCommand_1.AssumeRoleCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
assumeRoleWithSAML(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
assumeRoleWithWebIdentity(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
decodeAuthorizationMessage(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
getAccessKeyInfo(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
getCallerIdentity(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
getFederationToken(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
getSessionToken(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.STS = STS;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, STS);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
|
2
3
|
import { AssumeRoleWithSAMLCommand, } from "./commands/AssumeRoleWithSAMLCommand";
|
|
3
4
|
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
@@ -7,117 +8,16 @@ import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand";
|
|
|
7
8
|
import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
|
|
8
9
|
import { GetSessionTokenCommand, } from "./commands/GetSessionTokenCommand";
|
|
9
10
|
import { STSClient } from "./STSClient";
|
|
11
|
+
const commands = {
|
|
12
|
+
AssumeRoleCommand,
|
|
13
|
+
AssumeRoleWithSAMLCommand,
|
|
14
|
+
AssumeRoleWithWebIdentityCommand,
|
|
15
|
+
DecodeAuthorizationMessageCommand,
|
|
16
|
+
GetAccessKeyInfoCommand,
|
|
17
|
+
GetCallerIdentityCommand,
|
|
18
|
+
GetFederationTokenCommand,
|
|
19
|
+
GetSessionTokenCommand,
|
|
20
|
+
};
|
|
10
21
|
export class STS extends STSClient {
|
|
11
|
-
assumeRole(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new AssumeRoleCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
assumeRoleWithSAML(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new AssumeRoleWithSAMLCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
assumeRoleWithWebIdentity(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new AssumeRoleWithWebIdentityCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
decodeAuthorizationMessage(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new DecodeAuthorizationMessageCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
getAccessKeyInfo(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new GetAccessKeyInfoCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
getCallerIdentity(args, optionsOrCb, cb) {
|
|
82
|
-
const command = new GetCallerIdentityCommand(args);
|
|
83
|
-
if (typeof optionsOrCb === "function") {
|
|
84
|
-
this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
else if (typeof cb === "function") {
|
|
87
|
-
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
getFederationToken(args, optionsOrCb, cb) {
|
|
96
|
-
const command = new GetFederationTokenCommand(args);
|
|
97
|
-
if (typeof optionsOrCb === "function") {
|
|
98
|
-
this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
else if (typeof cb === "function") {
|
|
101
|
-
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
getSessionToken(args, optionsOrCb, cb) {
|
|
110
|
-
const command = new GetSessionTokenCommand(args);
|
|
111
|
-
if (typeof optionsOrCb === "function") {
|
|
112
|
-
this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
return this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
22
|
}
|
|
23
|
+
createAggregatedClient(commands, STS);
|