@aws-sdk/client-ec2 3.199.0 → 3.201.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/CHANGELOG.md +22 -0
- package/README.md +7 -7
- package/dist-cjs/EC2.js +60 -0
- package/dist-cjs/commands/AcceptAddressTransferCommand.js +46 -0
- package/dist-cjs/commands/CreateDefaultVpcCommand.js +1 -2
- package/dist-cjs/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.js +2 -1
- package/dist-cjs/commands/DescribeAccountAttributesCommand.js +3 -3
- package/dist-cjs/commands/DescribeAddressTransfersCommand.js +46 -0
- package/dist-cjs/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.js +3 -3
- package/dist-cjs/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.js +3 -3
- package/dist-cjs/commands/DescribeLocalGatewayRouteTablesCommand.js +3 -3
- package/dist-cjs/commands/DisableAddressTransferCommand.js +46 -0
- package/dist-cjs/commands/DisassociateVpcCidrBlockCommand.js +2 -1
- package/dist-cjs/commands/EnableAddressTransferCommand.js +46 -0
- package/dist-cjs/commands/EnableEbsEncryptionByDefaultCommand.js +3 -3
- package/dist-cjs/commands/EnableFastLaunchCommand.js +3 -3
- package/dist-cjs/commands/EnableFastSnapshotRestoresCommand.js +1 -2
- package/dist-cjs/commands/ModifyVpcTenancyCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpnConnectionCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpnConnectionOptionsCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpnTunnelCertificateCommand.js +3 -3
- package/dist-cjs/commands/ModifyVpnTunnelOptionsCommand.js +1 -2
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/models/models_0.js +112 -113
- package/dist-cjs/models/models_1.js +25 -24
- package/dist-cjs/models/models_2.js +24 -22
- package/dist-cjs/models/models_3.js +29 -29
- package/dist-cjs/models/models_4.js +38 -38
- package/dist-cjs/models/models_5.js +46 -46
- package/dist-cjs/models/models_6.js +44 -4
- package/dist-cjs/pagination/DescribeAddressTransfersPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -1
- package/dist-cjs/protocols/Aws_ec2.js +332 -33
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/EC2.js +60 -0
- package/dist-es/commands/AcceptAddressTransferCommand.js +42 -0
- package/dist-es/commands/CreateDefaultVpcCommand.js +1 -2
- package/dist-es/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.js +2 -1
- package/dist-es/commands/DescribeAccountAttributesCommand.js +1 -1
- package/dist-es/commands/DescribeAddressTransfersCommand.js +42 -0
- package/dist-es/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.js +1 -1
- package/dist-es/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.js +1 -1
- package/dist-es/commands/DescribeLocalGatewayRouteTablesCommand.js +1 -1
- package/dist-es/commands/DisableAddressTransferCommand.js +42 -0
- package/dist-es/commands/DisassociateVpcCidrBlockCommand.js +2 -1
- package/dist-es/commands/EnableAddressTransferCommand.js +42 -0
- package/dist-es/commands/EnableEbsEncryptionByDefaultCommand.js +1 -1
- package/dist-es/commands/EnableFastLaunchCommand.js +1 -1
- package/dist-es/commands/EnableFastSnapshotRestoresCommand.js +1 -2
- package/dist-es/commands/ModifyVpcTenancyCommand.js +1 -1
- package/dist-es/commands/ModifyVpnConnectionCommand.js +1 -1
- package/dist-es/commands/ModifyVpnConnectionOptionsCommand.js +1 -1
- package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +1 -1
- package/dist-es/commands/ModifyVpnTunnelOptionsCommand.js +1 -2
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +101 -103
- package/dist-es/models/models_1.js +17 -16
- package/dist-es/models/models_2.js +16 -12
- package/dist-es/models/models_3.js +18 -18
- package/dist-es/models/models_4.js +24 -24
- package/dist-es/models/models_5.js +30 -30
- package/dist-es/models/models_6.js +30 -0
- package/dist-es/pagination/DescribeAddressTransfersPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -1
- package/dist-es/protocols/Aws_ec2.js +295 -0
- package/dist-types/EC2.d.ts +28 -0
- package/dist-types/EC2Client.d.ts +6 -2
- package/dist-types/commands/AcceptAddressTransferCommand.d.ts +37 -0
- package/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -2
- package/dist-types/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.d.ts +2 -1
- package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAddressTransfersCommand.d.ts +37 -0
- package/dist-types/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLocalGatewayRouteTablesCommand.d.ts +1 -1
- package/dist-types/commands/DisableAddressTransferCommand.d.ts +37 -0
- package/dist-types/commands/DisassociateVpcCidrBlockCommand.d.ts +2 -1
- package/dist-types/commands/EnableAddressTransferCommand.d.ts +37 -0
- package/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
- package/dist-types/commands/EnableFastLaunchCommand.d.ts +1 -1
- package/dist-types/commands/EnableFastSnapshotRestoresCommand.d.ts +1 -2
- package/dist-types/commands/ModifyVpcTenancyCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +194 -192
- package/dist-types/models/models_1.d.ts +67 -75
- package/dist-types/models/models_2.d.ts +78 -57
- package/dist-types/models/models_3.d.ts +97 -222
- package/dist-types/models/models_4.d.ts +244 -178
- package/dist-types/models/models_5.d.ts +214 -374
- package/dist-types/models/models_6.d.ts +374 -5
- package/dist-types/pagination/DescribeAddressTransfersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -1
- package/dist-types/protocols/Aws_ec2.d.ts +12 -0
- package/dist-types/ts3.4/EC2.d.ts +68 -0
- package/dist-types/ts3.4/EC2Client.d.ts +24 -0
- package/dist-types/ts3.4/commands/AcceptAddressTransferCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateDefaultVpcCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeAccountAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeAddressTransfersCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeLocalGatewayRouteTablesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisableAddressTransferCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DisassociateVpcCidrBlockCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/EnableAddressTransferCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableFastLaunchCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EnableFastSnapshotRestoresCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ModifyVpcTenancyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpnConnectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyVpnTunnelOptionsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +121 -119
- package/dist-types/ts3.4/models/models_1.d.ts +30 -33
- package/dist-types/ts3.4/models/models_2.d.ts +33 -34
- package/dist-types/ts3.4/models/models_3.d.ts +46 -54
- package/dist-types/ts3.4/models/models_4.d.ts +70 -71
- package/dist-types/ts3.4/models/models_5.d.ts +91 -106
- package/dist-types/ts3.4/models/models_6.d.ts +107 -1
- package/dist-types/ts3.4/pagination/DescribeAddressTransfersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -1
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +48 -0
- package/package.json +35 -35
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2016-11-15",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "EC2",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/EC2.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AcceptAddressTransferCommand, } from "./commands/AcceptAddressTransferCommand";
|
|
1
2
|
import { AcceptReservedInstancesExchangeQuoteCommand, } from "./commands/AcceptReservedInstancesExchangeQuoteCommand";
|
|
2
3
|
import { AcceptTransitGatewayMulticastDomainAssociationsCommand, } from "./commands/AcceptTransitGatewayMulticastDomainAssociationsCommand";
|
|
3
4
|
import { AcceptTransitGatewayPeeringAttachmentCommand, } from "./commands/AcceptTransitGatewayPeeringAttachmentCommand";
|
|
@@ -200,6 +201,7 @@ import { DeregisterTransitGatewayMulticastGroupSourcesCommand, } from "./command
|
|
|
200
201
|
import { DescribeAccountAttributesCommand, } from "./commands/DescribeAccountAttributesCommand";
|
|
201
202
|
import { DescribeAddressesAttributeCommand, } from "./commands/DescribeAddressesAttributeCommand";
|
|
202
203
|
import { DescribeAddressesCommand, } from "./commands/DescribeAddressesCommand";
|
|
204
|
+
import { DescribeAddressTransfersCommand, } from "./commands/DescribeAddressTransfersCommand";
|
|
203
205
|
import { DescribeAggregateIdFormatCommand, } from "./commands/DescribeAggregateIdFormatCommand";
|
|
204
206
|
import { DescribeAvailabilityZonesCommand, } from "./commands/DescribeAvailabilityZonesCommand";
|
|
205
207
|
import { DescribeBundleTasksCommand, } from "./commands/DescribeBundleTasksCommand";
|
|
@@ -337,6 +339,7 @@ import { DetachInternetGatewayCommand, } from "./commands/DetachInternetGatewayC
|
|
|
337
339
|
import { DetachNetworkInterfaceCommand, } from "./commands/DetachNetworkInterfaceCommand";
|
|
338
340
|
import { DetachVolumeCommand, } from "./commands/DetachVolumeCommand";
|
|
339
341
|
import { DetachVpnGatewayCommand, } from "./commands/DetachVpnGatewayCommand";
|
|
342
|
+
import { DisableAddressTransferCommand, } from "./commands/DisableAddressTransferCommand";
|
|
340
343
|
import { DisableEbsEncryptionByDefaultCommand, } from "./commands/DisableEbsEncryptionByDefaultCommand";
|
|
341
344
|
import { DisableFastLaunchCommand, } from "./commands/DisableFastLaunchCommand";
|
|
342
345
|
import { DisableFastSnapshotRestoresCommand, } from "./commands/DisableFastSnapshotRestoresCommand";
|
|
@@ -359,6 +362,7 @@ import { DisassociateTransitGatewayPolicyTableCommand, } from "./commands/Disass
|
|
|
359
362
|
import { DisassociateTransitGatewayRouteTableCommand, } from "./commands/DisassociateTransitGatewayRouteTableCommand";
|
|
360
363
|
import { DisassociateTrunkInterfaceCommand, } from "./commands/DisassociateTrunkInterfaceCommand";
|
|
361
364
|
import { DisassociateVpcCidrBlockCommand, } from "./commands/DisassociateVpcCidrBlockCommand";
|
|
365
|
+
import { EnableAddressTransferCommand, } from "./commands/EnableAddressTransferCommand";
|
|
362
366
|
import { EnableEbsEncryptionByDefaultCommand, } from "./commands/EnableEbsEncryptionByDefaultCommand";
|
|
363
367
|
import { EnableFastLaunchCommand, } from "./commands/EnableFastLaunchCommand";
|
|
364
368
|
import { EnableFastSnapshotRestoresCommand, } from "./commands/EnableFastSnapshotRestoresCommand";
|
|
@@ -542,6 +546,20 @@ import { UpdateSecurityGroupRuleDescriptionsIngressCommand, } from "./commands/U
|
|
|
542
546
|
import { WithdrawByoipCidrCommand, } from "./commands/WithdrawByoipCidrCommand";
|
|
543
547
|
import { EC2Client } from "./EC2Client";
|
|
544
548
|
export class EC2 extends EC2Client {
|
|
549
|
+
acceptAddressTransfer(args, optionsOrCb, cb) {
|
|
550
|
+
const command = new AcceptAddressTransferCommand(args);
|
|
551
|
+
if (typeof optionsOrCb === "function") {
|
|
552
|
+
this.send(command, optionsOrCb);
|
|
553
|
+
}
|
|
554
|
+
else if (typeof cb === "function") {
|
|
555
|
+
if (typeof optionsOrCb !== "object")
|
|
556
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
557
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
return this.send(command, optionsOrCb);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
545
563
|
acceptReservedInstancesExchangeQuote(args, optionsOrCb, cb) {
|
|
546
564
|
const command = new AcceptReservedInstancesExchangeQuoteCommand(args);
|
|
547
565
|
if (typeof optionsOrCb === "function") {
|
|
@@ -3370,6 +3388,20 @@ export class EC2 extends EC2Client {
|
|
|
3370
3388
|
return this.send(command, optionsOrCb);
|
|
3371
3389
|
}
|
|
3372
3390
|
}
|
|
3391
|
+
describeAddressTransfers(args, optionsOrCb, cb) {
|
|
3392
|
+
const command = new DescribeAddressTransfersCommand(args);
|
|
3393
|
+
if (typeof optionsOrCb === "function") {
|
|
3394
|
+
this.send(command, optionsOrCb);
|
|
3395
|
+
}
|
|
3396
|
+
else if (typeof cb === "function") {
|
|
3397
|
+
if (typeof optionsOrCb !== "object")
|
|
3398
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
3399
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
3400
|
+
}
|
|
3401
|
+
else {
|
|
3402
|
+
return this.send(command, optionsOrCb);
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3373
3405
|
describeAggregateIdFormat(args, optionsOrCb, cb) {
|
|
3374
3406
|
const command = new DescribeAggregateIdFormatCommand(args);
|
|
3375
3407
|
if (typeof optionsOrCb === "function") {
|
|
@@ -5288,6 +5320,20 @@ export class EC2 extends EC2Client {
|
|
|
5288
5320
|
return this.send(command, optionsOrCb);
|
|
5289
5321
|
}
|
|
5290
5322
|
}
|
|
5323
|
+
disableAddressTransfer(args, optionsOrCb, cb) {
|
|
5324
|
+
const command = new DisableAddressTransferCommand(args);
|
|
5325
|
+
if (typeof optionsOrCb === "function") {
|
|
5326
|
+
this.send(command, optionsOrCb);
|
|
5327
|
+
}
|
|
5328
|
+
else if (typeof cb === "function") {
|
|
5329
|
+
if (typeof optionsOrCb !== "object")
|
|
5330
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
5331
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
5332
|
+
}
|
|
5333
|
+
else {
|
|
5334
|
+
return this.send(command, optionsOrCb);
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5291
5337
|
disableEbsEncryptionByDefault(args, optionsOrCb, cb) {
|
|
5292
5338
|
const command = new DisableEbsEncryptionByDefaultCommand(args);
|
|
5293
5339
|
if (typeof optionsOrCb === "function") {
|
|
@@ -5596,6 +5642,20 @@ export class EC2 extends EC2Client {
|
|
|
5596
5642
|
return this.send(command, optionsOrCb);
|
|
5597
5643
|
}
|
|
5598
5644
|
}
|
|
5645
|
+
enableAddressTransfer(args, optionsOrCb, cb) {
|
|
5646
|
+
const command = new EnableAddressTransferCommand(args);
|
|
5647
|
+
if (typeof optionsOrCb === "function") {
|
|
5648
|
+
this.send(command, optionsOrCb);
|
|
5649
|
+
}
|
|
5650
|
+
else if (typeof cb === "function") {
|
|
5651
|
+
if (typeof optionsOrCb !== "object")
|
|
5652
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
5653
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
5654
|
+
}
|
|
5655
|
+
else {
|
|
5656
|
+
return this.send(command, optionsOrCb);
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5599
5659
|
enableEbsEncryptionByDefault(args, optionsOrCb, cb) {
|
|
5600
5660
|
const command = new EnableEbsEncryptionByDefaultCommand(args);
|
|
5601
5661
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AcceptAddressTransferRequestFilterSensitiveLog, AcceptAddressTransferResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_ec2AcceptAddressTransferCommand, serializeAws_ec2AcceptAddressTransferCommand, } from "../protocols/Aws_ec2";
|
|
6
|
+
export class AcceptAddressTransferCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, AcceptAddressTransferCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EC2Client";
|
|
25
|
+
const commandName = "AcceptAddressTransferCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: AcceptAddressTransferRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: AcceptAddressTransferResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_ec2AcceptAddressTransferCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_ec2AcceptAddressTransferCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,8 +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 { CreateDefaultVpcRequestFilterSensitiveLog } from "../models/
|
|
5
|
-
import { CreateDefaultVpcResultFilterSensitiveLog } from "../models/models_1";
|
|
4
|
+
import { CreateDefaultVpcRequestFilterSensitiveLog, CreateDefaultVpcResultFilterSensitiveLog, } from "../models/models_1";
|
|
6
5
|
import { deserializeAws_ec2CreateDefaultVpcCommand, serializeAws_ec2CreateDefaultVpcCommand, } from "../protocols/Aws_ec2";
|
|
7
6
|
export class CreateDefaultVpcCommand extends $Command {
|
|
8
7
|
constructor(input) {
|
|
@@ -1,7 +1,8 @@
|
|
|
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 { DeregisterTransitGatewayMulticastGroupSourcesRequestFilterSensitiveLog,
|
|
4
|
+
import { DeregisterTransitGatewayMulticastGroupSourcesRequestFilterSensitiveLog, } from "../models/models_2";
|
|
5
|
+
import { DeregisterTransitGatewayMulticastGroupSourcesResultFilterSensitiveLog, } from "../models/models_3";
|
|
5
6
|
import { deserializeAws_ec2DeregisterTransitGatewayMulticastGroupSourcesCommand, serializeAws_ec2DeregisterTransitGatewayMulticastGroupSourcesCommand, } from "../protocols/Aws_ec2";
|
|
6
7
|
export class DeregisterTransitGatewayMulticastGroupSourcesCommand extends $Command {
|
|
7
8
|
constructor(input) {
|
|
@@ -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 { DescribeAccountAttributesRequestFilterSensitiveLog, DescribeAccountAttributesResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { DescribeAccountAttributesRequestFilterSensitiveLog, DescribeAccountAttributesResultFilterSensitiveLog, } from "../models/models_3";
|
|
5
5
|
import { deserializeAws_ec2DescribeAccountAttributesCommand, serializeAws_ec2DescribeAccountAttributesCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class DescribeAccountAttributesCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeAddressTransfersRequestFilterSensitiveLog, DescribeAddressTransfersResultFilterSensitiveLog, } from "../models/models_3";
|
|
5
|
+
import { deserializeAws_ec2DescribeAddressTransfersCommand, serializeAws_ec2DescribeAddressTransfersCommand, } from "../protocols/Aws_ec2";
|
|
6
|
+
export class DescribeAddressTransfersCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAddressTransfersCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EC2Client";
|
|
25
|
+
const commandName = "DescribeAddressTransfersCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeAddressTransfersRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeAddressTransfersResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_ec2DescribeAddressTransfersCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_ec2DescribeAddressTransfersCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
package/dist-es/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.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 { DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestFilterSensitiveLog, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestFilterSensitiveLog, DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultFilterSensitiveLog, } from "../models/models_4";
|
|
5
5
|
import { deserializeAws_ec2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand, serializeAws_ec2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -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 { DescribeLocalGatewayRouteTableVpcAssociationsRequestFilterSensitiveLog, DescribeLocalGatewayRouteTableVpcAssociationsResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { DescribeLocalGatewayRouteTableVpcAssociationsRequestFilterSensitiveLog, DescribeLocalGatewayRouteTableVpcAssociationsResultFilterSensitiveLog, } from "../models/models_4";
|
|
5
5
|
import { deserializeAws_ec2DescribeLocalGatewayRouteTableVpcAssociationsCommand, serializeAws_ec2DescribeLocalGatewayRouteTableVpcAssociationsCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class DescribeLocalGatewayRouteTableVpcAssociationsCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -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 { DescribeLocalGatewayRouteTablesRequestFilterSensitiveLog, DescribeLocalGatewayRouteTablesResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { DescribeLocalGatewayRouteTablesRequestFilterSensitiveLog, DescribeLocalGatewayRouteTablesResultFilterSensitiveLog, } from "../models/models_4";
|
|
5
5
|
import { deserializeAws_ec2DescribeLocalGatewayRouteTablesCommand, serializeAws_ec2DescribeLocalGatewayRouteTablesCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class DescribeLocalGatewayRouteTablesCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DisableAddressTransferRequestFilterSensitiveLog, DisableAddressTransferResultFilterSensitiveLog, } from "../models/models_4";
|
|
5
|
+
import { deserializeAws_ec2DisableAddressTransferCommand, serializeAws_ec2DisableAddressTransferCommand, } from "../protocols/Aws_ec2";
|
|
6
|
+
export class DisableAddressTransferCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DisableAddressTransferCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EC2Client";
|
|
25
|
+
const commandName = "DisableAddressTransferCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DisableAddressTransferRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DisableAddressTransferResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_ec2DisableAddressTransferCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_ec2DisableAddressTransferCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
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 { DisassociateVpcCidrBlockRequestFilterSensitiveLog
|
|
4
|
+
import { DisassociateVpcCidrBlockRequestFilterSensitiveLog } from "../models/models_4";
|
|
5
|
+
import { DisassociateVpcCidrBlockResultFilterSensitiveLog } from "../models/models_5";
|
|
5
6
|
import { deserializeAws_ec2DisassociateVpcCidrBlockCommand, serializeAws_ec2DisassociateVpcCidrBlockCommand, } from "../protocols/Aws_ec2";
|
|
6
7
|
export class DisassociateVpcCidrBlockCommand extends $Command {
|
|
7
8
|
constructor(input) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { EnableAddressTransferRequestFilterSensitiveLog, EnableAddressTransferResultFilterSensitiveLog, } from "../models/models_5";
|
|
5
|
+
import { deserializeAws_ec2EnableAddressTransferCommand, serializeAws_ec2EnableAddressTransferCommand, } from "../protocols/Aws_ec2";
|
|
6
|
+
export class EnableAddressTransferCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, EnableAddressTransferCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EC2Client";
|
|
25
|
+
const commandName = "EnableAddressTransferCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: EnableAddressTransferRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: EnableAddressTransferResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_ec2EnableAddressTransferCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_ec2EnableAddressTransferCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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 { EnableEbsEncryptionByDefaultRequestFilterSensitiveLog, EnableEbsEncryptionByDefaultResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { EnableEbsEncryptionByDefaultRequestFilterSensitiveLog, EnableEbsEncryptionByDefaultResultFilterSensitiveLog, } from "../models/models_5";
|
|
5
5
|
import { deserializeAws_ec2EnableEbsEncryptionByDefaultCommand, serializeAws_ec2EnableEbsEncryptionByDefaultCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class EnableEbsEncryptionByDefaultCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -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 { EnableFastLaunchRequestFilterSensitiveLog, EnableFastLaunchResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { EnableFastLaunchRequestFilterSensitiveLog, EnableFastLaunchResultFilterSensitiveLog, } from "../models/models_5";
|
|
5
5
|
import { deserializeAws_ec2EnableFastLaunchCommand, serializeAws_ec2EnableFastLaunchCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class EnableFastLaunchCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -1,8 +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 { EnableFastSnapshotRestoresRequestFilterSensitiveLog, } from "../models/
|
|
5
|
-
import { EnableFastSnapshotRestoresResultFilterSensitiveLog, } from "../models/models_5";
|
|
4
|
+
import { EnableFastSnapshotRestoresRequestFilterSensitiveLog, EnableFastSnapshotRestoresResultFilterSensitiveLog, } from "../models/models_5";
|
|
6
5
|
import { deserializeAws_ec2EnableFastSnapshotRestoresCommand, serializeAws_ec2EnableFastSnapshotRestoresCommand, } from "../protocols/Aws_ec2";
|
|
7
6
|
export class EnableFastSnapshotRestoresCommand extends $Command {
|
|
8
7
|
constructor(input) {
|
|
@@ -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 { ModifyVpcTenancyRequestFilterSensitiveLog, ModifyVpcTenancyResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { ModifyVpcTenancyRequestFilterSensitiveLog, ModifyVpcTenancyResultFilterSensitiveLog, } from "../models/models_6";
|
|
5
5
|
import { deserializeAws_ec2ModifyVpcTenancyCommand, serializeAws_ec2ModifyVpcTenancyCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class ModifyVpcTenancyCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -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 { ModifyVpnConnectionRequestFilterSensitiveLog, ModifyVpnConnectionResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { ModifyVpnConnectionRequestFilterSensitiveLog, ModifyVpnConnectionResultFilterSensitiveLog, } from "../models/models_6";
|
|
5
5
|
import { deserializeAws_ec2ModifyVpnConnectionCommand, serializeAws_ec2ModifyVpnConnectionCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class ModifyVpnConnectionCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -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 { ModifyVpnConnectionOptionsRequestFilterSensitiveLog, ModifyVpnConnectionOptionsResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { ModifyVpnConnectionOptionsRequestFilterSensitiveLog, ModifyVpnConnectionOptionsResultFilterSensitiveLog, } from "../models/models_6";
|
|
5
5
|
import { deserializeAws_ec2ModifyVpnConnectionOptionsCommand, serializeAws_ec2ModifyVpnConnectionOptionsCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class ModifyVpnConnectionOptionsCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -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 { ModifyVpnTunnelCertificateRequestFilterSensitiveLog, ModifyVpnTunnelCertificateResultFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { ModifyVpnTunnelCertificateRequestFilterSensitiveLog, ModifyVpnTunnelCertificateResultFilterSensitiveLog, } from "../models/models_6";
|
|
5
5
|
import { deserializeAws_ec2ModifyVpnTunnelCertificateCommand, serializeAws_ec2ModifyVpnTunnelCertificateCommand, } from "../protocols/Aws_ec2";
|
|
6
6
|
export class ModifyVpnTunnelCertificateCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -1,8 +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 { ModifyVpnTunnelOptionsRequestFilterSensitiveLog } from "../models/
|
|
5
|
-
import { ModifyVpnTunnelOptionsResultFilterSensitiveLog } from "../models/models_6";
|
|
4
|
+
import { ModifyVpnTunnelOptionsRequestFilterSensitiveLog, ModifyVpnTunnelOptionsResultFilterSensitiveLog, } from "../models/models_6";
|
|
6
5
|
import { deserializeAws_ec2ModifyVpnTunnelOptionsCommand, serializeAws_ec2ModifyVpnTunnelOptionsCommand, } from "../protocols/Aws_ec2";
|
|
7
6
|
export class ModifyVpnTunnelOptionsCommand extends $Command {
|
|
8
7
|
constructor(input) {
|