@aws-sdk/client-evs 3.886.0 → 3.887.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/README.md +16 -0
- package/dist-cjs/Evs.js +4 -0
- package/dist-cjs/commands/AssociateEipToVlanCommand.js +26 -0
- package/dist-cjs/commands/DisassociateEipFromVlanCommand.js +26 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +53 -53
- package/dist-cjs/protocols/Aws_json1_0.js +78 -7
- package/dist-es/Evs.js +4 -0
- package/dist-es/commands/AssociateEipToVlanCommand.js +22 -0
- package/dist-es/commands/DisassociateEipFromVlanCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +50 -50
- package/dist-es/protocols/Aws_json1_0.js +73 -6
- package/dist-types/Evs.d.ts +14 -0
- package/dist-types/EvsClient.d.ts +4 -2
- package/dist-types/commands/AssociateEipToVlanCommand.d.ts +103 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +2 -0
- package/dist-types/commands/CreateEnvironmentHostCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateEipFromVlanCommand.d.ts +103 -0
- package/dist-types/commands/ListEnvironmentVlansCommand.d.ts +9 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +275 -159
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/Evs.d.ts +34 -0
- package/dist-types/ts3.4/EvsClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/AssociateEipToVlanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateEipFromVlanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +86 -58
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/package.json +37 -37
package/README.md
CHANGED
|
@@ -203,6 +203,14 @@ see LICENSE for more information.
|
|
|
203
203
|
|
|
204
204
|
## Client Commands (Operations List)
|
|
205
205
|
|
|
206
|
+
<details>
|
|
207
|
+
<summary>
|
|
208
|
+
AssociateEipToVlan
|
|
209
|
+
</summary>
|
|
210
|
+
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/evs/command/AssociateEipToVlanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-evs/Interface/AssociateEipToVlanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-evs/Interface/AssociateEipToVlanCommandOutput/)
|
|
212
|
+
|
|
213
|
+
</details>
|
|
206
214
|
<details>
|
|
207
215
|
<summary>
|
|
208
216
|
CreateEnvironment
|
|
@@ -234,6 +242,14 @@ DeleteEnvironmentHost
|
|
|
234
242
|
|
|
235
243
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/evs/command/DeleteEnvironmentHostCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-evs/Interface/DeleteEnvironmentHostCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-evs/Interface/DeleteEnvironmentHostCommandOutput/)
|
|
236
244
|
|
|
245
|
+
</details>
|
|
246
|
+
<details>
|
|
247
|
+
<summary>
|
|
248
|
+
DisassociateEipFromVlan
|
|
249
|
+
</summary>
|
|
250
|
+
|
|
251
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/evs/command/DisassociateEipFromVlanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-evs/Interface/DisassociateEipFromVlanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-evs/Interface/DisassociateEipFromVlanCommandOutput/)
|
|
252
|
+
|
|
237
253
|
</details>
|
|
238
254
|
<details>
|
|
239
255
|
<summary>
|
package/dist-cjs/Evs.js
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Evs = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const AssociateEipToVlanCommand_1 = require("./commands/AssociateEipToVlanCommand");
|
|
5
6
|
const CreateEnvironmentCommand_1 = require("./commands/CreateEnvironmentCommand");
|
|
6
7
|
const CreateEnvironmentHostCommand_1 = require("./commands/CreateEnvironmentHostCommand");
|
|
7
8
|
const DeleteEnvironmentCommand_1 = require("./commands/DeleteEnvironmentCommand");
|
|
8
9
|
const DeleteEnvironmentHostCommand_1 = require("./commands/DeleteEnvironmentHostCommand");
|
|
10
|
+
const DisassociateEipFromVlanCommand_1 = require("./commands/DisassociateEipFromVlanCommand");
|
|
9
11
|
const GetEnvironmentCommand_1 = require("./commands/GetEnvironmentCommand");
|
|
10
12
|
const ListEnvironmentHostsCommand_1 = require("./commands/ListEnvironmentHostsCommand");
|
|
11
13
|
const ListEnvironmentsCommand_1 = require("./commands/ListEnvironmentsCommand");
|
|
@@ -15,10 +17,12 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
15
17
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
16
18
|
const EvsClient_1 = require("./EvsClient");
|
|
17
19
|
const commands = {
|
|
20
|
+
AssociateEipToVlanCommand: AssociateEipToVlanCommand_1.AssociateEipToVlanCommand,
|
|
18
21
|
CreateEnvironmentCommand: CreateEnvironmentCommand_1.CreateEnvironmentCommand,
|
|
19
22
|
CreateEnvironmentHostCommand: CreateEnvironmentHostCommand_1.CreateEnvironmentHostCommand,
|
|
20
23
|
DeleteEnvironmentCommand: DeleteEnvironmentCommand_1.DeleteEnvironmentCommand,
|
|
21
24
|
DeleteEnvironmentHostCommand: DeleteEnvironmentHostCommand_1.DeleteEnvironmentHostCommand,
|
|
25
|
+
DisassociateEipFromVlanCommand: DisassociateEipFromVlanCommand_1.DisassociateEipFromVlanCommand,
|
|
22
26
|
GetEnvironmentCommand: GetEnvironmentCommand_1.GetEnvironmentCommand,
|
|
23
27
|
ListEnvironmentHostsCommand: ListEnvironmentHostsCommand_1.ListEnvironmentHostsCommand,
|
|
24
28
|
ListEnvironmentsCommand: ListEnvironmentsCommand_1.ListEnvironmentsCommand,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateEipToVlanCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
+
class AssociateEipToVlanCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonElasticVMwareService", "AssociateEipToVlan", {})
|
|
20
|
+
.n("EvsClient", "AssociateEipToVlanCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_json1_0_1.se_AssociateEipToVlanCommand)
|
|
23
|
+
.de(Aws_json1_0_1.de_AssociateEipToVlanCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.AssociateEipToVlanCommand = AssociateEipToVlanCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisassociateEipFromVlanCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
+
class DisassociateEipFromVlanCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonElasticVMwareService", "DisassociateEipFromVlan", {})
|
|
20
|
+
.n("EvsClient", "DisassociateEipFromVlanCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_json1_0_1.se_DisassociateEipFromVlanCommand)
|
|
23
|
+
.de(Aws_json1_0_1.de_DisassociateEipFromVlanCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.DisassociateEipFromVlanCommand = DisassociateEipFromVlanCommand;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AssociateEipToVlanCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./CreateEnvironmentCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateEnvironmentHostCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteEnvironmentCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DeleteEnvironmentHostCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DisassociateEipFromVlanCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./GetEnvironmentCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./ListEnvironmentHostsCommand"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./ListEnvironmentVlansCommand"), exports);
|
|
@@ -1,63 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TooManyTagsException = exports.TagPolicyException = exports.ServiceQuotaExceededException = exports.
|
|
3
|
+
exports.TooManyTagsException = exports.TagPolicyException = exports.ServiceQuotaExceededException = exports.HostState = exports.EnvironmentState = exports.CheckType = exports.CheckResult = exports.VcfVersion = exports._InstanceType = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.VlanState = void 0;
|
|
4
4
|
const EvsServiceException_1 = require("./EvsServiceException");
|
|
5
|
-
exports.
|
|
6
|
-
I4I_METAL: "i4i.metal",
|
|
7
|
-
};
|
|
8
|
-
exports.VcfVersion = {
|
|
9
|
-
VCF_5_2_1: "VCF-5.2.1",
|
|
10
|
-
};
|
|
11
|
-
exports.CheckResult = {
|
|
12
|
-
FAILED: "FAILED",
|
|
13
|
-
PASSED: "PASSED",
|
|
14
|
-
UNKNOWN: "UNKNOWN",
|
|
15
|
-
};
|
|
16
|
-
exports.CheckType = {
|
|
17
|
-
HOST_COUNT: "HOST_COUNT",
|
|
18
|
-
KEY_COVERAGE: "KEY_COVERAGE",
|
|
19
|
-
KEY_REUSE: "KEY_REUSE",
|
|
20
|
-
REACHABILITY: "REACHABILITY",
|
|
21
|
-
};
|
|
22
|
-
exports.EnvironmentState = {
|
|
5
|
+
exports.VlanState = {
|
|
23
6
|
CREATED: "CREATED",
|
|
24
7
|
CREATE_FAILED: "CREATE_FAILED",
|
|
25
8
|
CREATING: "CREATING",
|
|
26
9
|
DELETED: "DELETED",
|
|
27
10
|
DELETING: "DELETING",
|
|
28
11
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
32
|
-
OTHER: "other",
|
|
33
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
34
|
-
};
|
|
35
|
-
class ValidationException extends EvsServiceException_1.EvsServiceException {
|
|
36
|
-
name = "ValidationException";
|
|
12
|
+
class ResourceNotFoundException extends EvsServiceException_1.EvsServiceException {
|
|
13
|
+
name = "ResourceNotFoundException";
|
|
37
14
|
$fault = "client";
|
|
38
|
-
|
|
39
|
-
|
|
15
|
+
resourceId;
|
|
16
|
+
resourceType;
|
|
40
17
|
constructor(opts) {
|
|
41
18
|
super({
|
|
42
|
-
name: "
|
|
19
|
+
name: "ResourceNotFoundException",
|
|
43
20
|
$fault: "client",
|
|
44
21
|
...opts,
|
|
45
22
|
});
|
|
46
|
-
Object.setPrototypeOf(this,
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
23
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
24
|
+
this.resourceId = opts.resourceId;
|
|
25
|
+
this.resourceType = opts.resourceType;
|
|
49
26
|
}
|
|
50
27
|
}
|
|
51
|
-
exports.
|
|
52
|
-
exports.HostState = {
|
|
53
|
-
CREATED: "CREATED",
|
|
54
|
-
CREATE_FAILED: "CREATE_FAILED",
|
|
55
|
-
CREATING: "CREATING",
|
|
56
|
-
DELETED: "DELETED",
|
|
57
|
-
DELETING: "DELETING",
|
|
58
|
-
UPDATE_FAILED: "UPDATE_FAILED",
|
|
59
|
-
UPDATING: "UPDATING",
|
|
60
|
-
};
|
|
28
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
61
29
|
class ThrottlingException extends EvsServiceException_1.EvsServiceException {
|
|
62
30
|
name = "ThrottlingException";
|
|
63
31
|
$fault = "client";
|
|
@@ -74,30 +42,62 @@ class ThrottlingException extends EvsServiceException_1.EvsServiceException {
|
|
|
74
42
|
}
|
|
75
43
|
}
|
|
76
44
|
exports.ThrottlingException = ThrottlingException;
|
|
77
|
-
|
|
78
|
-
|
|
45
|
+
exports.ValidationExceptionReason = {
|
|
46
|
+
CANNOT_PARSE: "cannotParse",
|
|
47
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
48
|
+
OTHER: "other",
|
|
49
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
50
|
+
};
|
|
51
|
+
class ValidationException extends EvsServiceException_1.EvsServiceException {
|
|
52
|
+
name = "ValidationException";
|
|
79
53
|
$fault = "client";
|
|
80
|
-
|
|
81
|
-
|
|
54
|
+
reason;
|
|
55
|
+
fieldList;
|
|
82
56
|
constructor(opts) {
|
|
83
57
|
super({
|
|
84
|
-
name: "
|
|
58
|
+
name: "ValidationException",
|
|
85
59
|
$fault: "client",
|
|
86
60
|
...opts,
|
|
87
61
|
});
|
|
88
|
-
Object.setPrototypeOf(this,
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
62
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
63
|
+
this.reason = opts.reason;
|
|
64
|
+
this.fieldList = opts.fieldList;
|
|
91
65
|
}
|
|
92
66
|
}
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
67
|
+
exports.ValidationException = ValidationException;
|
|
68
|
+
exports._InstanceType = {
|
|
69
|
+
I4I_METAL: "i4i.metal",
|
|
70
|
+
};
|
|
71
|
+
exports.VcfVersion = {
|
|
72
|
+
VCF_5_2_1: "VCF-5.2.1",
|
|
73
|
+
};
|
|
74
|
+
exports.CheckResult = {
|
|
75
|
+
FAILED: "FAILED",
|
|
76
|
+
PASSED: "PASSED",
|
|
77
|
+
UNKNOWN: "UNKNOWN",
|
|
78
|
+
};
|
|
79
|
+
exports.CheckType = {
|
|
80
|
+
HOST_COUNT: "HOST_COUNT",
|
|
81
|
+
KEY_COVERAGE: "KEY_COVERAGE",
|
|
82
|
+
KEY_REUSE: "KEY_REUSE",
|
|
83
|
+
REACHABILITY: "REACHABILITY",
|
|
84
|
+
};
|
|
85
|
+
exports.EnvironmentState = {
|
|
95
86
|
CREATED: "CREATED",
|
|
96
87
|
CREATE_FAILED: "CREATE_FAILED",
|
|
97
88
|
CREATING: "CREATING",
|
|
98
89
|
DELETED: "DELETED",
|
|
99
90
|
DELETING: "DELETING",
|
|
100
91
|
};
|
|
92
|
+
exports.HostState = {
|
|
93
|
+
CREATED: "CREATED",
|
|
94
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
95
|
+
CREATING: "CREATING",
|
|
96
|
+
DELETED: "DELETED",
|
|
97
|
+
DELETING: "DELETING",
|
|
98
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
99
|
+
UPDATING: "UPDATING",
|
|
100
|
+
};
|
|
101
101
|
class ServiceQuotaExceededException extends EvsServiceException_1.EvsServiceException {
|
|
102
102
|
name = "ServiceQuotaExceededException";
|
|
103
103
|
$fault = "client";
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentVlansCommand = exports.de_ListEnvironmentsCommand = exports.de_ListEnvironmentHostsCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteEnvironmentHostCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateEnvironmentHostCommand = exports.de_CreateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentVlansCommand = exports.se_ListEnvironmentsCommand = exports.se_ListEnvironmentHostsCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteEnvironmentHostCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateEnvironmentHostCommand = exports.se_CreateEnvironmentCommand = void 0;
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentVlansCommand = exports.de_ListEnvironmentsCommand = exports.de_ListEnvironmentHostsCommand = exports.de_GetEnvironmentCommand = exports.de_DisassociateEipFromVlanCommand = exports.de_DeleteEnvironmentHostCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateEnvironmentHostCommand = exports.de_CreateEnvironmentCommand = exports.de_AssociateEipToVlanCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentVlansCommand = exports.se_ListEnvironmentsCommand = exports.se_ListEnvironmentHostsCommand = exports.se_GetEnvironmentCommand = exports.se_DisassociateEipFromVlanCommand = exports.se_DeleteEnvironmentHostCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateEnvironmentHostCommand = exports.se_CreateEnvironmentCommand = exports.se_AssociateEipToVlanCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const EvsServiceException_1 = require("../models/EvsServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const se_AssociateEipToVlanCommand = async (input, context) => {
|
|
11
|
+
const headers = sharedHeaders("AssociateEipToVlan");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(se_AssociateEipToVlanRequest(input, context));
|
|
14
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
+
};
|
|
16
|
+
exports.se_AssociateEipToVlanCommand = se_AssociateEipToVlanCommand;
|
|
10
17
|
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
11
18
|
const headers = sharedHeaders("CreateEnvironment");
|
|
12
19
|
let body;
|
|
@@ -35,6 +42,13 @@ const se_DeleteEnvironmentHostCommand = async (input, context) => {
|
|
|
35
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
43
|
};
|
|
37
44
|
exports.se_DeleteEnvironmentHostCommand = se_DeleteEnvironmentHostCommand;
|
|
45
|
+
const se_DisassociateEipFromVlanCommand = async (input, context) => {
|
|
46
|
+
const headers = sharedHeaders("DisassociateEipFromVlan");
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(se_DisassociateEipFromVlanRequest(input, context));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
exports.se_DisassociateEipFromVlanCommand = se_DisassociateEipFromVlanCommand;
|
|
38
52
|
const se_GetEnvironmentCommand = async (input, context) => {
|
|
39
53
|
const headers = sharedHeaders("GetEnvironment");
|
|
40
54
|
let body;
|
|
@@ -84,6 +98,20 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
84
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
99
|
};
|
|
86
100
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
101
|
+
const de_AssociateEipToVlanCommand = async (output, context) => {
|
|
102
|
+
if (output.statusCode >= 300) {
|
|
103
|
+
return de_CommandError(output, context);
|
|
104
|
+
}
|
|
105
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
106
|
+
let contents = {};
|
|
107
|
+
contents = de_AssociateEipToVlanResponse(data, context);
|
|
108
|
+
const response = {
|
|
109
|
+
$metadata: deserializeMetadata(output),
|
|
110
|
+
...contents,
|
|
111
|
+
};
|
|
112
|
+
return response;
|
|
113
|
+
};
|
|
114
|
+
exports.de_AssociateEipToVlanCommand = de_AssociateEipToVlanCommand;
|
|
87
115
|
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
88
116
|
if (output.statusCode >= 300) {
|
|
89
117
|
return de_CommandError(output, context);
|
|
@@ -140,6 +168,20 @@ const de_DeleteEnvironmentHostCommand = async (output, context) => {
|
|
|
140
168
|
return response;
|
|
141
169
|
};
|
|
142
170
|
exports.de_DeleteEnvironmentHostCommand = de_DeleteEnvironmentHostCommand;
|
|
171
|
+
const de_DisassociateEipFromVlanCommand = async (output, context) => {
|
|
172
|
+
if (output.statusCode >= 300) {
|
|
173
|
+
return de_CommandError(output, context);
|
|
174
|
+
}
|
|
175
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
176
|
+
let contents = {};
|
|
177
|
+
contents = de_DisassociateEipFromVlanResponse(data, context);
|
|
178
|
+
const response = {
|
|
179
|
+
$metadata: deserializeMetadata(output),
|
|
180
|
+
...contents,
|
|
181
|
+
};
|
|
182
|
+
return response;
|
|
183
|
+
};
|
|
184
|
+
exports.de_DisassociateEipFromVlanCommand = de_DisassociateEipFromVlanCommand;
|
|
143
185
|
const de_GetEnvironmentCommand = async (output, context) => {
|
|
144
186
|
if (output.statusCode >= 300) {
|
|
145
187
|
return de_CommandError(output, context);
|
|
@@ -245,15 +287,15 @@ const de_CommandError = async (output, context) => {
|
|
|
245
287
|
};
|
|
246
288
|
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
247
289
|
switch (errorCode) {
|
|
248
|
-
case "ValidationException":
|
|
249
|
-
case "com.amazonaws.evs#ValidationException":
|
|
250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
251
|
-
case "ThrottlingException":
|
|
252
|
-
case "com.amazonaws.evs#ThrottlingException":
|
|
253
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
254
290
|
case "ResourceNotFoundException":
|
|
255
291
|
case "com.amazonaws.evs#ResourceNotFoundException":
|
|
256
292
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
293
|
+
case "ThrottlingException":
|
|
294
|
+
case "com.amazonaws.evs#ThrottlingException":
|
|
295
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
296
|
+
case "ValidationException":
|
|
297
|
+
case "com.amazonaws.evs#ValidationException":
|
|
298
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
257
299
|
case "ServiceQuotaExceededException":
|
|
258
300
|
case "com.amazonaws.evs#ServiceQuotaExceededException":
|
|
259
301
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
@@ -326,6 +368,14 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
326
368
|
});
|
|
327
369
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
328
370
|
};
|
|
371
|
+
const se_AssociateEipToVlanRequest = (input, context) => {
|
|
372
|
+
return (0, smithy_client_1.take)(input, {
|
|
373
|
+
allocationId: [],
|
|
374
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
375
|
+
environmentId: [],
|
|
376
|
+
vlanName: [],
|
|
377
|
+
});
|
|
378
|
+
};
|
|
329
379
|
const se_CreateEnvironmentHostRequest = (input, context) => {
|
|
330
380
|
return (0, smithy_client_1.take)(input, {
|
|
331
381
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -365,6 +415,19 @@ const se_DeleteEnvironmentRequest = (input, context) => {
|
|
|
365
415
|
environmentId: [],
|
|
366
416
|
});
|
|
367
417
|
};
|
|
418
|
+
const se_DisassociateEipFromVlanRequest = (input, context) => {
|
|
419
|
+
return (0, smithy_client_1.take)(input, {
|
|
420
|
+
associationId: [],
|
|
421
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
422
|
+
environmentId: [],
|
|
423
|
+
vlanName: [],
|
|
424
|
+
});
|
|
425
|
+
};
|
|
426
|
+
const de_AssociateEipToVlanResponse = (output, context) => {
|
|
427
|
+
return (0, smithy_client_1.take)(output, {
|
|
428
|
+
vlan: (_) => de_Vlan(_, context),
|
|
429
|
+
});
|
|
430
|
+
};
|
|
368
431
|
const de_Check = (output, context) => {
|
|
369
432
|
return (0, smithy_client_1.take)(output, {
|
|
370
433
|
impairedSince: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -402,6 +465,11 @@ const de_DeleteEnvironmentResponse = (output, context) => {
|
|
|
402
465
|
environment: (_) => de_Environment(_, context),
|
|
403
466
|
});
|
|
404
467
|
};
|
|
468
|
+
const de_DisassociateEipFromVlanResponse = (output, context) => {
|
|
469
|
+
return (0, smithy_client_1.take)(output, {
|
|
470
|
+
vlan: (_) => de_Vlan(_, context),
|
|
471
|
+
});
|
|
472
|
+
};
|
|
405
473
|
const de_Environment = (output, context) => {
|
|
406
474
|
return (0, smithy_client_1.take)(output, {
|
|
407
475
|
checks: (_) => de_ChecksList(_, context),
|
|
@@ -498,8 +566,11 @@ const de_Vlan = (output, context) => {
|
|
|
498
566
|
availabilityZone: smithy_client_1.expectString,
|
|
499
567
|
cidr: smithy_client_1.expectString,
|
|
500
568
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
569
|
+
eipAssociations: smithy_client_1._json,
|
|
501
570
|
functionName: smithy_client_1.expectString,
|
|
571
|
+
isPublic: smithy_client_1.expectBoolean,
|
|
502
572
|
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
573
|
+
networkAclId: smithy_client_1.expectString,
|
|
503
574
|
stateDetails: smithy_client_1.expectString,
|
|
504
575
|
subnetId: smithy_client_1.expectString,
|
|
505
576
|
vlanId: smithy_client_1.expectInt32,
|
package/dist-es/Evs.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { AssociateEipToVlanCommand, } from "./commands/AssociateEipToVlanCommand";
|
|
2
3
|
import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
|
|
3
4
|
import { CreateEnvironmentHostCommand, } from "./commands/CreateEnvironmentHostCommand";
|
|
4
5
|
import { DeleteEnvironmentCommand, } from "./commands/DeleteEnvironmentCommand";
|
|
5
6
|
import { DeleteEnvironmentHostCommand, } from "./commands/DeleteEnvironmentHostCommand";
|
|
7
|
+
import { DisassociateEipFromVlanCommand, } from "./commands/DisassociateEipFromVlanCommand";
|
|
6
8
|
import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
|
|
7
9
|
import { ListEnvironmentHostsCommand, } from "./commands/ListEnvironmentHostsCommand";
|
|
8
10
|
import { ListEnvironmentsCommand, } from "./commands/ListEnvironmentsCommand";
|
|
@@ -12,10 +14,12 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
12
14
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
13
15
|
import { EvsClient } from "./EvsClient";
|
|
14
16
|
const commands = {
|
|
17
|
+
AssociateEipToVlanCommand,
|
|
15
18
|
CreateEnvironmentCommand,
|
|
16
19
|
CreateEnvironmentHostCommand,
|
|
17
20
|
DeleteEnvironmentCommand,
|
|
18
21
|
DeleteEnvironmentHostCommand,
|
|
22
|
+
DisassociateEipFromVlanCommand,
|
|
19
23
|
GetEnvironmentCommand,
|
|
20
24
|
ListEnvironmentHostsCommand,
|
|
21
25
|
ListEnvironmentsCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_AssociateEipToVlanCommand, se_AssociateEipToVlanCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class AssociateEipToVlanCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonElasticVMwareService", "AssociateEipToVlan", {})
|
|
17
|
+
.n("EvsClient", "AssociateEipToVlanCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_AssociateEipToVlanCommand)
|
|
20
|
+
.de(de_AssociateEipToVlanCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DisassociateEipFromVlanCommand, se_DisassociateEipFromVlanCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DisassociateEipFromVlanCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonElasticVMwareService", "DisassociateEipFromVlan", {})
|
|
17
|
+
.n("EvsClient", "DisassociateEipFromVlanCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DisassociateEipFromVlanCommand)
|
|
20
|
+
.de(de_DisassociateEipFromVlanCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from "./AssociateEipToVlanCommand";
|
|
1
2
|
export * from "./CreateEnvironmentCommand";
|
|
2
3
|
export * from "./CreateEnvironmentHostCommand";
|
|
3
4
|
export * from "./DeleteEnvironmentCommand";
|
|
4
5
|
export * from "./DeleteEnvironmentHostCommand";
|
|
6
|
+
export * from "./DisassociateEipFromVlanCommand";
|
|
5
7
|
export * from "./GetEnvironmentCommand";
|
|
6
8
|
export * from "./ListEnvironmentHostsCommand";
|
|
7
9
|
export * from "./ListEnvironmentVlansCommand";
|
|
@@ -1,59 +1,27 @@
|
|
|
1
1
|
import { EvsServiceException as __BaseException } from "./EvsServiceException";
|
|
2
|
-
export const
|
|
3
|
-
I4I_METAL: "i4i.metal",
|
|
4
|
-
};
|
|
5
|
-
export const VcfVersion = {
|
|
6
|
-
VCF_5_2_1: "VCF-5.2.1",
|
|
7
|
-
};
|
|
8
|
-
export const CheckResult = {
|
|
9
|
-
FAILED: "FAILED",
|
|
10
|
-
PASSED: "PASSED",
|
|
11
|
-
UNKNOWN: "UNKNOWN",
|
|
12
|
-
};
|
|
13
|
-
export const CheckType = {
|
|
14
|
-
HOST_COUNT: "HOST_COUNT",
|
|
15
|
-
KEY_COVERAGE: "KEY_COVERAGE",
|
|
16
|
-
KEY_REUSE: "KEY_REUSE",
|
|
17
|
-
REACHABILITY: "REACHABILITY",
|
|
18
|
-
};
|
|
19
|
-
export const EnvironmentState = {
|
|
2
|
+
export const VlanState = {
|
|
20
3
|
CREATED: "CREATED",
|
|
21
4
|
CREATE_FAILED: "CREATE_FAILED",
|
|
22
5
|
CREATING: "CREATING",
|
|
23
6
|
DELETED: "DELETED",
|
|
24
7
|
DELETING: "DELETING",
|
|
25
8
|
};
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
29
|
-
OTHER: "other",
|
|
30
|
-
UNKNOWN_OPERATION: "unknownOperation",
|
|
31
|
-
};
|
|
32
|
-
export class ValidationException extends __BaseException {
|
|
33
|
-
name = "ValidationException";
|
|
9
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
10
|
+
name = "ResourceNotFoundException";
|
|
34
11
|
$fault = "client";
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
resourceId;
|
|
13
|
+
resourceType;
|
|
37
14
|
constructor(opts) {
|
|
38
15
|
super({
|
|
39
|
-
name: "
|
|
16
|
+
name: "ResourceNotFoundException",
|
|
40
17
|
$fault: "client",
|
|
41
18
|
...opts,
|
|
42
19
|
});
|
|
43
|
-
Object.setPrototypeOf(this,
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
20
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
21
|
+
this.resourceId = opts.resourceId;
|
|
22
|
+
this.resourceType = opts.resourceType;
|
|
46
23
|
}
|
|
47
24
|
}
|
|
48
|
-
export const HostState = {
|
|
49
|
-
CREATED: "CREATED",
|
|
50
|
-
CREATE_FAILED: "CREATE_FAILED",
|
|
51
|
-
CREATING: "CREATING",
|
|
52
|
-
DELETED: "DELETED",
|
|
53
|
-
DELETING: "DELETING",
|
|
54
|
-
UPDATE_FAILED: "UPDATE_FAILED",
|
|
55
|
-
UPDATING: "UPDATING",
|
|
56
|
-
};
|
|
57
25
|
export class ThrottlingException extends __BaseException {
|
|
58
26
|
name = "ThrottlingException";
|
|
59
27
|
$fault = "client";
|
|
@@ -69,28 +37,60 @@ export class ThrottlingException extends __BaseException {
|
|
|
69
37
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
70
38
|
}
|
|
71
39
|
}
|
|
72
|
-
export
|
|
73
|
-
|
|
40
|
+
export const ValidationExceptionReason = {
|
|
41
|
+
CANNOT_PARSE: "cannotParse",
|
|
42
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
43
|
+
OTHER: "other",
|
|
44
|
+
UNKNOWN_OPERATION: "unknownOperation",
|
|
45
|
+
};
|
|
46
|
+
export class ValidationException extends __BaseException {
|
|
47
|
+
name = "ValidationException";
|
|
74
48
|
$fault = "client";
|
|
75
|
-
|
|
76
|
-
|
|
49
|
+
reason;
|
|
50
|
+
fieldList;
|
|
77
51
|
constructor(opts) {
|
|
78
52
|
super({
|
|
79
|
-
name: "
|
|
53
|
+
name: "ValidationException",
|
|
80
54
|
$fault: "client",
|
|
81
55
|
...opts,
|
|
82
56
|
});
|
|
83
|
-
Object.setPrototypeOf(this,
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
57
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
58
|
+
this.reason = opts.reason;
|
|
59
|
+
this.fieldList = opts.fieldList;
|
|
86
60
|
}
|
|
87
61
|
}
|
|
88
|
-
export const
|
|
62
|
+
export const _InstanceType = {
|
|
63
|
+
I4I_METAL: "i4i.metal",
|
|
64
|
+
};
|
|
65
|
+
export const VcfVersion = {
|
|
66
|
+
VCF_5_2_1: "VCF-5.2.1",
|
|
67
|
+
};
|
|
68
|
+
export const CheckResult = {
|
|
69
|
+
FAILED: "FAILED",
|
|
70
|
+
PASSED: "PASSED",
|
|
71
|
+
UNKNOWN: "UNKNOWN",
|
|
72
|
+
};
|
|
73
|
+
export const CheckType = {
|
|
74
|
+
HOST_COUNT: "HOST_COUNT",
|
|
75
|
+
KEY_COVERAGE: "KEY_COVERAGE",
|
|
76
|
+
KEY_REUSE: "KEY_REUSE",
|
|
77
|
+
REACHABILITY: "REACHABILITY",
|
|
78
|
+
};
|
|
79
|
+
export const EnvironmentState = {
|
|
80
|
+
CREATED: "CREATED",
|
|
81
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
82
|
+
CREATING: "CREATING",
|
|
83
|
+
DELETED: "DELETED",
|
|
84
|
+
DELETING: "DELETING",
|
|
85
|
+
};
|
|
86
|
+
export const HostState = {
|
|
89
87
|
CREATED: "CREATED",
|
|
90
88
|
CREATE_FAILED: "CREATE_FAILED",
|
|
91
89
|
CREATING: "CREATING",
|
|
92
90
|
DELETED: "DELETED",
|
|
93
91
|
DELETING: "DELETING",
|
|
92
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
93
|
+
UPDATING: "UPDATING",
|
|
94
94
|
};
|
|
95
95
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
96
96
|
name = "ServiceQuotaExceededException";
|