@jjrawlins/cdk-diff-pr-github-action 1.4.1 → 1.4.3

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 (123) hide show
  1. package/.jsii +4 -4
  2. package/README.md +140 -7
  3. package/lib/CdkDiffIamTemplate.js +2 -2
  4. package/lib/CdkDiffIamTemplateStackSet.js +2 -2
  5. package/lib/CdkDiffStackWorkflow.js +1 -1
  6. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  7. package/lib/CdkDriftIamTemplate.js +2 -2
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +109 -3610
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +12 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +439 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +2 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +2741 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +2 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +182 -176
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +37 -30
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -30
  17. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  18. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +23 -234
  19. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +12 -0
  20. package/node_modules/@aws-sdk/client-sso/dist-cjs/models/errors.js +56 -0
  21. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
  22. package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +161 -0
  23. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
  24. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +32 -26
  25. package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +12 -5
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
  27. package/node_modules/@aws-sdk/client-sso/package.json +12 -12
  28. package/node_modules/@aws-sdk/core/package.json +3 -3
  29. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  30. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  31. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  32. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  33. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  34. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  35. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  36. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  37. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  38. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +20 -198
  39. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
  41. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
  43. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +20 -347
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +21 -308
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
  53. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
  55. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
  64. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
  65. package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
  66. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  67. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  68. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  69. package/package.json +2 -2
  70. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  71. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  72. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  73. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  74. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  75. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  76. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  77. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  78. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  79. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  80. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  81. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  82. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  83. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  84. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  87. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  88. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  89. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  90. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  91. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  92. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  93. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  94. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  95. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  96. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  97. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  98. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  99. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  100. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  101. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  102. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  103. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  104. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  105. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  106. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  107. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  108. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  109. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  110. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  111. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  112. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  113. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  114. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  115. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  116. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  117. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  119. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  120. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  121. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  122. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  123. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _APE = "AuthorizationPendingException";
