@aws-sdk/client-sts 3.332.0 → 3.335.1

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +3735 -0
  2. package/dist-cjs/commands/AssumeRoleCommand.js +2 -1
  3. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +3 -2
  4. package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +3 -2
  5. package/dist-cjs/commands/GetFederationTokenCommand.js +2 -1
  6. package/dist-cjs/commands/GetSessionTokenCommand.js +2 -1
  7. package/dist-cjs/models/models_0.js +42 -1
  8. package/dist-cjs/protocols/Aws_query.js +1 -1
  9. package/dist-es/commands/AssumeRoleCommand.js +2 -1
  10. package/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -2
  11. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -2
  12. package/dist-es/commands/GetFederationTokenCommand.js +2 -1
  13. package/dist-es/commands/GetSessionTokenCommand.js +2 -1
  14. package/dist-es/models/models_0.js +33 -0
  15. package/dist-es/protocols/Aws_query.js +1 -1
  16. package/dist-types/STSClient.d.ts +3 -2
  17. package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
  18. package/dist-types/models/models_0.d.ts +32 -0
  19. package/dist-types/protocols/Aws_query.d.ts +2 -2
  20. package/dist-types/runtimeConfig.browser.d.ts +13 -13
  21. package/dist-types/runtimeConfig.d.ts +9 -9
  22. package/dist-types/runtimeConfig.native.d.ts +14 -14
  23. package/dist-types/runtimeConfig.shared.d.ts +4 -4
  24. package/dist-types/ts3.4/STS.d.ts +69 -141
  25. package/dist-types/ts3.4/STSClient.d.ts +173 -159
  26. package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +261 -34
  27. package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +292 -38
  28. package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +301 -41
  29. package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +125 -41
  30. package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +86 -37
  31. package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +124 -38
  32. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +235 -38
  33. package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +162 -37
  34. package/dist-types/ts3.4/commands/index.d.ts +8 -8
  35. package/dist-types/ts3.4/defaultRoleAssumers.d.ts +20 -22
  36. package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +35 -23
  37. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +22 -35
  38. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +5 -8
  39. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
  40. package/dist-types/ts3.4/index.d.ts +6 -6
  41. package/dist-types/ts3.4/models/STSServiceException.d.ts +12 -7
  42. package/dist-types/ts3.4/models/index.d.ts +1 -1
  43. package/dist-types/ts3.4/models/models_0.d.ts +1110 -179
  44. package/dist-types/ts3.4/protocols/Aws_query.d.ts +74 -101
  45. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +43 -95
  46. package/dist-types/ts3.4/runtimeConfig.d.ts +43 -93
  47. package/dist-types/ts3.4/runtimeConfig.native.d.ts +42 -84
  48. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -18
  49. package/package.json +5 -4
