@cdklabs/cdk-ecs-codedeploy 0.0.120 → 0.0.122
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
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
4
4
|
import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = map({}, isSerializableHeaderValue, {
|
|
8
8
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -24,7 +24,7 @@ export const serializeAws_restJson1GetRoleCredentialsCommand = async (input, con
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const se_ListAccountRolesCommand = async (input, context) => {
|
|
28
28
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
29
|
const headers = map({}, isSerializableHeaderValue, {
|
|
30
30
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -47,7 +47,7 @@ export const serializeAws_restJson1ListAccountRolesCommand = async (input, conte
|
|
|
47
47
|
body,
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_ListAccountsCommand = async (input, context) => {
|
|
51
51
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
52
52
|
const headers = map({}, isSerializableHeaderValue, {
|
|
53
53
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -69,7 +69,7 @@ export const serializeAws_restJson1ListAccountsCommand = async (input, context)
|
|
|
69
69
|
body,
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
export const
|
|
72
|
+
export const se_LogoutCommand = async (input, context) => {
|
|
73
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
74
|
const headers = map({}, isSerializableHeaderValue, {
|
|
75
75
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -86,20 +86,20 @@ export const serializeAws_restJson1LogoutCommand = async (input, context) => {
|
|
|
86
86
|
body,
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
export const
|
|
89
|
+
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
90
90
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
91
|
-
return
|
|
91
|
+
return de_GetRoleCredentialsCommandError(output, context);
|
|
92
92
|
}
|
|
93
93
|
const contents = map({
|
|
94
94
|
$metadata: deserializeMetadata(output),
|
|
95
95
|
});
|
|
96
96
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
97
97
|
if (data.roleCredentials != null) {
|
|
98
|
-
contents.roleCredentials =
|
|
98
|
+
contents.roleCredentials = de_RoleCredentials(data.roleCredentials, context);
|
|
99
99
|
}
|
|
100
100
|
return contents;
|
|
101
101
|
};
|
|
102
|
-
const
|
|
102
|
+
const de_GetRoleCredentialsCommandError = async (output, context) => {
|
|
103
103
|
const parsedOutput = {
|
|
104
104
|
...output,
|
|
105
105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -108,16 +108,16 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
108
108
|
switch (errorCode) {
|
|
109
109
|
case "InvalidRequestException":
|
|
110
110
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
111
|
-
throw await
|
|
111
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
112
112
|
case "ResourceNotFoundException":
|
|
113
113
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
114
|
-
throw await
|
|
114
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
115
115
|
case "TooManyRequestsException":
|
|
116
116
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
117
|
-
throw await
|
|
117
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
118
118
|
case "UnauthorizedException":
|
|
119
119
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
121
121
|
default:
|
|
122
122
|
const parsedBody = parsedOutput.body;
|
|
123
123
|
throwDefaultError({
|
|
@@ -128,9 +128,9 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const de_ListAccountRolesCommand = async (output, context) => {
|
|
132
132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
133
|
-
return
|
|
133
|
+
return de_ListAccountRolesCommandError(output, context);
|
|
134
134
|
}
|
|
135
135
|
const contents = map({
|
|
136
136
|
$metadata: deserializeMetadata(output),
|
|
@@ -140,11 +140,11 @@ export const deserializeAws_restJson1ListAccountRolesCommand = async (output, co
|
|
|
140
140
|
contents.nextToken = __expectString(data.nextToken);
|
|
141
141
|
}
|
|
142
142
|
if (data.roleList != null) {
|
|
143
|
-
contents.roleList =
|
|
143
|
+
contents.roleList = de_RoleListType(data.roleList, context);
|
|
144
144
|
}
|
|
145
145
|
return contents;
|
|
146
146
|
};
|
|
147
|
-
const
|
|
147
|
+
const de_ListAccountRolesCommandError = async (output, context) => {
|
|
148
148
|
const parsedOutput = {
|
|
149
149
|
...output,
|
|
150
150
|
body: await parseErrorBody(output.body, context),
|
|
@@ -153,16 +153,16 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
153
153
|
switch (errorCode) {
|
|
154
154
|
case "InvalidRequestException":
|
|
155
155
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
156
|
-
throw await
|
|
156
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
157
157
|
case "ResourceNotFoundException":
|
|
158
158
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
159
|
-
throw await
|
|
159
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
160
160
|
case "TooManyRequestsException":
|
|
161
161
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
162
|
-
throw await
|
|
162
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
163
163
|
case "UnauthorizedException":
|
|
164
164
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
166
166
|
default:
|
|
167
167
|
const parsedBody = parsedOutput.body;
|
|
168
168
|
throwDefaultError({
|
|
@@ -173,23 +173,23 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const de_ListAccountsCommand = async (output, context) => {
|
|
177
177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
178
|
-
return
|
|
178
|
+
return de_ListAccountsCommandError(output, context);
|
|
179
179
|
}
|
|
180
180
|
const contents = map({
|
|
181
181
|
$metadata: deserializeMetadata(output),
|
|
182
182
|
});
|
|
183
183
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
184
184
|
if (data.accountList != null) {
|
|
185
|
-
contents.accountList =
|
|
185
|
+
contents.accountList = de_AccountListType(data.accountList, context);
|
|
186
186
|
}
|
|
187
187
|
if (data.nextToken != null) {
|
|
188
188
|
contents.nextToken = __expectString(data.nextToken);
|
|
189
189
|
}
|
|
190
190
|
return contents;
|
|
191
191
|
};
|
|
192
|
-
const
|
|
192
|
+
const de_ListAccountsCommandError = async (output, context) => {
|
|
193
193
|
const parsedOutput = {
|
|
194
194
|
...output,
|
|
195
195
|
body: await parseErrorBody(output.body, context),
|
|
@@ -198,16 +198,16 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
198
198
|
switch (errorCode) {
|
|
199
199
|
case "InvalidRequestException":
|
|
200
200
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
201
|
-
throw await
|
|
201
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
202
202
|
case "ResourceNotFoundException":
|
|
203
203
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
204
|
-
throw await
|
|
204
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
205
205
|
case "TooManyRequestsException":
|
|
206
206
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
208
208
|
case "UnauthorizedException":
|
|
209
209
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
211
211
|
default:
|
|
212
212
|
const parsedBody = parsedOutput.body;
|
|
213
213
|
throwDefaultError({
|
|
@@ -218,9 +218,9 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
|
-
export const
|
|
221
|
+
export const de_LogoutCommand = async (output, context) => {
|
|
222
222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
223
|
-
return
|
|
223
|
+
return de_LogoutCommandError(output, context);
|
|
224
224
|
}
|
|
225
225
|
const contents = map({
|
|
226
226
|
$metadata: deserializeMetadata(output),
|
|
@@ -228,7 +228,7 @@ export const deserializeAws_restJson1LogoutCommand = async (output, context) =>
|
|
|
228
228
|
await collectBody(output.body, context);
|
|
229
229
|
return contents;
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_LogoutCommandError = async (output, context) => {
|
|
232
232
|
const parsedOutput = {
|
|
233
233
|
...output,
|
|
234
234
|
body: await parseErrorBody(output.body, context),
|
|
@@ -237,13 +237,13 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
237
237
|
switch (errorCode) {
|
|
238
238
|
case "InvalidRequestException":
|
|
239
239
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
241
241
|
case "TooManyRequestsException":
|
|
242
242
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
244
244
|
case "UnauthorizedException":
|
|
245
245
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
247
247
|
default:
|
|
248
248
|
const parsedBody = parsedOutput.body;
|
|
249
249
|
throwDefaultError({
|
|
@@ -255,7 +255,7 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
const map = __map;
|
|
258
|
-
const
|
|
258
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
259
259
|
const contents = map({});
|
|
260
260
|
const data = parsedOutput.body;
|
|
261
261
|
if (data.message != null) {
|
|
@@ -267,7 +267,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
267
267
|
});
|
|
268
268
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
269
269
|
};
|
|
270
|
-
const
|
|
270
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
271
271
|
const contents = map({});
|
|
272
272
|
const data = parsedOutput.body;
|
|
273
273
|
if (data.message != null) {
|
|
@@ -279,7 +279,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
279
279
|
});
|
|
280
280
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
281
281
|
};
|
|
282
|
-
const
|
|
282
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
283
283
|
const contents = map({});
|
|
284
284
|
const data = parsedOutput.body;
|
|
285
285
|
if (data.message != null) {
|
|
@@ -291,7 +291,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
291
291
|
});
|
|
292
292
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
293
293
|
};
|
|
294
|
-
const
|
|
294
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
295
295
|
const contents = map({});
|
|
296
296
|
const data = parsedOutput.body;
|
|
297
297
|
if (data.message != null) {
|
|
@@ -303,25 +303,25 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
303
303
|
});
|
|
304
304
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
305
305
|
};
|
|
306
|
-
const
|
|
306
|
+
const de_AccountInfo = (output, context) => {
|
|
307
307
|
return {
|
|
308
308
|
accountId: __expectString(output.accountId),
|
|
309
309
|
accountName: __expectString(output.accountName),
|
|
310
310
|
emailAddress: __expectString(output.emailAddress),
|
|
311
311
|
};
|
|
312
312
|
};
|
|
313
|
-
const
|
|
313
|
+
const de_AccountListType = (output, context) => {
|
|
314
314
|
const retVal = (output || [])
|
|
315
315
|
.filter((e) => e != null)
|
|
316
316
|
.map((entry) => {
|
|
317
317
|
if (entry === null) {
|
|
318
318
|
return null;
|
|
319
319
|
}
|
|
320
|
-
return
|
|
320
|
+
return de_AccountInfo(entry, context);
|
|
321
321
|
});
|
|
322
322
|
return retVal;
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const de_RoleCredentials = (output, context) => {
|
|
325
325
|
return {
|
|
326
326
|
accessKeyId: __expectString(output.accessKeyId),
|
|
327
327
|
expiration: __expectLong(output.expiration),
|
|
@@ -329,20 +329,20 @@ const deserializeAws_restJson1RoleCredentials = (output, context) => {
|
|
|
329
329
|
sessionToken: __expectString(output.sessionToken),
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
|
-
const
|
|
332
|
+
const de_RoleInfo = (output, context) => {
|
|
333
333
|
return {
|
|
334
334
|
accountId: __expectString(output.accountId),
|
|
335
335
|
roleName: __expectString(output.roleName),
|
|
336
336
|
};
|
|
337
337
|
};
|
|
338
|
-
const
|
|
338
|
+
const de_RoleListType = (output, context) => {
|
|
339
339
|
const retVal = (output || [])
|
|
340
340
|
.filter((e) => e != null)
|
|
341
341
|
.map((entry) => {
|
|
342
342
|
if (entry === null) {
|
|
343
343
|
return null;
|
|
344
344
|
}
|
|
345
|
-
return
|
|
345
|
+
return de_RoleInfo(entry, context);
|
|
346
346
|
});
|
|
347
347
|
return retVal;
|
|
348
348
|
};
|
|
@@ -4,11 +4,35 @@ import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from
|
|
|
4
4
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
5
5
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
6
6
|
import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
7
|
+
/**
|
|
8
|
+
* serializeAws_restJson1GetRoleCredentialsCommand
|
|
9
|
+
*/
|
|
10
|
+
export declare const se_GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
+
/**
|
|
12
|
+
* serializeAws_restJson1ListAccountRolesCommand
|
|
13
|
+
*/
|
|
14
|
+
export declare const se_ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
/**
|
|
16
|
+
* serializeAws_restJson1ListAccountsCommand
|
|
17
|
+
*/
|
|
18
|
+
export declare const se_ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* serializeAws_restJson1LogoutCommand
|
|
21
|
+
*/
|
|
22
|
+
export declare const se_LogoutCommand: (input: LogoutCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* deserializeAws_restJson1GetRoleCredentialsCommand
|
|
25
|
+
*/
|
|
26
|
+
export declare const de_GetRoleCredentialsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRoleCredentialsCommandOutput>;
|
|
27
|
+
/**
|
|
28
|
+
* deserializeAws_restJson1ListAccountRolesCommand
|
|
29
|
+
*/
|
|
30
|
+
export declare const de_ListAccountRolesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountRolesCommandOutput>;
|
|
31
|
+
/**
|
|
32
|
+
* deserializeAws_restJson1ListAccountsCommand
|
|
33
|
+
*/
|
|
34
|
+
export declare const de_ListAccountsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountsCommandOutput>;
|
|
35
|
+
/**
|
|
36
|
+
* deserializeAws_restJson1LogoutCommand
|
|
37
|
+
*/
|
|
38
|
+
export declare const de_LogoutCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LogoutCommandOutput>;
|
|
@@ -19,35 +19,35 @@ import {
|
|
|
19
19
|
LogoutCommandInput,
|
|
20
20
|
LogoutCommandOutput,
|
|
21
21
|
} from "../commands/LogoutCommand";
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const se_GetRoleCredentialsCommand: (
|
|
23
23
|
input: GetRoleCredentialsCommandInput,
|
|
24
24
|
context: __SerdeContext
|
|
25
25
|
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const se_ListAccountRolesCommand: (
|
|
27
27
|
input: ListAccountRolesCommandInput,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const se_ListAccountsCommand: (
|
|
31
31
|
input: ListAccountsCommandInput,
|
|
32
32
|
context: __SerdeContext
|
|
33
33
|
) => Promise<__HttpRequest>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const se_LogoutCommand: (
|
|
35
35
|
input: LogoutCommandInput,
|
|
36
36
|
context: __SerdeContext
|
|
37
37
|
) => Promise<__HttpRequest>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const de_GetRoleCredentialsCommand: (
|
|
39
39
|
output: __HttpResponse,
|
|
40
40
|
context: __SerdeContext
|
|
41
41
|
) => Promise<GetRoleCredentialsCommandOutput>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const de_ListAccountRolesCommand: (
|
|
43
43
|
output: __HttpResponse,
|
|
44
44
|
context: __SerdeContext
|
|
45
45
|
) => Promise<ListAccountRolesCommandOutput>;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const de_ListAccountsCommand: (
|
|
47
47
|
output: __HttpResponse,
|
|
48
48
|
context: __SerdeContext
|
|
49
49
|
) => Promise<ListAccountsCommandOutput>;
|
|
50
|
-
export declare const
|
|
50
|
+
export declare const de_LogoutCommand: (
|
|
51
51
|
output: __HttpResponse,
|
|
52
52
|
context: __SerdeContext
|
|
53
53
|
) => Promise<LogoutCommandOutput>;
|
|
@@ -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.309.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.306.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.306.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.306.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
41
41
|
"@aws-sdk/types": "3.306.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.306.0",
|
|
43
43
|
"@aws-sdk/util-base64": "3.303.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
48
48
|
"@aws-sdk/util-endpoints": "3.306.0",
|
|
49
49
|
"@aws-sdk/util-retry": "3.306.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
@@ -36,10 +36,10 @@ class CreateTokenCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_CreateTokenCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_CreateTokenCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateTokenCommand = CreateTokenCommand;
|
|
@@ -36,10 +36,10 @@ class RegisterClientCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_RegisterClientCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_RegisterClientCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.RegisterClientCommand = RegisterClientCommand;
|
package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js
CHANGED
|
@@ -36,10 +36,10 @@ class StartDeviceAuthorizationCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_StartDeviceAuthorizationCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_StartDeviceAuthorizationCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
|