@cdk8s/awscdk-resolver 0.0.94 → 0.0.96
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/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +7 -5
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +64 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1024 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +52 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +58 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +10 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +409 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +36 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +21 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +212 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +162 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +244 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +108 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +111 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +50 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +52 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +144 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +114 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +100 -0
- package/node_modules/@aws-sdk/client-sts/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sts/README.md +273 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +56 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +67 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +20 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1457 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +63 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +40 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +23 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +52 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +60 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +24 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +24 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +24 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js +22 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +67 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js +16 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +10 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +130 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +885 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +58 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +36 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +21 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +71 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +182 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +71 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +257 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +282 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +291 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +115 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +230 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +154 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +23 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +43 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +1213 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +74 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +54 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +52 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +143 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +165 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +54 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +33 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +57 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +206 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +101 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +116 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +109 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sts/package.json +102 -0
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +3 -3
@@ -0,0 +1,257 @@
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
3
|
+
import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0";
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
5
|
+
/**
|
6
|
+
* @public
|
7
|
+
*/
|
8
|
+
export { __MetadataBearer, $Command };
|
9
|
+
/**
|
10
|
+
* @public
|
11
|
+
*
|
12
|
+
* The input for {@link AssumeRoleCommand}.
|
13
|
+
*/
|
14
|
+
export interface AssumeRoleCommandInput extends AssumeRoleRequest {
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @public
|
18
|
+
*
|
19
|
+
* The output of {@link AssumeRoleCommand}.
|
20
|
+
*/
|
21
|
+
export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer {
|
22
|
+
}
|
23
|
+
declare const AssumeRoleCommand_base: {
|
24
|
+
new (input: AssumeRoleCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
25
|
+
new (__0_0: AssumeRoleCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleCommandInput, AssumeRoleCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
27
|
+
};
|
28
|
+
/**
|
29
|
+
* <p>Returns a set of temporary security credentials that you can use to access Amazon Web Services
|
30
|
+
* resources. These temporary credentials consist of an access key ID, a secret access key,
|
31
|
+
* and a security token. Typically, you use <code>AssumeRole</code> within your account or for
|
32
|
+
* cross-account access. For a comparison of <code>AssumeRole</code> with other API operations
|
33
|
+
* that produce temporary credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html">Requesting Temporary Security
|
34
|
+
* Credentials</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison">Comparing the
|
35
|
+
* Amazon Web Services STS API operations</a> in the <i>IAM User Guide</i>.</p>
|
36
|
+
* <p>
|
37
|
+
* <b>Permissions</b>
|
38
|
+
* </p>
|
39
|
+
* <p>The temporary security credentials created by <code>AssumeRole</code> can be used to
|
40
|
+
* make API calls to any Amazon Web Services service with the following exception: You cannot call the
|
41
|
+
* Amazon Web Services STS <code>GetFederationToken</code> or <code>GetSessionToken</code> API
|
42
|
+
* operations.</p>
|
43
|
+
* <p>(Optional) You can pass inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policies</a> to
|
44
|
+
* this operation. You can pass a single JSON policy document to use as an inline session
|
45
|
+
* policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as
|
46
|
+
* managed session policies. The plaintext that you use for both inline and managed session
|
47
|
+
* policies can't exceed 2,048 characters. Passing policies to this operation returns new
|
48
|
+
* temporary credentials. The resulting session's permissions are the intersection of the
|
49
|
+
* role's identity-based policy and the session policies. You can use the role's temporary
|
50
|
+
* credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
|
51
|
+
* the role. You cannot use session policies to grant more permissions than those allowed
|
52
|
+
* by the identity-based policy of the role that is being assumed. For more information, see
|
53
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
54
|
+
* Policies</a> in the <i>IAM User Guide</i>.</p>
|
55
|
+
* <p>When you create a role, you create two policies: a role trust policy that specifies
|
56
|
+
* <i>who</i> can assume the role, and a permissions policy that specifies
|
57
|
+
* <i>what</i> can be done with the role. You specify the trusted principal
|
58
|
+
* that is allowed to assume the role in the role trust policy.</p>
|
59
|
+
* <p>To assume a role from a different account, your Amazon Web Services account must be trusted by the
|
60
|
+
* role. The trust relationship is defined in the role's trust policy when the role is
|
61
|
+
* created. That trust policy states which accounts are allowed to delegate that access to
|
62
|
+
* users in the account. </p>
|
63
|
+
* <p>A user who wants to access a role in a different account must also have permissions that
|
64
|
+
* are delegated from the account administrator. The administrator must attach a policy that
|
65
|
+
* allows the user to call <code>AssumeRole</code> for the ARN of the role in the other
|
66
|
+
* account.</p>
|
67
|
+
* <p>To allow a user to assume a role in the same account, you can do either of the
|
68
|
+
* following:</p>
|
69
|
+
* <ul>
|
70
|
+
* <li>
|
71
|
+
* <p>Attach a policy to the user that allows the user to call <code>AssumeRole</code>
|
72
|
+
* (as long as the role's trust policy trusts the account).</p>
|
73
|
+
* </li>
|
74
|
+
* <li>
|
75
|
+
* <p>Add the user as a principal directly in the role's trust policy.</p>
|
76
|
+
* </li>
|
77
|
+
* </ul>
|
78
|
+
* <p>You can do either because the role’s trust policy acts as an IAM resource-based
|
79
|
+
* policy. When a resource-based policy grants access to a principal in the same account, no
|
80
|
+
* additional identity-based policy is required. For more information about trust policies and
|
81
|
+
* resource-based policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">IAM Policies</a> in the
|
82
|
+
* <i>IAM User Guide</i>.</p>
|
83
|
+
* <p>
|
84
|
+
* <b>Tags</b>
|
85
|
+
* </p>
|
86
|
+
* <p>(Optional) You can pass tag key-value pairs to your session. These tags are called
|
87
|
+
* session tags. For more information about session tags, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in the
|
88
|
+
* <i>IAM User Guide</i>.</p>
|
89
|
+
* <p>An administrator must grant you the permissions necessary to pass session tags. The
|
90
|
+
* administrator can also create granular permissions to allow you to pass only specific
|
91
|
+
* session tags. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html">Tutorial: Using Tags
|
92
|
+
* for Attribute-Based Access Control</a> in the
|
93
|
+
* <i>IAM User Guide</i>.</p>
|
94
|
+
* <p>You can set the session tags as transitive. Transitive tags persist during role
|
95
|
+
* chaining. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining">Chaining Roles
|
96
|
+
* with Session Tags</a> in the <i>IAM User Guide</i>.</p>
|
97
|
+
* <p>
|
98
|
+
* <b>Using MFA with AssumeRole</b>
|
99
|
+
* </p>
|
100
|
+
* <p>(Optional) You can include multi-factor authentication (MFA) information when you call
|
101
|
+
* <code>AssumeRole</code>. This is useful for cross-account scenarios to ensure that the
|
102
|
+
* user that assumes the role has been authenticated with an Amazon Web Services MFA device. In that
|
103
|
+
* scenario, the trust policy of the role being assumed includes a condition that tests for
|
104
|
+
* MFA authentication. If the caller does not include valid MFA information, the request to
|
105
|
+
* assume the role is denied. The condition in a trust policy that tests for MFA
|
106
|
+
* authentication might look like the following example.</p>
|
107
|
+
* <p>
|
108
|
+
* <code>"Condition": \{"Bool": \{"aws:MultiFactorAuthPresent": true\}\}</code>
|
109
|
+
* </p>
|
110
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html">Configuring MFA-Protected API Access</a>
|
111
|
+
* in the <i>IAM User Guide</i> guide.</p>
|
112
|
+
* <p>To use MFA with <code>AssumeRole</code>, you pass values for the
|
113
|
+
* <code>SerialNumber</code> and <code>TokenCode</code> parameters. The
|
114
|
+
* <code>SerialNumber</code> value identifies the user's hardware or virtual MFA device.
|
115
|
+
* The <code>TokenCode</code> is the time-based one-time password (TOTP) that the MFA device
|
116
|
+
* produces. </p>
|
117
|
+
* @example
|
118
|
+
* Use a bare-bones client and the command you need to make an API call.
|
119
|
+
* ```javascript
|
120
|
+
* import { STSClient, AssumeRoleCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
121
|
+
* // const { STSClient, AssumeRoleCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
122
|
+
* const client = new STSClient(config);
|
123
|
+
* const input = { // AssumeRoleRequest
|
124
|
+
* RoleArn: "STRING_VALUE", // required
|
125
|
+
* RoleSessionName: "STRING_VALUE", // required
|
126
|
+
* PolicyArns: [ // policyDescriptorListType
|
127
|
+
* { // PolicyDescriptorType
|
128
|
+
* arn: "STRING_VALUE",
|
129
|
+
* },
|
130
|
+
* ],
|
131
|
+
* Policy: "STRING_VALUE",
|
132
|
+
* DurationSeconds: Number("int"),
|
133
|
+
* Tags: [ // tagListType
|
134
|
+
* { // Tag
|
135
|
+
* Key: "STRING_VALUE", // required
|
136
|
+
* Value: "STRING_VALUE", // required
|
137
|
+
* },
|
138
|
+
* ],
|
139
|
+
* TransitiveTagKeys: [ // tagKeyListType
|
140
|
+
* "STRING_VALUE",
|
141
|
+
* ],
|
142
|
+
* ExternalId: "STRING_VALUE",
|
143
|
+
* SerialNumber: "STRING_VALUE",
|
144
|
+
* TokenCode: "STRING_VALUE",
|
145
|
+
* SourceIdentity: "STRING_VALUE",
|
146
|
+
* ProvidedContexts: [ // ProvidedContextsListType
|
147
|
+
* { // ProvidedContext
|
148
|
+
* ProviderArn: "STRING_VALUE",
|
149
|
+
* ContextAssertion: "STRING_VALUE",
|
150
|
+
* },
|
151
|
+
* ],
|
152
|
+
* };
|
153
|
+
* const command = new AssumeRoleCommand(input);
|
154
|
+
* const response = await client.send(command);
|
155
|
+
* // { // AssumeRoleResponse
|
156
|
+
* // Credentials: { // Credentials
|
157
|
+
* // AccessKeyId: "STRING_VALUE", // required
|
158
|
+
* // SecretAccessKey: "STRING_VALUE", // required
|
159
|
+
* // SessionToken: "STRING_VALUE", // required
|
160
|
+
* // Expiration: new Date("TIMESTAMP"), // required
|
161
|
+
* // },
|
162
|
+
* // AssumedRoleUser: { // AssumedRoleUser
|
163
|
+
* // AssumedRoleId: "STRING_VALUE", // required
|
164
|
+
* // Arn: "STRING_VALUE", // required
|
165
|
+
* // },
|
166
|
+
* // PackedPolicySize: Number("int"),
|
167
|
+
* // SourceIdentity: "STRING_VALUE",
|
168
|
+
* // };
|
169
|
+
*
|
170
|
+
* ```
|
171
|
+
*
|
172
|
+
* @param AssumeRoleCommandInput - {@link AssumeRoleCommandInput}
|
173
|
+
* @returns {@link AssumeRoleCommandOutput}
|
174
|
+
* @see {@link AssumeRoleCommandInput} for command's `input` shape.
|
175
|
+
* @see {@link AssumeRoleCommandOutput} for command's `response` shape.
|
176
|
+
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
177
|
+
*
|
178
|
+
* @throws {@link ExpiredTokenException} (client fault)
|
179
|
+
* <p>The web identity token that was passed is expired or is not valid. Get a new identity
|
180
|
+
* token from the identity provider and then retry the request.</p>
|
181
|
+
*
|
182
|
+
* @throws {@link MalformedPolicyDocumentException} (client fault)
|
183
|
+
* <p>The request was rejected because the policy document was malformed. The error message
|
184
|
+
* describes the specific error.</p>
|
185
|
+
*
|
186
|
+
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
187
|
+
* <p>The request was rejected because the total packed size of the session policies and
|
188
|
+
* session tags combined was too large. An Amazon Web Services conversion compresses the session policy
|
189
|
+
* document, session policy ARNs, and session tags into a packed binary format that has a
|
190
|
+
* separate limit. The error message indicates by percentage how close the policies and
|
191
|
+
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
192
|
+
* the <i>IAM User Guide</i>.</p>
|
193
|
+
* <p>You could receive this error even though you meet other defined session policy and
|
194
|
+
* session tag limits. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity
|
195
|
+
* Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
196
|
+
*
|
197
|
+
* @throws {@link RegionDisabledException} (client fault)
|
198
|
+
* <p>STS is not activated in the requested region for the account that is being asked to
|
199
|
+
* generate credentials. The account administrator must use the IAM console to activate STS
|
200
|
+
* in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and
|
201
|
+
* Deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>IAM User
|
202
|
+
* Guide</i>.</p>
|
203
|
+
*
|
204
|
+
* @throws {@link STSServiceException}
|
205
|
+
* <p>Base exception class for all service exceptions from STS service.</p>
|
206
|
+
*
|
207
|
+
* @public
|
208
|
+
* @example To assume a role
|
209
|
+
* ```javascript
|
210
|
+
* //
|
211
|
+
* const input = {
|
212
|
+
* "ExternalId": "123ABC",
|
213
|
+
* "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
|
214
|
+
* "RoleArn": "arn:aws:iam::123456789012:role/demo",
|
215
|
+
* "RoleSessionName": "testAssumeRoleSession",
|
216
|
+
* "Tags": [
|
217
|
+
* {
|
218
|
+
* "Key": "Project",
|
219
|
+
* "Value": "Unicorn"
|
220
|
+
* },
|
221
|
+
* {
|
222
|
+
* "Key": "Team",
|
223
|
+
* "Value": "Automation"
|
224
|
+
* },
|
225
|
+
* {
|
226
|
+
* "Key": "Cost-Center",
|
227
|
+
* "Value": "12345"
|
228
|
+
* }
|
229
|
+
* ],
|
230
|
+
* "TransitiveTagKeys": [
|
231
|
+
* "Project",
|
232
|
+
* "Cost-Center"
|
233
|
+
* ]
|
234
|
+
* };
|
235
|
+
* const command = new AssumeRoleCommand(input);
|
236
|
+
* const response = await client.send(command);
|
237
|
+
* /* response ==
|
238
|
+
* {
|
239
|
+
* "AssumedRoleUser": {
|
240
|
+
* "Arn": "arn:aws:sts::123456789012:assumed-role/demo/Bob",
|
241
|
+
* "AssumedRoleId": "ARO123EXAMPLE123:Bob"
|
242
|
+
* },
|
243
|
+
* "Credentials": {
|
244
|
+
* "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
|
245
|
+
* "Expiration": "2011-07-15T23:28:33.359Z",
|
246
|
+
* "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
247
|
+
* "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
|
248
|
+
* },
|
249
|
+
* "PackedPolicySize": 8
|
250
|
+
* }
|
251
|
+
* *\/
|
252
|
+
* // example id: to-assume-a-role-1480532402212
|
253
|
+
* ```
|
254
|
+
*
|
255
|
+
*/
|
256
|
+
export declare class AssumeRoleCommand extends AssumeRoleCommand_base {
|
257
|
+
}
|
@@ -0,0 +1,282 @@
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
3
|
+
import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0";
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
|
5
|
+
/**
|
6
|
+
* @public
|
7
|
+
*/
|
8
|
+
export { __MetadataBearer, $Command };
|
9
|
+
/**
|
10
|
+
* @public
|
11
|
+
*
|
12
|
+
* The input for {@link AssumeRoleWithSAMLCommand}.
|
13
|
+
*/
|
14
|
+
export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLRequest {
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @public
|
18
|
+
*
|
19
|
+
* The output of {@link AssumeRoleWithSAMLCommand}.
|
20
|
+
*/
|
21
|
+
export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer {
|
22
|
+
}
|
23
|
+
declare const AssumeRoleWithSAMLCommand_base: {
|
24
|
+
new (input: AssumeRoleWithSAMLCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
25
|
+
new (__0_0: AssumeRoleWithSAMLCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
27
|
+
};
|
28
|
+
/**
|
29
|
+
* <p>Returns a set of temporary security credentials for users who have been authenticated
|
30
|
+
* via a SAML authentication response. This operation provides a mechanism for tying an
|
31
|
+
* enterprise identity store or directory to role-based Amazon Web Services access without user-specific
|
32
|
+
* credentials or configuration. For a comparison of <code>AssumeRoleWithSAML</code> with the
|
33
|
+
* other API operations that produce temporary credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html">Requesting Temporary Security
|
34
|
+
* Credentials</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison">Comparing the
|
35
|
+
* Amazon Web Services STS API operations</a> in the <i>IAM User Guide</i>.</p>
|
36
|
+
* <p>The temporary security credentials returned by this operation consist of an access key
|
37
|
+
* ID, a secret access key, and a security token. Applications can use these temporary
|
38
|
+
* security credentials to sign calls to Amazon Web Services services.</p>
|
39
|
+
* <p>
|
40
|
+
* <b>Session Duration</b>
|
41
|
+
* </p>
|
42
|
+
* <p>By default, the temporary security credentials created by
|
43
|
+
* <code>AssumeRoleWithSAML</code> last for one hour. However, you can use the optional
|
44
|
+
* <code>DurationSeconds</code> parameter to specify the duration of your session. Your
|
45
|
+
* role session lasts for the duration that you specify, or until the time specified in the
|
46
|
+
* SAML authentication response's <code>SessionNotOnOrAfter</code> value, whichever is
|
47
|
+
* shorter. You can provide a <code>DurationSeconds</code> value from 900 seconds (15 minutes)
|
48
|
+
* up to the maximum session duration setting for the role. This setting can have a value from
|
49
|
+
* 1 hour to 12 hours. To learn how to view the maximum value for your role, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session">View the
|
50
|
+
* Maximum Session Duration Setting for a Role</a> in the
|
51
|
+
* <i>IAM User Guide</i>. The maximum session duration limit applies when
|
52
|
+
* you use the <code>AssumeRole*</code> API operations or the <code>assume-role*</code> CLI
|
53
|
+
* commands. However the limit does not apply when you use those operations to create a
|
54
|
+
* console URL. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html">Using IAM Roles</a> in the
|
55
|
+
* <i>IAM User Guide</i>.</p>
|
56
|
+
* <note>
|
57
|
+
* <p>
|
58
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-role-chaining">Role chaining</a> limits your CLI or Amazon Web Services API role
|
59
|
+
* session to a maximum of one hour. When you use the <code>AssumeRole</code> API operation
|
60
|
+
* to assume a role, you can specify the duration of your role session with the
|
61
|
+
* <code>DurationSeconds</code> parameter. You can specify a parameter value of up to
|
62
|
+
* 43200 seconds (12 hours), depending on the maximum session duration setting for your
|
63
|
+
* role. However, if you assume a role using role chaining and provide a
|
64
|
+
* <code>DurationSeconds</code> parameter value greater than one hour, the operation
|
65
|
+
* fails.</p>
|
66
|
+
* </note>
|
67
|
+
* <p>
|
68
|
+
* <b>Permissions</b>
|
69
|
+
* </p>
|
70
|
+
* <p>The temporary security credentials created by <code>AssumeRoleWithSAML</code> can be
|
71
|
+
* used to make API calls to any Amazon Web Services service with the following exception: you cannot call
|
72
|
+
* the STS <code>GetFederationToken</code> or <code>GetSessionToken</code> API
|
73
|
+
* operations.</p>
|
74
|
+
* <p>(Optional) You can pass inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policies</a> to
|
75
|
+
* this operation. You can pass a single JSON policy document to use as an inline session
|
76
|
+
* policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as
|
77
|
+
* managed session policies. The plaintext that you use for both inline and managed session
|
78
|
+
* policies can't exceed 2,048 characters. Passing policies to this operation returns new
|
79
|
+
* temporary credentials. The resulting session's permissions are the intersection of the
|
80
|
+
* role's identity-based policy and the session policies. You can use the role's temporary
|
81
|
+
* credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
|
82
|
+
* the role. You cannot use session policies to grant more permissions than those allowed
|
83
|
+
* by the identity-based policy of the role that is being assumed. For more information, see
|
84
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
85
|
+
* Policies</a> in the <i>IAM User Guide</i>.</p>
|
86
|
+
* <p>Calling <code>AssumeRoleWithSAML</code> does not require the use of Amazon Web Services security
|
87
|
+
* credentials. The identity of the caller is validated by using keys in the metadata document
|
88
|
+
* that is uploaded for the SAML provider entity for your identity provider. </p>
|
89
|
+
* <important>
|
90
|
+
* <p>Calling <code>AssumeRoleWithSAML</code> can result in an entry in your CloudTrail logs.
|
91
|
+
* The entry includes the value in the <code>NameID</code> element of the SAML assertion.
|
92
|
+
* We recommend that you use a <code>NameIDType</code> that is not associated with any
|
93
|
+
* personally identifiable information (PII). For example, you could instead use the
|
94
|
+
* persistent identifier
|
95
|
+
* (<code>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</code>).</p>
|
96
|
+
* </important>
|
97
|
+
* <p>
|
98
|
+
* <b>Tags</b>
|
99
|
+
* </p>
|
100
|
+
* <p>(Optional) You can configure your IdP to pass attributes into your SAML assertion as
|
101
|
+
* session tags. Each session tag consists of a key name and an associated value. For more
|
102
|
+
* information about session tags, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in the
|
103
|
+
* <i>IAM User Guide</i>.</p>
|
104
|
+
* <p>You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128
|
105
|
+
* characters and the values can’t exceed 256 characters. For these and additional limits, see
|
106
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
|
107
|
+
* and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
108
|
+
* <note>
|
109
|
+
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
110
|
+
* and session tags into a packed binary format that has a separate limit. Your request can
|
111
|
+
* fail for this limit even if your plaintext meets the other requirements. The
|
112
|
+
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
113
|
+
* policies and tags for your request are to the upper size limit.</p>
|
114
|
+
* </note>
|
115
|
+
* <p>You can pass a session tag with the same key as a tag that is attached to the role. When
|
116
|
+
* you do, session tags override the role's tags with the same key.</p>
|
117
|
+
* <p>An administrator must grant you the permissions necessary to pass session tags. The
|
118
|
+
* administrator can also create granular permissions to allow you to pass only specific
|
119
|
+
* session tags. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html">Tutorial: Using Tags
|
120
|
+
* for Attribute-Based Access Control</a> in the
|
121
|
+
* <i>IAM User Guide</i>.</p>
|
122
|
+
* <p>You can set the session tags as transitive. Transitive tags persist during role
|
123
|
+
* chaining. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining">Chaining Roles
|
124
|
+
* with Session Tags</a> in the <i>IAM User Guide</i>.</p>
|
125
|
+
* <p>
|
126
|
+
* <b>SAML Configuration</b>
|
127
|
+
* </p>
|
128
|
+
* <p>Before your application can call <code>AssumeRoleWithSAML</code>, you must configure
|
129
|
+
* your SAML identity provider (IdP) to issue the claims required by Amazon Web Services. Additionally, you
|
130
|
+
* must use Identity and Access Management (IAM) to create a SAML provider entity in your Amazon Web Services account that
|
131
|
+
* represents your identity provider. You must also create an IAM role that specifies this
|
132
|
+
* SAML provider in its trust policy. </p>
|
133
|
+
* <p>For more information, see the following resources:</p>
|
134
|
+
* <ul>
|
135
|
+
* <li>
|
136
|
+
* <p>
|
137
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html">About
|
138
|
+
* SAML 2.0-based Federation</a> in the <i>IAM User Guide</i>.
|
139
|
+
* </p>
|
140
|
+
* </li>
|
141
|
+
* <li>
|
142
|
+
* <p>
|
143
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html">Creating SAML Identity Providers</a> in the
|
144
|
+
* <i>IAM User Guide</i>. </p>
|
145
|
+
* </li>
|
146
|
+
* <li>
|
147
|
+
* <p>
|
148
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml_relying-party.html">Configuring
|
149
|
+
* a Relying Party and Claims</a> in the <i>IAM User Guide</i>.
|
150
|
+
* </p>
|
151
|
+
* </li>
|
152
|
+
* <li>
|
153
|
+
* <p>
|
154
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html">Creating a Role for SAML 2.0 Federation</a> in the
|
155
|
+
* <i>IAM User Guide</i>. </p>
|
156
|
+
* </li>
|
157
|
+
* </ul>
|
158
|
+
* @example
|
159
|
+
* Use a bare-bones client and the command you need to make an API call.
|
160
|
+
* ```javascript
|
161
|
+
* import { STSClient, AssumeRoleWithSAMLCommand } from "@aws-sdk/client-sts"; // ES Modules import
|
162
|
+
* // const { STSClient, AssumeRoleWithSAMLCommand } = require("@aws-sdk/client-sts"); // CommonJS import
|
163
|
+
* const client = new STSClient(config);
|
164
|
+
* const input = { // AssumeRoleWithSAMLRequest
|
165
|
+
* RoleArn: "STRING_VALUE", // required
|
166
|
+
* PrincipalArn: "STRING_VALUE", // required
|
167
|
+
* SAMLAssertion: "STRING_VALUE", // required
|
168
|
+
* PolicyArns: [ // policyDescriptorListType
|
169
|
+
* { // PolicyDescriptorType
|
170
|
+
* arn: "STRING_VALUE",
|
171
|
+
* },
|
172
|
+
* ],
|
173
|
+
* Policy: "STRING_VALUE",
|
174
|
+
* DurationSeconds: Number("int"),
|
175
|
+
* };
|
176
|
+
* const command = new AssumeRoleWithSAMLCommand(input);
|
177
|
+
* const response = await client.send(command);
|
178
|
+
* // { // AssumeRoleWithSAMLResponse
|
179
|
+
* // Credentials: { // Credentials
|
180
|
+
* // AccessKeyId: "STRING_VALUE", // required
|
181
|
+
* // SecretAccessKey: "STRING_VALUE", // required
|
182
|
+
* // SessionToken: "STRING_VALUE", // required
|
183
|
+
* // Expiration: new Date("TIMESTAMP"), // required
|
184
|
+
* // },
|
185
|
+
* // AssumedRoleUser: { // AssumedRoleUser
|
186
|
+
* // AssumedRoleId: "STRING_VALUE", // required
|
187
|
+
* // Arn: "STRING_VALUE", // required
|
188
|
+
* // },
|
189
|
+
* // PackedPolicySize: Number("int"),
|
190
|
+
* // Subject: "STRING_VALUE",
|
191
|
+
* // SubjectType: "STRING_VALUE",
|
192
|
+
* // Issuer: "STRING_VALUE",
|
193
|
+
* // Audience: "STRING_VALUE",
|
194
|
+
* // NameQualifier: "STRING_VALUE",
|
195
|
+
* // SourceIdentity: "STRING_VALUE",
|
196
|
+
* // };
|
197
|
+
*
|
198
|
+
* ```
|
199
|
+
*
|
200
|
+
* @param AssumeRoleWithSAMLCommandInput - {@link AssumeRoleWithSAMLCommandInput}
|
201
|
+
* @returns {@link AssumeRoleWithSAMLCommandOutput}
|
202
|
+
* @see {@link AssumeRoleWithSAMLCommandInput} for command's `input` shape.
|
203
|
+
* @see {@link AssumeRoleWithSAMLCommandOutput} for command's `response` shape.
|
204
|
+
* @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
|
205
|
+
*
|
206
|
+
* @throws {@link ExpiredTokenException} (client fault)
|
207
|
+
* <p>The web identity token that was passed is expired or is not valid. Get a new identity
|
208
|
+
* token from the identity provider and then retry the request.</p>
|
209
|
+
*
|
210
|
+
* @throws {@link IDPRejectedClaimException} (client fault)
|
211
|
+
* <p>The identity provider (IdP) reported that authentication failed. This might be because
|
212
|
+
* the claim is invalid.</p>
|
213
|
+
* <p>If this error is returned for the <code>AssumeRoleWithWebIdentity</code> operation, it
|
214
|
+
* can also mean that the claim has expired or has been explicitly revoked. </p>
|
215
|
+
*
|
216
|
+
* @throws {@link InvalidIdentityTokenException} (client fault)
|
217
|
+
* <p>The web identity token that was passed could not be validated by Amazon Web Services. Get a new
|
218
|
+
* identity token from the identity provider and then retry the request.</p>
|
219
|
+
*
|
220
|
+
* @throws {@link MalformedPolicyDocumentException} (client fault)
|
221
|
+
* <p>The request was rejected because the policy document was malformed. The error message
|
222
|
+
* describes the specific error.</p>
|
223
|
+
*
|
224
|
+
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
225
|
+
* <p>The request was rejected because the total packed size of the session policies and
|
226
|
+
* session tags combined was too large. An Amazon Web Services conversion compresses the session policy
|
227
|
+
* document, session policy ARNs, and session tags into a packed binary format that has a
|
228
|
+
* separate limit. The error message indicates by percentage how close the policies and
|
229
|
+
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
230
|
+
* the <i>IAM User Guide</i>.</p>
|
231
|
+
* <p>You could receive this error even though you meet other defined session policy and
|
232
|
+
* session tag limits. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity
|
233
|
+
* Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
234
|
+
*
|
235
|
+
* @throws {@link RegionDisabledException} (client fault)
|
236
|
+
* <p>STS is not activated in the requested region for the account that is being asked to
|
237
|
+
* generate credentials. The account administrator must use the IAM console to activate STS
|
238
|
+
* in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and
|
239
|
+
* Deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>IAM User
|
240
|
+
* Guide</i>.</p>
|
241
|
+
*
|
242
|
+
* @throws {@link STSServiceException}
|
243
|
+
* <p>Base exception class for all service exceptions from STS service.</p>
|
244
|
+
*
|
245
|
+
* @public
|
246
|
+
* @example To assume a role using a SAML assertion
|
247
|
+
* ```javascript
|
248
|
+
* //
|
249
|
+
* const input = {
|
250
|
+
* "DurationSeconds": 3600,
|
251
|
+
* "PrincipalArn": "arn:aws:iam::123456789012:saml-provider/SAML-test",
|
252
|
+
* "RoleArn": "arn:aws:iam::123456789012:role/TestSaml",
|
253
|
+
* "SAMLAssertion": "VERYLONGENCODEDASSERTIONEXAMPLExzYW1sOkF1ZGllbmNlPmJsYW5rPC9zYW1sOkF1ZGllbmNlPjwvc2FtbDpBdWRpZW5jZVJlc3RyaWN0aW9uPjwvc2FtbDpDb25kaXRpb25zPjxzYW1sOlN1YmplY3Q+PHNhbWw6TmFtZUlEIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6dHJhbnNpZW50Ij5TYW1sRXhhbXBsZTwvc2FtbDpOYW1lSUQ+PHNhbWw6U3ViamVjdENvbmZpcm1hdGlvbiBNZXRob2Q9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpjbTpiZWFyZXIiPjxzYW1sOlN1YmplY3RDb25maXJtYXRpb25EYXRhIE5vdE9uT3JBZnRlcj0iMjAxOS0xMS0wMVQyMDoyNTowNS4xNDVaIiBSZWNpcGllbnQ9Imh0dHBzOi8vc2lnbmluLmF3cy5hbWF6b24uY29tL3NhbWwiLz48L3NhbWw6U3ViamVjdENvbmZpcm1hdGlvbj48L3NhbWw6U3ViamVjdD48c2FtbDpBdXRoblN0YXRlbWVudCBBdXRoPD94bWwgdmpSZXNwb25zZT4="
|
254
|
+
* };
|
255
|
+
* const command = new AssumeRoleWithSAMLCommand(input);
|
256
|
+
* const response = await client.send(command);
|
257
|
+
* /* response ==
|
258
|
+
* {
|
259
|
+
* "AssumedRoleUser": {
|
260
|
+
* "Arn": "arn:aws:sts::123456789012:assumed-role/TestSaml",
|
261
|
+
* "AssumedRoleId": "ARO456EXAMPLE789:TestSaml"
|
262
|
+
* },
|
263
|
+
* "Audience": "https://signin.aws.amazon.com/saml",
|
264
|
+
* "Credentials": {
|
265
|
+
* "AccessKeyId": "ASIAV3ZUEFP6EXAMPLE",
|
266
|
+
* "Expiration": "2019-11-01T20:26:47Z",
|
267
|
+
* "SecretAccessKey": "8P+SQvWIuLnKhh8d++jpw0nNmQRBZvNEXAMPLEKEY",
|
268
|
+
* "SessionToken": "IQoJb3JpZ2luX2VjEOz////////////////////wEXAMPLEtMSJHMEUCIDoKK3JH9uGQE1z0sINr5M4jk+Na8KHDcCYRVjJCZEvOAiEA3OvJGtw1EcViOleS2vhs8VdCKFJQWPQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA=="
|
269
|
+
* },
|
270
|
+
* "Issuer": "https://integ.example.com/idp/shibboleth",
|
271
|
+
* "NameQualifier": "SbdGOnUkh1i4+EXAMPLExL/jEvs=",
|
272
|
+
* "PackedPolicySize": 6,
|
273
|
+
* "Subject": "SamlExample",
|
274
|
+
* "SubjectType": "transient"
|
275
|
+
* }
|
276
|
+
* *\/
|
277
|
+
* // example id: to-assume-role-with-saml-14882749597814
|
278
|
+
* ```
|
279
|
+
*
|
280
|
+
*/
|
281
|
+
export declare class AssumeRoleWithSAMLCommand extends AssumeRoleWithSAMLCommand_base {
|
282
|
+
}
|