@cdklabs/cdk-ecs-codedeploy 0.0.119 → 0.0.121
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/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetApplicationsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetDeploymentsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ContinueDeploymentCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateApplicationCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentConfigCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/CreateDeploymentGroupCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentConfigCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteDeploymentGroupCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetApplicationRevisionCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentConfigCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentGroupCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentInstanceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetDeploymentTargetCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/GetOnPremisesInstanceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationRevisionsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentConfigsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentGroupsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentInstancesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentTargetsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListDeploymentsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListOnPremisesInstancesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterApplicationRevisionCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/StopDeploymentCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/commands/UpdateDeploymentGroupCommand.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/protocols/Aws_json1_1.js +1471 -1615
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/AddTagsToOnPremisesInstancesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationRevisionsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetApplicationsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentGroupsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentInstancesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentTargetsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetDeploymentsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/BatchGetOnPremisesInstancesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ContinueDeploymentCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentConfigCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/CreateDeploymentGroupCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentConfigCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteDeploymentGroupCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteGitHubAccountTokenCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeleteResourcesByExternalIdCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/DeregisterOnPremisesInstanceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetApplicationRevisionCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentConfigCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentGroupCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentInstanceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetDeploymentTargetCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/GetOnPremisesInstanceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationRevisionsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentConfigsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentGroupsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentInstancesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentTargetsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListDeploymentsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListGitHubAccountTokenNamesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListOnPremisesInstancesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/PutLifecycleEventHookExecutionStatusCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterApplicationRevisionCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RegisterOnPremisesInstanceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/RemoveTagsFromOnPremisesInstancesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/SkipWaitTimeForInstanceTerminationCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/StopDeploymentCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/TagResourceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UntagResourceCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateApplicationCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/commands/UpdateDeploymentGroupCommand.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +1375 -1519
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/protocols/Aws_json1_1.d.ts +376 -94
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +94 -94
- package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +54 -54
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +45 -45
- package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +32 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +8 -8
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +54 -54
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +47 -47
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +24 -6
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -6
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +153 -153
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +3 -3
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +136 -136
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +64 -16
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +16 -16
- package/node_modules/@aws-sdk/client-sts/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js +44 -20
- package/node_modules/@aws-sdk/smithy-client/dist-es/object-mapping.js +42 -19
- package/node_modules/@aws-sdk/smithy-client/dist-types/object-mapping.d.ts +28 -2
- package/node_modules/@aws-sdk/smithy-client/dist-types/ts3.4/object-mapping.d.ts +16 -4
- package/node_modules/@aws-sdk/smithy-client/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-defaults-mode-node/package.json +2 -2
- package/package.json +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SSOServiceException_1 = require("../models/SSOServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = map({}, isSerializableHeaderValue, {
|
|
11
11
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -27,8 +27,8 @@ const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) =
|
|
|
27
27
|
body,
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
31
|
-
const
|
|
30
|
+
exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand;
|
|
31
|
+
const se_ListAccountRolesCommand = async (input, context) => {
|
|
32
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
33
|
const headers = map({}, isSerializableHeaderValue, {
|
|
34
34
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -51,8 +51,8 @@ const serializeAws_restJson1ListAccountRolesCommand = async (input, context) =>
|
|
|
51
51
|
body,
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
exports.
|
|
55
|
-
const
|
|
54
|
+
exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand;
|
|
55
|
+
const se_ListAccountsCommand = async (input, context) => {
|
|
56
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
57
|
const headers = map({}, isSerializableHeaderValue, {
|
|
58
58
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -74,8 +74,8 @@ const serializeAws_restJson1ListAccountsCommand = async (input, context) => {
|
|
|
74
74
|
body,
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_ListAccountsCommand = se_ListAccountsCommand;
|
|
78
|
+
const se_LogoutCommand = async (input, context) => {
|
|
79
79
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
80
80
|
const headers = map({}, isSerializableHeaderValue, {
|
|
81
81
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -92,22 +92,22 @@ const serializeAws_restJson1LogoutCommand = async (input, context) => {
|
|
|
92
92
|
body,
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
exports.
|
|
96
|
-
const
|
|
95
|
+
exports.se_LogoutCommand = se_LogoutCommand;
|
|
96
|
+
const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
97
97
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
98
|
-
return
|
|
98
|
+
return de_GetRoleCredentialsCommandError(output, context);
|
|
99
99
|
}
|
|
100
100
|
const contents = map({
|
|
101
101
|
$metadata: deserializeMetadata(output),
|
|
102
102
|
});
|
|
103
103
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
104
104
|
if (data.roleCredentials != null) {
|
|
105
|
-
contents.roleCredentials =
|
|
105
|
+
contents.roleCredentials = de_RoleCredentials(data.roleCredentials, context);
|
|
106
106
|
}
|
|
107
107
|
return contents;
|
|
108
108
|
};
|
|
109
|
-
exports.
|
|
110
|
-
const
|
|
109
|
+
exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand;
|
|
110
|
+
const de_GetRoleCredentialsCommandError = async (output, context) => {
|
|
111
111
|
const parsedOutput = {
|
|
112
112
|
...output,
|
|
113
113
|
body: await parseErrorBody(output.body, context),
|
|
@@ -116,16 +116,16 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
116
116
|
switch (errorCode) {
|
|
117
117
|
case "InvalidRequestException":
|
|
118
118
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
119
|
-
throw await
|
|
119
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
120
120
|
case "ResourceNotFoundException":
|
|
121
121
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
122
|
-
throw await
|
|
122
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
123
123
|
case "TooManyRequestsException":
|
|
124
124
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
125
|
-
throw await
|
|
125
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
126
126
|
case "UnauthorizedException":
|
|
127
127
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
128
|
-
throw await
|
|
128
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
129
129
|
default:
|
|
130
130
|
const parsedBody = parsedOutput.body;
|
|
131
131
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -136,9 +136,9 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
const
|
|
139
|
+
const de_ListAccountRolesCommand = async (output, context) => {
|
|
140
140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
141
|
-
return
|
|
141
|
+
return de_ListAccountRolesCommandError(output, context);
|
|
142
142
|
}
|
|
143
143
|
const contents = map({
|
|
144
144
|
$metadata: deserializeMetadata(output),
|
|
@@ -148,12 +148,12 @@ const deserializeAws_restJson1ListAccountRolesCommand = async (output, context)
|
|
|
148
148
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
149
149
|
}
|
|
150
150
|
if (data.roleList != null) {
|
|
151
|
-
contents.roleList =
|
|
151
|
+
contents.roleList = de_RoleListType(data.roleList, context);
|
|
152
152
|
}
|
|
153
153
|
return contents;
|
|
154
154
|
};
|
|
155
|
-
exports.
|
|
156
|
-
const
|
|
155
|
+
exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand;
|
|
156
|
+
const de_ListAccountRolesCommandError = async (output, context) => {
|
|
157
157
|
const parsedOutput = {
|
|
158
158
|
...output,
|
|
159
159
|
body: await parseErrorBody(output.body, context),
|
|
@@ -162,16 +162,16 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
162
162
|
switch (errorCode) {
|
|
163
163
|
case "InvalidRequestException":
|
|
164
164
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
166
166
|
case "ResourceNotFoundException":
|
|
167
167
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
168
|
-
throw await
|
|
168
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
169
169
|
case "TooManyRequestsException":
|
|
170
170
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
171
|
-
throw await
|
|
171
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
172
172
|
case "UnauthorizedException":
|
|
173
173
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
175
175
|
default:
|
|
176
176
|
const parsedBody = parsedOutput.body;
|
|
177
177
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -182,24 +182,24 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
const
|
|
185
|
+
const de_ListAccountsCommand = async (output, context) => {
|
|
186
186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
187
|
-
return
|
|
187
|
+
return de_ListAccountsCommandError(output, context);
|
|
188
188
|
}
|
|
189
189
|
const contents = map({
|
|
190
190
|
$metadata: deserializeMetadata(output),
|
|
191
191
|
});
|
|
192
192
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
193
193
|
if (data.accountList != null) {
|
|
194
|
-
contents.accountList =
|
|
194
|
+
contents.accountList = de_AccountListType(data.accountList, context);
|
|
195
195
|
}
|
|
196
196
|
if (data.nextToken != null) {
|
|
197
197
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
198
198
|
}
|
|
199
199
|
return contents;
|
|
200
200
|
};
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
201
|
+
exports.de_ListAccountsCommand = de_ListAccountsCommand;
|
|
202
|
+
const de_ListAccountsCommandError = async (output, context) => {
|
|
203
203
|
const parsedOutput = {
|
|
204
204
|
...output,
|
|
205
205
|
body: await parseErrorBody(output.body, context),
|
|
@@ -208,16 +208,16 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
208
208
|
switch (errorCode) {
|
|
209
209
|
case "InvalidRequestException":
|
|
210
210
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
211
|
-
throw await
|
|
211
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
212
212
|
case "ResourceNotFoundException":
|
|
213
213
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
214
|
-
throw await
|
|
214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
215
215
|
case "TooManyRequestsException":
|
|
216
216
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
217
|
-
throw await
|
|
217
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
218
218
|
case "UnauthorizedException":
|
|
219
219
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
220
|
-
throw await
|
|
220
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
221
221
|
default:
|
|
222
222
|
const parsedBody = parsedOutput.body;
|
|
223
223
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -228,9 +228,9 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_LogoutCommand = async (output, context) => {
|
|
232
232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
233
|
-
return
|
|
233
|
+
return de_LogoutCommandError(output, context);
|
|
234
234
|
}
|
|
235
235
|
const contents = map({
|
|
236
236
|
$metadata: deserializeMetadata(output),
|
|
@@ -238,8 +238,8 @@ const deserializeAws_restJson1LogoutCommand = async (output, context) => {
|
|
|
238
238
|
await collectBody(output.body, context);
|
|
239
239
|
return contents;
|
|
240
240
|
};
|
|
241
|
-
exports.
|
|
242
|
-
const
|
|
241
|
+
exports.de_LogoutCommand = de_LogoutCommand;
|
|
242
|
+
const de_LogoutCommandError = async (output, context) => {
|
|
243
243
|
const parsedOutput = {
|
|
244
244
|
...output,
|
|
245
245
|
body: await parseErrorBody(output.body, context),
|
|
@@ -248,13 +248,13 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
248
248
|
switch (errorCode) {
|
|
249
249
|
case "InvalidRequestException":
|
|
250
250
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
251
|
-
throw await
|
|
251
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
252
252
|
case "TooManyRequestsException":
|
|
253
253
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
254
|
-
throw await
|
|
254
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
255
255
|
case "UnauthorizedException":
|
|
256
256
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
257
|
-
throw await
|
|
257
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
258
258
|
default:
|
|
259
259
|
const parsedBody = parsedOutput.body;
|
|
260
260
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -266,7 +266,7 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
const map = smithy_client_1.map;
|
|
269
|
-
const
|
|
269
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
270
270
|
const contents = map({});
|
|
271
271
|
const data = parsedOutput.body;
|
|
272
272
|
if (data.message != null) {
|
|
@@ -278,7 +278,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
278
278
|
});
|
|
279
279
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
280
280
|
};
|
|
281
|
-
const
|
|
281
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
282
282
|
const contents = map({});
|
|
283
283
|
const data = parsedOutput.body;
|
|
284
284
|
if (data.message != null) {
|
|
@@ -290,7 +290,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
290
290
|
});
|
|
291
291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
292
292
|
};
|
|
293
|
-
const
|
|
293
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
294
294
|
const contents = map({});
|
|
295
295
|
const data = parsedOutput.body;
|
|
296
296
|
if (data.message != null) {
|
|
@@ -302,7 +302,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
302
302
|
});
|
|
303
303
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
304
304
|
};
|
|
305
|
-
const
|
|
305
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
306
306
|
const contents = map({});
|
|
307
307
|
const data = parsedOutput.body;
|
|
308
308
|
if (data.message != null) {
|
|
@@ -314,25 +314,25 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
314
314
|
});
|
|
315
315
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
316
316
|
};
|
|
317
|
-
const
|
|
317
|
+
const de_AccountInfo = (output, context) => {
|
|
318
318
|
return {
|
|
319
319
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
320
320
|
accountName: (0, smithy_client_1.expectString)(output.accountName),
|
|
321
321
|
emailAddress: (0, smithy_client_1.expectString)(output.emailAddress),
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const de_AccountListType = (output, context) => {
|
|
325
325
|
const retVal = (output || [])
|
|
326
326
|
.filter((e) => e != null)
|
|
327
327
|
.map((entry) => {
|
|
328
328
|
if (entry === null) {
|
|
329
329
|
return null;
|
|
330
330
|
}
|
|
331
|
-
return
|
|
331
|
+
return de_AccountInfo(entry, context);
|
|
332
332
|
});
|
|
333
333
|
return retVal;
|
|
334
334
|
};
|
|
335
|
-
const
|
|
335
|
+
const de_RoleCredentials = (output, context) => {
|
|
336
336
|
return {
|
|
337
337
|
accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId),
|
|
338
338
|
expiration: (0, smithy_client_1.expectLong)(output.expiration),
|
|
@@ -340,20 +340,20 @@ const deserializeAws_restJson1RoleCredentials = (output, context) => {
|
|
|
340
340
|
sessionToken: (0, smithy_client_1.expectString)(output.sessionToken),
|
|
341
341
|
};
|
|
342
342
|
};
|
|
343
|
-
const
|
|
343
|
+
const de_RoleInfo = (output, context) => {
|
|
344
344
|
return {
|
|
345
345
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
346
346
|
roleName: (0, smithy_client_1.expectString)(output.roleName),
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
|
-
const
|
|
349
|
+
const de_RoleListType = (output, context) => {
|
|
350
350
|
const retVal = (output || [])
|
|
351
351
|
.filter((e) => e != null)
|
|
352
352
|
.map((entry) => {
|
|
353
353
|
if (entry === null) {
|
|
354
354
|
return null;
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return de_RoleInfo(entry, context);
|
|
357
357
|
});
|
|
358
358
|
return retVal;
|
|
359
359
|
};
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetRoleCredentialsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class GetRoleCredentialsCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_GetRoleCredentialsCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_GetRoleCredentialsCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ListAccountRolesRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_ListAccountRolesCommand, se_ListAccountRolesCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListAccountRolesCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class ListAccountRolesCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_ListAccountRolesCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_ListAccountRolesCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ListAccountsRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_ListAccountsCommand, se_ListAccountsCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListAccountsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class ListAccountsCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_ListAccountsCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_ListAccountsCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_LogoutCommand, se_LogoutCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class LogoutCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class LogoutCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_LogoutCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_LogoutCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|