@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartDeviceAuthorizationCommand = exports.de_RegisterClientCommand = exports.de_CreateTokenCommand = exports.se_StartDeviceAuthorizationCommand = exports.se_RegisterClientCommand = exports.se_CreateTokenCommand = 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 SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateTokenCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -20,7 +20,7 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
20
20
|
...(input.grantType != null && { grantType: input.grantType }),
|
|
21
21
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
22
22
|
...(input.refreshToken != null && { refreshToken: input.refreshToken }),
|
|
23
|
-
...(input.scope != null && { scope:
|
|
23
|
+
...(input.scope != null && { scope: se_Scopes(input.scope, context) }),
|
|
24
24
|
});
|
|
25
25
|
return new protocol_http_1.HttpRequest({
|
|
26
26
|
protocol,
|
|
@@ -32,8 +32,8 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
32
32
|
body,
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
36
|
-
const
|
|
35
|
+
exports.se_CreateTokenCommand = se_CreateTokenCommand;
|
|
36
|
+
const se_RegisterClientCommand = async (input, context) => {
|
|
37
37
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
38
38
|
const headers = {
|
|
39
39
|
"content-type": "application/json",
|
|
@@ -43,7 +43,7 @@ const serializeAws_restJson1RegisterClientCommand = async (input, context) => {
|
|
|
43
43
|
body = JSON.stringify({
|
|
44
44
|
...(input.clientName != null && { clientName: input.clientName }),
|
|
45
45
|
...(input.clientType != null && { clientType: input.clientType }),
|
|
46
|
-
...(input.scopes != null && { scopes:
|
|
46
|
+
...(input.scopes != null && { scopes: se_Scopes(input.scopes, context) }),
|
|
47
47
|
});
|
|
48
48
|
return new protocol_http_1.HttpRequest({
|
|
49
49
|
protocol,
|
|
@@ -55,8 +55,8 @@ const serializeAws_restJson1RegisterClientCommand = async (input, context) => {
|
|
|
55
55
|
body,
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_RegisterClientCommand = se_RegisterClientCommand;
|
|
59
|
+
const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
|
60
60
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/json",
|
|
@@ -78,10 +78,10 @@ const serializeAws_restJson1StartDeviceAuthorizationCommand = async (input, cont
|
|
|
78
78
|
body,
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
exports.
|
|
82
|
-
const
|
|
81
|
+
exports.se_StartDeviceAuthorizationCommand = se_StartDeviceAuthorizationCommand;
|
|
82
|
+
const de_CreateTokenCommand = async (output, context) => {
|
|
83
83
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
84
|
-
return
|
|
84
|
+
return de_CreateTokenCommandError(output, context);
|
|
85
85
|
}
|
|
86
86
|
const contents = map({
|
|
87
87
|
$metadata: deserializeMetadata(output),
|
|
@@ -104,8 +104,8 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
|
|
|
104
104
|
}
|
|
105
105
|
return contents;
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.de_CreateTokenCommand = de_CreateTokenCommand;
|
|
108
|
+
const de_CreateTokenCommandError = async (output, context) => {
|
|
109
109
|
const parsedOutput = {
|
|
110
110
|
...output,
|
|
111
111
|
body: await parseErrorBody(output.body, context),
|
|
@@ -114,37 +114,37 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
114
114
|
switch (errorCode) {
|
|
115
115
|
case "AccessDeniedException":
|
|
116
116
|
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
117
|
-
throw await
|
|
117
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
118
118
|
case "AuthorizationPendingException":
|
|
119
119
|
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
121
121
|
case "ExpiredTokenException":
|
|
122
122
|
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
124
124
|
case "InternalServerException":
|
|
125
125
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
127
127
|
case "InvalidClientException":
|
|
128
128
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
129
|
-
throw await
|
|
129
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
130
130
|
case "InvalidGrantException":
|
|
131
131
|
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
132
|
-
throw await
|
|
132
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
133
133
|
case "InvalidRequestException":
|
|
134
134
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
135
|
-
throw await
|
|
135
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
136
136
|
case "InvalidScopeException":
|
|
137
137
|
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
138
|
-
throw await
|
|
138
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
139
139
|
case "SlowDownException":
|
|
140
140
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
141
|
-
throw await
|
|
141
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
142
142
|
case "UnauthorizedClientException":
|
|
143
143
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
144
|
-
throw await
|
|
144
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
145
145
|
case "UnsupportedGrantTypeException":
|
|
146
146
|
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
147
|
-
throw await
|
|
147
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
148
148
|
default:
|
|
149
149
|
const parsedBody = parsedOutput.body;
|
|
150
150
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -155,9 +155,9 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const de_RegisterClientCommand = async (output, context) => {
|
|
159
159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
160
|
-
return
|
|
160
|
+
return de_RegisterClientCommandError(output, context);
|
|
161
161
|
}
|
|
162
162
|
const contents = map({
|
|
163
163
|
$metadata: deserializeMetadata(output),
|
|
@@ -183,8 +183,8 @@ const deserializeAws_restJson1RegisterClientCommand = async (output, context) =>
|
|
|
183
183
|
}
|
|
184
184
|
return contents;
|
|
185
185
|
};
|
|
186
|
-
exports.
|
|
187
|
-
const
|
|
186
|
+
exports.de_RegisterClientCommand = de_RegisterClientCommand;
|
|
187
|
+
const de_RegisterClientCommandError = async (output, context) => {
|
|
188
188
|
const parsedOutput = {
|
|
189
189
|
...output,
|
|
190
190
|
body: await parseErrorBody(output.body, context),
|
|
@@ -193,16 +193,16 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
193
193
|
switch (errorCode) {
|
|
194
194
|
case "InternalServerException":
|
|
195
195
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
196
|
-
throw await
|
|
196
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
197
197
|
case "InvalidClientMetadataException":
|
|
198
198
|
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
199
|
-
throw await
|
|
199
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
200
200
|
case "InvalidRequestException":
|
|
201
201
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
202
|
-
throw await
|
|
202
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
203
203
|
case "InvalidScopeException":
|
|
204
204
|
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
205
|
-
throw await
|
|
205
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
206
206
|
default:
|
|
207
207
|
const parsedBody = parsedOutput.body;
|
|
208
208
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -213,9 +213,9 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
const
|
|
216
|
+
const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
|
217
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
218
|
-
return
|
|
218
|
+
return de_StartDeviceAuthorizationCommandError(output, context);
|
|
219
219
|
}
|
|
220
220
|
const contents = map({
|
|
221
221
|
$metadata: deserializeMetadata(output),
|
|
@@ -241,8 +241,8 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommand = async (output, c
|
|
|
241
241
|
}
|
|
242
242
|
return contents;
|
|
243
243
|
};
|
|
244
|
-
exports.
|
|
245
|
-
const
|
|
244
|
+
exports.de_StartDeviceAuthorizationCommand = de_StartDeviceAuthorizationCommand;
|
|
245
|
+
const de_StartDeviceAuthorizationCommandError = async (output, context) => {
|
|
246
246
|
const parsedOutput = {
|
|
247
247
|
...output,
|
|
248
248
|
body: await parseErrorBody(output.body, context),
|
|
@@ -251,19 +251,19 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
251
251
|
switch (errorCode) {
|
|
252
252
|
case "InternalServerException":
|
|
253
253
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
254
|
-
throw await
|
|
254
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
255
255
|
case "InvalidClientException":
|
|
256
256
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
257
|
-
throw await
|
|
257
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
258
258
|
case "InvalidRequestException":
|
|
259
259
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
260
|
-
throw await
|
|
260
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
261
261
|
case "SlowDownException":
|
|
262
262
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
263
|
-
throw await
|
|
263
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
264
264
|
case "UnauthorizedClientException":
|
|
265
265
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
266
|
-
throw await
|
|
266
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
267
267
|
default:
|
|
268
268
|
const parsedBody = parsedOutput.body;
|
|
269
269
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -275,7 +275,7 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
const map = smithy_client_1.map;
|
|
278
|
-
const
|
|
278
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
279
279
|
const contents = map({});
|
|
280
280
|
const data = parsedOutput.body;
|
|
281
281
|
if (data.error != null) {
|
|
@@ -290,7 +290,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
290
290
|
});
|
|
291
291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
292
292
|
};
|
|
293
|
-
const
|
|
293
|
+
const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
|
294
294
|
const contents = map({});
|
|
295
295
|
const data = parsedOutput.body;
|
|
296
296
|
if (data.error != null) {
|
|
@@ -305,7 +305,7 @@ const deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (par
|
|
|
305
305
|
});
|
|
306
306
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
307
307
|
};
|
|
308
|
-
const
|
|
308
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
309
309
|
const contents = map({});
|
|
310
310
|
const data = parsedOutput.body;
|
|
311
311
|
if (data.error != null) {
|
|
@@ -320,7 +320,7 @@ const deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutpu
|
|
|
320
320
|
});
|
|
321
321
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
322
322
|
};
|
|
323
|
-
const
|
|
323
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
324
324
|
const contents = map({});
|
|
325
325
|
const data = parsedOutput.body;
|
|
326
326
|
if (data.error != null) {
|
|
@@ -335,7 +335,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
335
335
|
});
|
|
336
336
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
337
337
|
};
|
|
338
|
-
const
|
|
338
|
+
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
339
339
|
const contents = map({});
|
|
340
340
|
const data = parsedOutput.body;
|
|
341
341
|
if (data.error != null) {
|
|
@@ -350,7 +350,7 @@ const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutp
|
|
|
350
350
|
});
|
|
351
351
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
352
352
|
};
|
|
353
|
-
const
|
|
353
|
+
const de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
|
|
354
354
|
const contents = map({});
|
|
355
355
|
const data = parsedOutput.body;
|
|
356
356
|
if (data.error != null) {
|
|
@@ -365,7 +365,7 @@ const deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (pa
|
|
|
365
365
|
});
|
|
366
366
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
367
367
|
};
|
|
368
|
-
const
|
|
368
|
+
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
|
369
369
|
const contents = map({});
|
|
370
370
|
const data = parsedOutput.body;
|
|
371
371
|
if (data.error != null) {
|
|
@@ -380,7 +380,7 @@ const deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutpu
|
|
|
380
380
|
});
|
|
381
381
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
382
382
|
};
|
|
383
|
-
const
|
|
383
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
384
384
|
const contents = map({});
|
|
385
385
|
const data = parsedOutput.body;
|
|
386
386
|
if (data.error != null) {
|
|
@@ -395,7 +395,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
395
395
|
});
|
|
396
396
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
397
397
|
};
|
|
398
|
-
const
|
|
398
|
+
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
|
399
399
|
const contents = map({});
|
|
400
400
|
const data = parsedOutput.body;
|
|
401
401
|
if (data.error != null) {
|
|
@@ -410,7 +410,7 @@ const deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutpu
|
|
|
410
410
|
});
|
|
411
411
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
412
412
|
};
|
|
413
|
-
const
|
|
413
|
+
const de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
|
414
414
|
const contents = map({});
|
|
415
415
|
const data = parsedOutput.body;
|
|
416
416
|
if (data.error != null) {
|
|
@@ -425,7 +425,7 @@ const deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, c
|
|
|
425
425
|
});
|
|
426
426
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
429
429
|
const contents = map({});
|
|
430
430
|
const data = parsedOutput.body;
|
|
431
431
|
if (data.error != null) {
|
|
@@ -440,7 +440,7 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
440
440
|
});
|
|
441
441
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
442
442
|
};
|
|
443
|
-
const
|
|
443
|
+
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
|
444
444
|
const contents = map({});
|
|
445
445
|
const data = parsedOutput.body;
|
|
446
446
|
if (data.error != null) {
|
|
@@ -455,7 +455,7 @@ const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (par
|
|
|
455
455
|
});
|
|
456
456
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
457
457
|
};
|
|
458
|
-
const
|
|
458
|
+
const se_Scopes = (input, context) => {
|
|
459
459
|
return input
|
|
460
460
|
.filter((e) => e != null)
|
|
461
461
|
.map((entry) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import {
|
|
4
|
+
import { de_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class CreateTokenCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class CreateTokenCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_CreateTokenCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_CreateTokenCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import {
|
|
4
|
+
import { de_RegisterClientCommand, se_RegisterClientCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class RegisterClientCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class RegisterClientCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_RegisterClientCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_RegisterClientCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import {
|
|
4
|
+
import { de_StartDeviceAuthorizationCommand, se_StartDeviceAuthorizationCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class StartDeviceAuthorizationCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class StartDeviceAuthorizationCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_StartDeviceAuthorizationCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_StartDeviceAuthorizationCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|