@cdklabs/cdk-ecs-codedeploy 0.0.386 → 0.0.388
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/auth/httpAuthSchemeProvider.js +1 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +17 -18
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/AddTagsToOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationRevisionsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetApplicationsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentGroupsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetDeploymentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/BatchGetOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ContinueDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentConfigCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/CreateDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentConfigCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteGitHubAccountTokenCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeleteResourcesByExternalIdCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/DeregisterOnPremisesInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetApplicationRevisionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentConfigCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetDeploymentTargetCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/GetOnPremisesInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationRevisionsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListApplicationsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentConfigsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentGroupsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentTargetsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListDeploymentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListGitHubAccountTokenNamesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/StopDeploymentCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/commands/UpdateDeploymentGroupCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +34 -34
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +17 -18
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +4 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +79 -30
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +70 -27
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +20 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +11 -1
- package/node_modules/@aws-sdk/core/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +5 -5
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +17 -18
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +2 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +2 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js +2 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +36 -36
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +15 -26
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js +2 -12
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +2 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/types/dist-es/function.js +1 -0
- package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/types/dist-types/function.d.ts +7 -0
- package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/function.d.ts +7 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +5 -7
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/package.json +4 -4
@@ -19,13 +19,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
20
|
|
21
21
|
// src/index.ts
|
22
|
-
var
|
23
|
-
__export(
|
22
|
+
var index_exports = {};
|
23
|
+
__export(index_exports, {
|
24
24
|
getLoggerPlugin: () => getLoggerPlugin,
|
25
25
|
loggerMiddleware: () => loggerMiddleware,
|
26
26
|
loggerMiddlewareOptions: () => loggerMiddlewareOptions
|
27
27
|
});
|
28
|
-
module.exports = __toCommonJS(
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
29
29
|
|
30
30
|
// src/loggerMiddleware.ts
|
31
31
|
var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context) => async (args) => {
|
@@ -65,9 +65,9 @@ var loggerMiddlewareOptions = {
|
|
65
65
|
override: true
|
66
66
|
};
|
67
67
|
var getLoggerPlugin = /* @__PURE__ */ __name((options) => ({
|
68
|
-
applyToStack: (clientStack) => {
|
68
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
69
69
|
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
70
|
-
}
|
70
|
+
}, "applyToStack")
|
71
71
|
}), "getLoggerPlugin");
|
72
72
|
// Annotate the CommonJS export names for ESM import in node:
|
73
73
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.775.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-logger",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"module": "./dist-es/index.js",
|
25
25
|
"types": "./dist-types/index.d.ts",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/types": "3.
|
28
|
-
"@smithy/types": "^4.
|
27
|
+
"@aws-sdk/types": "3.775.0",
|
28
|
+
"@smithy/types": "^4.2.0",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.775.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
@@ -23,9 +23,9 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@aws-sdk/types": "3.
|
27
|
-
"@smithy/protocol-http": "^5.0
|
28
|
-
"@smithy/types": "^4.
|
26
|
+
"@aws-sdk/types": "3.775.0",
|
27
|
+
"@smithy/protocol-http": "^5.1.0",
|
28
|
+
"@smithy/types": "^4.2.0",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
31
31
|
"engines": {
|
@@ -41,9 +41,9 @@ function isValidUserAgentAppId(appId) {
|
|
41
41
|
__name(isValidUserAgentAppId, "isValidUserAgentAppId");
|
42
42
|
function resolveUserAgentConfig(input) {
|
43
43
|
const normalizedAppIdProvider = (0, import_core.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
44
|
-
|
45
|
-
|
46
|
-
customUserAgent: typeof
|
44
|
+
const { customUserAgent } = input;
|
45
|
+
return Object.assign(input, {
|
46
|
+
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
47
47
|
userAgentAppId: /* @__PURE__ */ __name(async () => {
|
48
48
|
const appId = await normalizedAppIdProvider();
|
49
49
|
if (!isValidUserAgentAppId(appId)) {
|
@@ -56,7 +56,7 @@ function resolveUserAgentConfig(input) {
|
|
56
56
|
}
|
57
57
|
return appId;
|
58
58
|
}, "userAgentAppId")
|
59
|
-
};
|
59
|
+
});
|
60
60
|
}
|
61
61
|
__name(resolveUserAgentConfig, "resolveUserAgentConfig");
|
62
62
|
|
@@ -8,9 +8,9 @@ function isValidUserAgentAppId(appId) {
|
|
8
8
|
}
|
9
9
|
export function resolveUserAgentConfig(input) {
|
10
10
|
const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
11
|
-
|
12
|
-
|
13
|
-
customUserAgent: typeof
|
11
|
+
const { customUserAgent } = input;
|
12
|
+
return Object.assign(input, {
|
13
|
+
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
14
14
|
userAgentAppId: async () => {
|
15
15
|
const appId = await normalizedAppIdProvider();
|
16
16
|
if (!isValidUserAgentAppId(appId)) {
|
@@ -24,5 +24,5 @@ export function resolveUserAgentConfig(input) {
|
|
24
24
|
}
|
25
25
|
return appId;
|
26
26
|
},
|
27
|
-
};
|
27
|
+
});
|
28
28
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.775.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
@@ -24,12 +24,12 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/core": "3.
|
28
|
-
"@aws-sdk/types": "3.
|
29
|
-
"@aws-sdk/util-endpoints": "3.
|
30
|
-
"@smithy/core": "^3.
|
31
|
-
"@smithy/protocol-http": "^5.0
|
32
|
-
"@smithy/types": "^4.
|
27
|
+
"@aws-sdk/core": "3.775.0",
|
28
|
+
"@aws-sdk/types": "3.775.0",
|
29
|
+
"@aws-sdk/util-endpoints": "3.775.0",
|
30
|
+
"@smithy/core": "^3.2.0",
|
31
|
+
"@smithy/protocol-http": "^5.1.0",
|
32
|
+
"@smithy/types": "^4.2.0",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
@@ -49,8 +49,6 @@ const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
49
49
|
exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
|
50
50
|
const resolveHttpAuthSchemeConfig = (config) => {
|
51
51
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
52
|
-
return {
|
53
|
-
...config_0,
|
54
|
-
};
|
52
|
+
return Object.assign(config_0, {});
|
55
53
|
};
|
56
54
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
@@ -58,12 +58,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
58
58
|
|
59
59
|
// src/submodules/sso-oidc/endpoint/EndpointParameters.ts
|
60
60
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
61
|
-
return {
|
62
|
-
...options,
|
61
|
+
return Object.assign(options, {
|
63
62
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
64
63
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
65
64
|
defaultSigningName: "sso-oauth"
|
66
|
-
};
|
65
|
+
});
|
67
66
|
}, "resolveClientEndpointParameters");
|
68
67
|
var commonParams = {
|
69
68
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
@@ -120,22 +119,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
120
119
|
}, "resolveHttpAuthRuntimeConfig");
|
121
120
|
|
122
121
|
// src/submodules/sso-oidc/runtimeExtensions.ts
|
123
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
124
122
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
125
|
-
const extensionConfiguration =
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
123
|
+
const extensionConfiguration = Object.assign(
|
124
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
125
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
126
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
127
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
128
|
+
);
|
131
129
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
132
|
-
return
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
130
|
+
return Object.assign(
|
131
|
+
runtimeConfig,
|
132
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
133
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
134
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
135
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
136
|
+
);
|
139
137
|
}, "resolveRuntimeExtensions");
|
140
138
|
|
141
139
|
// src/submodules/sso-oidc/SSOOIDCClient.ts
|
@@ -149,6 +147,8 @@ var SSOOIDCClient = class extends import_smithy_client2.Client {
|
|
149
147
|
config;
|
150
148
|
constructor(...[configuration]) {
|
151
149
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
150
|
+
super(_config_0);
|
151
|
+
this.initConfig = _config_0;
|
152
152
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
153
153
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
154
154
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
@@ -157,7 +157,6 @@ var SSOOIDCClient = class extends import_smithy_client2.Client {
|
|
157
157
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
158
158
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
159
159
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
160
|
-
super(_config_8);
|
161
160
|
this.config = _config_8;
|
162
161
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
163
162
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
@@ -20,6 +20,8 @@ class STSClient extends smithy_client_1.Client {
|
|
20
20
|
config;
|
21
21
|
constructor(...[configuration]) {
|
22
22
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
23
|
+
super(_config_0);
|
24
|
+
this.initConfig = _config_0;
|
23
25
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
24
26
|
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
25
27
|
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
@@ -28,7 +30,6 @@ class STSClient extends smithy_client_1.Client {
|
|
28
30
|
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
29
31
|
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
30
32
|
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
31
|
-
super(_config_8);
|
32
33
|
this.config = _config_8;
|
33
34
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
34
35
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js
CHANGED
@@ -48,16 +48,13 @@ const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
48
48
|
return options;
|
49
49
|
};
|
50
50
|
exports.defaultSTSHttpAuthSchemeProvider = defaultSTSHttpAuthSchemeProvider;
|
51
|
-
const resolveStsAuthConfig = (input) => ({
|
52
|
-
...input,
|
51
|
+
const resolveStsAuthConfig = (input) => Object.assign(input, {
|
53
52
|
stsClientCtor: STSClient_1.STSClient,
|
54
53
|
});
|
55
54
|
exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
56
55
|
const resolveHttpAuthSchemeConfig = (config) => {
|
57
56
|
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
58
57
|
const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
|
59
|
-
return {
|
60
|
-
...config_1,
|
61
|
-
};
|
58
|
+
return Object.assign(config_1, {});
|
62
59
|
};
|
63
60
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js
CHANGED
@@ -2,13 +2,12 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
5
|
-
return {
|
6
|
-
...options,
|
5
|
+
return Object.assign(options, {
|
7
6
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
8
7
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
9
8
|
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
10
9
|
defaultSigningName: "sts",
|
11
|
-
};
|
10
|
+
});
|
12
11
|
};
|
13
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
14
13
|
exports.commonParams = {
|
@@ -5,21 +5,9 @@ const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
7
7
|
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
8
|
-
const asPartial = (t) => t;
|
9
8
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
10
|
-
const extensionConfiguration =
|
11
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
12
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
13
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
14
|
-
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
15
|
-
};
|
9
|
+
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
16
10
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
17
|
-
return
|
18
|
-
...runtimeConfig,
|
19
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
20
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
21
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
22
|
-
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
23
|
-
};
|
11
|
+
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
24
12
|
};
|
25
13
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
@@ -17,6 +17,8 @@ export class SSOOIDCClient extends __Client {
|
|
17
17
|
config;
|
18
18
|
constructor(...[configuration]) {
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
20
|
+
super(_config_0);
|
21
|
+
this.initConfig = _config_0;
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
@@ -25,7 +27,6 @@ export class SSOOIDCClient extends __Client {
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
28
|
-
super(_config_8);
|
29
30
|
this.config = _config_8;
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
@@ -44,7 +44,5 @@ export const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
44
44
|
};
|
45
45
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
46
46
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
47
|
-
return {
|
48
|
-
...config_0,
|
49
|
-
};
|
47
|
+
return Object.assign(config_0, {});
|
50
48
|
};
|
@@ -1,10 +1,9 @@
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
2
|
-
return {
|
3
|
-
...options,
|
2
|
+
return Object.assign(options, {
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
6
5
|
defaultSigningName: "sso-oauth",
|
7
|
-
};
|
6
|
+
});
|
8
7
|
};
|
9
8
|
export const commonParams = {
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js
CHANGED
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
5
|
-
const asPartial = (t) => t;
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
7
|
-
const extensionConfiguration =
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
12
|
-
};
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
14
|
-
return
|
15
|
-
...runtimeConfig,
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
20
|
-
};
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
21
9
|
};
|
@@ -17,6 +17,8 @@ export class STSClient extends __Client {
|
|
17
17
|
config;
|
18
18
|
constructor(...[configuration]) {
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
20
|
+
super(_config_0);
|
21
|
+
this.initConfig = _config_0;
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
@@ -25,7 +27,6 @@ export class STSClient extends __Client {
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
28
|
-
super(_config_8);
|
29
30
|
this.config = _config_8;
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
CHANGED
@@ -43,14 +43,11 @@ export const defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
43
43
|
}
|
44
44
|
return options;
|
45
45
|
};
|
46
|
-
export const resolveStsAuthConfig = (input) => ({
|
47
|
-
...input,
|
46
|
+
export const resolveStsAuthConfig = (input) => Object.assign(input, {
|
48
47
|
stsClientCtor: STSClient,
|
49
48
|
});
|
50
49
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
51
50
|
const config_0 = resolveStsAuthConfig(config);
|
52
51
|
const config_1 = resolveAwsSdkSigV4Config(config_0);
|
53
|
-
return {
|
54
|
-
...config_1,
|
55
|
-
};
|
52
|
+
return Object.assign(config_1, {});
|
56
53
|
};
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
2
|
-
return {
|
3
|
-
...options,
|
2
|
+
return Object.assign(options, {
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
6
5
|
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
7
6
|
defaultSigningName: "sts",
|
8
|
-
};
|
7
|
+
});
|
9
8
|
};
|
10
9
|
export const commonParams = {
|
11
10
|
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
5
|
-
const asPartial = (t) => t;
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
7
|
-
const extensionConfiguration =
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
12
|
-
};
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
14
|
-
return
|
15
|
-
...runtimeConfig,
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
20
|
-
};
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
21
9
|
};
|
@@ -111,6 +111,52 @@ declare const CreateTokenCommand_base: {
|
|
111
111
|
* @throws {@link SSOOIDCServiceException}
|
112
112
|
* <p>Base exception class for all service exceptions from SSOOIDC service.</p>
|
113
113
|
*
|
114
|
+
*
|
115
|
+
* @example Call OAuth/OIDC /token endpoint for Device Code grant with Secret authentication
|
116
|
+
* ```javascript
|
117
|
+
* //
|
118
|
+
* const input = {
|
119
|
+
* clientId: "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
|
120
|
+
* clientSecret: "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
|
121
|
+
* deviceCode: "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE",
|
122
|
+
* grantType: "urn:ietf:params:oauth:grant-type:device-code"
|
123
|
+
* };
|
124
|
+
* const command = new CreateTokenCommand(input);
|
125
|
+
* const response = await client.send(command);
|
126
|
+
* /* response is
|
127
|
+
* {
|
128
|
+
* accessToken: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
129
|
+
* expiresIn: 1579729529,
|
130
|
+
* refreshToken: "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
|
131
|
+
* tokenType: "Bearer"
|
132
|
+
* }
|
133
|
+
* *\/
|
134
|
+
* ```
|
135
|
+
*
|
136
|
+
* @example Call OAuth/OIDC /token endpoint for Refresh Token grant with Secret authentication
|
137
|
+
* ```javascript
|
138
|
+
* //
|
139
|
+
* const input = {
|
140
|
+
* clientId: "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
|
141
|
+
* clientSecret: "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
|
142
|
+
* grantType: "refresh_token",
|
143
|
+
* refreshToken: "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
|
144
|
+
* scope: [
|
145
|
+
* "codewhisperer:completions"
|
146
|
+
* ]
|
147
|
+
* };
|
148
|
+
* const command = new CreateTokenCommand(input);
|
149
|
+
* const response = await client.send(command);
|
150
|
+
* /* response is
|
151
|
+
* {
|
152
|
+
* accessToken: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
153
|
+
* expiresIn: 1579729529,
|
154
|
+
* refreshToken: "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
|
155
|
+
* tokenType: "Bearer"
|
156
|
+
* }
|
157
|
+
* *\/
|
158
|
+
* ```
|
159
|
+
*
|
114
160
|
* @public
|
115
161
|
*/
|
116
162
|
export declare class CreateTokenCommand extends CreateTokenCommand_base {
|
@@ -205,6 +205,53 @@ declare const AssumeRoleCommand_base: {
|
|
205
205
|
* @throws {@link STSServiceException}
|
206
206
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
207
207
|
*
|
208
|
+
*
|
209
|
+
* @example To assume a role
|
210
|
+
* ```javascript
|
211
|
+
* //
|
212
|
+
* const input = {
|
213
|
+
* ExternalId: "123ABC",
|
214
|
+
* Policy: `{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:ListAllMyBuckets","Resource":"*"}]}`,
|
215
|
+
* RoleArn: "arn:aws:iam::123456789012:role/demo",
|
216
|
+
* RoleSessionName: "testAssumeRoleSession",
|
217
|
+
* Tags: [
|
218
|
+
* {
|
219
|
+
* Key: "Project",
|
220
|
+
* Value: "Unicorn"
|
221
|
+
* },
|
222
|
+
* {
|
223
|
+
* Key: "Team",
|
224
|
+
* Value: "Automation"
|
225
|
+
* },
|
226
|
+
* {
|
227
|
+
* Key: "Cost-Center",
|
228
|
+
* Value: "12345"
|
229
|
+
* }
|
230
|
+
* ],
|
231
|
+
* TransitiveTagKeys: [
|
232
|
+
* "Project",
|
233
|
+
* "Cost-Center"
|
234
|
+
* ]
|
235
|
+
* };
|
236
|
+
* const command = new AssumeRoleCommand(input);
|
237
|
+
* const response = await client.send(command);
|
238
|
+
* /* response is
|
239
|
+
* {
|
240
|
+
* AssumedRoleUser: {
|
241
|
+
* Arn: "arn:aws:sts::123456789012:assumed-role/demo/Bob",
|
242
|
+
* AssumedRoleId: "ARO123EXAMPLE123:Bob"
|
243
|
+
* },
|
244
|
+
* Credentials: {
|
245
|
+
* AccessKeyId: "AKIAIOSFODNN7EXAMPLE",
|
246
|
+
* Expiration: "2011-07-15T23:28:33.359Z",
|
247
|
+
* SecretAccessKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
248
|
+
* SessionToken: "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
|
249
|
+
* },
|
250
|
+
* PackedPolicySize: 8
|
251
|
+
* }
|
252
|
+
* *\/
|
253
|
+
* ```
|
254
|
+
*
|
208
255
|
* @public
|
209
256
|
*/
|
210
257
|
export declare class AssumeRoleCommand extends AssumeRoleCommand_base {
|
@@ -237,6 +237,40 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
237
237
|
* @throws {@link STSServiceException}
|
238
238
|
* <p>Base exception class for all service exceptions from STS service.</p>
|
239
239
|
*
|
240
|
+
*
|
241
|
+
* @example To assume a role as an OpenID Connect-federated user
|
242
|
+
* ```javascript
|
243
|
+
* //
|
244
|
+
* const input = {
|
245
|
+
* DurationSeconds: 3600,
|
246
|
+
* Policy: `{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:ListAllMyBuckets","Resource":"*"}]}`,
|
247
|
+
* ProviderId: "www.amazon.com",
|
248
|
+
* RoleArn: "arn:aws:iam::123456789012:role/FederatedWebIdentityRole",
|
249
|
+
* RoleSessionName: "app1",
|
250
|
+
* WebIdentityToken: "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ"
|
251
|
+
* };
|
252
|
+
* const command = new AssumeRoleWithWebIdentityCommand(input);
|
253
|
+
* const response = await client.send(command);
|
254
|
+
* /* response is
|
255
|
+
* {
|
256
|
+
* AssumedRoleUser: {
|
257
|
+
* Arn: "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1",
|
258
|
+
* AssumedRoleId: "AROACLKWSDQRAOEXAMPLE:app1"
|
259
|
+
* },
|
260
|
+
* Audience: "client.5498841531868486423.1548@apps.example.com",
|
261
|
+
* Credentials: {
|
262
|
+
* AccessKeyId: "AKIAIOSFODNN7EXAMPLE",
|
263
|
+
* Expiration: "2014-10-24T23:00:23Z",
|
264
|
+
* SecretAccessKey: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
265
|
+
* SessionToken: "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE"
|
266
|
+
* },
|
267
|
+
* PackedPolicySize: 123,
|
268
|
+
* Provider: "www.amazon.com",
|
269
|
+
* SubjectFromWebIdentityToken: "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE"
|
270
|
+
* }
|
271
|
+
* *\/
|
272
|
+
* ```
|
273
|
+
*
|
240
274
|
* @public
|
241
275
|
*/
|
242
276
|
export declare class AssumeRoleWithWebIdentityCommand extends AssumeRoleWithWebIdentityCommand_base {
|