@aws-sdk/client-cloud9 3.926.0 → 3.928.0
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/dist-cjs/index.js +440 -582
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/Cloud9Client.js +2 -0
- package/dist-es/commands/CreateEnvironmentEC2Command.js +3 -10
- package/dist-es/commands/CreateEnvironmentMembershipCommand.js +3 -9
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeleteEnvironmentMembershipCommand.js +3 -9
- package/dist-es/commands/DescribeEnvironmentMembershipsCommand.js +3 -9
- package/dist-es/commands/DescribeEnvironmentStatusCommand.js +3 -9
- package/dist-es/commands/DescribeEnvironmentsCommand.js +3 -10
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateEnvironmentCommand.js +3 -10
- package/dist-es/commands/UpdateEnvironmentMembershipCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -35
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +392 -0
- package/dist-types/Cloud9Client.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -32
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +64 -0
- package/dist-types/ts3.4/Cloud9Client.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -20
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +70 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -429
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -161
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticSimpleSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var EnvironmentDescription: StaticSimpleSchema;
|
|
9
|
+
export declare var TagKey: StaticSimpleSchema;
|
|
10
|
+
export declare var TagValue: StaticSimpleSchema;
|
|
11
|
+
export declare var BadRequestException: StaticErrorSchema;
|
|
12
|
+
export declare var ConcurrentAccessException: StaticErrorSchema;
|
|
13
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
14
|
+
export declare var CreateEnvironmentEC2Request: StaticStructureSchema;
|
|
15
|
+
export declare var CreateEnvironmentEC2Result: StaticStructureSchema;
|
|
16
|
+
export declare var CreateEnvironmentMembershipRequest: StaticStructureSchema;
|
|
17
|
+
export declare var CreateEnvironmentMembershipResult: StaticStructureSchema;
|
|
18
|
+
export declare var DeleteEnvironmentMembershipRequest: StaticStructureSchema;
|
|
19
|
+
export declare var DeleteEnvironmentMembershipResult: StaticStructureSchema;
|
|
20
|
+
export declare var DeleteEnvironmentRequest: StaticStructureSchema;
|
|
21
|
+
export declare var DeleteEnvironmentResult: StaticStructureSchema;
|
|
22
|
+
export declare var DescribeEnvironmentMembershipsRequest: StaticStructureSchema;
|
|
23
|
+
export declare var DescribeEnvironmentMembershipsResult: StaticStructureSchema;
|
|
24
|
+
export declare var DescribeEnvironmentsRequest: StaticStructureSchema;
|
|
25
|
+
export declare var DescribeEnvironmentsResult: StaticStructureSchema;
|
|
26
|
+
export declare var DescribeEnvironmentStatusRequest: StaticStructureSchema;
|
|
27
|
+
export declare var DescribeEnvironmentStatusResult: StaticStructureSchema;
|
|
28
|
+
export declare var Environment: StaticStructureSchema;
|
|
29
|
+
export declare var EnvironmentLifecycle: StaticStructureSchema;
|
|
30
|
+
export declare var EnvironmentMember: StaticStructureSchema;
|
|
31
|
+
export declare var ForbiddenException: StaticErrorSchema;
|
|
32
|
+
export declare var InternalServerErrorException: StaticErrorSchema;
|
|
33
|
+
export declare var LimitExceededException: StaticErrorSchema;
|
|
34
|
+
export declare var ListEnvironmentsRequest: StaticStructureSchema;
|
|
35
|
+
export declare var ListEnvironmentsResult: StaticStructureSchema;
|
|
36
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
37
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
38
|
+
export declare var NotFoundException: StaticErrorSchema;
|
|
39
|
+
export declare var Tag: StaticStructureSchema;
|
|
40
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
41
|
+
export declare var TagResourceResponse: StaticStructureSchema;
|
|
42
|
+
export declare var TooManyRequestsException: StaticErrorSchema;
|
|
43
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
44
|
+
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
45
|
+
export declare var UpdateEnvironmentMembershipRequest: StaticStructureSchema;
|
|
46
|
+
export declare var UpdateEnvironmentMembershipResult: StaticStructureSchema;
|
|
47
|
+
export declare var UpdateEnvironmentRequest: StaticStructureSchema;
|
|
48
|
+
export declare var UpdateEnvironmentResult: StaticStructureSchema;
|
|
49
|
+
export declare var __Unit: "unit";
|
|
50
|
+
export declare var Cloud9ServiceException: StaticErrorSchema;
|
|
51
|
+
export declare var BoundedEnvironmentIdList: number;
|
|
52
|
+
export declare var EnvironmentIdList: number;
|
|
53
|
+
export declare var EnvironmentList: StaticListSchema;
|
|
54
|
+
export declare var EnvironmentMembersList: StaticListSchema;
|
|
55
|
+
export declare var PermissionsList: number;
|
|
56
|
+
export declare var TagKeyList: StaticListSchema;
|
|
57
|
+
export declare var TagList: StaticListSchema;
|
|
58
|
+
export declare var CreateEnvironmentEC2: StaticOperationSchema;
|
|
59
|
+
export declare var CreateEnvironmentMembership: StaticOperationSchema;
|
|
60
|
+
export declare var DeleteEnvironment: StaticOperationSchema;
|
|
61
|
+
export declare var DeleteEnvironmentMembership: StaticOperationSchema;
|
|
62
|
+
export declare var DescribeEnvironmentMemberships: StaticOperationSchema;
|
|
63
|
+
export declare var DescribeEnvironments: StaticOperationSchema;
|
|
64
|
+
export declare var DescribeEnvironmentStatus: StaticOperationSchema;
|
|
65
|
+
export declare var ListEnvironments: StaticOperationSchema;
|
|
66
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
67
|
+
export declare var TagResource: StaticOperationSchema;
|
|
68
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
69
|
+
export declare var UpdateEnvironment: StaticOperationSchema;
|
|
70
|
+
export declare var UpdateEnvironmentMembership: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloud9",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloud9 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloud9",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { Cloud9ServiceException as __BaseException } from "../models/Cloud9ServiceException";
|
|
5
|
-
import { BadRequestException, ConcurrentAccessException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateEnvironmentEC2Command = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateEnvironmentEC2");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateEnvironmentMembershipCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateEnvironmentMembership");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("DeleteEnvironment");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DeleteEnvironmentMembershipCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DeleteEnvironmentMembership");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DescribeEnvironmentMembershipsCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DescribeEnvironmentMemberships");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DescribeEnvironmentsCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DescribeEnvironments");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DescribeEnvironmentStatusCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DescribeEnvironmentStatus");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("ListEnvironments");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("TagResource");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("UntagResource");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("UpdateEnvironment");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_UpdateEnvironmentMembershipCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("UpdateEnvironmentMembership");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const de_CreateEnvironmentEC2Command = async (output, context) => {
|
|
85
|
-
if (output.statusCode >= 300) {
|
|
86
|
-
return de_CommandError(output, context);
|
|
87
|
-
}
|
|
88
|
-
const data = await parseBody(output.body, context);
|
|
89
|
-
let contents = {};
|
|
90
|
-
contents = _json(data);
|
|
91
|
-
const response = {
|
|
92
|
-
$metadata: deserializeMetadata(output),
|
|
93
|
-
...contents,
|
|
94
|
-
};
|
|
95
|
-
return response;
|
|
96
|
-
};
|
|
97
|
-
export const de_CreateEnvironmentMembershipCommand = async (output, context) => {
|
|
98
|
-
if (output.statusCode >= 300) {
|
|
99
|
-
return de_CommandError(output, context);
|
|
100
|
-
}
|
|
101
|
-
const data = await parseBody(output.body, context);
|
|
102
|
-
let contents = {};
|
|
103
|
-
contents = de_CreateEnvironmentMembershipResult(data, context);
|
|
104
|
-
const response = {
|
|
105
|
-
$metadata: deserializeMetadata(output),
|
|
106
|
-
...contents,
|
|
107
|
-
};
|
|
108
|
-
return response;
|
|
109
|
-
};
|
|
110
|
-
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
111
|
-
if (output.statusCode >= 300) {
|
|
112
|
-
return de_CommandError(output, context);
|
|
113
|
-
}
|
|
114
|
-
const data = await parseBody(output.body, context);
|
|
115
|
-
let contents = {};
|
|
116
|
-
contents = _json(data);
|
|
117
|
-
const response = {
|
|
118
|
-
$metadata: deserializeMetadata(output),
|
|
119
|
-
...contents,
|
|
120
|
-
};
|
|
121
|
-
return response;
|
|
122
|
-
};
|
|
123
|
-
export const de_DeleteEnvironmentMembershipCommand = async (output, context) => {
|
|
124
|
-
if (output.statusCode >= 300) {
|
|
125
|
-
return de_CommandError(output, context);
|
|
126
|
-
}
|
|
127
|
-
const data = await parseBody(output.body, context);
|
|
128
|
-
let contents = {};
|
|
129
|
-
contents = _json(data);
|
|
130
|
-
const response = {
|
|
131
|
-
$metadata: deserializeMetadata(output),
|
|
132
|
-
...contents,
|
|
133
|
-
};
|
|
134
|
-
return response;
|
|
135
|
-
};
|
|
136
|
-
export const de_DescribeEnvironmentMembershipsCommand = async (output, context) => {
|
|
137
|
-
if (output.statusCode >= 300) {
|
|
138
|
-
return de_CommandError(output, context);
|
|
139
|
-
}
|
|
140
|
-
const data = await parseBody(output.body, context);
|
|
141
|
-
let contents = {};
|
|
142
|
-
contents = de_DescribeEnvironmentMembershipsResult(data, context);
|
|
143
|
-
const response = {
|
|
144
|
-
$metadata: deserializeMetadata(output),
|
|
145
|
-
...contents,
|
|
146
|
-
};
|
|
147
|
-
return response;
|
|
148
|
-
};
|
|
149
|
-
export const de_DescribeEnvironmentsCommand = async (output, context) => {
|
|
150
|
-
if (output.statusCode >= 300) {
|
|
151
|
-
return de_CommandError(output, context);
|
|
152
|
-
}
|
|
153
|
-
const data = await parseBody(output.body, context);
|
|
154
|
-
let contents = {};
|
|
155
|
-
contents = _json(data);
|
|
156
|
-
const response = {
|
|
157
|
-
$metadata: deserializeMetadata(output),
|
|
158
|
-
...contents,
|
|
159
|
-
};
|
|
160
|
-
return response;
|
|
161
|
-
};
|
|
162
|
-
export const de_DescribeEnvironmentStatusCommand = async (output, context) => {
|
|
163
|
-
if (output.statusCode >= 300) {
|
|
164
|
-
return de_CommandError(output, context);
|
|
165
|
-
}
|
|
166
|
-
const data = await parseBody(output.body, context);
|
|
167
|
-
let contents = {};
|
|
168
|
-
contents = _json(data);
|
|
169
|
-
const response = {
|
|
170
|
-
$metadata: deserializeMetadata(output),
|
|
171
|
-
...contents,
|
|
172
|
-
};
|
|
173
|
-
return response;
|
|
174
|
-
};
|
|
175
|
-
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
176
|
-
if (output.statusCode >= 300) {
|
|
177
|
-
return de_CommandError(output, context);
|
|
178
|
-
}
|
|
179
|
-
const data = await parseBody(output.body, context);
|
|
180
|
-
let contents = {};
|
|
181
|
-
contents = _json(data);
|
|
182
|
-
const response = {
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
...contents,
|
|
185
|
-
};
|
|
186
|
-
return response;
|
|
187
|
-
};
|
|
188
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
189
|
-
if (output.statusCode >= 300) {
|
|
190
|
-
return de_CommandError(output, context);
|
|
191
|
-
}
|
|
192
|
-
const data = await parseBody(output.body, context);
|
|
193
|
-
let contents = {};
|
|
194
|
-
contents = _json(data);
|
|
195
|
-
const response = {
|
|
196
|
-
$metadata: deserializeMetadata(output),
|
|
197
|
-
...contents,
|
|
198
|
-
};
|
|
199
|
-
return response;
|
|
200
|
-
};
|
|
201
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
202
|
-
if (output.statusCode >= 300) {
|
|
203
|
-
return de_CommandError(output, context);
|
|
204
|
-
}
|
|
205
|
-
const data = await parseBody(output.body, context);
|
|
206
|
-
let contents = {};
|
|
207
|
-
contents = _json(data);
|
|
208
|
-
const response = {
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
...contents,
|
|
211
|
-
};
|
|
212
|
-
return response;
|
|
213
|
-
};
|
|
214
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
215
|
-
if (output.statusCode >= 300) {
|
|
216
|
-
return de_CommandError(output, context);
|
|
217
|
-
}
|
|
218
|
-
const data = await parseBody(output.body, context);
|
|
219
|
-
let contents = {};
|
|
220
|
-
contents = _json(data);
|
|
221
|
-
const response = {
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
...contents,
|
|
224
|
-
};
|
|
225
|
-
return response;
|
|
226
|
-
};
|
|
227
|
-
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
228
|
-
if (output.statusCode >= 300) {
|
|
229
|
-
return de_CommandError(output, context);
|
|
230
|
-
}
|
|
231
|
-
const data = await parseBody(output.body, context);
|
|
232
|
-
let contents = {};
|
|
233
|
-
contents = _json(data);
|
|
234
|
-
const response = {
|
|
235
|
-
$metadata: deserializeMetadata(output),
|
|
236
|
-
...contents,
|
|
237
|
-
};
|
|
238
|
-
return response;
|
|
239
|
-
};
|
|
240
|
-
export const de_UpdateEnvironmentMembershipCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const data = await parseBody(output.body, context);
|
|
245
|
-
let contents = {};
|
|
246
|
-
contents = de_UpdateEnvironmentMembershipResult(data, context);
|
|
247
|
-
const response = {
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
...contents,
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
const de_CommandError = async (output, context) => {
|
|
254
|
-
const parsedOutput = {
|
|
255
|
-
...output,
|
|
256
|
-
body: await parseErrorBody(output.body, context),
|
|
257
|
-
};
|
|
258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
|
-
switch (errorCode) {
|
|
260
|
-
case "BadRequestException":
|
|
261
|
-
case "com.amazonaws.cloud9#BadRequestException":
|
|
262
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
263
|
-
case "ConflictException":
|
|
264
|
-
case "com.amazonaws.cloud9#ConflictException":
|
|
265
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
266
|
-
case "ForbiddenException":
|
|
267
|
-
case "com.amazonaws.cloud9#ForbiddenException":
|
|
268
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
269
|
-
case "InternalServerErrorException":
|
|
270
|
-
case "com.amazonaws.cloud9#InternalServerErrorException":
|
|
271
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
272
|
-
case "LimitExceededException":
|
|
273
|
-
case "com.amazonaws.cloud9#LimitExceededException":
|
|
274
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
275
|
-
case "NotFoundException":
|
|
276
|
-
case "com.amazonaws.cloud9#NotFoundException":
|
|
277
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
278
|
-
case "TooManyRequestsException":
|
|
279
|
-
case "com.amazonaws.cloud9#TooManyRequestsException":
|
|
280
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
281
|
-
case "ConcurrentAccessException":
|
|
282
|
-
case "com.amazonaws.cloud9#ConcurrentAccessException":
|
|
283
|
-
throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
|
|
284
|
-
default:
|
|
285
|
-
const parsedBody = parsedOutput.body;
|
|
286
|
-
return throwDefaultError({
|
|
287
|
-
output,
|
|
288
|
-
parsedBody,
|
|
289
|
-
errorCode,
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
294
|
-
const body = parsedOutput.body;
|
|
295
|
-
const deserialized = _json(body);
|
|
296
|
-
const exception = new BadRequestException({
|
|
297
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
298
|
-
...deserialized,
|
|
299
|
-
});
|
|
300
|
-
return __decorateServiceException(exception, body);
|
|
301
|
-
};
|
|
302
|
-
const de_ConcurrentAccessExceptionRes = async (parsedOutput, context) => {
|
|
303
|
-
const body = parsedOutput.body;
|
|
304
|
-
const deserialized = _json(body);
|
|
305
|
-
const exception = new ConcurrentAccessException({
|
|
306
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
307
|
-
...deserialized,
|
|
308
|
-
});
|
|
309
|
-
return __decorateServiceException(exception, body);
|
|
310
|
-
};
|
|
311
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
312
|
-
const body = parsedOutput.body;
|
|
313
|
-
const deserialized = _json(body);
|
|
314
|
-
const exception = new ConflictException({
|
|
315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
316
|
-
...deserialized,
|
|
317
|
-
});
|
|
318
|
-
return __decorateServiceException(exception, body);
|
|
319
|
-
};
|
|
320
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
321
|
-
const body = parsedOutput.body;
|
|
322
|
-
const deserialized = _json(body);
|
|
323
|
-
const exception = new ForbiddenException({
|
|
324
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
325
|
-
...deserialized,
|
|
326
|
-
});
|
|
327
|
-
return __decorateServiceException(exception, body);
|
|
328
|
-
};
|
|
329
|
-
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
330
|
-
const body = parsedOutput.body;
|
|
331
|
-
const deserialized = _json(body);
|
|
332
|
-
const exception = new InternalServerErrorException({
|
|
333
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
334
|
-
...deserialized,
|
|
335
|
-
});
|
|
336
|
-
return __decorateServiceException(exception, body);
|
|
337
|
-
};
|
|
338
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
339
|
-
const body = parsedOutput.body;
|
|
340
|
-
const deserialized = _json(body);
|
|
341
|
-
const exception = new LimitExceededException({
|
|
342
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
343
|
-
...deserialized,
|
|
344
|
-
});
|
|
345
|
-
return __decorateServiceException(exception, body);
|
|
346
|
-
};
|
|
347
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
348
|
-
const body = parsedOutput.body;
|
|
349
|
-
const deserialized = _json(body);
|
|
350
|
-
const exception = new NotFoundException({
|
|
351
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
352
|
-
...deserialized,
|
|
353
|
-
});
|
|
354
|
-
return __decorateServiceException(exception, body);
|
|
355
|
-
};
|
|
356
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
357
|
-
const body = parsedOutput.body;
|
|
358
|
-
const deserialized = _json(body);
|
|
359
|
-
const exception = new TooManyRequestsException({
|
|
360
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
-
...deserialized,
|
|
362
|
-
});
|
|
363
|
-
return __decorateServiceException(exception, body);
|
|
364
|
-
};
|
|
365
|
-
const de_CreateEnvironmentMembershipResult = (output, context) => {
|
|
366
|
-
return take(output, {
|
|
367
|
-
membership: (_) => de_EnvironmentMember(_, context),
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
const de_DescribeEnvironmentMembershipsResult = (output, context) => {
|
|
371
|
-
return take(output, {
|
|
372
|
-
memberships: (_) => de_EnvironmentMembersList(_, context),
|
|
373
|
-
nextToken: __expectString,
|
|
374
|
-
});
|
|
375
|
-
};
|
|
376
|
-
const de_EnvironmentMember = (output, context) => {
|
|
377
|
-
return take(output, {
|
|
378
|
-
environmentId: __expectString,
|
|
379
|
-
lastAccess: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
380
|
-
permissions: __expectString,
|
|
381
|
-
userArn: __expectString,
|
|
382
|
-
userId: __expectString,
|
|
383
|
-
});
|
|
384
|
-
};
|
|
385
|
-
const de_EnvironmentMembersList = (output, context) => {
|
|
386
|
-
const retVal = (output || [])
|
|
387
|
-
.filter((e) => e != null)
|
|
388
|
-
.map((entry) => {
|
|
389
|
-
return de_EnvironmentMember(entry, context);
|
|
390
|
-
});
|
|
391
|
-
return retVal;
|
|
392
|
-
};
|
|
393
|
-
const de_UpdateEnvironmentMembershipResult = (output, context) => {
|
|
394
|
-
return take(output, {
|
|
395
|
-
membership: (_) => de_EnvironmentMember(_, context),
|
|
396
|
-
});
|
|
397
|
-
};
|
|
398
|
-
const deserializeMetadata = (output) => ({
|
|
399
|
-
httpStatusCode: output.statusCode,
|
|
400
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
401
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
402
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
403
|
-
});
|
|
404
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
405
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
406
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
407
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
408
|
-
const contents = {
|
|
409
|
-
protocol,
|
|
410
|
-
hostname,
|
|
411
|
-
port,
|
|
412
|
-
method: "POST",
|
|
413
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
414
|
-
headers,
|
|
415
|
-
};
|
|
416
|
-
if (resolvedHostname !== undefined) {
|
|
417
|
-
contents.hostname = resolvedHostname;
|
|
418
|
-
}
|
|
419
|
-
if (body !== undefined) {
|
|
420
|
-
contents.body = body;
|
|
421
|
-
}
|
|
422
|
-
return new __HttpRequest(contents);
|
|
423
|
-
};
|
|
424
|
-
function sharedHeaders(operation) {
|
|
425
|
-
return {
|
|
426
|
-
"content-type": "application/x-amz-json-1.1",
|
|
427
|
-
"x-amz-target": `AWSCloud9WorkspaceManagementService.${operation}`,
|
|
428
|
-
};
|
|
429
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateEnvironmentEC2CommandInput, CreateEnvironmentEC2CommandOutput } from "../commands/CreateEnvironmentEC2Command";
|
|
4
|
-
import { CreateEnvironmentMembershipCommandInput, CreateEnvironmentMembershipCommandOutput } from "../commands/CreateEnvironmentMembershipCommand";
|
|
5
|
-
import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "../commands/DeleteEnvironmentCommand";
|
|
6
|
-
import { DeleteEnvironmentMembershipCommandInput, DeleteEnvironmentMembershipCommandOutput } from "../commands/DeleteEnvironmentMembershipCommand";
|
|
7
|
-
import { DescribeEnvironmentMembershipsCommandInput, DescribeEnvironmentMembershipsCommandOutput } from "../commands/DescribeEnvironmentMembershipsCommand";
|
|
8
|
-
import { DescribeEnvironmentsCommandInput, DescribeEnvironmentsCommandOutput } from "../commands/DescribeEnvironmentsCommand";
|
|
9
|
-
import { DescribeEnvironmentStatusCommandInput, DescribeEnvironmentStatusCommandOutput } from "../commands/DescribeEnvironmentStatusCommand";
|
|
10
|
-
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "../commands/ListEnvironmentsCommand";
|
|
11
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
12
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
13
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
14
|
-
import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "../commands/UpdateEnvironmentCommand";
|
|
15
|
-
import { UpdateEnvironmentMembershipCommandInput, UpdateEnvironmentMembershipCommandOutput } from "../commands/UpdateEnvironmentMembershipCommand";
|
|
16
|
-
/**
|
|
17
|
-
* serializeAws_json1_1CreateEnvironmentEC2Command
|
|
18
|
-
*/
|
|
19
|
-
export declare const se_CreateEnvironmentEC2Command: (input: CreateEnvironmentEC2CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
-
/**
|
|
21
|
-
* serializeAws_json1_1CreateEnvironmentMembershipCommand
|
|
22
|
-
*/
|
|
23
|
-
export declare const se_CreateEnvironmentMembershipCommand: (input: CreateEnvironmentMembershipCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
-
/**
|
|
25
|
-
* serializeAws_json1_1DeleteEnvironmentCommand
|
|
26
|
-
*/
|
|
27
|
-
export declare const se_DeleteEnvironmentCommand: (input: DeleteEnvironmentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
-
/**
|
|
29
|
-
* serializeAws_json1_1DeleteEnvironmentMembershipCommand
|
|
30
|
-
*/
|
|
31
|
-
export declare const se_DeleteEnvironmentMembershipCommand: (input: DeleteEnvironmentMembershipCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
-
/**
|
|
33
|
-
* serializeAws_json1_1DescribeEnvironmentMembershipsCommand
|
|
34
|
-
*/
|
|
35
|
-
export declare const se_DescribeEnvironmentMembershipsCommand: (input: DescribeEnvironmentMembershipsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
36
|
-
/**
|
|
37
|
-
* serializeAws_json1_1DescribeEnvironmentsCommand
|
|
38
|
-
*/
|
|
39
|
-
export declare const se_DescribeEnvironmentsCommand: (input: DescribeEnvironmentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
40
|
-
/**
|
|
41
|
-
* serializeAws_json1_1DescribeEnvironmentStatusCommand
|
|
42
|
-
*/
|
|
43
|
-
export declare const se_DescribeEnvironmentStatusCommand: (input: DescribeEnvironmentStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
|
-
/**
|
|
45
|
-
* serializeAws_json1_1ListEnvironmentsCommand
|
|
46
|
-
*/
|
|
47
|
-
export declare const se_ListEnvironmentsCommand: (input: ListEnvironmentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
48
|
-
/**
|
|
49
|
-
* serializeAws_json1_1ListTagsForResourceCommand
|
|
50
|
-
*/
|
|
51
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
52
|
-
/**
|
|
53
|
-
* serializeAws_json1_1TagResourceCommand
|
|
54
|
-
*/
|
|
55
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
|
-
/**
|
|
57
|
-
* serializeAws_json1_1UntagResourceCommand
|
|
58
|
-
*/
|
|
59
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
60
|
-
/**
|
|
61
|
-
* serializeAws_json1_1UpdateEnvironmentCommand
|
|
62
|
-
*/
|
|
63
|
-
export declare const se_UpdateEnvironmentCommand: (input: UpdateEnvironmentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
|
-
/**
|
|
65
|
-
* serializeAws_json1_1UpdateEnvironmentMembershipCommand
|
|
66
|
-
*/
|
|
67
|
-
export declare const se_UpdateEnvironmentMembershipCommand: (input: UpdateEnvironmentMembershipCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
68
|
-
/**
|
|
69
|
-
* deserializeAws_json1_1CreateEnvironmentEC2Command
|
|
70
|
-
*/
|
|
71
|
-
export declare const de_CreateEnvironmentEC2Command: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateEnvironmentEC2CommandOutput>;
|
|
72
|
-
/**
|
|
73
|
-
* deserializeAws_json1_1CreateEnvironmentMembershipCommand
|
|
74
|
-
*/
|
|
75
|
-
export declare const de_CreateEnvironmentMembershipCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateEnvironmentMembershipCommandOutput>;
|
|
76
|
-
/**
|
|
77
|
-
* deserializeAws_json1_1DeleteEnvironmentCommand
|
|
78
|
-
*/
|
|
79
|
-
export declare const de_DeleteEnvironmentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEnvironmentCommandOutput>;
|
|
80
|
-
/**
|
|
81
|
-
* deserializeAws_json1_1DeleteEnvironmentMembershipCommand
|
|
82
|
-
*/
|
|
83
|
-
export declare const de_DeleteEnvironmentMembershipCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteEnvironmentMembershipCommandOutput>;
|
|
84
|
-
/**
|
|
85
|
-
* deserializeAws_json1_1DescribeEnvironmentMembershipsCommand
|
|
86
|
-
*/
|
|
87
|
-
export declare const de_DescribeEnvironmentMembershipsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEnvironmentMembershipsCommandOutput>;
|
|
88
|
-
/**
|
|
89
|
-
* deserializeAws_json1_1DescribeEnvironmentsCommand
|
|
90
|
-
*/
|
|
91
|
-
export declare const de_DescribeEnvironmentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEnvironmentsCommandOutput>;
|
|
92
|
-
/**
|
|
93
|
-
* deserializeAws_json1_1DescribeEnvironmentStatusCommand
|
|
94
|
-
*/
|
|
95
|
-
export declare const de_DescribeEnvironmentStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEnvironmentStatusCommandOutput>;
|
|
96
|
-
/**
|
|
97
|
-
* deserializeAws_json1_1ListEnvironmentsCommand
|
|
98
|
-
*/
|
|
99
|
-
export declare const de_ListEnvironmentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEnvironmentsCommandOutput>;
|
|
100
|
-
/**
|
|
101
|
-
* deserializeAws_json1_1ListTagsForResourceCommand
|
|
102
|
-
*/
|
|
103
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
104
|
-
/**
|
|
105
|
-
* deserializeAws_json1_1TagResourceCommand
|
|
106
|
-
*/
|
|
107
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
108
|
-
/**
|
|
109
|
-
* deserializeAws_json1_1UntagResourceCommand
|
|
110
|
-
*/
|
|
111
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
112
|
-
/**
|
|
113
|
-
* deserializeAws_json1_1UpdateEnvironmentCommand
|
|
114
|
-
*/
|
|
115
|
-
export declare const de_UpdateEnvironmentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateEnvironmentCommandOutput>;
|
|
116
|
-
/**
|
|
117
|
-
* deserializeAws_json1_1UpdateEnvironmentMembershipCommand
|
|
118
|
-
*/
|
|
119
|
-
export declare const de_UpdateEnvironmentMembershipCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateEnvironmentMembershipCommandOutput>;
|