@@ -1,179 +1,1110 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
- import { STSServiceException as __BaseException } from "./STSServiceException";
3
- export interface AssumedRoleUser {
4
- AssumedRoleId: string | undefined;
5
- Arn: string | undefined;
6
- }
7
- export interface PolicyDescriptorType {
8
- arn?: string;
9
- }
10
- export interface Tag {
11
- Key: string | undefined;
12
- Value: string | undefined;
13
- }
14
- export interface AssumeRoleRequest {
15
- RoleArn: string | undefined;
16
- RoleSessionName: string | undefined;
17
- PolicyArns?: PolicyDescriptorType[];
18
- Policy?: string;
19
- DurationSeconds?: number;
20
- Tags?: Tag[];
21
- TransitiveTagKeys?: string[];
22
- ExternalId?: string;
23
- SerialNumber?: string;
24
- TokenCode?: string;
25
- SourceIdentity?: string;
26
- }
27
- export interface Credentials {
28
- AccessKeyId: string | undefined;
29
- SecretAccessKey: string | undefined;
30
- SessionToken: string | undefined;
31
- Expiration: Date | undefined;
32
- }
33
- export interface AssumeRoleResponse {
34
- Credentials?: Credentials;
35
- AssumedRoleUser?: AssumedRoleUser;
36
- PackedPolicySize?: number;
37
- SourceIdentity?: string;
38
- }
39
- export declare class ExpiredTokenException extends __BaseException {
40
- readonly name: "ExpiredTokenException";
41
- readonly $fault: "client";
42
- constructor(
43
- opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
44
- );
45
- }
46
- export declare class MalformedPolicyDocumentException extends __BaseException {
47
- readonly name: "MalformedPolicyDocumentException";
48
- readonly $fault: "client";
49
- constructor(
50
- opts: __ExceptionOptionType<
51
- MalformedPolicyDocumentException,
52
- __BaseException
53
- >
54
- );
55
- }
56
- export declare class PackedPolicyTooLargeException extends __BaseException {
57
- readonly name: "PackedPolicyTooLargeException";
58
- readonly $fault: "client";
59
- constructor(
60
- opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>
61
- );
62
- }
63
- export declare class RegionDisabledException extends __BaseException {
64
- readonly name: "RegionDisabledException";
65
- readonly $fault: "client";
66
- constructor(
67
- opts: __ExceptionOptionType<RegionDisabledException, __BaseException>
68
- );
69
- }
70
- export interface AssumeRoleWithSAMLRequest {
71
- RoleArn: string | undefined;
72
- PrincipalArn: string | undefined;
73
- SAMLAssertion: string | undefined;
74
- PolicyArns?: PolicyDescriptorType[];
75
- Policy?: string;
76
- DurationSeconds?: number;
77
- }
78
- export interface AssumeRoleWithSAMLResponse {
79
- Credentials?: Credentials;
80
- AssumedRoleUser?: AssumedRoleUser;
81
- PackedPolicySize?: number;
82
- Subject?: string;
83
- SubjectType?: string;
84
- Issuer?: string;
85
- Audience?: string;
86
- NameQualifier?: string;
87
- SourceIdentity?: string;
88
- }
89
- export declare class IDPRejectedClaimException extends __BaseException {
90
- readonly name: "IDPRejectedClaimException";
91
- readonly $fault: "client";
92
- constructor(
93
- opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>
94
- );
95
- }
96
- export declare class InvalidIdentityTokenException extends __BaseException {
97
- readonly name: "InvalidIdentityTokenException";
98
- readonly $fault: "client";
99
- constructor(
100
- opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>
101
- );
102
- }
103
- export interface AssumeRoleWithWebIdentityRequest {
104
- RoleArn: string | undefined;
105
- RoleSessionName: string | undefined;
106
- WebIdentityToken: string | undefined;
107
- ProviderId?: string;
108
- PolicyArns?: PolicyDescriptorType[];
109
- Policy?: string;
110
- DurationSeconds?: number;
111
- }
112
- export interface AssumeRoleWithWebIdentityResponse {
113
- Credentials?: Credentials;
114
- SubjectFromWebIdentityToken?: string;
115
- AssumedRoleUser?: AssumedRoleUser;
116
- PackedPolicySize?: number;
117
- Provider?: string;
118
- Audience?: string;
119
- SourceIdentity?: string;
120
- }
121
- export declare class IDPCommunicationErrorException extends __BaseException {
122
- readonly name: "IDPCommunicationErrorException";
123
- readonly $fault: "client";
124
- constructor(
125
- opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>
126
- );
127
- }
128
- export interface DecodeAuthorizationMessageRequest {
129
- EncodedMessage: string | undefined;
130
- }
131
- export interface DecodeAuthorizationMessageResponse {
132
- DecodedMessage?: string;
133
- }
134
- export declare class InvalidAuthorizationMessageException extends __BaseException {
135
- readonly name: "InvalidAuthorizationMessageException";
136
- readonly $fault: "client";
137
- constructor(
138
- opts: __ExceptionOptionType<
139
- InvalidAuthorizationMessageException,
140
- __BaseException
141
- >
142
- );
143
- }
144
- export interface GetAccessKeyInfoRequest {
145
- AccessKeyId: string | undefined;
146
- }
147
- export interface GetAccessKeyInfoResponse {
148
- Account?: string;
149
- }
150
- export interface GetCallerIdentityRequest {}
151
- export interface GetCallerIdentityResponse {
152
- UserId?: string;
153
- Account?: string;
154
- Arn?: string;
155
- }
156
- export interface GetFederationTokenRequest {
157
- Name: string | undefined;
158
- Policy?: string;
159
- PolicyArns?: PolicyDescriptorType[];
160
- DurationSeconds?: number;
161
- Tags?: Tag[];
162
- }
163
- export interface FederatedUser {
164
- FederatedUserId: string | undefined;
165
- Arn: string | undefined;
166
- }
167
- export interface GetFederationTokenResponse {
168
- Credentials?: Credentials;
169
- FederatedUser?: FederatedUser;
170
- PackedPolicySize?: number;
171
- }
172
- export interface GetSessionTokenRequest {
173
- DurationSeconds?: number;
174
- SerialNumber?: string;
175
- TokenCode?: string;
176
- }
177
- export interface GetSessionTokenResponse {
178
- Credentials?: Credentials;
179
- }
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { STSServiceException as __BaseException } from "./STSServiceException";
3
+ /**
4
+ * @public
5
+ * <p>The identifiers for the temporary security credentials that the operation
6
+ * returns.</p>
7
+ */
8
+ export interface AssumedRoleUser {
9
+ /**
10
+ * <p>A unique identifier that contains the role ID and the role session name of the role that
11
+ * is being assumed. The role ID is generated by Amazon Web Services when the role is created.</p>
12
+ */
13
+ AssumedRoleId: string | undefined;
14
+ /**
15
+ * <p>The ARN of the temporary security credentials that are returned from the <a>AssumeRole</a> action. For more information about ARNs and how to use them in
16
+ * policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM Identifiers</a> in the
17
+ * <i>IAM User Guide</i>.</p>
18
+ */
19
+ Arn: string | undefined;
20
+ }
21
+ /**
22
+ * @public
23
+ * <p>A reference to the IAM managed policy that is passed as a session policy for a role
24
+ * session or a federated user session.</p>
25
+ */
26
+ export interface PolicyDescriptorType {
27
+ /**
28
+ * <p>The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy
29
+ * for the role. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
30
+ * Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
31
+ */
32
+ arn?: string;
33
+ }
34
+ /**
35
+ * @public
36
+ * <p>You can pass custom key-value pair attributes when you assume a role or federate a user.
37
+ * These are called session tags. You can then use the session tags to control access to
38
+ * resources. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Tagging Amazon Web Services STS Sessions</a> in the
39
+ * <i>IAM User Guide</i>.</p>
40
+ */
41
+ export interface Tag {
42
+ /**
43
+ * <p>The key for a session tag.</p>
44
+ * <p>You can pass up to 50 session tags. The plain text session tag keys can’t exceed 128
45
+ * characters. For these and additional limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
46
+ * and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
47
+ */
48
+ Key: string | undefined;
49
+ /**
50
+ * <p>The value for a session tag.</p>
51
+ * <p>You can pass up to 50 session tags. The plain text session tag values can’t exceed 256
52
+ * characters. For these and additional limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
53
+ * and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
54
+ */
55
+ Value: string | undefined;
56
+ }
57
+ /**
58
+ * @public
59
+ */
60
+ export interface AssumeRoleRequest {
61
+ /**
62
+ * <p>The Amazon Resource Name (ARN) of the role to assume.</p>
63
+ */
64
+ RoleArn: string | undefined;
65
+ /**
66
+ * <p>An identifier for the assumed role session.</p>
67
+ * <p>Use the role session name to uniquely identify a session when the same role is assumed
68
+ * by different principals or for different reasons. In cross-account scenarios, the role
69
+ * session name is visible to, and can be logged by the account that owns the role. The role
70
+ * session name is also used in the ARN of the assumed role principal. This means that
71
+ * subsequent cross-account API requests that use the temporary security credentials will
72
+ * expose the role session name to the external account in their CloudTrail logs.</p>
73
+ * <p>The regex used to validate this parameter is a string of characters
74
+ * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
75
+ * also include underscores or any of the following characters: =,.@-</p>
76
+ */
77
+ RoleSessionName: string | undefined;
78
+ /**
79
+ * <p>The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as
80
+ * managed session policies. The policies must exist in the same account as the role.</p>
81
+ * <p>This parameter is optional. You can provide up to 10 managed policy ARNs. However, the
82
+ * plaintext that you use for both inline and managed session policies can't exceed 2,048
83
+ * characters. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
84
+ * Service Namespaces</a> in the Amazon Web Services General Reference.</p>
85
+ * <note>
86
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
87
+ * and session tags into a packed binary format that has a separate limit. Your request can
88
+ * fail for this limit even if your plaintext meets the other requirements. The
89
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
90
+ * policies and tags for your request are to the upper size limit.</p>
91
+ * </note>
92
+ * <p>Passing policies to this operation returns new
93
+ * temporary credentials. The resulting session's permissions are the intersection of the
94
+ * role's identity-based policy and the session policies. You can use the role's temporary
95
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
96
+ * the role. You cannot use session policies to grant more permissions than those allowed
97
+ * by the identity-based policy of the role that is being assumed. For more information, see
98
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
99
+ * Policies</a> in the <i>IAM User Guide</i>.</p>
100
+ */
101
+ PolicyArns?: PolicyDescriptorType[];
102
+ /**
103
+ * <p>An IAM policy in JSON format that you want to use as an inline session policy.</p>
104
+ * <p>This parameter is optional. Passing policies to this operation returns new
105
+ * temporary credentials. The resulting session's permissions are the intersection of the
106
+ * role's identity-based policy and the session policies. You can use the role's temporary
107
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
108
+ * the role. You cannot use session policies to grant more permissions than those allowed
109
+ * by the identity-based policy of the role that is being assumed. For more information, see
110
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
111
+ * Policies</a> in the <i>IAM User Guide</i>.</p>
112
+ * <p>The plaintext that you use for both inline and managed session policies can't exceed
113
+ * 2,048 characters. The JSON policy characters can be any ASCII character from the space
114
+ * character to the end of the valid character list (\u0020 through \u00FF). It can also
115
+ * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D)
116
+ * characters.</p>
117
+ * <note>
118
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
119
+ * and session tags into a packed binary format that has a separate limit. Your request can
120
+ * fail for this limit even if your plaintext meets the other requirements. The
121
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
122
+ * policies and tags for your request are to the upper size limit.</p>
123
+ * </note>
124
+ */
125
+ Policy?: string;
126
+ /**
127
+ * <p>The duration, in seconds, of the role session. The value specified can range from 900
128
+ * seconds (15 minutes) up to the maximum session duration set for the role. The maximum
129
+ * session duration setting can have a value from 1 hour to 12 hours. If you specify a value
130
+ * higher than this setting or the administrator setting (whichever is lower), the operation
131
+ * fails. For example, if you specify a session duration of 12 hours, but your administrator
132
+ * set the maximum session duration to 6 hours, your operation fails. </p>
133
+ * <p>Role chaining limits your Amazon Web Services CLI or Amazon Web Services API role session to a maximum of one hour.
134
+ * When you use the <code>AssumeRole</code> API operation to assume a role, you can specify
135
+ * the duration of your role session with the <code>DurationSeconds</code> parameter. You can
136
+ * specify a parameter value of up to 43200 seconds (12 hours), depending on the maximum
137
+ * session duration setting for your role. However, if you assume a role using role chaining
138
+ * and provide a <code>DurationSeconds</code> parameter value greater than one hour, the
139
+ * operation fails. 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
140
+ * Maximum Session Duration Setting for a Role</a> in the
141
+ * <i>IAM User Guide</i>.</p>
142
+ * <p>By default, the value is set to <code>3600</code> seconds. </p>
143
+ * <note>
144
+ * <p>The <code>DurationSeconds</code> parameter is separate from the duration of a console
145
+ * session that you might request using the returned credentials. The request to the
146
+ * federation endpoint for a console sign-in token takes a <code>SessionDuration</code>
147
+ * parameter that specifies the maximum length of the console session. For more
148
+ * information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html">Creating a URL
149
+ * that Enables Federated Users to Access the Amazon Web Services Management Console</a> in the
150
+ * <i>IAM User Guide</i>.</p>
151
+ * </note>
152
+ */
153
+ DurationSeconds?: number;
154
+ /**
155
+ * <p>A list of session tags that you want to pass. Each session tag consists of a key name
156
+ * and an associated value. For more information about session tags, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Tagging Amazon Web Services STS
157
+ * Sessions</a> in the <i>IAM User Guide</i>.</p>
158
+ * <p>This parameter is optional. You can pass up to 50 session tags. The plaintext session
159
+ * tag keys can’t exceed 128 characters, and the values can’t exceed 256 characters. For these
160
+ * and additional limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
161
+ * and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
162
+ * <note>
163
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
164
+ * and session tags into a packed binary format that has a separate limit. Your request can
165
+ * fail for this limit even if your plaintext meets the other requirements. The
166
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
167
+ * policies and tags for your request are to the upper size limit.</p>
168
+ * </note>
169
+ * <p>You can pass a session tag with the same key as a tag that is already attached to the
170
+ * role. When you do, session tags override a role tag with the same key. </p>
171
+ * <p>Tag key–value pairs are not case sensitive, but case is preserved. This means that you
172
+ * cannot have separate <code>Department</code> and <code>department</code> tag keys. Assume
173
+ * that the role has the <code>Department</code>=<code>Marketing</code> tag and you pass the
174
+ * <code>department</code>=<code>engineering</code> session tag. <code>Department</code>
175
+ * and <code>department</code> are not saved as separate tags, and the session tag passed in
176
+ * the request takes precedence over the role tag.</p>
177
+ * <p>Additionally, if you used temporary credentials to perform this operation, the new
178
+ * session inherits any transitive session tags from the calling session. If you pass a
179
+ * session tag with the same key as an inherited tag, the operation fails. To view the
180
+ * inherited tags for a session, see the CloudTrail logs. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_ctlogs">Viewing Session Tags in CloudTrail</a> in the
181
+ * <i>IAM User Guide</i>.</p>
182
+ */
183
+ Tags?: Tag[];
184
+ /**
185
+ * <p>A list of keys for session tags that you want to set as transitive. If you set a tag key
186
+ * as transitive, the corresponding key and value passes to subsequent sessions in a role
187
+ * chain. 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
188
+ * with Session Tags</a> in the <i>IAM User Guide</i>.</p>
189
+ * <p>This parameter is optional. When you set session tags as transitive, the session policy
190
+ * and session tags packed binary limit is not affected.</p>
191
+ * <p>If you choose not to specify a transitive tag key, then no tags are passed from this
192
+ * session to any subsequent sessions.</p>
193
+ */
194
+ TransitiveTagKeys?: string[];
195
+ /**
196
+ * <p>A unique identifier that might be required when you assume a role in another account. If
197
+ * the administrator of the account to which the role belongs provided you with an external
198
+ * ID, then provide that value in the <code>ExternalId</code> parameter. This value can be any
199
+ * string, such as a passphrase or account number. A cross-account role is usually set up to
200
+ * trust everyone in an account. Therefore, the administrator of the trusting account might
201
+ * send an external ID to the administrator of the trusted account. That way, only someone
202
+ * with the ID can assume the role, rather than everyone in the account. For more information
203
+ * about the external ID, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html">How to Use an External ID
204
+ * When Granting Access to Your Amazon Web Services Resources to a Third Party</a> in the
205
+ * <i>IAM User Guide</i>.</p>
206
+ * <p>The regex used to validate this parameter is a string of
207
+ * characters consisting of upper- and lower-case alphanumeric characters with no spaces.
208
+ * You can also include underscores or any of the following characters: =,.@:/-</p>
209
+ */
210
+ ExternalId?: string;
211
+ /**
212
+ * <p>The identification number of the MFA device that is associated with the user who is
213
+ * making the <code>AssumeRole</code> call. Specify this value if the trust policy of the role
214
+ * being assumed includes a condition that requires MFA authentication. The value is either
215
+ * the serial number for a hardware device (such as <code>GAHT12345678</code>) or an Amazon
216
+ * Resource Name (ARN) for a virtual device (such as
217
+ * <code>arn:aws:iam::123456789012:mfa/user</code>).</p>
218
+ * <p>The regex used to validate this parameter is a string of characters
219
+ * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
220
+ * also include underscores or any of the following characters: =,.@-</p>
221
+ */
222
+ SerialNumber?: string;
223
+ /**
224
+ * <p>The value provided by the MFA device, if the trust policy of the role being assumed
225
+ * requires MFA. (In other words, if the policy includes a condition that tests for MFA). If
226
+ * the role being assumed requires MFA and if the <code>TokenCode</code> value is missing or
227
+ * expired, the <code>AssumeRole</code> call returns an "access denied" error.</p>
228
+ * <p>The format for this parameter, as described by its regex pattern, is a sequence of six
229
+ * numeric digits.</p>
230
+ */
231
+ TokenCode?: string;
232
+ /**
233
+ * <p>The source identity specified by the principal that is calling the
234
+ * <code>AssumeRole</code> operation.</p>
235
+ * <p>You can require users to specify a source identity when they assume a role. You do this
236
+ * by using the <code>sts:SourceIdentity</code> condition key in a role trust policy. You can
237
+ * use source identity information in CloudTrail logs to determine who took actions with a role.
238
+ * You can use the <code>aws:SourceIdentity</code> condition key to further control access to
239
+ * Amazon Web Services resources based on the value of source identity. For more information about using
240
+ * source identity, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">Monitor and control
241
+ * actions taken with assumed roles</a> in the
242
+ * <i>IAM User Guide</i>.</p>
243
+ * <p>The regex used to validate this parameter is a string of characters consisting of upper-
244
+ * and lower-case alphanumeric characters with no spaces. You can also include underscores or
245
+ * any of the following characters: =,.@-. You cannot use a value that begins with the text
246
+ * <code>aws:</code>. This prefix is reserved for Amazon Web Services internal use.</p>
247
+ */
248
+ SourceIdentity?: string;
249
+ }
250
+ /**
251
+ * @public
252
+ * <p>Amazon Web Services credentials for API authentication.</p>
253
+ */
254
+ export interface Credentials {
255
+ /**
256
+ * <p>The access key ID that identifies the temporary security credentials.</p>
257
+ */
258
+ AccessKeyId: string | undefined;
259
+ /**
260
+ * <p>The secret access key that can be used to sign requests.</p>
261
+ */
262
+ SecretAccessKey: string | undefined;
263
+ /**
264
+ * <p>The token that users must pass to the service API to use the temporary
265
+ * credentials.</p>
266
+ */
267
+ SessionToken: string | undefined;
268
+ /**
269
+ * <p>The date on which the current credentials expire.</p>
270
+ */
271
+ Expiration: Date | undefined;
272
+ }
273
+ /**
274
+ * @public
275
+ * <p>Contains the response to a successful <a>AssumeRole</a> request, including
276
+ * temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests. </p>
277
+ */
278
+ export interface AssumeRoleResponse {
279
+ /**
280
+ * <p>The temporary security credentials, which include an access key ID, a secret access key,
281
+ * and a security (or session) token.</p>
282
+ * <note>
283
+ * <p>The size of the security token that STS API operations return is not fixed. We
284
+ * strongly recommend that you make no assumptions about the maximum size.</p>
285
+ * </note>
286
+ */
287
+ Credentials?: Credentials;
288
+ /**
289
+ * <p>The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you
290
+ * can use to refer to the resulting temporary security credentials. For example, you can
291
+ * reference these credentials as a principal in a resource-based policy by using the ARN or
292
+ * assumed role ID. The ARN and ID include the <code>RoleSessionName</code> that you specified
293
+ * when you called <code>AssumeRole</code>. </p>
294
+ */
295
+ AssumedRoleUser?: AssumedRoleUser;
296
+ /**
297
+ * <p>A percentage value that indicates the packed size of the session policies and session
298
+ * tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
299
+ * which means the policies and tags exceeded the allowed space.</p>
300
+ */
301
+ PackedPolicySize?: number;
302
+ /**
303
+ * <p>The source identity specified by the principal that is calling the
304
+ * <code>AssumeRole</code> operation.</p>
305
+ * <p>You can require users to specify a source identity when they assume a role. You do this
306
+ * by using the <code>sts:SourceIdentity</code> condition key in a role trust policy. You can
307
+ * use source identity information in CloudTrail logs to determine who took actions with a role.
308
+ * You can use the <code>aws:SourceIdentity</code> condition key to further control access to
309
+ * Amazon Web Services resources based on the value of source identity. For more information about using
310
+ * source identity, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">Monitor and control
311
+ * actions taken with assumed roles</a> in the
312
+ * <i>IAM User Guide</i>.</p>
313
+ * <p>The regex used to validate this parameter is a string of characters consisting of upper-
314
+ * and lower-case alphanumeric characters with no spaces. You can also include underscores or
315
+ * any of the following characters: =,.@-</p>
316
+ */
317
+ SourceIdentity?: string;
318
+ }
319
+ /**
320
+ * @public
321
+ * <p>The web identity token that was passed is expired or is not valid. Get a new identity
322
+ * token from the identity provider and then retry the request.</p>
323
+ */
324
+ export declare class ExpiredTokenException extends __BaseException {
325
+ readonly name: "ExpiredTokenException";
326
+ readonly $fault: "client";
327
+ /**
328
+ * @internal
329
+ */
330
+ constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
331
+ }
332
+ /**
333
+ * @public
334
+ * <p>The request was rejected because the policy document was malformed. The error message
335
+ * describes the specific error.</p>
336
+ */
337
+ export declare class MalformedPolicyDocumentException extends __BaseException {
338
+ readonly name: "MalformedPolicyDocumentException";
339
+ readonly $fault: "client";
340
+ /**
341
+ * @internal
342
+ */
343
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
344
+ }
345
+ /**
346
+ * @public
347
+ * <p>The request was rejected because the total packed size of the session policies and
348
+ * session tags combined was too large. An Amazon Web Services conversion compresses the session policy
349
+ * document, session policy ARNs, and session tags into a packed binary format that has a
350
+ * separate limit. The error message indicates by percentage how close the policies and
351
+ * 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
352
+ * the <i>IAM User Guide</i>.</p>
353
+ * <p>You could receive this error even though you meet other defined session policy and
354
+ * 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
355
+ * Character Limits</a> in the <i>IAM User Guide</i>.</p>
356
+ */
357
+ export declare class PackedPolicyTooLargeException extends __BaseException {
358
+ readonly name: "PackedPolicyTooLargeException";
359
+ readonly $fault: "client";
360
+ /**
361
+ * @internal
362
+ */
363
+ constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
364
+ }
365
+ /**
366
+ * @public
367
+ * <p>STS is not activated in the requested region for the account that is being asked to
368
+ * generate credentials. The account administrator must use the IAM console to activate STS
369
+ * 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
370
+ * Deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>IAM User
371
+ * Guide</i>.</p>
372
+ */
373
+ export declare class RegionDisabledException extends __BaseException {
374
+ readonly name: "RegionDisabledException";
375
+ readonly $fault: "client";
376
+ /**
377
+ * @internal
378
+ */
379
+ constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
380
+ }
381
+ /**
382
+ * @public
383
+ */
384
+ export interface AssumeRoleWithSAMLRequest {
385
+ /**
386
+ * <p>The Amazon Resource Name (ARN) of the role that the caller is assuming.</p>
387
+ */
388
+ RoleArn: string | undefined;
389
+ /**
390
+ * <p>The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the
391
+ * IdP.</p>
392
+ */
393
+ PrincipalArn: string | undefined;
394
+ /**
395
+ * <p>The base64 encoded SAML authentication response provided by the IdP.</p>
396
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/create-role-saml-IdP-tasks.html">Configuring a Relying Party and
397
+ * Adding Claims</a> in the <i>IAM User Guide</i>. </p>
398
+ */
399
+ SAMLAssertion: string | undefined;
400
+ /**
401
+ * <p>The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as
402
+ * managed session policies. The policies must exist in the same account as the role.</p>
403
+ * <p>This parameter is optional. You can provide up to 10 managed policy ARNs. However, the
404
+ * plaintext that you use for both inline and managed session policies can't exceed 2,048
405
+ * characters. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
406
+ * Service Namespaces</a> in the Amazon Web Services General Reference.</p>
407
+ * <note>
408
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
409
+ * and session tags into a packed binary format that has a separate limit. Your request can
410
+ * fail for this limit even if your plaintext meets the other requirements. The
411
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
412
+ * policies and tags for your request are to the upper size limit.</p>
413
+ * </note>
414
+ * <p>Passing policies to this operation returns new
415
+ * temporary credentials. The resulting session's permissions are the intersection of the
416
+ * role's identity-based policy and the session policies. You can use the role's temporary
417
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
418
+ * the role. You cannot use session policies to grant more permissions than those allowed
419
+ * by the identity-based policy of the role that is being assumed. For more information, see
420
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
421
+ * Policies</a> in the <i>IAM User Guide</i>.</p>
422
+ */
423
+ PolicyArns?: PolicyDescriptorType[];
424
+ /**
425
+ * <p>An IAM policy in JSON format that you want to use as an inline session policy.</p>
426
+ * <p>This parameter is optional. Passing policies to this operation returns new
427
+ * temporary credentials. The resulting session's permissions are the intersection of the
428
+ * role's identity-based policy and the session policies. You can use the role's temporary
429
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
430
+ * the role. You cannot use session policies to grant more permissions than those allowed
431
+ * by the identity-based policy of the role that is being assumed. For more information, see
432
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
433
+ * Policies</a> in the <i>IAM User Guide</i>. </p>
434
+ * <p>The plaintext that you use for both inline and managed session policies can't exceed
435
+ * 2,048 characters. The JSON policy characters can be any ASCII character from the space
436
+ * character to the end of the valid character list (\u0020 through \u00FF). It can also
437
+ * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D)
438
+ * characters.</p>
439
+ * <note>
440
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
441
+ * and session tags into a packed binary format that has a separate limit. Your request can
442
+ * fail for this limit even if your plaintext meets the other requirements. The
443
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
444
+ * policies and tags for your request are to the upper size limit.</p>
445
+ * </note>
446
+ */
447
+ Policy?: string;
448
+ /**
449
+ * <p>The duration, in seconds, of the role session. Your role session lasts for the duration
450
+ * that you specify for the <code>DurationSeconds</code> parameter, or until the time
451
+ * specified in the SAML authentication response's <code>SessionNotOnOrAfter</code> value,
452
+ * whichever is shorter. You can provide a <code>DurationSeconds</code> value from 900 seconds
453
+ * (15 minutes) up to the maximum session duration setting for the role. This setting can have
454
+ * a value from 1 hour to 12 hours. If you specify a value higher than this setting, the
455
+ * operation fails. For example, if you specify a session duration of 12 hours, but your
456
+ * administrator set the maximum session duration to 6 hours, your operation fails. To learn
457
+ * 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
458
+ * Maximum Session Duration Setting for a Role</a> in the
459
+ * <i>IAM User Guide</i>.</p>
460
+ * <p>By default, the value is set to <code>3600</code> seconds. </p>
461
+ * <note>
462
+ * <p>The <code>DurationSeconds</code> parameter is separate from the duration of a console
463
+ * session that you might request using the returned credentials. The request to the
464
+ * federation endpoint for a console sign-in token takes a <code>SessionDuration</code>
465
+ * parameter that specifies the maximum length of the console session. For more
466
+ * information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html">Creating a URL
467
+ * that Enables Federated Users to Access the Amazon Web Services Management Console</a> in the
468
+ * <i>IAM User Guide</i>.</p>
469
+ * </note>
470
+ */
471
+ DurationSeconds?: number;
472
+ }
473
+ /**
474
+ * @public
475
+ * <p>Contains the response to a successful <a>AssumeRoleWithSAML</a> request,
476
+ * including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests. </p>
477
+ */
478
+ export interface AssumeRoleWithSAMLResponse {
479
+ /**
480
+ * <p>The temporary security credentials, which include an access key ID, a secret access key,
481
+ * and a security (or session) token.</p>
482
+ * <note>
483
+ * <p>The size of the security token that STS API operations return is not fixed. We
484
+ * strongly recommend that you make no assumptions about the maximum size.</p>
485
+ * </note>
486
+ */
487
+ Credentials?: Credentials;
488
+ /**
489
+ * <p>The identifiers for the temporary security credentials that the operation
490
+ * returns.</p>
491
+ */
492
+ AssumedRoleUser?: AssumedRoleUser;
493
+ /**
494
+ * <p>A percentage value that indicates the packed size of the session policies and session
495
+ * tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
496
+ * which means the policies and tags exceeded the allowed space.</p>
497
+ */
498
+ PackedPolicySize?: number;
499
+ /**
500
+ * <p>The value of the <code>NameID</code> element in the <code>Subject</code> element of the
501
+ * SAML assertion.</p>
502
+ */
503
+ Subject?: string;
504
+ /**
505
+ * <p> The format of the name ID, as defined by the <code>Format</code> attribute in the
506
+ * <code>NameID</code> element of the SAML assertion. Typical examples of the format are
507
+ * <code>transient</code> or <code>persistent</code>. </p>
508
+ * <p> If the format includes the prefix
509
+ * <code>urn:oasis:names:tc:SAML:2.0:nameid-format</code>, that prefix is removed. For
510
+ * example, <code>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</code> is returned as
511
+ * <code>transient</code>. If the format includes any other prefix, the format is returned
512
+ * with no modifications.</p>
513
+ */
514
+ SubjectType?: string;
515
+ /**
516
+ * <p>The value of the <code>Issuer</code> element of the SAML assertion.</p>
517
+ */
518
+ Issuer?: string;
519
+ /**
520
+ * <p> The value of the <code>Recipient</code> attribute of the
521
+ * <code>SubjectConfirmationData</code> element of the SAML assertion. </p>
522
+ */
523
+ Audience?: string;
524
+ /**
525
+ * <p>A hash value based on the concatenation of the following:</p>
526
+ * <ul>
527
+ * <li>
528
+ * <p>The <code>Issuer</code> response value.</p>
529
+ * </li>
530
+ * <li>
531
+ * <p>The Amazon Web Services account ID.</p>
532
+ * </li>
533
+ * <li>
534
+ * <p>The friendly name (the last part of the ARN) of the SAML provider in IAM.</p>
535
+ * </li>
536
+ * </ul>
537
+ * <p>The combination of <code>NameQualifier</code> and <code>Subject</code> can be used to
538
+ * uniquely identify a user.</p>
539
+ * <p>The following pseudocode shows how the hash value is calculated:</p>
540
+ * <p>
541
+ * <code>BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP" ) )</code>
542
+ * </p>
543
+ */
544
+ NameQualifier?: string;
545
+ /**
546
+ * <p>The value in the <code>SourceIdentity</code> attribute in the SAML assertion. </p>
547
+ * <p>You can require users to set a source identity value when they assume a role. You do
548
+ * this by using the <code>sts:SourceIdentity</code> condition key in a role trust policy.
549
+ * That way, actions that are taken with the role are associated with that user. After the
550
+ * source identity is set, the value cannot be changed. It is present in the request for all
551
+ * actions that are taken by the role and persists across <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining">chained
552
+ * role</a> sessions. You can configure your SAML identity provider to use an attribute
553
+ * associated with your users, like user name or email, as the source identity when calling
554
+ * <code>AssumeRoleWithSAML</code>. You do this by adding an attribute to the SAML
555
+ * assertion. For more information about using source identity, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">Monitor and control
556
+ * actions taken with assumed roles</a> in the
557
+ * <i>IAM User Guide</i>.</p>
558
+ * <p>The regex used to validate this parameter is a string of characters
559
+ * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
560
+ * also include underscores or any of the following characters: =,.@-</p>
561
+ */
562
+ SourceIdentity?: string;
563
+ }
564
+ /**
565
+ * @public
566
+ * <p>The identity provider (IdP) reported that authentication failed. This might be because
567
+ * the claim is invalid.</p>
568
+ * <p>If this error is returned for the <code>AssumeRoleWithWebIdentity</code> operation, it
569
+ * can also mean that the claim has expired or has been explicitly revoked. </p>
570
+ */
571
+ export declare class IDPRejectedClaimException extends __BaseException {
572
+ readonly name: "IDPRejectedClaimException";
573
+ readonly $fault: "client";
574
+ /**
575
+ * @internal
576
+ */
577
+ constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
578
+ }
579
+ /**
580
+ * @public
581
+ * <p>The web identity token that was passed could not be validated by Amazon Web Services. Get a new
582
+ * identity token from the identity provider and then retry the request.</p>
583
+ */
584
+ export declare class InvalidIdentityTokenException extends __BaseException {
585
+ readonly name: "InvalidIdentityTokenException";
586
+ readonly $fault: "client";
587
+ /**
588
+ * @internal
589
+ */
590
+ constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
591
+ }
592
+ /**
593
+ * @public
594
+ */
595
+ export interface AssumeRoleWithWebIdentityRequest {
596
+ /**
597
+ * <p>The Amazon Resource Name (ARN) of the role that the caller is assuming.</p>
598
+ */
599
+ RoleArn: string | undefined;
600
+ /**
601
+ * <p>An identifier for the assumed role session. Typically, you pass the name or identifier
602
+ * that is associated with the user who is using your application. That way, the temporary
603
+ * security credentials that your application will use are associated with that user. This
604
+ * session name is included as part of the ARN and assumed role ID in the
605
+ * <code>AssumedRoleUser</code> response element.</p>
606
+ * <p>The regex used to validate this parameter is a string of characters
607
+ * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
608
+ * also include underscores or any of the following characters: =,.@-</p>
609
+ */
610
+ RoleSessionName: string | undefined;
611
+ /**
612
+ * <p>The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity
613
+ * provider. Your application must get this token by authenticating the user who is using your
614
+ * application with a web identity provider before the application makes an
615
+ * <code>AssumeRoleWithWebIdentity</code> call. </p>
616
+ */
617
+ WebIdentityToken: string | undefined;
618
+ /**
619
+ * <p>The fully qualified host component of the domain name of the OAuth 2.0 identity
620
+ * provider. Do not specify this value for an OpenID Connect identity provider.</p>
621
+ * <p>Currently <code>www.amazon.com</code> and <code>graph.facebook.com</code> are the only
622
+ * supported identity providers for OAuth 2.0 access tokens. Do not include URL schemes and
623
+ * port numbers.</p>
624
+ * <p>Do not specify this value for OpenID Connect ID tokens.</p>
625
+ */
626
+ ProviderId?: string;
627
+ /**
628
+ * <p>The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as
629
+ * managed session policies. The policies must exist in the same account as the role.</p>
630
+ * <p>This parameter is optional. You can provide up to 10 managed policy ARNs. However, the
631
+ * plaintext that you use for both inline and managed session policies can't exceed 2,048
632
+ * characters. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
633
+ * Service Namespaces</a> in the Amazon Web Services General Reference.</p>
634
+ * <note>
635
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
636
+ * and session tags into a packed binary format that has a separate limit. Your request can
637
+ * fail for this limit even if your plaintext meets the other requirements. The
638
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
639
+ * policies and tags for your request are to the upper size limit.</p>
640
+ * </note>
641
+ * <p>Passing policies to this operation returns new
642
+ * temporary credentials. The resulting session's permissions are the intersection of the
643
+ * role's identity-based policy and the session policies. You can use the role's temporary
644
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
645
+ * the role. You cannot use session policies to grant more permissions than those allowed
646
+ * by the identity-based policy of the role that is being assumed. For more information, see
647
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
648
+ * Policies</a> in the <i>IAM User Guide</i>.</p>
649
+ */
650
+ PolicyArns?: PolicyDescriptorType[];
651
+ /**
652
+ * <p>An IAM policy in JSON format that you want to use as an inline session policy.</p>
653
+ * <p>This parameter is optional. Passing policies to this operation returns new
654
+ * temporary credentials. The resulting session's permissions are the intersection of the
655
+ * role's identity-based policy and the session policies. You can use the role's temporary
656
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
657
+ * the role. You cannot use session policies to grant more permissions than those allowed
658
+ * by the identity-based policy of the role that is being assumed. For more information, see
659
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
660
+ * Policies</a> in the <i>IAM User Guide</i>.</p>
661
+ * <p>The plaintext that you use for both inline and managed session policies can't exceed
662
+ * 2,048 characters. The JSON policy characters can be any ASCII character from the space
663
+ * character to the end of the valid character list (\u0020 through \u00FF). It can also
664
+ * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D)
665
+ * characters.</p>
666
+ * <note>
667
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
668
+ * and session tags into a packed binary format that has a separate limit. Your request can
669
+ * fail for this limit even if your plaintext meets the other requirements. The
670
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
671
+ * policies and tags for your request are to the upper size limit.</p>
672
+ * </note>
673
+ */
674
+ Policy?: string;
675
+ /**
676
+ * <p>The duration, in seconds, of the role session. The value can range from 900 seconds (15
677
+ * minutes) up to the maximum session duration setting for the role. This setting can have a
678
+ * value from 1 hour to 12 hours. If you specify a value higher than this setting, the
679
+ * operation fails. For example, if you specify a session duration of 12 hours, but your
680
+ * administrator set the maximum session duration to 6 hours, your operation fails. To learn
681
+ * 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
682
+ * Maximum Session Duration Setting for a Role</a> in the
683
+ * <i>IAM User Guide</i>.</p>
684
+ * <p>By default, the value is set to <code>3600</code> seconds. </p>
685
+ * <note>
686
+ * <p>The <code>DurationSeconds</code> parameter is separate from the duration of a console
687
+ * session that you might request using the returned credentials. The request to the
688
+ * federation endpoint for a console sign-in token takes a <code>SessionDuration</code>
689
+ * parameter that specifies the maximum length of the console session. For more
690
+ * information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_enable-console-custom-url.html">Creating a URL
691
+ * that Enables Federated Users to Access the Amazon Web Services Management Console</a> in the
692
+ * <i>IAM User Guide</i>.</p>
693
+ * </note>
694
+ */
695
+ DurationSeconds?: number;
696
+ }
697
+ /**
698
+ * @public
699
+ * <p>Contains the response to a successful <a>AssumeRoleWithWebIdentity</a>
700
+ * request, including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests. </p>
701
+ */
702
+ export interface AssumeRoleWithWebIdentityResponse {
703
+ /**
704
+ * <p>The temporary security credentials, which include an access key ID, a secret access key,
705
+ * and a security token.</p>
706
+ * <note>
707
+ * <p>The size of the security token that STS API operations return is not fixed. We
708
+ * strongly recommend that you make no assumptions about the maximum size.</p>
709
+ * </note>
710
+ */
711
+ Credentials?: Credentials;
712
+ /**
713
+ * <p>The unique user identifier that is returned by the identity provider. This identifier is
714
+ * associated with the <code>WebIdentityToken</code> that was submitted with the
715
+ * <code>AssumeRoleWithWebIdentity</code> call. The identifier is typically unique to the
716
+ * user and the application that acquired the <code>WebIdentityToken</code> (pairwise
717
+ * identifier). For OpenID Connect ID tokens, this field contains the value returned by the
718
+ * identity provider as the token's <code>sub</code> (Subject) claim. </p>
719
+ */
720
+ SubjectFromWebIdentityToken?: string;
721
+ /**
722
+ * <p>The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you
723
+ * can use to refer to the resulting temporary security credentials. For example, you can
724
+ * reference these credentials as a principal in a resource-based policy by using the ARN or
725
+ * assumed role ID. The ARN and ID include the <code>RoleSessionName</code> that you specified
726
+ * when you called <code>AssumeRole</code>. </p>
727
+ */
728
+ AssumedRoleUser?: AssumedRoleUser;
729
+ /**
730
+ * <p>A percentage value that indicates the packed size of the session policies and session
731
+ * tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
732
+ * which means the policies and tags exceeded the allowed space.</p>
733
+ */
734
+ PackedPolicySize?: number;
735
+ /**
736
+ * <p> The issuing authority of the web identity token presented. For OpenID Connect ID
737
+ * tokens, this contains the value of the <code>iss</code> field. For OAuth 2.0 access tokens,
738
+ * this contains the value of the <code>ProviderId</code> parameter that was passed in the
739
+ * <code>AssumeRoleWithWebIdentity</code> request.</p>
740
+ */
741
+ Provider?: string;
742
+ /**
743
+ * <p>The intended audience (also known as client ID) of the web identity token. This is
744
+ * traditionally the client identifier issued to the application that requested the web
745
+ * identity token.</p>
746
+ */
747
+ Audience?: string;
748
+ /**
749
+ * <p>The value of the source identity that is returned in the JSON web token (JWT) from the
750
+ * identity provider.</p>
751
+ * <p>You can require users to set a source identity value when they assume a role. You do
752
+ * this by using the <code>sts:SourceIdentity</code> condition key in a role trust policy.
753
+ * That way, actions that are taken with the role are associated with that user. After the
754
+ * source identity is set, the value cannot be changed. It is present in the request for all
755
+ * actions that are taken by the role and persists across <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts#iam-term-role-chaining">chained
756
+ * role</a> sessions. You can configure your identity provider to use an attribute
757
+ * associated with your users, like user name or email, as the source identity when calling
758
+ * <code>AssumeRoleWithWebIdentity</code>. You do this by adding a claim to the JSON web
759
+ * token. To learn more about OIDC tokens and claims, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html">Using Tokens with User Pools</a> in the <i>Amazon Cognito Developer Guide</i>.
760
+ * For more information about using source identity, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">Monitor and control
761
+ * actions taken with assumed roles</a> in the
762
+ * <i>IAM User Guide</i>.</p>
763
+ * <p>The regex used to validate this parameter is a string of characters
764
+ * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
765
+ * also include underscores or any of the following characters: =,.@-</p>
766
+ */
767
+ SourceIdentity?: string;
768
+ }
769
+ /**
770
+ * @public
771
+ * <p>The request could not be fulfilled because the identity provider (IDP) that
772
+ * was asked to verify the incoming identity token could not be reached. This is often a
773
+ * transient error caused by network conditions. Retry the request a limited number of
774
+ * times so that you don't exceed the request rate. If the error persists, the
775
+ * identity provider might be down or not responding.</p>
776
+ */
777
+ export declare class IDPCommunicationErrorException extends __BaseException {
778
+ readonly name: "IDPCommunicationErrorException";
779
+ readonly $fault: "client";
780
+ /**
781
+ * @internal
782
+ */
783
+ constructor(opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>);
784
+ }
785
+ /**
786
+ * @public
787
+ */
788
+ export interface DecodeAuthorizationMessageRequest {
789
+ /**
790
+ * <p>The encoded message that was returned with the response.</p>
791
+ */
792
+ EncodedMessage: string | undefined;
793
+ }
794
+ /**
795
+ * @public
796
+ * <p>A document that contains additional information about the authorization status of a
797
+ * request from an encoded message that is returned in response to an Amazon Web Services request.</p>
798
+ */
799
+ export interface DecodeAuthorizationMessageResponse {
800
+ /**
801
+ * <p>The API returns a response with the decoded message.</p>
802
+ */
803
+ DecodedMessage?: string;
804
+ }
805
+ /**
806
+ * @public
807
+ * <p>The error returned if the message passed to <code>DecodeAuthorizationMessage</code>
808
+ * was invalid. This can happen if the token contains invalid characters, such as
809
+ * linebreaks. </p>
810
+ */
811
+ export declare class InvalidAuthorizationMessageException extends __BaseException {
812
+ readonly name: "InvalidAuthorizationMessageException";
813
+ readonly $fault: "client";
814
+ /**
815
+ * @internal
816
+ */
817
+ constructor(opts: __ExceptionOptionType<InvalidAuthorizationMessageException, __BaseException>);
818
+ }
819
+ /**
820
+ * @public
821
+ */
822
+ export interface GetAccessKeyInfoRequest {
823
+ /**
824
+ * <p>The identifier of an access key.</p>
825
+ * <p>This parameter allows (through its regex pattern) a string of characters that can
826
+ * consist of any upper- or lowercase letter or digit.</p>
827
+ */
828
+ AccessKeyId: string | undefined;
829
+ }
830
+ /**
831
+ * @public
832
+ */
833
+ export interface GetAccessKeyInfoResponse {
834
+ /**
835
+ * <p>The number used to identify the Amazon Web Services account.</p>
836
+ */
837
+ Account?: string;
838
+ }
839
+ /**
840
+ * @public
841
+ */
842
+ export interface GetCallerIdentityRequest {
843
+ }
844
+ /**
845
+ * @public
846
+ * <p>Contains the response to a successful <a>GetCallerIdentity</a> request,
847
+ * including information about the entity making the request.</p>
848
+ */
849
+ export interface GetCallerIdentityResponse {
850
+ /**
851
+ * <p>The unique identifier of the calling entity. The exact value depends on the type of
852
+ * entity that is making the call. The values returned are those listed in the <b>aws:userid</b> column in the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable">Principal
853
+ * table</a> found on the <b>Policy Variables</b> reference
854
+ * page in the <i>IAM User Guide</i>.</p>
855
+ */
856
+ UserId?: string;
857
+ /**
858
+ * <p>The Amazon Web Services account ID number of the account that owns or contains the calling
859
+ * entity.</p>
860
+ */
861
+ Account?: string;
862
+ /**
863
+ * <p>The Amazon Web Services ARN associated with the calling entity.</p>
864
+ */
865
+ Arn?: string;
866
+ }
867
+ /**
868
+ * @public
869
+ */
870
+ export interface GetFederationTokenRequest {
871
+ /**
872
+ * <p>The name of the federated user. The name is used as an identifier for the temporary
873
+ * security credentials (such as <code>Bob</code>). For example, you can reference the
874
+ * federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.</p>
875
+ * <p>The regex used to validate this parameter is a string of characters
876
+ * consisting of upper- and lower-case alphanumeric characters with no spaces. You can
877
+ * also include underscores or any of the following characters: =,.@-</p>
878
+ */
879
+ Name: string | undefined;
880
+ /**
881
+ * <p>An IAM policy in JSON format that you want to use as an inline session policy.</p>
882
+ * <p>You must pass an inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policy</a> to
883
+ * this operation. You can pass a single JSON policy document to use as an inline session
884
+ * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as
885
+ * managed session policies.</p>
886
+ * <p>This parameter is optional. However, if you do not pass any session policies, then the
887
+ * resulting federated user session has no permissions.</p>
888
+ * <p>When you pass session policies, the session permissions are the intersection of the
889
+ * IAM user policies and the session policies that you pass. This gives you a way to further
890
+ * restrict the permissions for a federated user. You cannot use session policies to grant
891
+ * more permissions than those that are defined in the permissions policy of the IAM user.
892
+ * For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session Policies</a> in
893
+ * the <i>IAM User Guide</i>.</p>
894
+ * <p>The resulting credentials can be used to access a resource that has a resource-based
895
+ * policy. If that policy specifically references the federated user session in the
896
+ * <code>Principal</code> element of the policy, the session has the permissions allowed by
897
+ * the policy. These permissions are granted in addition to the permissions that are granted
898
+ * by the session policies.</p>
899
+ * <p>The plaintext that you use for both inline and managed session policies can't exceed
900
+ * 2,048 characters. The JSON policy characters can be any ASCII character from the space
901
+ * character to the end of the valid character list (\u0020 through \u00FF). It can also
902
+ * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D)
903
+ * characters.</p>
904
+ * <note>
905
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
906
+ * and session tags into a packed binary format that has a separate limit. Your request can
907
+ * fail for this limit even if your plaintext meets the other requirements. The
908
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
909
+ * policies and tags for your request are to the upper size limit.</p>
910
+ * </note>
911
+ */
912
+ Policy?: string;
913
+ /**
914
+ * <p>The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as a
915
+ * managed session policy. The policies must exist in the same account as the IAM user that
916
+ * is requesting federated access.</p>
917
+ * <p>You must pass an inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policy</a> to
918
+ * this operation. You can pass a single JSON policy document to use as an inline session
919
+ * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as
920
+ * managed session policies. The plaintext that you use for both inline and managed session
921
+ * policies can't exceed 2,048 characters. You can provide up to 10 managed policy ARNs. For
922
+ * more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
923
+ * Service Namespaces</a> in the Amazon Web Services General Reference.</p>
924
+ * <p>This parameter is optional. However, if you do not pass any session policies, then the
925
+ * resulting federated user session has no permissions.</p>
926
+ * <p>When you pass session policies, the session permissions are the intersection of the
927
+ * IAM user policies and the session policies that you pass. This gives you a way to further
928
+ * restrict the permissions for a federated user. You cannot use session policies to grant
929
+ * more permissions than those that are defined in the permissions policy of the IAM user.
930
+ * For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session Policies</a> in
931
+ * the <i>IAM User Guide</i>.</p>
932
+ * <p>The resulting credentials can be used to access a resource that has a resource-based
933
+ * policy. If that policy specifically references the federated user session in the
934
+ * <code>Principal</code> element of the policy, the session has the permissions allowed by
935
+ * the policy. These permissions are granted in addition to the permissions that are granted
936
+ * by the session policies.</p>
937
+ * <note>
938
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
939
+ * and session tags into a packed binary format that has a separate limit. Your request can
940
+ * fail for this limit even if your plaintext meets the other requirements. The
941
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
942
+ * policies and tags for your request are to the upper size limit.</p>
943
+ * </note>
944
+ */
945
+ PolicyArns?: PolicyDescriptorType[];
946
+ /**
947
+ * <p>The duration, in seconds, that the session should last. Acceptable durations for
948
+ * federation sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with
949
+ * 43,200 seconds (12 hours) as the default. Sessions obtained using root user
950
+ * credentials are restricted to a maximum of 3,600 seconds (one hour). If the specified
951
+ * duration is longer than one hour, the session obtained by using root user credentials
952
+ * defaults to one hour.</p>
953
+ */
954
+ DurationSeconds?: number;
955
+ /**
956
+ * <p>A list of session tags. Each session tag consists of a key name and an associated value.
957
+ * 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
958
+ * <i>IAM User Guide</i>.</p>
959
+ * <p>This parameter is optional. You can pass up to 50 session tags. The plaintext session
960
+ * tag keys can’t exceed 128 characters and the values can’t exceed 256 characters. For these
961
+ * and additional limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
962
+ * and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
963
+ * <note>
964
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
965
+ * and session tags into a packed binary format that has a separate limit. Your request can
966
+ * fail for this limit even if your plaintext meets the other requirements. The
967
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
968
+ * policies and tags for your request are to the upper size limit.</p>
969
+ * </note>
970
+ * <p>You can pass a session tag with the same key as a tag that is already attached to the
971
+ * user you are federating. When you do, session tags override a user tag with the same key. </p>
972
+ * <p>Tag key–value pairs are not case sensitive, but case is preserved. This means that you
973
+ * cannot have separate <code>Department</code> and <code>department</code> tag keys. Assume
974
+ * that the role has the <code>Department</code>=<code>Marketing</code> tag and you pass the
975
+ * <code>department</code>=<code>engineering</code> session tag. <code>Department</code>
976
+ * and <code>department</code> are not saved as separate tags, and the session tag passed in
977
+ * the request takes precedence over the role tag.</p>
978
+ */
979
+ Tags?: Tag[];
980
+ }
981
+ /**
982
+ * @public
983
+ * <p>Identifiers for the federated user that is associated with the credentials.</p>
984
+ */
985
+ export interface FederatedUser {
986
+ /**
987
+ * <p>The string that identifies the federated user associated with the credentials, similar
988
+ * to the unique ID of an IAM user.</p>
989
+ */
990
+ FederatedUserId: string | undefined;
991
+ /**
992
+ * <p>The ARN that specifies the federated user that is associated with the credentials. For
993
+ * more information about ARNs and how to use them in policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM
994
+ * Identifiers</a> in the <i>IAM User Guide</i>. </p>
995
+ */
996
+ Arn: string | undefined;
997
+ }
998
+ /**
999
+ * @public
1000
+ * <p>Contains the response to a successful <a>GetFederationToken</a> request,
1001
+ * including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests. </p>
1002
+ */
1003
+ export interface GetFederationTokenResponse {
1004
+ /**
1005
+ * <p>The temporary security credentials, which include an access key ID, a secret access key,
1006
+ * and a security (or session) token.</p>
1007
+ * <note>
1008
+ * <p>The size of the security token that STS API operations return is not fixed. We
1009
+ * strongly recommend that you make no assumptions about the maximum size.</p>
1010
+ * </note>
1011
+ */
1012
+ Credentials?: Credentials;
1013
+ /**
1014
+ * <p>Identifiers for the federated user associated with the credentials (such as
1015
+ * <code>arn:aws:sts::123456789012:federated-user/Bob</code> or
1016
+ * <code>123456789012:Bob</code>). You can use the federated user's ARN in your
1017
+ * resource-based policies, such as an Amazon S3 bucket policy. </p>
1018
+ */
1019
+ FederatedUser?: FederatedUser;
1020
+ /**
1021
+ * <p>A percentage value that indicates the packed size of the session policies and session
1022
+ * tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
1023
+ * which means the policies and tags exceeded the allowed space.</p>
1024
+ */
1025
+ PackedPolicySize?: number;
1026
+ }
1027
+ /**
1028
+ * @public
1029
+ */
1030
+ export interface GetSessionTokenRequest {
1031
+ /**
1032
+ * <p>The duration, in seconds, that the credentials should remain valid. Acceptable durations
1033
+ * for IAM user sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours),
1034
+ * with 43,200 seconds (12 hours) as the default. Sessions for Amazon Web Services account owners are
1035
+ * restricted to a maximum of 3,600 seconds (one hour). If the duration is longer than one
1036
+ * hour, the session for Amazon Web Services account owners defaults to one hour.</p>
1037
+ */
1038
+ DurationSeconds?: number;
1039
+ /**
1040
+ * <p>The identification number of the MFA device that is associated with the IAM user who
1041
+ * is making the <code>GetSessionToken</code> call. Specify this value if the IAM user has a
1042
+ * policy that requires MFA authentication. The value is either the serial number for a
1043
+ * hardware device (such as <code>GAHT12345678</code>) or an Amazon Resource Name (ARN) for a
1044
+ * virtual device (such as <code>arn:aws:iam::123456789012:mfa/user</code>). You can find the
1045
+ * device for an IAM user by going to the Amazon Web Services Management Console and viewing the user's security
1046
+ * credentials. </p>
1047
+ * <p>The regex used to validate this parameter is a string of
1048
+ * characters consisting of upper- and lower-case alphanumeric characters with no spaces.
1049
+ * You can also include underscores or any of the following characters: =,.@:/-</p>
1050
+ */
1051
+ SerialNumber?: string;
1052
+ /**
1053
+ * <p>The value provided by the MFA device, if MFA is required. If any policy requires the
1054
+ * IAM user to submit an MFA code, specify this value. If MFA authentication is required,
1055
+ * the user must provide a code when requesting a set of temporary security credentials. A
1056
+ * user who fails to provide the code receives an "access denied" response when requesting
1057
+ * resources that require MFA authentication.</p>
1058
+ * <p>The format for this parameter, as described by its regex pattern, is a sequence of six
1059
+ * numeric digits.</p>
1060
+ */
1061
+ TokenCode?: string;
1062
+ }
1063
+ /**
1064
+ * @public
1065
+ * <p>Contains the response to a successful <a>GetSessionToken</a> request,
1066
+ * including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests. </p>
1067
+ */
1068
+ export interface GetSessionTokenResponse {
1069
+ /**
1070
+ * <p>The temporary security credentials, which include an access key ID, a secret access key,
1071
+ * and a security (or session) token.</p>
1072
+ * <note>
1073
+ * <p>The size of the security token that STS API operations return is not fixed. We
1074
+ * strongly recommend that you make no assumptions about the maximum size.</p>
1075
+ * </note>
1076
+ */
1077
+ Credentials?: Credentials;
1078
+ }
1079
+ /**
1080
+ * @internal
1081
+ */
1082
+ export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
1083
+ /**
1084
+ * @internal
1085
+ */
1086
+ export declare const AssumeRoleResponseFilterSensitiveLog: (obj: AssumeRoleResponse) => any;
1087
+ /**
1088
+ * @internal
1089
+ */
1090
+ export declare const AssumeRoleWithSAMLRequestFilterSensitiveLog: (obj: AssumeRoleWithSAMLRequest) => any;
1091
+ /**
1092
+ * @internal
1093
+ */
1094
+ export declare const AssumeRoleWithSAMLResponseFilterSensitiveLog: (obj: AssumeRoleWithSAMLResponse) => any;
1095
+ /**
1096
+ * @internal
1097
+ */
1098
+ export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: (obj: AssumeRoleWithWebIdentityRequest) => any;
1099
+ /**
1100
+ * @internal
1101
+ */
1102
+ export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: (obj: AssumeRoleWithWebIdentityResponse) => any;
1103
+ /**
1104
+ * @internal
1105
+ */
1106
+ export declare const GetFederationTokenResponseFilterSensitiveLog: (obj: GetFederationTokenResponse) => any;
1107
+ /**
1108
+ * @internal
1109
+ */
1110
+ export declare const GetSessionTokenResponseFilterSensitiveLog: (obj: GetSessionTokenResponse) => any;