@jjrawlins/cdk-diff-pr-github-action 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/CdkDiffIamTemplate.js +2 -2
- package/lib/CdkDiffIamTemplateStackSet.js +2 -2
- package/lib/CdkDiffStackWorkflow.js +1 -1
- package/lib/CdkDriftDetectionWorkflow.js +1 -1
- package/lib/CdkDriftIamTemplate.js +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +109 -3610
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/errors.js +439 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/schemas/schemas_0.js +2741 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +182 -176
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/schemas/schemas_0.d.ts +37 -30
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -30
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +23 -234
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/errors.js +56 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +161 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +32 -26
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +12 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/node_modules/@aws-sdk/client-sso/package.json +12 -12
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +15 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +14 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +20 -198
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +20 -347
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +21 -308
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Logout$ = exports.ListAccounts$ = exports.ListAccountRoles$ = exports.GetRoleCredentials$ = exports.RoleInfo$ = exports.RoleCredentials$ = exports.LogoutRequest$ = exports.ListAccountsResponse$ = exports.ListAccountsRequest$ = exports.ListAccountRolesResponse$ = exports.ListAccountRolesRequest$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.AccountInfo$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = void 0;
|
|
4
|
+
const _AI = "AccountInfo";
|
|
5
|
+
const _ALT = "AccountListType";
|
|
6
|
+
const _ATT = "AccessTokenType";
|
|
7
|
+
const _GRC = "GetRoleCredentials";
|
|
8
|
+
const _GRCR = "GetRoleCredentialsRequest";
|
|
9
|
+
const _GRCRe = "GetRoleCredentialsResponse";
|
|
10
|
+
const _IRE = "InvalidRequestException";
|
|
11
|
+
const _L = "Logout";
|
|
12
|
+
const _LA = "ListAccounts";
|
|
13
|
+
const _LAR = "ListAccountsRequest";
|
|
14
|
+
const _LARR = "ListAccountRolesRequest";
|
|
15
|
+
const _LARRi = "ListAccountRolesResponse";
|
|
16
|
+
const _LARi = "ListAccountsResponse";
|
|
17
|
+
const _LARis = "ListAccountRoles";
|
|
18
|
+
const _LR = "LogoutRequest";
|
|
19
|
+
const _RC = "RoleCredentials";
|
|
20
|
+
const _RI = "RoleInfo";
|
|
21
|
+
const _RLT = "RoleListType";
|
|
22
|
+
const _RNFE = "ResourceNotFoundException";
|
|
23
|
+
const _SAKT = "SecretAccessKeyType";
|
|
24
|
+
const _STT = "SessionTokenType";
|
|
25
|
+
const _TMRE = "TooManyRequestsException";
|
|
26
|
+
const _UE = "UnauthorizedException";
|
|
27
|
+
const _aI = "accountId";
|
|
28
|
+
const _aKI = "accessKeyId";
|
|
29
|
+
const _aL = "accountList";
|
|
30
|
+
const _aN = "accountName";
|
|
31
|
+
const _aT = "accessToken";
|
|
32
|
+
const _ai = "account_id";
|
|
33
|
+
const _c = "client";
|
|
34
|
+
const _e = "error";
|
|
35
|
+
const _eA = "emailAddress";
|
|
36
|
+
const _ex = "expiration";
|
|
37
|
+
const _h = "http";
|
|
38
|
+
const _hE = "httpError";
|
|
39
|
+
const _hH = "httpHeader";
|
|
40
|
+
const _hQ = "httpQuery";
|
|
41
|
+
const _m = "message";
|
|
42
|
+
const _mR = "maxResults";
|
|
43
|
+
const _mr = "max_result";
|
|
44
|
+
const _nT = "nextToken";
|
|
45
|
+
const _nt = "next_token";
|
|
46
|
+
const _rC = "roleCredentials";
|
|
47
|
+
const _rL = "roleList";
|
|
48
|
+
const _rN = "roleName";
|
|
49
|
+
const _rn = "role_name";
|
|
50
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso";
|
|
51
|
+
const _sAK = "secretAccessKey";
|
|
52
|
+
const _sT = "sessionToken";
|
|
53
|
+
const _xasbt = "x-amz-sso_bearer_token";
|
|
54
|
+
const n0 = "com.amazonaws.sso";
|
|
55
|
+
const schema_1 = require("@smithy/core/schema");
|
|
56
|
+
const errors_1 = require("../models/errors");
|
|
57
|
+
const SSOServiceException_1 = require("../models/SSOServiceException");
|
|
58
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
59
|
+
exports.SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
60
|
+
_s_registry.registerError(exports.SSOServiceException$, SSOServiceException_1.SSOServiceException);
|
|
61
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
62
|
+
exports.InvalidRequestException$ = [-3, n0, _IRE,
|
|
63
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
64
|
+
[_m],
|
|
65
|
+
[0]
|
|
66
|
+
];
|
|
67
|
+
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
68
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
69
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
70
|
+
[_m],
|
|
71
|
+
[0]
|
|
72
|
+
];
|
|
73
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
74
|
+
exports.TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
75
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
76
|
+
[_m],
|
|
77
|
+
[0]
|
|
78
|
+
];
|
|
79
|
+
n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
|
|
80
|
+
exports.UnauthorizedException$ = [-3, n0, _UE,
|
|
81
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
82
|
+
[_m],
|
|
83
|
+
[0]
|
|
84
|
+
];
|
|
85
|
+
n0_registry.registerError(exports.UnauthorizedException$, errors_1.UnauthorizedException);
|
|
86
|
+
exports.errorTypeRegistries = [
|
|
87
|
+
_s_registry,
|
|
88
|
+
n0_registry,
|
|
89
|
+
];
|
|
90
|
+
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
91
|
+
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
92
|
+
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
93
|
+
exports.AccountInfo$ = [3, n0, _AI,
|
|
94
|
+
0,
|
|
95
|
+
[_aI, _aN, _eA],
|
|
96
|
+
[0, 0, 0]
|
|
97
|
+
];
|
|
98
|
+
exports.GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
99
|
+
0,
|
|
100
|
+
[_rN, _aI, _aT],
|
|
101
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
|
|
102
|
+
];
|
|
103
|
+
exports.GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
104
|
+
0,
|
|
105
|
+
[_rC],
|
|
106
|
+
[[() => exports.RoleCredentials$, 0]]
|
|
107
|
+
];
|
|
108
|
+
exports.ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
109
|
+
0,
|
|
110
|
+
[_aT, _aI, _nT, _mR],
|
|
111
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
|
|
112
|
+
];
|
|
113
|
+
exports.ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
114
|
+
0,
|
|
115
|
+
[_nT, _rL],
|
|
116
|
+
[0, () => RoleListType]
|
|
117
|
+
];
|
|
118
|
+
exports.ListAccountsRequest$ = [3, n0, _LAR,
|
|
119
|
+
0,
|
|
120
|
+
[_aT, _nT, _mR],
|
|
121
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
|
|
122
|
+
];
|
|
123
|
+
exports.ListAccountsResponse$ = [3, n0, _LARi,
|
|
124
|
+
0,
|
|
125
|
+
[_nT, _aL],
|
|
126
|
+
[0, () => AccountListType]
|
|
127
|
+
];
|
|
128
|
+
exports.LogoutRequest$ = [3, n0, _LR,
|
|
129
|
+
0,
|
|
130
|
+
[_aT],
|
|
131
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
132
|
+
];
|
|
133
|
+
exports.RoleCredentials$ = [3, n0, _RC,
|
|
134
|
+
0,
|
|
135
|
+
[_aKI, _sAK, _sT, _ex],
|
|
136
|
+
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
137
|
+
];
|
|
138
|
+
exports.RoleInfo$ = [3, n0, _RI,
|
|
139
|
+
0,
|
|
140
|
+
[_rN, _aI],
|
|
141
|
+
[0, 0]
|
|
142
|
+
];
|
|
143
|
+
var __Unit = "unit";
|
|
144
|
+
var AccountListType = [1, n0, _ALT,
|
|
145
|
+
0, () => exports.AccountInfo$
|
|
146
|
+
];
|
|
147
|
+
var RoleListType = [1, n0, _RLT,
|
|
148
|
+
0, () => exports.RoleInfo$
|
|
149
|
+
];
|
|
150
|
+
exports.GetRoleCredentials$ = [9, n0, _GRC,
|
|
151
|
+
{ [_h]: ["GET", "/federation/credentials", 200] }, () => exports.GetRoleCredentialsRequest$, () => exports.GetRoleCredentialsResponse$
|
|
152
|
+
];
|
|
153
|
+
exports.ListAccountRoles$ = [9, n0, _LARis,
|
|
154
|
+
{ [_h]: ["GET", "/assignment/roles", 200] }, () => exports.ListAccountRolesRequest$, () => exports.ListAccountRolesResponse$
|
|
155
|
+
];
|
|
156
|
+
exports.ListAccounts$ = [9, n0, _LA,
|
|
157
|
+
{ [_h]: ["GET", "/assignment/accounts", 200] }, () => exports.ListAccountsRequest$, () => exports.ListAccountsResponse$
|
|
158
|
+
];
|
|
159
|
+
exports.Logout$ = [9, n0, _L,
|
|
160
|
+
{ [_h]: ["POST", "/logout", 200] }, () => exports.LogoutRequest$, () => __Unit
|
|
161
|
+
];
|
|
@@ -7,6 +7,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
7
7
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
8
8
|
import { defaultSSOHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
10
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
11
|
export const getRuntimeConfig = (config) => {
|
|
11
12
|
return {
|
|
12
13
|
apiVersion: "2019-06-10",
|
|
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
33
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
33
34
|
protocolSettings: config?.protocolSettings ?? {
|
|
34
35
|
defaultNamespace: "com.amazonaws.sso",
|
|
36
|
+
errorTypeRegistries,
|
|
35
37
|
version: "2019-06-10",
|
|
36
38
|
serviceTarget: "SWBPortalService",
|
|
37
39
|
},
|
|
@@ -52,6 +52,38 @@ const n0 = "com.amazonaws.sso";
|
|
|
52
52
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
53
53
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/errors";
|
|
54
54
|
import { SSOServiceException } from "../models/SSOServiceException";
|
|
55
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
56
|
+
export var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
57
|
+
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
58
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
59
|
+
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
60
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
61
|
+
[_m],
|
|
62
|
+
[0]
|
|
63
|
+
];
|
|
64
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
65
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
66
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
67
|
+
[_m],
|
|
68
|
+
[0]
|
|
69
|
+
];
|
|
70
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
71
|
+
export var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
72
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
73
|
+
[_m],
|
|
74
|
+
[0]
|
|
75
|
+
];
|
|
76
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
77
|
+
export var UnauthorizedException$ = [-3, n0, _UE,
|
|
78
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
79
|
+
[_m],
|
|
80
|
+
[0]
|
|
81
|
+
];
|
|
82
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
83
|
+
export const errorTypeRegistries = [
|
|
84
|
+
_s_registry,
|
|
85
|
+
n0_registry,
|
|
86
|
+
];
|
|
55
87
|
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
56
88
|
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
57
89
|
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
@@ -70,12 +102,6 @@ export var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
|
70
102
|
[_rC],
|
|
71
103
|
[[() => RoleCredentials$, 0]]
|
|
72
104
|
];
|
|
73
|
-
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
74
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
75
|
-
[_m],
|
|
76
|
-
[0]
|
|
77
|
-
];
|
|
78
|
-
TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
79
105
|
export var ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
80
106
|
0,
|
|
81
107
|
[_aT, _aI, _nT, _mR],
|
|
@@ -101,12 +127,6 @@ export var LogoutRequest$ = [3, n0, _LR,
|
|
|
101
127
|
[_aT],
|
|
102
128
|
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
103
129
|
];
|
|
104
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
105
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
106
|
-
[_m],
|
|
107
|
-
[0]
|
|
108
|
-
];
|
|
109
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
110
130
|
export var RoleCredentials$ = [3, n0, _RC,
|
|
111
131
|
0,
|
|
112
132
|
[_aKI, _sAK, _sT, _ex],
|
|
@@ -117,21 +137,7 @@ export var RoleInfo$ = [3, n0, _RI,
|
|
|
117
137
|
[_rN, _aI],
|
|
118
138
|
[0, 0]
|
|
119
139
|
];
|
|
120
|
-
export var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
121
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
122
|
-
[_m],
|
|
123
|
-
[0]
|
|
124
|
-
];
|
|
125
|
-
TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
126
|
-
export var UnauthorizedException$ = [-3, n0, _UE,
|
|
127
|
-
{ [_e]: _c, [_hE]: 401 },
|
|
128
|
-
[_m],
|
|
129
|
-
[0]
|
|
130
|
-
];
|
|
131
|
-
TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
132
140
|
var __Unit = "unit";
|
|
133
|
-
export var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
134
|
-
TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);
|
|
135
141
|
var AccountListType = [1, n0, _ALT,
|
|
136
142
|
0, () => AccountInfo$
|
|
137
143
|
];
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var SSOServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
5
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
6
|
+
export declare var TooManyRequestsException$: StaticErrorSchema;
|
|
7
|
+
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
8
|
+
/**
|
|
9
|
+
* TypeRegistry instances containing modeled errors.
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
2
14
|
export declare var AccountInfo$: StaticStructureSchema;
|
|
3
15
|
export declare var GetRoleCredentialsRequest$: StaticStructureSchema;
|
|
4
16
|
export declare var GetRoleCredentialsResponse$: StaticStructureSchema;
|
|
5
|
-
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
6
17
|
export declare var ListAccountRolesRequest$: StaticStructureSchema;
|
|
7
18
|
export declare var ListAccountRolesResponse$: StaticStructureSchema;
|
|
8
19
|
export declare var ListAccountsRequest$: StaticStructureSchema;
|
|
9
20
|
export declare var ListAccountsResponse$: StaticStructureSchema;
|
|
10
21
|
export declare var LogoutRequest$: StaticStructureSchema;
|
|
11
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
12
22
|
export declare var RoleCredentials$: StaticStructureSchema;
|
|
13
23
|
export declare var RoleInfo$: StaticStructureSchema;
|
|
14
|
-
export declare var TooManyRequestsException$: StaticErrorSchema;
|
|
15
|
-
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
16
|
-
export declare var SSOServiceException$: StaticErrorSchema;
|
|
17
24
|
export declare var GetRoleCredentials$: StaticOperationSchema;
|
|
18
25
|
export declare var ListAccountRoles$: StaticOperationSchema;
|
|
19
26
|
export declare var ListAccounts$: StaticOperationSchema;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var SSOServiceException$: StaticErrorSchema;
|
|
8
|
+
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
9
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
10
|
+
export declare var TooManyRequestsException$: StaticErrorSchema;
|
|
11
|
+
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
12
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
6
13
|
export declare var AccountInfo$: StaticStructureSchema;
|
|
7
14
|
export declare var GetRoleCredentialsRequest$: StaticStructureSchema;
|
|
8
15
|
export declare var GetRoleCredentialsResponse$: StaticStructureSchema;
|
|
9
|
-
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
10
16
|
export declare var ListAccountRolesRequest$: StaticStructureSchema;
|
|
11
17
|
export declare var ListAccountRolesResponse$: StaticStructureSchema;
|
|
12
18
|
export declare var ListAccountsRequest$: StaticStructureSchema;
|
|
13
19
|
export declare var ListAccountsResponse$: StaticStructureSchema;
|
|
14
20
|
export declare var LogoutRequest$: StaticStructureSchema;
|
|
15
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
16
21
|
export declare var RoleCredentials$: StaticStructureSchema;
|
|
17
22
|
export declare var RoleInfo$: StaticStructureSchema;
|
|
18
|
-
export declare var TooManyRequestsException$: StaticErrorSchema;
|
|
19
|
-
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
20
|
-
export declare var SSOServiceException$: StaticErrorSchema;
|
|
21
23
|
export declare var GetRoleCredentials$: StaticOperationSchema;
|
|
22
24
|
export declare var ListAccountRoles$: StaticOperationSchema;
|
|
23
25
|
export declare var ListAccounts$: StaticOperationSchema;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.989.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.9",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
26
26
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "^3.972.9",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
30
30
|
"@aws-sdk/types": "^3.973.1",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.989.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "^3.972.7",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.6",
|
|
35
|
-
"@smithy/core": "^3.
|
|
35
|
+
"@smithy/core": "^3.23.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
37
37
|
"@smithy/hash-node": "^4.2.8",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
42
42
|
"@smithy/middleware-serde": "^4.2.9",
|
|
43
43
|
"@smithy/middleware-stack": "^4.2.8",
|
|
44
44
|
"@smithy/node-config-provider": "^4.3.8",
|
|
45
|
-
"@smithy/node-http-handler": "^4.4.
|
|
45
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
46
46
|
"@smithy/protocol-http": "^5.3.8",
|
|
47
|
-
"@smithy/smithy-client": "^4.11.
|
|
47
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
48
48
|
"@smithy/types": "^4.12.0",
|
|
49
49
|
"@smithy/url-parser": "^4.2.8",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
55
55
|
"@smithy/util-endpoints": "^3.2.8",
|
|
56
56
|
"@smithy/util-middleware": "^4.2.8",
|
|
57
57
|
"@smithy/util-retry": "^4.2.8",
|
|
@@ -1496,7 +1496,8 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1496
1496
|
if (item == null) {
|
|
1497
1497
|
continue;
|
|
1498
1498
|
}
|
|
1499
|
-
const
|
|
1499
|
+
const traits = member.getMergedTraits();
|
|
1500
|
+
const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName);
|
|
1500
1501
|
const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
|
|
1501
1502
|
this.write(member, item, key);
|
|
1502
1503
|
++i;
|
|
@@ -1514,9 +1515,11 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1514
1515
|
if (v == null) {
|
|
1515
1516
|
continue;
|
|
1516
1517
|
}
|
|
1517
|
-
const
|
|
1518
|
+
const keyTraits = keySchema.getMergedTraits();
|
|
1519
|
+
const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName);
|
|
1518
1520
|
const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
|
|
1519
|
-
const
|
|
1521
|
+
const valTraits = memberSchema.getMergedTraits();
|
|
1522
|
+
const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName);
|
|
1520
1523
|
const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
|
|
1521
1524
|
this.write(keySchema, k, key);
|
|
1522
1525
|
this.write(memberSchema, v, valueKey);
|
|
@@ -1531,7 +1534,8 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1531
1534
|
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
1532
1535
|
continue;
|
|
1533
1536
|
}
|
|
1534
|
-
const
|
|
1537
|
+
const traits = member.getMergedTraits();
|
|
1538
|
+
const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct");
|
|
1535
1539
|
const key = `${prefix}${suffix}`;
|
|
1536
1540
|
this.write(member, value[memberName], key);
|
|
1537
1541
|
didWriteMember = true;
|
|
@@ -1559,9 +1563,13 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1559
1563
|
delete this.buffer;
|
|
1560
1564
|
return str;
|
|
1561
1565
|
}
|
|
1562
|
-
getKey(memberName, xmlName) {
|
|
1566
|
+
getKey(memberName, xmlName, ec2QueryName, keySource) {
|
|
1567
|
+
const { ec2, capitalizeKeys } = this.settings;
|
|
1568
|
+
if (ec2 && ec2QueryName) {
|
|
1569
|
+
return ec2QueryName;
|
|
1570
|
+
}
|
|
1563
1571
|
const key = xmlName ?? memberName;
|
|
1564
|
-
if (
|
|
1572
|
+
if (capitalizeKeys && keySource === "struct") {
|
|
1565
1573
|
return key[0].toUpperCase() + key.slice(1);
|
|
1566
1574
|
}
|
|
1567
1575
|
return key;
|
|
@@ -1718,6 +1726,7 @@ class AwsEc2QueryProtocol extends AwsQueryProtocol {
|
|
|
1718
1726
|
capitalizeKeys: true,
|
|
1719
1727
|
flattenLists: true,
|
|
1720
1728
|
serializeEmptyLists: false,
|
|
1729
|
+
ec2: true,
|
|
1721
1730
|
};
|
|
1722
1731
|
Object.assign(this.serializer.settings, ec2Settings);
|
|
1723
1732
|
}
|
|
@@ -1158,7 +1158,8 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1158
1158
|
if (item == null) {
|
|
1159
1159
|
continue;
|
|
1160
1160
|
}
|
|
1161
|
-
const
|
|
1161
|
+
const traits = member.getMergedTraits();
|
|
1162
|
+
const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName);
|
|
1162
1163
|
const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
|
|
1163
1164
|
this.write(member, item, key);
|
|
1164
1165
|
++i;
|
|
@@ -1176,9 +1177,11 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1176
1177
|
if (v == null) {
|
|
1177
1178
|
continue;
|
|
1178
1179
|
}
|
|
1179
|
-
const
|
|
1180
|
+
const keyTraits = keySchema.getMergedTraits();
|
|
1181
|
+
const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName);
|
|
1180
1182
|
const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
|
|
1181
|
-
const
|
|
1183
|
+
const valTraits = memberSchema.getMergedTraits();
|
|
1184
|
+
const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName);
|
|
1182
1185
|
const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
|
|
1183
1186
|
this.write(keySchema, k, key);
|
|
1184
1187
|
this.write(memberSchema, v, valueKey);
|
|
@@ -1193,7 +1196,8 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1193
1196
|
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
1194
1197
|
continue;
|
|
1195
1198
|
}
|
|
1196
|
-
const
|
|
1199
|
+
const traits = member.getMergedTraits();
|
|
1200
|
+
const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct");
|
|
1197
1201
|
const key = `${prefix}${suffix}`;
|
|
1198
1202
|
this.write(member, value[memberName], key);
|
|
1199
1203
|
didWriteMember = true;
|
|
@@ -1221,9 +1225,13 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1221
1225
|
delete this.buffer;
|
|
1222
1226
|
return str;
|
|
1223
1227
|
}
|
|
1224
|
-
getKey(memberName, xmlName) {
|
|
1228
|
+
getKey(memberName, xmlName, ec2QueryName, keySource) {
|
|
1229
|
+
const { ec2, capitalizeKeys } = this.settings;
|
|
1230
|
+
if (ec2 && ec2QueryName) {
|
|
1231
|
+
return ec2QueryName;
|
|
1232
|
+
}
|
|
1225
1233
|
const key = xmlName ?? memberName;
|
|
1226
|
-
if (
|
|
1234
|
+
if (capitalizeKeys && keySource === "struct") {
|
|
1227
1235
|
return key[0].toUpperCase() + key.slice(1);
|
|
1228
1236
|
}
|
|
1229
1237
|
return key;
|
|
@@ -1380,6 +1388,7 @@ class AwsEc2QueryProtocol extends AwsQueryProtocol {
|
|
|
1380
1388
|
capitalizeKeys: true,
|
|
1381
1389
|
flattenLists: true,
|
|
1382
1390
|
serializeEmptyLists: false,
|
|
1391
|
+
ec2: true,
|
|
1383
1392
|
};
|
|
1384
1393
|
Object.assign(this.serializer.settings, ec2Settings);
|
|
1385
1394
|
}
|
package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js
CHANGED
|
@@ -98,7 +98,8 @@ export class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
98
98
|
if (item == null) {
|
|
99
99
|
continue;
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const traits = member.getMergedTraits();
|
|
102
|
+
const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName);
|
|
102
103
|
const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
|
|
103
104
|
this.write(member, item, key);
|
|
104
105
|
++i;
|
|
@@ -116,9 +117,11 @@ export class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
116
117
|
if (v == null) {
|
|
117
118
|
continue;
|
|
118
119
|
}
|
|
119
|
-
const
|
|
120
|
+
const keyTraits = keySchema.getMergedTraits();
|
|
121
|
+
const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName);
|
|
120
122
|
const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
|
|
121
|
-
const
|
|
123
|
+
const valTraits = memberSchema.getMergedTraits();
|
|
124
|
+
const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName);
|
|
122
125
|
const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
|
|
123
126
|
this.write(keySchema, k, key);
|
|
124
127
|
this.write(memberSchema, v, valueKey);
|
|
@@ -133,7 +136,8 @@ export class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
133
136
|
if (value[memberName] == null && !member.isIdempotencyToken()) {
|
|
134
137
|
continue;
|
|
135
138
|
}
|
|
136
|
-
const
|
|
139
|
+
const traits = member.getMergedTraits();
|
|
140
|
+
const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct");
|
|
137
141
|
const key = `${prefix}${suffix}`;
|
|
138
142
|
this.write(member, value[memberName], key);
|
|
139
143
|
didWriteMember = true;
|
|
@@ -162,9 +166,13 @@ export class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
162
166
|
delete this.buffer;
|
|
163
167
|
return str;
|
|
164
168
|
}
|
|
165
|
-
getKey(memberName, xmlName) {
|
|
169
|
+
getKey(memberName, xmlName, ec2QueryName, keySource) {
|
|
170
|
+
const { ec2, capitalizeKeys } = this.settings;
|
|
171
|
+
if (ec2 && ec2QueryName) {
|
|
172
|
+
return ec2QueryName;
|
|
173
|
+
}
|
|
166
174
|
const key = xmlName ?? memberName;
|
|
167
|
-
if (
|
|
175
|
+
if (capitalizeKeys && keySource === "struct") {
|
|
168
176
|
return key[0].toUpperCase() + key.slice(1);
|
|
169
177
|
}
|
|
170
178
|
return key;
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class QueryShapeSerializer extends SerdeContextConfig implements
|
|
|
10
10
|
constructor(settings: QuerySerializerSettings);
|
|
11
11
|
write(schema: Schema, value: unknown, prefix?: string): void;
|
|
12
12
|
flush(): string | Uint8Array;
|
|
13
|
-
protected getKey(memberName: string, xmlName?: string): string;
|
|
13
|
+
protected getKey(memberName: string, xmlName?: string, ec2QueryName?: unknown, keySource?: string): string;
|
|
14
14
|
protected writeKey(key: string): void;
|
|
15
15
|
protected writeValue(value: string): void;
|
|
16
16
|
}
|
|
@@ -10,7 +10,12 @@ export declare class QueryShapeSerializer
|
|
|
10
10
|
constructor(settings: QuerySerializerSettings);
|
|
11
11
|
write(schema: Schema, value: unknown, prefix?: string): void;
|
|
12
12
|
flush(): string | Uint8Array;
|
|
13
|
-
protected getKey(
|
|
13
|
+
protected getKey(
|
|
14
|
+
memberName: string,
|
|
15
|
+
xmlName?: string,
|
|
16
|
+
ec2QueryName?: unknown,
|
|
17
|
+
keySource?: string
|
|
18
|
+
): string;
|
|
14
19
|
protected writeKey(key: string): void;
|
|
15
20
|
protected writeValue(value: string): void;
|
|
16
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.9",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@aws-sdk/types": "^3.973.1",
|
|
85
85
|
"@aws-sdk/xml-builder": "^3.972.4",
|
|
86
|
-
"@smithy/core": "^3.
|
|
86
|
+
"@smithy/core": "^3.23.0",
|
|
87
87
|
"@smithy/node-config-provider": "^4.3.8",
|
|
88
88
|
"@smithy/property-provider": "^4.2.8",
|
|
89
89
|
"@smithy/protocol-http": "^5.3.8",
|
|
90
90
|
"@smithy/signature-v4": "^5.3.8",
|
|
91
|
-
"@smithy/smithy-client": "^4.11.
|
|
91
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
92
92
|
"@smithy/types": "^4.12.0",
|
|
93
93
|
"@smithy/util-base64": "^4.3.0",
|
|
94
94
|
"@smithy/util-middleware": "^4.2.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.7",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.973.
|
|
29
|
+
"@aws-sdk/core": "^3.973.9",
|
|
30
30
|
"@aws-sdk/types": "^3.973.1",
|
|
31
31
|
"@smithy/property-provider": "^4.2.8",
|
|
32
32
|
"@smithy/types": "^4.12.0",
|