@mavogel/awscdk-rootmail 0.1.59 → 0.1.61
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 +7 -7
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/checksums/package.json +3 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +4 -4
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-route-53/package.json +4 -4
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +7 -7
- package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ses/package.json +4 -4
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/package.json +4 -4
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +66 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +48 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +12 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +20 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +22 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +109 -53
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +600 -328
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +12 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +12 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +9 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +9 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +9 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingNormalizedSchema.js +215 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +223 -195
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +22 -23
- package/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +54 -47
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +23 -18
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +12 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +33 -27
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +8 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/quote-header.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js +4 -3
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingNormalizedSchema.d.ts +75 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +11 -8
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingNormalizedSchema.d.ts +81 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +11 -8
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +2 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/bowser/README.md +1 -1
- package/node_modules/bowser/bowser.mjs +49 -6
- package/node_modules/bowser/bundled.js +1 -1
- package/node_modules/bowser/es5.js +2 -2
- package/node_modules/bowser/index.d.ts +2 -2
- package/node_modules/bowser/package.json +1 -1
- package/node_modules/bowser/src/constants.js +4 -0
- package/node_modules/bowser/src/parser-browsers.js +50 -5
- package/node_modules/bowser/src/parser-engines.js +14 -1
- package/node_modules/bowser/src/parser-os.js +8 -1
- package/node_modules/bowser/src/parser-platforms.js +12 -0
- package/package.json +6 -6
|
@@ -258,7 +258,7 @@ const commonParams = {
|
|
|
258
258
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
var version = "3.998.
|
|
261
|
+
var version = "3.998.4";
|
|
262
262
|
var packageInfo = {
|
|
263
263
|
version: version};
|
|
264
264
|
|
|
@@ -283,6 +283,19 @@ class ExpiredTokenException extends STSServiceException {
|
|
|
283
283
|
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
+
class InvalidContextAssertionException extends STSServiceException {
|
|
287
|
+
static shapeId = "com.amazonaws.sts#InvalidContextAssertionException";
|
|
288
|
+
name = "InvalidContextAssertionException";
|
|
289
|
+
$fault = "client";
|
|
290
|
+
constructor(opts) {
|
|
291
|
+
super({
|
|
292
|
+
name: "InvalidContextAssertionException",
|
|
293
|
+
$fault: "client",
|
|
294
|
+
...opts,
|
|
295
|
+
});
|
|
296
|
+
Object.setPrototypeOf(this, InvalidContextAssertionException.prototype);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
286
299
|
class MalformedPolicyDocumentException extends STSServiceException {
|
|
287
300
|
static shapeId = "com.amazonaws.sts#MalformedPolicyDocumentException";
|
|
288
301
|
name = "MalformedPolicyDocumentException";
|
|
@@ -380,12 +393,17 @@ const _DS = "DurationSeconds";
|
|
|
380
393
|
const _E = "Expiration";
|
|
381
394
|
const _EI = "ExternalId";
|
|
382
395
|
const _ETE = "ExpiredTokenException";
|
|
396
|
+
const _FPA = "FederatedProviderArn";
|
|
397
|
+
const _I = "Issuer";
|
|
398
|
+
const _ICAE = "InvalidContextAssertionException";
|
|
383
399
|
const _IDPCEE = "IDPCommunicationErrorException";
|
|
384
400
|
const _IDPRCE = "IDPRejectedClaimException";
|
|
385
401
|
const _IITE = "InvalidIdentityTokenException";
|
|
402
|
+
const _IP = "IdentityProvider";
|
|
386
403
|
const _K = "Key";
|
|
387
404
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
388
405
|
const _MSTS = "MinimumSessionTokenSize";
|
|
406
|
+
const _OI = "OriginIdentity";
|
|
389
407
|
const _P = "Policy";
|
|
390
408
|
const _PA = "PolicyArns";
|
|
391
409
|
const _PAr = "ProviderArn";
|
|
@@ -400,6 +418,7 @@ const _Pr = "Provider";
|
|
|
400
418
|
const _RA = "RoleArn";
|
|
401
419
|
const _RDE = "RegionDisabledException";
|
|
402
420
|
const _RSN = "RoleSessionName";
|
|
421
|
+
const _S = "Subject";
|
|
403
422
|
const _SAK = "SecretAccessKey";
|
|
404
423
|
const _SFWIT = "SubjectFromWebIdentityToken";
|
|
405
424
|
const _SI = "SourceIdentity";
|
|
@@ -407,8 +426,11 @@ const _SN = "SerialNumber";
|
|
|
407
426
|
const _ST = "SessionToken";
|
|
408
427
|
const _STS = "SessionTokenSize";
|
|
409
428
|
const _STU = "SessionTokenUtilization";
|
|
429
|
+
const _STu = "SubjectType";
|
|
410
430
|
const _T = "Tags";
|
|
411
431
|
const _TC = "TokenCode";
|
|
432
|
+
const _TCr = "TransactionContext";
|
|
433
|
+
const _TIPC = "TrustedIdentityPropagationContext";
|
|
412
434
|
const _TTK = "TransitiveTagKeys";
|
|
413
435
|
const _Ta = "Tag";
|
|
414
436
|
const _V = "Value";
|
|
@@ -421,8 +443,13 @@ const _cTT = "clientTokenType";
|
|
|
421
443
|
const _e = "error";
|
|
422
444
|
const _hE = "httpError";
|
|
423
445
|
const _m = "message";
|
|
446
|
+
const _oIIT = "originIdentityIssuerType";
|
|
447
|
+
const _oIST = "originIdentitySubjectType";
|
|
448
|
+
const _oISTT = "originIdentitySubjectTypeType";
|
|
424
449
|
const _pDLT = "policyDescriptorListType";
|
|
425
450
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
451
|
+
const _tCIPMT = "transactionContextIdentityProviderMapType";
|
|
452
|
+
const _tCVT = "transactionContextValueType";
|
|
426
453
|
const _tLT = "tagListType";
|
|
427
454
|
const n0 = "com.amazonaws.sts";
|
|
428
455
|
const _s_registry = new TypeRegistry(_s);
|
|
@@ -447,6 +474,12 @@ var IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
|
|
|
447
474
|
[0]
|
|
448
475
|
];
|
|
449
476
|
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
477
|
+
var InvalidContextAssertionException$ = [-3, n0, _ICAE,
|
|
478
|
+
{ [_aQE]: [`InvalidContextAssertion`, 400], [_e]: _c, [_hE]: 400 },
|
|
479
|
+
[_m],
|
|
480
|
+
[0]
|
|
481
|
+
];
|
|
482
|
+
n0_registry.registerError(InvalidContextAssertionException$, InvalidContextAssertionException);
|
|
450
483
|
var InvalidIdentityTokenException$ = [-3, n0, _IITE,
|
|
451
484
|
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
|
452
485
|
[_m],
|
|
@@ -477,6 +510,10 @@ const errorTypeRegistries = [
|
|
|
477
510
|
];
|
|
478
511
|
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
|
479
512
|
var clientTokenType = [0, n0, _cTT, 8, 0];
|
|
513
|
+
var originIdentityIssuerType = [0, n0, _oIIT, 8, 0];
|
|
514
|
+
var originIdentitySubjectType = [0, n0, _oIST, 8, 0];
|
|
515
|
+
var originIdentitySubjectTypeType = [0, n0, _oISTT, 8, 0];
|
|
516
|
+
var transactionContextValueType = [0, n0, _tCVT, 8, 0];
|
|
480
517
|
var AssumedRoleUser$ = [3, n0, _ARU,
|
|
481
518
|
0,
|
|
482
519
|
[_ARI, _A],
|
|
@@ -499,14 +536,19 @@ var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
|
499
536
|
];
|
|
500
537
|
var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
501
538
|
0,
|
|
502
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
503
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
539
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS, _TIPC],
|
|
540
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
|
504
541
|
];
|
|
505
542
|
var Credentials$ = [3, n0, _C,
|
|
506
543
|
0,
|
|
507
544
|
[_AKI, _SAK, _ST, _E],
|
|
508
545
|
[0, [() => accessKeySecretType, 0], 0, 4], 4
|
|
509
546
|
];
|
|
547
|
+
var OriginIdentity$ = [3, n0, _OI,
|
|
548
|
+
0,
|
|
549
|
+
[_S, _STu, _I, _FPA],
|
|
550
|
+
[[() => originIdentitySubjectType, 0], [() => originIdentitySubjectTypeType, 0], [() => originIdentityIssuerType, 0], 0]
|
|
551
|
+
];
|
|
510
552
|
var PolicyDescriptorType$ = [3, n0, _PDT,
|
|
511
553
|
0,
|
|
512
554
|
[_a],
|
|
@@ -522,6 +564,16 @@ var Tag$ = [3, n0, _Ta,
|
|
|
522
564
|
[_K, _V],
|
|
523
565
|
[0, 0], 2
|
|
524
566
|
];
|
|
567
|
+
var TransactionContext$ = [3, n0, _TCr,
|
|
568
|
+
0,
|
|
569
|
+
[_IP],
|
|
570
|
+
[[() => transactionContextIdentityProviderMapType, 0]]
|
|
571
|
+
];
|
|
572
|
+
var TrustedIdentityPropagationContext$ = [3, n0, _TIPC,
|
|
573
|
+
8,
|
|
574
|
+
[_OI, _TCr],
|
|
575
|
+
[[() => OriginIdentity$, 0], [() => TransactionContext$, 0]]
|
|
576
|
+
];
|
|
525
577
|
var policyDescriptorListType = [1, n0, _pDLT,
|
|
526
578
|
0, () => PolicyDescriptorType$
|
|
527
579
|
];
|
|
@@ -531,6 +583,12 @@ var ProvidedContextsListType = [1, n0, _PCLT,
|
|
|
531
583
|
var tagListType = [1, n0, _tLT,
|
|
532
584
|
0, () => Tag$
|
|
533
585
|
];
|
|
586
|
+
var transactionContextIdentityProviderMapType = [2, n0, _tCIPMT,
|
|
587
|
+
0, [0,
|
|
588
|
+
0],
|
|
589
|
+
[() => transactionContextValueType,
|
|
590
|
+
0]
|
|
591
|
+
];
|
|
534
592
|
var AssumeRole$ = [9, n0, _AR,
|
|
535
593
|
0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
|
|
536
594
|
];
|
|
@@ -869,10 +927,13 @@ exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|
|
|
869
927
|
exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
|
|
870
928
|
exports.IDPRejectedClaimException = IDPRejectedClaimException;
|
|
871
929
|
exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
|
|
930
|
+
exports.InvalidContextAssertionException = InvalidContextAssertionException;
|
|
931
|
+
exports.InvalidContextAssertionException$ = InvalidContextAssertionException$;
|
|
872
932
|
exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
|
873
933
|
exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
|
|
874
934
|
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
875
935
|
exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
|
|
936
|
+
exports.OriginIdentity$ = OriginIdentity$;
|
|
876
937
|
exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
|
|
877
938
|
exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
|
|
878
939
|
exports.PolicyDescriptorType$ = PolicyDescriptorType$;
|
|
@@ -884,6 +945,8 @@ exports.STSClient = STSClient;
|
|
|
884
945
|
exports.STSServiceException = STSServiceException;
|
|
885
946
|
exports.STSServiceException$ = STSServiceException$;
|
|
886
947
|
exports.Tag$ = Tag$;
|
|
948
|
+
exports.TransactionContext$ = TransactionContext$;
|
|
949
|
+
exports.TrustedIdentityPropagationContext$ = TrustedIdentityPropagationContext$;
|
|
887
950
|
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
|
888
951
|
exports.errorTypeRegistries = errorTypeRegistries;
|
|
889
952
|
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
|
|
@@ -3,6 +3,7 @@ export const OAuth2ErrorCode = {
|
|
|
3
3
|
CONFLICT: "CONFLICT",
|
|
4
4
|
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
5
5
|
INVALID_REQUEST: "INVALID_REQUEST",
|
|
6
|
+
OAUTH_INVALID_CLIENT: "invalid_client",
|
|
6
7
|
OAUTH_INVALID_GRANT: "invalid_grant",
|
|
7
8
|
OAUTH_INVALID_REQUEST: "invalid_request",
|
|
8
9
|
OAUTH_INVALID_SCOPE: "invalid_scope",
|
|
@@ -12,6 +12,19 @@ export class ExpiredTokenException extends __BaseException {
|
|
|
12
12
|
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
export class InvalidContextAssertionException extends __BaseException {
|
|
16
|
+
static shapeId = "com.amazonaws.sts#InvalidContextAssertionException";
|
|
17
|
+
name = "InvalidContextAssertionException";
|
|
18
|
+
$fault = "client";
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "InvalidContextAssertionException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
Object.setPrototypeOf(this, InvalidContextAssertionException.prototype);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
15
28
|
export class MalformedPolicyDocumentException extends __BaseException {
|
|
16
29
|
static shapeId = "com.amazonaws.sts#MalformedPolicyDocumentException";
|
|
17
30
|
name = "MalformedPolicyDocumentException";
|
|
@@ -15,12 +15,17 @@ const _DS = "DurationSeconds";
|
|
|
15
15
|
const _E = "Expiration";
|
|
16
16
|
const _EI = "ExternalId";
|
|
17
17
|
const _ETE = "ExpiredTokenException";
|
|
18
|
+
const _FPA = "FederatedProviderArn";
|
|
19
|
+
const _I = "Issuer";
|
|
20
|
+
const _ICAE = "InvalidContextAssertionException";
|
|
18
21
|
const _IDPCEE = "IDPCommunicationErrorException";
|
|
19
22
|
const _IDPRCE = "IDPRejectedClaimException";
|
|
20
23
|
const _IITE = "InvalidIdentityTokenException";
|
|
24
|
+
const _IP = "IdentityProvider";
|
|
21
25
|
const _K = "Key";
|
|
22
26
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
23
27
|
const _MSTS = "MinimumSessionTokenSize";
|
|
28
|
+
const _OI = "OriginIdentity";
|
|
24
29
|
const _P = "Policy";
|
|
25
30
|
const _PA = "PolicyArns";
|
|
26
31
|
const _PAr = "ProviderArn";
|
|
@@ -35,6 +40,7 @@ const _Pr = "Provider";
|
|
|
35
40
|
const _RA = "RoleArn";
|
|
36
41
|
const _RDE = "RegionDisabledException";
|
|
37
42
|
const _RSN = "RoleSessionName";
|
|
43
|
+
const _S = "Subject";
|
|
38
44
|
const _SAK = "SecretAccessKey";
|
|
39
45
|
const _SFWIT = "SubjectFromWebIdentityToken";
|
|
40
46
|
const _SI = "SourceIdentity";
|
|
@@ -42,8 +48,11 @@ const _SN = "SerialNumber";
|
|
|
42
48
|
const _ST = "SessionToken";
|
|
43
49
|
const _STS = "SessionTokenSize";
|
|
44
50
|
const _STU = "SessionTokenUtilization";
|
|
51
|
+
const _STu = "SubjectType";
|
|
45
52
|
const _T = "Tags";
|
|
46
53
|
const _TC = "TokenCode";
|
|
54
|
+
const _TCr = "TransactionContext";
|
|
55
|
+
const _TIPC = "TrustedIdentityPropagationContext";
|
|
47
56
|
const _TTK = "TransitiveTagKeys";
|
|
48
57
|
const _Ta = "Tag";
|
|
49
58
|
const _V = "Value";
|
|
@@ -56,12 +65,17 @@ const _cTT = "clientTokenType";
|
|
|
56
65
|
const _e = "error";
|
|
57
66
|
const _hE = "httpError";
|
|
58
67
|
const _m = "message";
|
|
68
|
+
const _oIIT = "originIdentityIssuerType";
|
|
69
|
+
const _oIST = "originIdentitySubjectType";
|
|
70
|
+
const _oISTT = "originIdentitySubjectTypeType";
|
|
59
71
|
const _pDLT = "policyDescriptorListType";
|
|
60
72
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
73
|
+
const _tCIPMT = "transactionContextIdentityProviderMapType";
|
|
74
|
+
const _tCVT = "transactionContextValueType";
|
|
61
75
|
const _tLT = "tagListType";
|
|
62
76
|
const n0 = "com.amazonaws.sts";
|
|
63
77
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
64
|
-
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/errors";
|
|
78
|
+
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidContextAssertionException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/errors";
|
|
65
79
|
import { STSServiceException } from "../models/STSServiceException";
|
|
66
80
|
const _s_registry = new TypeRegistry(_s);
|
|
67
81
|
export var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
@@ -85,6 +99,12 @@ export var IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
|
|
|
85
99
|
[0]
|
|
86
100
|
];
|
|
87
101
|
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
102
|
+
export var InvalidContextAssertionException$ = [-3, n0, _ICAE,
|
|
103
|
+
{ [_aQE]: [`InvalidContextAssertion`, 400], [_e]: _c, [_hE]: 400 },
|
|
104
|
+
[_m],
|
|
105
|
+
[0]
|
|
106
|
+
];
|
|
107
|
+
n0_registry.registerError(InvalidContextAssertionException$, InvalidContextAssertionException);
|
|
88
108
|
export var InvalidIdentityTokenException$ = [-3, n0, _IITE,
|
|
89
109
|
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
|
90
110
|
[_m],
|
|
@@ -115,6 +135,10 @@ export const errorTypeRegistries = [
|
|
|
115
135
|
];
|
|
116
136
|
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
|
117
137
|
var clientTokenType = [0, n0, _cTT, 8, 0];
|
|
138
|
+
var originIdentityIssuerType = [0, n0, _oIIT, 8, 0];
|
|
139
|
+
var originIdentitySubjectType = [0, n0, _oIST, 8, 0];
|
|
140
|
+
var originIdentitySubjectTypeType = [0, n0, _oISTT, 8, 0];
|
|
141
|
+
var transactionContextValueType = [0, n0, _tCVT, 8, 0];
|
|
118
142
|
export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
119
143
|
0,
|
|
120
144
|
[_ARI, _A],
|
|
@@ -137,14 +161,19 @@ export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
|
137
161
|
];
|
|
138
162
|
export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
139
163
|
0,
|
|
140
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
141
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
164
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS, _TIPC],
|
|
165
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
|
142
166
|
];
|
|
143
167
|
export var Credentials$ = [3, n0, _C,
|
|
144
168
|
0,
|
|
145
169
|
[_AKI, _SAK, _ST, _E],
|
|
146
170
|
[0, [() => accessKeySecretType, 0], 0, 4], 4
|
|
147
171
|
];
|
|
172
|
+
export var OriginIdentity$ = [3, n0, _OI,
|
|
173
|
+
0,
|
|
174
|
+
[_S, _STu, _I, _FPA],
|
|
175
|
+
[[() => originIdentitySubjectType, 0], [() => originIdentitySubjectTypeType, 0], [() => originIdentityIssuerType, 0], 0]
|
|
176
|
+
];
|
|
148
177
|
export var PolicyDescriptorType$ = [3, n0, _PDT,
|
|
149
178
|
0,
|
|
150
179
|
[_a],
|
|
@@ -160,6 +189,16 @@ export var Tag$ = [3, n0, _Ta,
|
|
|
160
189
|
[_K, _V],
|
|
161
190
|
[0, 0], 2
|
|
162
191
|
];
|
|
192
|
+
export var TransactionContext$ = [3, n0, _TCr,
|
|
193
|
+
0,
|
|
194
|
+
[_IP],
|
|
195
|
+
[[() => transactionContextIdentityProviderMapType, 0]]
|
|
196
|
+
];
|
|
197
|
+
export var TrustedIdentityPropagationContext$ = [3, n0, _TIPC,
|
|
198
|
+
8,
|
|
199
|
+
[_OI, _TCr],
|
|
200
|
+
[[() => OriginIdentity$, 0], [() => TransactionContext$, 0]]
|
|
201
|
+
];
|
|
163
202
|
var policyDescriptorListType = [1, n0, _pDLT,
|
|
164
203
|
0, () => PolicyDescriptorType$
|
|
165
204
|
];
|
|
@@ -170,6 +209,12 @@ var tagKeyListType = 64 | 0;
|
|
|
170
209
|
var tagListType = [1, n0, _tLT,
|
|
171
210
|
0, () => Tag$
|
|
172
211
|
];
|
|
212
|
+
var transactionContextIdentityProviderMapType = [2, n0, _tCIPMT,
|
|
213
|
+
0, [0,
|
|
214
|
+
0],
|
|
215
|
+
[() => transactionContextValueType,
|
|
216
|
+
0]
|
|
217
|
+
];
|
|
173
218
|
export var AssumeRole$ = [9, n0, _AR,
|
|
174
219
|
0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
|
|
175
220
|
];
|
|
@@ -19,6 +19,7 @@ export declare const OAuth2ErrorCode: {
|
|
|
19
19
|
* The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed.
|
|
20
20
|
*/
|
|
21
21
|
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
22
|
+
readonly OAUTH_INVALID_CLIENT: "invalid_client";
|
|
22
23
|
readonly OAUTH_INVALID_GRANT: "invalid_grant";
|
|
23
24
|
readonly OAUTH_INVALID_REQUEST: "invalid_request";
|
|
24
25
|
readonly OAUTH_INVALID_SCOPE: "invalid_scope";
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts
CHANGED
|
@@ -151,7 +151,7 @@ export interface CreateOAuth2TokenWithIAMRequest {
|
|
|
151
151
|
*/
|
|
152
152
|
export interface CreateOAuth2TokenWithIAMResponse {
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* The access token containing principal identity, resource scope, and session metadata.
|
|
155
155
|
* @public
|
|
156
156
|
*/
|
|
157
157
|
accessToken: string | undefined;
|
|
@@ -161,7 +161,7 @@ export interface CreateOAuth2TokenWithIAMResponse {
|
|
|
161
161
|
*/
|
|
162
162
|
tokenType: string | undefined;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* The token lifetime in seconds. Value is the minimum of the caller's session validity and 1 hour (3600 seconds).
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
167
|
expiresIn: number | undefined;
|
|
@@ -182,19 +182,24 @@ declare const AssumeRoleCommand_base: {
|
|
|
182
182
|
* <p>The web identity token that was passed is expired or is not valid. Get a new identity
|
|
183
183
|
* token from the identity provider and then retry the request.</p>
|
|
184
184
|
*
|
|
185
|
+
* @throws {@link InvalidContextAssertionException} (client fault)
|
|
186
|
+
* <p>The request was rejected because the context assertion that was provided is invalid.
|
|
187
|
+
* This can happen if the context assertion supplied in the <code>ProvidedContexts</code>
|
|
188
|
+
* parameter is malformed, has expired, or does not match a trusted context provider.</p>
|
|
189
|
+
*
|
|
185
190
|
* @throws {@link MalformedPolicyDocumentException} (client fault)
|
|
186
191
|
* <p>The request was rejected because the policy document was malformed. The error message
|
|
187
192
|
* describes the specific error.</p>
|
|
188
193
|
*
|
|
189
194
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
190
|
-
* <p>The request was rejected because the
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* 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
|
|
195
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
196
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
197
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
198
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
195
199
|
* the <i>IAM User Guide</i>.</p>
|
|
196
|
-
* <p>You
|
|
197
|
-
* session tag limits.
|
|
200
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
201
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
202
|
+
* session token is to the maximum allowed size. 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 Character Limits</a> in the <i>IAM User
|
|
198
203
|
* Guide</i>.</p>
|
|
199
204
|
*
|
|
200
205
|
* @throws {@link RegionDisabledException} (client fault)
|
|
@@ -94,13 +94,6 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
94
94
|
* characters and the values can’t exceed 256 characters. For these and additional limits, see
|
|
95
95
|
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
|
|
96
96
|
* and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
|
97
|
-
* <note>
|
|
98
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
99
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
100
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
101
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
102
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
103
|
-
* </note>
|
|
104
97
|
* <p>You can pass a session tag with the same key as a tag that is attached to the role. When
|
|
105
98
|
* you do, the session tag overrides the role tag with the same key.</p>
|
|
106
99
|
* <p>An administrator must grant you the permissions necessary to pass session tags. The
|
|
@@ -184,6 +177,19 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
184
177
|
* // SourceIdentity: "STRING_VALUE",
|
|
185
178
|
* // SessionTokenUtilization: Number("int"),
|
|
186
179
|
* // SessionTokenSize: Number("int"),
|
|
180
|
+
* // TrustedIdentityPropagationContext: { // TrustedIdentityPropagationContext
|
|
181
|
+
* // OriginIdentity: { // OriginIdentity
|
|
182
|
+
* // Subject: "STRING_VALUE",
|
|
183
|
+
* // SubjectType: "STRING_VALUE",
|
|
184
|
+
* // Issuer: "STRING_VALUE",
|
|
185
|
+
* // FederatedProviderArn: "STRING_VALUE",
|
|
186
|
+
* // },
|
|
187
|
+
* // TransactionContext: { // TransactionContext
|
|
188
|
+
* // IdentityProvider: { // transactionContextIdentityProviderMapType
|
|
189
|
+
* // "<keys>": "STRING_VALUE",
|
|
190
|
+
* // },
|
|
191
|
+
* // },
|
|
192
|
+
* // },
|
|
187
193
|
* // };
|
|
188
194
|
*
|
|
189
195
|
* ```
|
|
@@ -220,14 +226,14 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
220
226
|
* describes the specific error.</p>
|
|
221
227
|
*
|
|
222
228
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
223
|
-
* <p>The request was rejected because the
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* 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
|
|
229
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
230
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
231
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
232
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
228
233
|
* the <i>IAM User Guide</i>.</p>
|
|
229
|
-
* <p>You
|
|
230
|
-
* session tag limits.
|
|
234
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
235
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
236
|
+
* session token is to the maximum allowed size. 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 Character Limits</a> in the <i>IAM User
|
|
231
237
|
* Guide</i>.</p>
|
|
232
238
|
*
|
|
233
239
|
* @throws {@link RegionDisabledException} (client fault)
|
|
@@ -14,6 +14,21 @@ export declare class ExpiredTokenException extends __BaseException {
|
|
|
14
14
|
*/
|
|
15
15
|
constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* <p>The request was rejected because the context assertion that was provided is invalid.
|
|
19
|
+
* This can happen if the context assertion supplied in the <code>ProvidedContexts</code>
|
|
20
|
+
* parameter is malformed, has expired, or does not match a trusted context provider.</p>
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare class InvalidContextAssertionException extends __BaseException {
|
|
24
|
+
static readonly shapeId: string;
|
|
25
|
+
readonly name: "InvalidContextAssertionException";
|
|
26
|
+
readonly $fault: "client";
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(opts: __ExceptionOptionType<InvalidContextAssertionException, __BaseException>);
|
|
31
|
+
}
|
|
17
32
|
/**
|
|
18
33
|
* <p>The request was rejected because the policy document was malformed. The error message
|
|
19
34
|
* describes the specific error.</p>
|
|
@@ -29,14 +44,14 @@ export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
|
29
44
|
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
30
45
|
}
|
|
31
46
|
/**
|
|
32
|
-
* <p>The request was rejected because the
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* 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
|
|
47
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
48
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
49
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
50
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
37
51
|
* the <i>IAM User Guide</i>.</p>
|
|
38
|
-
* <p>You
|
|
39
|
-
* session tag limits.
|
|
52
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
53
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
54
|
+
* session token is to the maximum allowed size. 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 Character Limits</a> in the <i>IAM User
|
|
40
55
|
* Guide</i>.</p>
|
|
41
56
|
* @public
|
|
42
57
|
*/
|