6
+ const _AT = "AccessToken";
7
+ const _CS = "ClientSecret";
8
+ const _CT = "CreateToken";
9
+ const _CTR = "CreateTokenRequest";
10
+ const _CTRr = "CreateTokenResponse";
11
+ const _CV = "CodeVerifier";
12
+ const _ETE = "ExpiredTokenException";
13
+ const _ICE = "InvalidClientException";
14
+ const _IGE = "InvalidGrantException";
15
+ const _IRE = "InvalidRequestException";
16
+ const _ISE = "InternalServerException";
17
+ const _ISEn = "InvalidScopeException";
18
+ const _IT = "IdToken";
19
+ const _RT = "RefreshToken";
20
+ const _SDE = "SlowDownException";
21
+ const _UCE = "UnauthorizedClientException";
22
+ const _UGTE = "UnsupportedGrantTypeException";
23
+ const _aT = "accessToken";
24
+ const _c = "client";
25
+ const _cI = "clientId";
26
+ const _cS = "clientSecret";
27
+ const _cV = "codeVerifier";
28
+ const _co = "code";
29
+ const _dC = "deviceCode";
30
+ const _e = "error";
31
+ const _eI = "expiresIn";
32
+ const _ed = "error_description";
33
+ const _gT = "grantType";
34
+ const _h = "http";
35
+ const _hE = "httpError";
36
+ const _iT = "idToken";
37
+ const _r = "reason";
38
+ const _rT = "refreshToken";
39
+ const _rU = "redirectUri";
40
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
41
+ const _sc = "scope";
42
+ const _se = "server";
43
+ const _tT = "tokenType";
44
+ const n0 = "com.amazonaws.ssooidc";
45
+ const schema_1 = require("@smithy/core/schema");
46
+ const errors_1 = require("../models/errors");
47
+ const SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
48
+ const _s_registry = schema_1.TypeRegistry.for(_s);
49
+ exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
50
+ _s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
51
+ const n0_registry = schema_1.TypeRegistry.for(n0);
52
+ exports.AccessDeniedException$ = [
53
+ -3,
54
+ n0,
55
+ _ADE,
56
+ { [_e]: _c, [_hE]: 400 },
57
+ [_e, _r, _ed],
58
+ [0, 0, 0],
59
+ ];
60
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
61
+ exports.AuthorizationPendingException$ = [
62
+ -3,
63
+ n0,
64
+ _APE,
65
+ { [_e]: _c, [_hE]: 400 },
66
+ [_e, _ed],
67
+ [0, 0],
68
+ ];
69
+ n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
70
+ exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
71
+ n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
72
+ exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
73
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
74
+ exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
75
+ n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
76
+ exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
77
+ n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
78
+ exports.InvalidRequestException$ = [
79
+ -3,
80
+ n0,
81
+ _IRE,
82
+ { [_e]: _c, [_hE]: 400 },
83
+ [_e, _r, _ed],
84
+ [0, 0, 0],
85
+ ];
86
+ n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
87
+ exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
88
+ n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
89
+ exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
90
+ n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
91
+ exports.UnauthorizedClientException$ = [
92
+ -3,
93
+ n0,
94
+ _UCE,
95
+ { [_e]: _c, [_hE]: 400 },
96
+ [_e, _ed],
97
+ [0, 0],
98
+ ];
99
+ n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
100
+ exports.UnsupportedGrantTypeException$ = [
101
+ -3,
102
+ n0,
103
+ _UGTE,
104
+ { [_e]: _c, [_hE]: 400 },
105
+ [_e, _ed],
106
+ [0, 0],
107
+ ];
108
+ n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
109
+ exports.errorTypeRegistries = [_s_registry, n0_registry];
110
+ var AccessToken = [0, n0, _AT, 8, 0];
111
+ var ClientSecret = [0, n0, _CS, 8, 0];
112
+ var CodeVerifier = [0, n0, _CV, 8, 0];
113
+ var IdToken = [0, n0, _IT, 8, 0];
114
+ var RefreshToken = [0, n0, _RT, 8, 0];
115
+ exports.CreateTokenRequest$ = [
116
+ 3,
117
+ n0,
118
+ _CTR,
119
+ 0,
120
+ [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
121
+ [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
122
+ 3,
123
+ ];
124
+ exports.CreateTokenResponse$ = [
125
+ 3,
126
+ n0,
127
+ _CTRr,
128
+ 0,
129
+ [_aT, _tT, _eI, _rT, _iT],
130
+ [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
131
+ ];
132
+ var Scopes = 64 | 0;
133
+ exports.CreateToken$ = [
134
+ 9,
135
+ n0,
136
+ _CT,
137
+ { [_h]: ["POST", "/token", 200] },
138
+ () => exports.CreateTokenRequest$,
139
+ () => exports.CreateTokenResponse$,
140
+ ];
@@ -4,287 +4,11 @@ var STSClient = require('./STSClient');
4
4
  var smithyClient = require('@smithy/smithy-client');
5
5
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
6
6
  var EndpointParameters = require('./endpoint/EndpointParameters');
7
- var schema = require('@smithy/core/schema');
7
+ var schemas_0 = require('./schemas/schemas_0');
8
+ var errors = require('./models/errors');
8
9
  var client = require('@aws-sdk/core/client');
9
10
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
10
-
11
- class STSServiceException extends smithyClient.ServiceException {
12
- constructor(options) {
13
- super(options);
14
- Object.setPrototypeOf(this, STSServiceException.prototype);
15
- }
16
- }
17
-
18
- class ExpiredTokenException extends STSServiceException {
19
- name = "ExpiredTokenException";
20
- $fault = "client";
21
- constructor(opts) {
22
- super({
23
- name: "ExpiredTokenException",
24
- $fault: "client",
25
- ...opts,
26
- });
27
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
28
- }
29
- }
30
- class MalformedPolicyDocumentException extends STSServiceException {
31
- name = "MalformedPolicyDocumentException";
32
- $fault = "client";
33
- constructor(opts) {
34
- super({
35
- name: "MalformedPolicyDocumentException",
36
- $fault: "client",
37
- ...opts,
38
- });
39
- Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
40
- }
41
- }
42
- class PackedPolicyTooLargeException extends STSServiceException {
43
- name = "PackedPolicyTooLargeException";
44
- $fault = "client";
45
- constructor(opts) {
46
- super({
47
- name: "PackedPolicyTooLargeException",
48
- $fault: "client",
49
- ...opts,
50
- });
51
- Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
52
- }
53
- }
54
- class RegionDisabledException extends STSServiceException {
55
- name = "RegionDisabledException";
56
- $fault = "client";
57
- constructor(opts) {
58
- super({
59
- name: "RegionDisabledException",
60
- $fault: "client",
61
- ...opts,
62
- });
63
- Object.setPrototypeOf(this, RegionDisabledException.prototype);
64
- }
65
- }
66
- class IDPRejectedClaimException extends STSServiceException {
67
- name = "IDPRejectedClaimException";
68
- $fault = "client";
69
- constructor(opts) {
70
- super({
71
- name: "IDPRejectedClaimException",
72
- $fault: "client",
73
- ...opts,
74
- });
75
- Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
76
- }
77
- }
78
- class InvalidIdentityTokenException extends STSServiceException {
79
- name = "InvalidIdentityTokenException";
80
- $fault = "client";
81
- constructor(opts) {
82
- super({
83
- name: "InvalidIdentityTokenException",
84
- $fault: "client",
85
- ...opts,
86
- });
87
- Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
88
- }
89
- }
90
- class IDPCommunicationErrorException extends STSServiceException {
91
- name = "IDPCommunicationErrorException";
92
- $fault = "client";
93
- constructor(opts) {
94
- super({
95
- name: "IDPCommunicationErrorException",
96
- $fault: "client",
97
- ...opts,
98
- });
99
- Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
100
- }
101
- }
102
-
103
- const _A = "Arn";
104
- const _AKI = "AccessKeyId";
105
- const _AR = "AssumeRole";
106
- const _ARI = "AssumedRoleId";
107
- const _ARR = "AssumeRoleRequest";
108
- const _ARRs = "AssumeRoleResponse";
109
- const _ARU = "AssumedRoleUser";
110
- const _ARWWI = "AssumeRoleWithWebIdentity";
111
- const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
112
- const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
113
- const _Au = "Audience";
114
- const _C = "Credentials";
115
- const _CA = "ContextAssertion";
116
- const _DS = "DurationSeconds";
117
- const _E = "Expiration";
118
- const _EI = "ExternalId";
119
- const _ETE = "ExpiredTokenException";
120
- const _IDPCEE = "IDPCommunicationErrorException";
121
- const _IDPRCE = "IDPRejectedClaimException";
122
- const _IITE = "InvalidIdentityTokenException";
123
- const _K = "Key";
124
- const _MPDE = "MalformedPolicyDocumentException";
125
- const _P = "Policy";
126
- const _PA = "PolicyArns";
127
- const _PAr = "ProviderArn";
128
- const _PC = "ProvidedContexts";
129
- const _PCLT = "ProvidedContextsListType";
130
- const _PCr = "ProvidedContext";
131
- const _PDT = "PolicyDescriptorType";
132
- const _PI = "ProviderId";
133
- const _PPS = "PackedPolicySize";
134
- const _PPTLE = "PackedPolicyTooLargeException";
135
- const _Pr = "Provider";
136
- const _RA = "RoleArn";
137
- const _RDE = "RegionDisabledException";
138
- const _RSN = "RoleSessionName";
139
- const _SAK = "SecretAccessKey";
140
- const _SFWIT = "SubjectFromWebIdentityToken";
141
- const _SI = "SourceIdentity";
142
- const _SN = "SerialNumber";
143
- const _ST = "SessionToken";
144
- const _T = "Tags";
145
- const _TC = "TokenCode";
146
- const _TTK = "TransitiveTagKeys";
147
- const _Ta = "Tag";
148
- const _V = "Value";
149
- const _WIT = "WebIdentityToken";
150
- const _a = "arn";
151
- const _aKST = "accessKeySecretType";
152
- const _aQE = "awsQueryError";
153
- const _c = "client";
154
- const _cTT = "clientTokenType";
155
- const _e = "error";
156
- const _hE = "httpError";
157
- const _m = "message";
158
- const _pDLT = "policyDescriptorListType";
159
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
160
- const _tLT = "tagListType";
161
- const n0 = "com.amazonaws.sts";
162
- var accessKeySecretType = [0, n0, _aKST, 8, 0];
163
- var clientTokenType = [0, n0, _cTT, 8, 0];
164
- var AssumedRoleUser$ = [3, n0, _ARU, 0, [_ARI, _A], [0, 0], 2];
165
- var AssumeRoleRequest$ = [
166
- 3,
167
- n0,
168
- _ARR,
169
- 0,
170
- [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
171
- [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
172
- 2,
173
- ];
174
- var AssumeRoleResponse$ = [
175
- 3,
176
- n0,
177
- _ARRs,
178
- 0,
179
- [_C, _ARU, _PPS, _SI],
180
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0],
181
- ];
182
- var AssumeRoleWithWebIdentityRequest$ = [
183
- 3,
184
- n0,
185
- _ARWWIR,
186
- 0,
187
- [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
188
- [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
189
- 3,
190
- ];
191
- var AssumeRoleWithWebIdentityResponse$ = [
192
- 3,
193
- n0,
194
- _ARWWIRs,
195
- 0,
196
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
197
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0],
198
- ];
199
- var Credentials$ = [
200
- 3,
201
- n0,
202
- _C,
203
- 0,
204
- [_AKI, _SAK, _ST, _E],
205
- [0, [() => accessKeySecretType, 0], 0, 4],
206
- 4,
207
- ];
208
- var ExpiredTokenException$ = [
209
- -3,
210
- n0,
211
- _ETE,
212
- { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
213
- [_m],
214
- [0],
215
- ];
216
- schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
217
- var IDPCommunicationErrorException$ = [
218
- -3,
219
- n0,
220
- _IDPCEE,
221
- { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
222
- [_m],
223
- [0],
224
- ];
225
- schema.TypeRegistry.for(n0).registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
226
- var IDPRejectedClaimException$ = [
227
- -3,
228
- n0,
229
- _IDPRCE,
230
- { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
231
- [_m],
232
- [0],
233
- ];
234
- schema.TypeRegistry.for(n0).registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
235
- var InvalidIdentityTokenException$ = [
236
- -3,
237
- n0,
238
- _IITE,
239
- { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
240
- [_m],
241
- [0],
242
- ];
243
- schema.TypeRegistry.for(n0).registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
244
- var MalformedPolicyDocumentException$ = [
245
- -3,
246
- n0,
247
- _MPDE,
248
- { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
249
- [_m],
250
- [0],
251
- ];
252
- schema.TypeRegistry.for(n0).registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
253
- var PackedPolicyTooLargeException$ = [
254
- -3,
255
- n0,
256
- _PPTLE,
257
- { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
258
- [_m],
259
- [0],
260
- ];
261
- schema.TypeRegistry.for(n0).registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
262
- var PolicyDescriptorType$ = [3, n0, _PDT, 0, [_a], [0]];
263
- var ProvidedContext$ = [3, n0, _PCr, 0, [_PAr, _CA], [0, 0]];
264
- var RegionDisabledException$ = [
265
- -3,
266
- n0,
267
- _RDE,
268
- { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
269
- [_m],
270
- [0],
271
- ];
272
- schema.TypeRegistry.for(n0).registerError(RegionDisabledException$, RegionDisabledException);
273
- var Tag$ = [3, n0, _Ta, 0, [_K, _V], [0, 0], 2];
274
- var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
275
- schema.TypeRegistry.for(_s).registerError(STSServiceException$, STSServiceException);
276
- var policyDescriptorListType = [1, n0, _pDLT, 0, () => PolicyDescriptorType$];
277
- var ProvidedContextsListType = [1, n0, _PCLT, 0, () => ProvidedContext$];
278
- var tagListType = [1, n0, _tLT, 0, () => Tag$];
279
- var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
280
- var AssumeRoleWithWebIdentity$ = [
281
- 9,
282
- n0,
283
- _ARWWI,
284
- 0,
285
- () => AssumeRoleWithWebIdentityRequest$,
286
- () => AssumeRoleWithWebIdentityResponse$,
287
- ];
11
+ var STSServiceException = require('./models/STSServiceException');
288
12
 
289
13
  class AssumeRoleCommand extends smithyClient.Command
290
14
  .classBuilder()
@@ -294,7 +18,7 @@ class AssumeRoleCommand extends smithyClient.Command
294
18
  })
295
19
  .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
296
20
  .n("STSClient", "AssumeRoleCommand")
297
- .sc(AssumeRole$)
21
+ .sc(schemas_0.AssumeRole$)
298
22
  .build() {
299
23
  }
300
24
 
@@ -306,7 +30,7 @@ class AssumeRoleWithWebIdentityCommand extends smithyClient.Command
306
30
  })
307
31
  .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
308
32
  .n("STSClient", "AssumeRoleWithWebIdentityCommand")
309
- .sc(AssumeRoleWithWebIdentity$)
33
+ .sc(schemas_0.AssumeRoleWithWebIdentity$)
310
34
  .build() {
311
35
  }
312
36
 
@@ -442,36 +166,13 @@ Object.defineProperty(exports, "$Command", {
442
166
  enumerable: true,
443
167
  get: function () { return smithyClient.Command; }
444
168
  });
445
- exports.AssumeRole$ = AssumeRole$;
169
+ Object.defineProperty(exports, "STSServiceException", {
170
+ enumerable: true,
171
+ get: function () { return STSServiceException.STSServiceException; }
172
+ });
446
173
  exports.AssumeRoleCommand = AssumeRoleCommand;
447
- exports.AssumeRoleRequest$ = AssumeRoleRequest$;
448
- exports.AssumeRoleResponse$ = AssumeRoleResponse$;
449
- exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
450
174
  exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
451
- exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
452
- exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
453
- exports.AssumedRoleUser$ = AssumedRoleUser$;
454
- exports.Credentials$ = Credentials$;
455
- exports.ExpiredTokenException = ExpiredTokenException;
456
- exports.ExpiredTokenException$ = ExpiredTokenException$;
457
- exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
458
- exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
459
- exports.IDPRejectedClaimException = IDPRejectedClaimException;
460
- exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
461
- exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
462
- exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
463
- exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
464
- exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
465
- exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
466
- exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
467
- exports.PolicyDescriptorType$ = PolicyDescriptorType$;
468
- exports.ProvidedContext$ = ProvidedContext$;
469
- exports.RegionDisabledException = RegionDisabledException;
470
- exports.RegionDisabledException$ = RegionDisabledException$;
471
175
  exports.STS = STS;
472
- exports.STSServiceException = STSServiceException;
473
- exports.STSServiceException$ = STSServiceException$;
474
- exports.Tag$ = Tag$;
475
176
  exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
476
177
  exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
477
178
  exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
@@ -481,3 +182,15 @@ Object.keys(STSClient).forEach(function (k) {
481
182
  get: function () { return STSClient[k]; }
482
183
  });
483
184
  });
185
+ Object.keys(schemas_0).forEach(function (k) {
186
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
187
+ enumerable: true,
188
+ get: function () { return schemas_0[k]; }
189
+ });
190
+ });
191
+ Object.keys(errors).forEach(function (k) {
192
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
193
+ enumerable: true,
194
+ get: function () { return errors[k]; }
195
+ });
196
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STSServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class STSServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, STSServiceException.prototype);
10
+ }
11
+ }
12
+ exports.STSServiceException = STSServiceException;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0;
4
+ const STSServiceException_1 = require("./STSServiceException");
5
+ class ExpiredTokenException extends STSServiceException_1.STSServiceException {
6
+ name = "ExpiredTokenException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "ExpiredTokenException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
15
+ }
16
+ }
17
+ exports.ExpiredTokenException = ExpiredTokenException;
18
+ class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException {
19
+ name = "MalformedPolicyDocumentException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "MalformedPolicyDocumentException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
28
+ }
29
+ }
30
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
31
+ class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException {
32
+ name = "PackedPolicyTooLargeException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "PackedPolicyTooLargeException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
41
+ }
42
+ }
43
+ exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
44
+ class RegionDisabledException extends STSServiceException_1.STSServiceException {
45
+ name = "RegionDisabledException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "RegionDisabledException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, RegionDisabledException.prototype);
54
+ }
55
+ }
56
+ exports.RegionDisabledException = RegionDisabledException;
57
+ class IDPRejectedClaimException extends STSServiceException_1.STSServiceException {
58
+ name = "IDPRejectedClaimException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "IDPRejectedClaimException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
67
+ }
68
+ }
69
+ exports.IDPRejectedClaimException = IDPRejectedClaimException;
70
+ class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException {
71
+ name = "InvalidIdentityTokenException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "InvalidIdentityTokenException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
80
+ }
81
+ }
82
+ exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
83
+ class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {
84
+ name = "IDPCommunicationErrorException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "IDPCommunicationErrorException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
93
+ }
94
+ }
95
+ exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
@@ -10,6 +10,7 @@ const util_base64_1 = require("@smithy/util-base64");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2011-06-15",
@@ -35,6 +36,7 @@ const getRuntimeConfig = (config) => {
35
36
  protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
36
37
  protocolSettings: config?.protocolSettings ?? {
37
38
  defaultNamespace: "com.amazonaws.sts",
39
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
38
40
  xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
39
41
  version: "2011-06-15",
40
42
  serviceTarget: "AWSSecurityTokenServiceV20110615",