@aws-sdk/client-elastic-load-balancing 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/ElasticLoadBalancing.js +0 -24
- package/dist-cjs/ElasticLoadBalancingClient.js +0 -29
- package/dist-cjs/commands/AddTagsCommand.js +0 -31
- package/dist-cjs/commands/ApplySecurityGroupsToLoadBalancerCommand.js +0 -27
- package/dist-cjs/commands/AttachLoadBalancerToSubnetsCommand.js +0 -28
- package/dist-cjs/commands/ConfigureHealthCheckCommand.js +0 -27
- package/dist-cjs/commands/CreateAppCookieStickinessPolicyCommand.js +0 -33
- package/dist-cjs/commands/CreateLBCookieStickinessPolicyCommand.js +0 -31
- package/dist-cjs/commands/CreateLoadBalancerCommand.js +0 -38
- package/dist-cjs/commands/CreateLoadBalancerListenersCommand.js +0 -27
- package/dist-cjs/commands/CreateLoadBalancerPolicyCommand.js +0 -26
- package/dist-cjs/commands/DeleteLoadBalancerCommand.js +0 -28
- package/dist-cjs/commands/DeleteLoadBalancerListenersCommand.js +0 -25
- package/dist-cjs/commands/DeleteLoadBalancerPolicyCommand.js +0 -25
- package/dist-cjs/commands/DeregisterInstancesFromLoadBalancerCommand.js +0 -30
- package/dist-cjs/commands/DescribeAccountLimitsCommand.js +0 -27
- package/dist-cjs/commands/DescribeInstanceHealthCommand.js +0 -25
- package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js +0 -25
- package/dist-cjs/commands/DescribeLoadBalancerPoliciesCommand.js +0 -29
- package/dist-cjs/commands/DescribeLoadBalancerPolicyTypesCommand.js +0 -32
- package/dist-cjs/commands/DescribeLoadBalancersCommand.js +0 -25
- package/dist-cjs/commands/DescribeTagsCommand.js +0 -25
- package/dist-cjs/commands/DetachLoadBalancerFromSubnetsCommand.js +0 -28
- package/dist-cjs/commands/DisableAvailabilityZonesForLoadBalancerCommand.js +0 -33
- package/dist-cjs/commands/EnableAvailabilityZonesForLoadBalancerCommand.js +0 -30
- package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js +0 -51
- package/dist-cjs/commands/RegisterInstancesWithLoadBalancerCommand.js +0 -43
- package/dist-cjs/commands/RemoveTagsCommand.js +0 -25
- package/dist-cjs/commands/SetLoadBalancerListenerSSLCertificateCommand.js +0 -29
- package/dist-cjs/commands/SetLoadBalancerPoliciesForBackendServerCommand.js +0 -35
- package/dist-cjs/commands/SetLoadBalancerPoliciesOfListenerCommand.js +0 -31
- package/dist-cjs/commands/index.js +32 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +5 -35
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -319
- package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_query.js +0 -3
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-cjs/waiters/index.js +4 -0
- package/dist-cjs/waiters/waitForAnyInstanceInService.js +0 -10
- package/dist-es/ElasticLoadBalancing.js +0 -1
- package/dist-es/ElasticLoadBalancingClient.js +0 -1
- package/dist-es/commands/AddTagsCommand.js +0 -1
- package/dist-es/commands/ApplySecurityGroupsToLoadBalancerCommand.js +0 -1
- package/dist-es/commands/AttachLoadBalancerToSubnetsCommand.js +0 -1
- package/dist-es/commands/ConfigureHealthCheckCommand.js +0 -1
- package/dist-es/commands/CreateAppCookieStickinessPolicyCommand.js +0 -1
- package/dist-es/commands/CreateLBCookieStickinessPolicyCommand.js +0 -1
- package/dist-es/commands/CreateLoadBalancerCommand.js +0 -1
- package/dist-es/commands/CreateLoadBalancerListenersCommand.js +0 -1
- package/dist-es/commands/CreateLoadBalancerPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteLoadBalancerCommand.js +0 -1
- package/dist-es/commands/DeleteLoadBalancerListenersCommand.js +0 -1
- package/dist-es/commands/DeleteLoadBalancerPolicyCommand.js +0 -1
- package/dist-es/commands/DeregisterInstancesFromLoadBalancerCommand.js +0 -1
- package/dist-es/commands/DescribeAccountLimitsCommand.js +0 -1
- package/dist-es/commands/DescribeInstanceHealthCommand.js +0 -1
- package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +0 -1
- package/dist-es/commands/DescribeLoadBalancerPoliciesCommand.js +0 -1
- package/dist-es/commands/DescribeLoadBalancerPolicyTypesCommand.js +0 -1
- package/dist-es/commands/DescribeLoadBalancersCommand.js +0 -1
- package/dist-es/commands/DescribeTagsCommand.js +0 -1
- package/dist-es/commands/DetachLoadBalancerFromSubnetsCommand.js +0 -1
- package/dist-es/commands/DisableAvailabilityZonesForLoadBalancerCommand.js +0 -1
- package/dist-es/commands/EnableAvailabilityZonesForLoadBalancerCommand.js +0 -1
- package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +0 -1
- package/dist-es/commands/RegisterInstancesWithLoadBalancerCommand.js +0 -1
- package/dist-es/commands/RemoveTagsCommand.js +0 -1
- package/dist-es/commands/SetLoadBalancerListenerSSLCertificateCommand.js +0 -1
- package/dist-es/commands/SetLoadBalancerPoliciesForBackendServerCommand.js +0 -1
- package/dist-es/commands/SetLoadBalancerPoliciesOfListenerCommand.js +0 -1
- package/dist-es/commands/index.js +29 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +5 -35
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeLoadBalancersPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_query.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForAnyInstanceInService.js +0 -1
- package/dist-types/commands/index.d.ts +29 -0
- package/dist-types/index.d.ts +5 -34
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/ElasticLoadBalancing.d.ts +30 -254
- package/dist-types/ts3.4/ElasticLoadBalancingClient.d.ts +24 -109
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ApplySecurityGroupsToLoadBalancerCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/AttachLoadBalancerToSubnetsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ConfigureHealthCheckCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateAppCookieStickinessPolicyCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/CreateLBCookieStickinessPolicyCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/CreateLoadBalancerCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/CreateLoadBalancerListenersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateLoadBalancerPolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteLoadBalancerCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteLoadBalancerListenersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteLoadBalancerPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeregisterInstancesFromLoadBalancerCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeInstanceHealthCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeLoadBalancerAttributesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeLoadBalancerPoliciesCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeLoadBalancerPolicyTypesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DetachLoadBalancerFromSubnetsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DisableAvailabilityZonesForLoadBalancerCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/EnableAvailabilityZonesForLoadBalancerCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ModifyLoadBalancerAttributesCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/RegisterInstancesWithLoadBalancerCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SetLoadBalancerListenerSSLCertificateCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/SetLoadBalancerPoliciesForBackendServerCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/SetLoadBalancerPoliciesOfListenerCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/index.d.ts +29 -0
- package/dist-types/ts3.4/index.d.ts +5 -34
- package/dist-types/ts3.4/models/models_0.d.ts +378 -1283
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForAnyInstanceInService.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +1 -0
- package/package.json +34 -31
- package/dist-cjs/ElasticLoadBalancing.js.map +0 -1
- package/dist-cjs/ElasticLoadBalancingClient.js.map +0 -1
- package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist-cjs/commands/ApplySecurityGroupsToLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/AttachLoadBalancerToSubnetsCommand.js.map +0 -1
- package/dist-cjs/commands/ConfigureHealthCheckCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAppCookieStickinessPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLBCookieStickinessPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLoadBalancerListenersCommand.js.map +0 -1
- package/dist-cjs/commands/CreateLoadBalancerPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLoadBalancerListenersCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLoadBalancerPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeregisterInstancesFromLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAccountLimitsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeInstanceHealthCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoadBalancerPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoadBalancerPolicyTypesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeLoadBalancersCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DetachLoadBalancerFromSubnetsCommand.js.map +0 -1
- package/dist-cjs/commands/DisableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/EnableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/ModifyLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterInstancesWithLoadBalancerCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveTagsCommand.js.map +0 -1
- package/dist-cjs/commands/SetLoadBalancerListenerSSLCertificateCommand.js.map +0 -1
- package/dist-cjs/commands/SetLoadBalancerPoliciesForBackendServerCommand.js.map +0 -1
- package/dist-cjs/commands/SetLoadBalancerPoliciesOfListenerCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_query.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForAnyInstanceInService.js.map +0 -1
- package/dist-es/ElasticLoadBalancing.js.map +0 -1
- package/dist-es/ElasticLoadBalancingClient.js.map +0 -1
- package/dist-es/commands/AddTagsCommand.js.map +0 -1
- package/dist-es/commands/ApplySecurityGroupsToLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/AttachLoadBalancerToSubnetsCommand.js.map +0 -1
- package/dist-es/commands/ConfigureHealthCheckCommand.js.map +0 -1
- package/dist-es/commands/CreateAppCookieStickinessPolicyCommand.js.map +0 -1
- package/dist-es/commands/CreateLBCookieStickinessPolicyCommand.js.map +0 -1
- package/dist-es/commands/CreateLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/CreateLoadBalancerListenersCommand.js.map +0 -1
- package/dist-es/commands/CreateLoadBalancerPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/DeleteLoadBalancerListenersCommand.js.map +0 -1
- package/dist-es/commands/DeleteLoadBalancerPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeregisterInstancesFromLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/DescribeAccountLimitsCommand.js.map +0 -1
- package/dist-es/commands/DescribeInstanceHealthCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoadBalancerPoliciesCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoadBalancerPolicyTypesCommand.js.map +0 -1
- package/dist-es/commands/DescribeLoadBalancersCommand.js.map +0 -1
- package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
- package/dist-es/commands/DetachLoadBalancerFromSubnetsCommand.js.map +0 -1
- package/dist-es/commands/DisableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/EnableAvailabilityZonesForLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js.map +0 -1
- package/dist-es/commands/RegisterInstancesWithLoadBalancerCommand.js.map +0 -1
- package/dist-es/commands/RemoveTagsCommand.js.map +0 -1
- package/dist-es/commands/SetLoadBalancerListenerSSLCertificateCommand.js.map +0 -1
- package/dist-es/commands/SetLoadBalancerPoliciesForBackendServerCommand.js.map +0 -1
- package/dist-es/commands/SetLoadBalancerPoliciesOfListenerCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeLoadBalancersPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_query.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForAnyInstanceInService.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ElasticLoadBalancing.ts +0 -1230
- package/src/ElasticLoadBalancingClient.ts +0 -415
- package/src/commands/AddTagsCommand.ts +0 -102
- package/src/commands/ApplySecurityGroupsToLoadBalancerCommand.ts +0 -109
- package/src/commands/AttachLoadBalancerToSubnetsCommand.ts +0 -105
- package/src/commands/ConfigureHealthCheckCommand.ts +0 -101
- package/src/commands/CreateAppCookieStickinessPolicyCommand.ts +0 -115
- package/src/commands/CreateLBCookieStickinessPolicyCommand.ts +0 -113
- package/src/commands/CreateLoadBalancerCommand.ts +0 -112
- package/src/commands/CreateLoadBalancerListenersCommand.ts +0 -104
- package/src/commands/CreateLoadBalancerPolicyCommand.ts +0 -100
- package/src/commands/DeleteLoadBalancerCommand.ts +0 -102
- package/src/commands/DeleteLoadBalancerListenersCommand.ts +0 -102
- package/src/commands/DeleteLoadBalancerPolicyCommand.ts +0 -99
- package/src/commands/DeregisterInstancesFromLoadBalancerCommand.ts +0 -110
- package/src/commands/DescribeAccountLimitsCommand.ts +0 -101
- package/src/commands/DescribeInstanceHealthCommand.ts +0 -99
- package/src/commands/DescribeLoadBalancerAttributesCommand.ts +0 -107
- package/src/commands/DescribeLoadBalancerPoliciesCommand.ts +0 -108
- package/src/commands/DescribeLoadBalancerPolicyTypesCommand.ts +0 -114
- package/src/commands/DescribeLoadBalancersCommand.ts +0 -99
- package/src/commands/DescribeTagsCommand.ts +0 -96
- package/src/commands/DetachLoadBalancerFromSubnetsCommand.ts +0 -107
- package/src/commands/DisableAvailabilityZonesForLoadBalancerCommand.ts +0 -118
- package/src/commands/EnableAvailabilityZonesForLoadBalancerCommand.ts +0 -112
- package/src/commands/ModifyLoadBalancerAttributesCommand.ts +0 -130
- package/src/commands/RegisterInstancesWithLoadBalancerCommand.ts +0 -123
- package/src/commands/RemoveTagsCommand.ts +0 -96
- package/src/commands/SetLoadBalancerListenerSSLCertificateCommand.ts +0 -114
- package/src/commands/SetLoadBalancerPoliciesForBackendServerCommand.ts +0 -124
- package/src/commands/SetLoadBalancerPoliciesOfListenerCommand.ts +0 -113
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -35
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2556
- package/src/pagination/DescribeLoadBalancersPaginator.ts +0 -58
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_query.ts +0 -5445
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForAnyInstanceInService.ts +0 -59
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
|
|
53
|
-
import {
|
|
54
|
-
ApplySecurityGroupsToLoadBalancerCommandInput,
|
|
55
|
-
ApplySecurityGroupsToLoadBalancerCommandOutput,
|
|
56
|
-
} from "./commands/ApplySecurityGroupsToLoadBalancerCommand";
|
|
57
|
-
import {
|
|
58
|
-
AttachLoadBalancerToSubnetsCommandInput,
|
|
59
|
-
AttachLoadBalancerToSubnetsCommandOutput,
|
|
60
|
-
} from "./commands/AttachLoadBalancerToSubnetsCommand";
|
|
61
|
-
import {
|
|
62
|
-
ConfigureHealthCheckCommandInput,
|
|
63
|
-
ConfigureHealthCheckCommandOutput,
|
|
64
|
-
} from "./commands/ConfigureHealthCheckCommand";
|
|
65
|
-
import {
|
|
66
|
-
CreateAppCookieStickinessPolicyCommandInput,
|
|
67
|
-
CreateAppCookieStickinessPolicyCommandOutput,
|
|
68
|
-
} from "./commands/CreateAppCookieStickinessPolicyCommand";
|
|
69
|
-
import {
|
|
70
|
-
CreateLBCookieStickinessPolicyCommandInput,
|
|
71
|
-
CreateLBCookieStickinessPolicyCommandOutput,
|
|
72
|
-
} from "./commands/CreateLBCookieStickinessPolicyCommand";
|
|
73
|
-
import { CreateLoadBalancerCommandInput, CreateLoadBalancerCommandOutput } from "./commands/CreateLoadBalancerCommand";
|
|
74
|
-
import {
|
|
75
|
-
CreateLoadBalancerListenersCommandInput,
|
|
76
|
-
CreateLoadBalancerListenersCommandOutput,
|
|
77
|
-
} from "./commands/CreateLoadBalancerListenersCommand";
|
|
78
|
-
import {
|
|
79
|
-
CreateLoadBalancerPolicyCommandInput,
|
|
80
|
-
CreateLoadBalancerPolicyCommandOutput,
|
|
81
|
-
} from "./commands/CreateLoadBalancerPolicyCommand";
|
|
82
|
-
import { DeleteLoadBalancerCommandInput, DeleteLoadBalancerCommandOutput } from "./commands/DeleteLoadBalancerCommand";
|
|
83
|
-
import {
|
|
84
|
-
DeleteLoadBalancerListenersCommandInput,
|
|
85
|
-
DeleteLoadBalancerListenersCommandOutput,
|
|
86
|
-
} from "./commands/DeleteLoadBalancerListenersCommand";
|
|
87
|
-
import {
|
|
88
|
-
DeleteLoadBalancerPolicyCommandInput,
|
|
89
|
-
DeleteLoadBalancerPolicyCommandOutput,
|
|
90
|
-
} from "./commands/DeleteLoadBalancerPolicyCommand";
|
|
91
|
-
import {
|
|
92
|
-
DeregisterInstancesFromLoadBalancerCommandInput,
|
|
93
|
-
DeregisterInstancesFromLoadBalancerCommandOutput,
|
|
94
|
-
} from "./commands/DeregisterInstancesFromLoadBalancerCommand";
|
|
95
|
-
import {
|
|
96
|
-
DescribeAccountLimitsCommandInput,
|
|
97
|
-
DescribeAccountLimitsCommandOutput,
|
|
98
|
-
} from "./commands/DescribeAccountLimitsCommand";
|
|
99
|
-
import {
|
|
100
|
-
DescribeInstanceHealthCommandInput,
|
|
101
|
-
DescribeInstanceHealthCommandOutput,
|
|
102
|
-
} from "./commands/DescribeInstanceHealthCommand";
|
|
103
|
-
import {
|
|
104
|
-
DescribeLoadBalancerAttributesCommandInput,
|
|
105
|
-
DescribeLoadBalancerAttributesCommandOutput,
|
|
106
|
-
} from "./commands/DescribeLoadBalancerAttributesCommand";
|
|
107
|
-
import {
|
|
108
|
-
DescribeLoadBalancerPoliciesCommandInput,
|
|
109
|
-
DescribeLoadBalancerPoliciesCommandOutput,
|
|
110
|
-
} from "./commands/DescribeLoadBalancerPoliciesCommand";
|
|
111
|
-
import {
|
|
112
|
-
DescribeLoadBalancerPolicyTypesCommandInput,
|
|
113
|
-
DescribeLoadBalancerPolicyTypesCommandOutput,
|
|
114
|
-
} from "./commands/DescribeLoadBalancerPolicyTypesCommand";
|
|
115
|
-
import {
|
|
116
|
-
DescribeLoadBalancersCommandInput,
|
|
117
|
-
DescribeLoadBalancersCommandOutput,
|
|
118
|
-
} from "./commands/DescribeLoadBalancersCommand";
|
|
119
|
-
import { DescribeTagsCommandInput, DescribeTagsCommandOutput } from "./commands/DescribeTagsCommand";
|
|
120
|
-
import {
|
|
121
|
-
DetachLoadBalancerFromSubnetsCommandInput,
|
|
122
|
-
DetachLoadBalancerFromSubnetsCommandOutput,
|
|
123
|
-
} from "./commands/DetachLoadBalancerFromSubnetsCommand";
|
|
124
|
-
import {
|
|
125
|
-
DisableAvailabilityZonesForLoadBalancerCommandInput,
|
|
126
|
-
DisableAvailabilityZonesForLoadBalancerCommandOutput,
|
|
127
|
-
} from "./commands/DisableAvailabilityZonesForLoadBalancerCommand";
|
|
128
|
-
import {
|
|
129
|
-
EnableAvailabilityZonesForLoadBalancerCommandInput,
|
|
130
|
-
EnableAvailabilityZonesForLoadBalancerCommandOutput,
|
|
131
|
-
} from "./commands/EnableAvailabilityZonesForLoadBalancerCommand";
|
|
132
|
-
import {
|
|
133
|
-
ModifyLoadBalancerAttributesCommandInput,
|
|
134
|
-
ModifyLoadBalancerAttributesCommandOutput,
|
|
135
|
-
} from "./commands/ModifyLoadBalancerAttributesCommand";
|
|
136
|
-
import {
|
|
137
|
-
RegisterInstancesWithLoadBalancerCommandInput,
|
|
138
|
-
RegisterInstancesWithLoadBalancerCommandOutput,
|
|
139
|
-
} from "./commands/RegisterInstancesWithLoadBalancerCommand";
|
|
140
|
-
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
141
|
-
import {
|
|
142
|
-
SetLoadBalancerListenerSSLCertificateCommandInput,
|
|
143
|
-
SetLoadBalancerListenerSSLCertificateCommandOutput,
|
|
144
|
-
} from "./commands/SetLoadBalancerListenerSSLCertificateCommand";
|
|
145
|
-
import {
|
|
146
|
-
SetLoadBalancerPoliciesForBackendServerCommandInput,
|
|
147
|
-
SetLoadBalancerPoliciesForBackendServerCommandOutput,
|
|
148
|
-
} from "./commands/SetLoadBalancerPoliciesForBackendServerCommand";
|
|
149
|
-
import {
|
|
150
|
-
SetLoadBalancerPoliciesOfListenerCommandInput,
|
|
151
|
-
SetLoadBalancerPoliciesOfListenerCommandOutput,
|
|
152
|
-
} from "./commands/SetLoadBalancerPoliciesOfListenerCommand";
|
|
153
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
154
|
-
|
|
155
|
-
export type ServiceInputTypes =
|
|
156
|
-
| AddTagsCommandInput
|
|
157
|
-
| ApplySecurityGroupsToLoadBalancerCommandInput
|
|
158
|
-
| AttachLoadBalancerToSubnetsCommandInput
|
|
159
|
-
| ConfigureHealthCheckCommandInput
|
|
160
|
-
| CreateAppCookieStickinessPolicyCommandInput
|
|
161
|
-
| CreateLBCookieStickinessPolicyCommandInput
|
|
162
|
-
| CreateLoadBalancerCommandInput
|
|
163
|
-
| CreateLoadBalancerListenersCommandInput
|
|
164
|
-
| CreateLoadBalancerPolicyCommandInput
|
|
165
|
-
| DeleteLoadBalancerCommandInput
|
|
166
|
-
| DeleteLoadBalancerListenersCommandInput
|
|
167
|
-
| DeleteLoadBalancerPolicyCommandInput
|
|
168
|
-
| DeregisterInstancesFromLoadBalancerCommandInput
|
|
169
|
-
| DescribeAccountLimitsCommandInput
|
|
170
|
-
| DescribeInstanceHealthCommandInput
|
|
171
|
-
| DescribeLoadBalancerAttributesCommandInput
|
|
172
|
-
| DescribeLoadBalancerPoliciesCommandInput
|
|
173
|
-
| DescribeLoadBalancerPolicyTypesCommandInput
|
|
174
|
-
| DescribeLoadBalancersCommandInput
|
|
175
|
-
| DescribeTagsCommandInput
|
|
176
|
-
| DetachLoadBalancerFromSubnetsCommandInput
|
|
177
|
-
| DisableAvailabilityZonesForLoadBalancerCommandInput
|
|
178
|
-
| EnableAvailabilityZonesForLoadBalancerCommandInput
|
|
179
|
-
| ModifyLoadBalancerAttributesCommandInput
|
|
180
|
-
| RegisterInstancesWithLoadBalancerCommandInput
|
|
181
|
-
| RemoveTagsCommandInput
|
|
182
|
-
| SetLoadBalancerListenerSSLCertificateCommandInput
|
|
183
|
-
| SetLoadBalancerPoliciesForBackendServerCommandInput
|
|
184
|
-
| SetLoadBalancerPoliciesOfListenerCommandInput;
|
|
185
|
-
|
|
186
|
-
export type ServiceOutputTypes =
|
|
187
|
-
| AddTagsCommandOutput
|
|
188
|
-
| ApplySecurityGroupsToLoadBalancerCommandOutput
|
|
189
|
-
| AttachLoadBalancerToSubnetsCommandOutput
|
|
190
|
-
| ConfigureHealthCheckCommandOutput
|
|
191
|
-
| CreateAppCookieStickinessPolicyCommandOutput
|
|
192
|
-
| CreateLBCookieStickinessPolicyCommandOutput
|
|
193
|
-
| CreateLoadBalancerCommandOutput
|
|
194
|
-
| CreateLoadBalancerListenersCommandOutput
|
|
195
|
-
| CreateLoadBalancerPolicyCommandOutput
|
|
196
|
-
| DeleteLoadBalancerCommandOutput
|
|
197
|
-
| DeleteLoadBalancerListenersCommandOutput
|
|
198
|
-
| DeleteLoadBalancerPolicyCommandOutput
|
|
199
|
-
| DeregisterInstancesFromLoadBalancerCommandOutput
|
|
200
|
-
| DescribeAccountLimitsCommandOutput
|
|
201
|
-
| DescribeInstanceHealthCommandOutput
|
|
202
|
-
| DescribeLoadBalancerAttributesCommandOutput
|
|
203
|
-
| DescribeLoadBalancerPoliciesCommandOutput
|
|
204
|
-
| DescribeLoadBalancerPolicyTypesCommandOutput
|
|
205
|
-
| DescribeLoadBalancersCommandOutput
|
|
206
|
-
| DescribeTagsCommandOutput
|
|
207
|
-
| DetachLoadBalancerFromSubnetsCommandOutput
|
|
208
|
-
| DisableAvailabilityZonesForLoadBalancerCommandOutput
|
|
209
|
-
| EnableAvailabilityZonesForLoadBalancerCommandOutput
|
|
210
|
-
| ModifyLoadBalancerAttributesCommandOutput
|
|
211
|
-
| RegisterInstancesWithLoadBalancerCommandOutput
|
|
212
|
-
| RemoveTagsCommandOutput
|
|
213
|
-
| SetLoadBalancerListenerSSLCertificateCommandOutput
|
|
214
|
-
| SetLoadBalancerPoliciesForBackendServerCommandOutput
|
|
215
|
-
| SetLoadBalancerPoliciesOfListenerCommandOutput;
|
|
216
|
-
|
|
217
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
218
|
-
/**
|
|
219
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
220
|
-
*/
|
|
221
|
-
requestHandler?: __HttpHandler;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
225
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
sha256?: __HashConstructor;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
|
-
urlParser?: __UrlParser;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* A function that can calculate the length of a request body.
|
|
238
|
-
* @internal
|
|
239
|
-
*/
|
|
240
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* A function that converts a stream into an array of bytes.
|
|
244
|
-
* @internal
|
|
245
|
-
*/
|
|
246
|
-
streamCollector?: __StreamCollector;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
base64Decoder?: __Decoder;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
256
|
-
* @internal
|
|
257
|
-
*/
|
|
258
|
-
base64Encoder?: __Encoder;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
262
|
-
* @internal
|
|
263
|
-
*/
|
|
264
|
-
utf8Decoder?: __Decoder;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
270
|
-
utf8Encoder?: __Encoder;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The runtime environment.
|
|
274
|
-
* @internal
|
|
275
|
-
*/
|
|
276
|
-
runtime?: string;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
280
|
-
* trait of an operation.
|
|
281
|
-
*/
|
|
282
|
-
disableHostPrefix?: boolean;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
286
|
-
*/
|
|
287
|
-
maxAttempts?: number | __Provider<number>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Specifies which retry algorithm to use.
|
|
291
|
-
*/
|
|
292
|
-
retryMode?: string | __Provider<string>;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Optional logger for logging debug/info/warn/error.
|
|
296
|
-
*/
|
|
297
|
-
logger?: __Logger;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Unique service identifier.
|
|
301
|
-
* @internal
|
|
302
|
-
*/
|
|
303
|
-
serviceId?: string;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* The AWS region to which this client will send requests
|
|
307
|
-
*/
|
|
308
|
-
region?: string | __Provider<string>;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Default credentials provider; Not available in browser runtime.
|
|
312
|
-
* @internal
|
|
313
|
-
*/
|
|
314
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
318
|
-
* @internal
|
|
319
|
-
*/
|
|
320
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
324
|
-
* @internal
|
|
325
|
-
*/
|
|
326
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
type ElasticLoadBalancingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
330
|
-
ClientDefaults &
|
|
331
|
-
RegionInputConfig &
|
|
332
|
-
EndpointsInputConfig &
|
|
333
|
-
RetryInputConfig &
|
|
334
|
-
HostHeaderInputConfig &
|
|
335
|
-
AwsAuthInputConfig &
|
|
336
|
-
UserAgentInputConfig;
|
|
337
|
-
/**
|
|
338
|
-
* The configuration interface of ElasticLoadBalancingClient class constructor that set the region, credentials and other options.
|
|
339
|
-
*/
|
|
340
|
-
export interface ElasticLoadBalancingClientConfig extends ElasticLoadBalancingClientConfigType {}
|
|
341
|
-
|
|
342
|
-
type ElasticLoadBalancingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
343
|
-
Required<ClientDefaults> &
|
|
344
|
-
RegionResolvedConfig &
|
|
345
|
-
EndpointsResolvedConfig &
|
|
346
|
-
RetryResolvedConfig &
|
|
347
|
-
HostHeaderResolvedConfig &
|
|
348
|
-
AwsAuthResolvedConfig &
|
|
349
|
-
UserAgentResolvedConfig;
|
|
350
|
-
/**
|
|
351
|
-
* The resolved configuration interface of ElasticLoadBalancingClient class. This is resolved and normalized from the {@link ElasticLoadBalancingClientConfig | constructor configuration interface}.
|
|
352
|
-
*/
|
|
353
|
-
export interface ElasticLoadBalancingClientResolvedConfig extends ElasticLoadBalancingClientResolvedConfigType {}
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* <fullname>Elastic Load Balancing</fullname>
|
|
357
|
-
*
|
|
358
|
-
* <p>A load balancer can distribute incoming traffic across your EC2 instances.
|
|
359
|
-
* This enables you to increase the availability of your application. The load balancer
|
|
360
|
-
* also monitors the health of its registered instances and ensures that it routes traffic
|
|
361
|
-
* only to healthy instances. You configure your load balancer to accept incoming traffic
|
|
362
|
-
* by specifying one or more listeners, which are configured with a protocol and port
|
|
363
|
-
* number for connections from clients to the load balancer and a protocol and port number
|
|
364
|
-
* for connections from the load balancer to the instances.</p>
|
|
365
|
-
* <p>Elastic Load Balancing supports three types of load balancers: Application Load Balancers, Network Load Balancers,
|
|
366
|
-
* and Classic Load Balancers. You can select a load balancer based on your application needs. For more
|
|
367
|
-
* information, see the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/">Elastic Load Balancing User Guide</a>.</p>
|
|
368
|
-
* <p>This reference covers the 2012-06-01 API, which supports Classic Load Balancers.
|
|
369
|
-
* The 2015-12-01 API supports Application Load Balancers and Network Load Balancers.</p>
|
|
370
|
-
*
|
|
371
|
-
* <p>To get started, create a load balancer with one or more listeners using <a>CreateLoadBalancer</a>.
|
|
372
|
-
* Register your instances with the load balancer using <a>RegisterInstancesWithLoadBalancer</a>.</p>
|
|
373
|
-
*
|
|
374
|
-
* <p>All Elastic Load Balancing operations are <i>idempotent</i>, which means
|
|
375
|
-
* that they complete at most one time. If you repeat an operation, it succeeds with a 200 OK
|
|
376
|
-
* response code.</p>
|
|
377
|
-
*/
|
|
378
|
-
export class ElasticLoadBalancingClient extends __Client<
|
|
379
|
-
__HttpHandlerOptions,
|
|
380
|
-
ServiceInputTypes,
|
|
381
|
-
ServiceOutputTypes,
|
|
382
|
-
ElasticLoadBalancingClientResolvedConfig
|
|
383
|
-
> {
|
|
384
|
-
/**
|
|
385
|
-
* The resolved configuration of ElasticLoadBalancingClient class. This is resolved and normalized from the {@link ElasticLoadBalancingClientConfig | constructor configuration interface}.
|
|
386
|
-
*/
|
|
387
|
-
readonly config: ElasticLoadBalancingClientResolvedConfig;
|
|
388
|
-
|
|
389
|
-
constructor(configuration: ElasticLoadBalancingClientConfig) {
|
|
390
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
391
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
392
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
393
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
394
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
395
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
396
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
397
|
-
super(_config_6);
|
|
398
|
-
this.config = _config_6;
|
|
399
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
400
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
401
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
402
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
403
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
404
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
409
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
410
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
411
|
-
*/
|
|
412
|
-
destroy(): void {
|
|
413
|
-
super.destroy();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ElasticLoadBalancingClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ElasticLoadBalancingClient";
|
|
19
|
-
import { AddTagsInput, AddTagsOutput } from "../models/models_0";
|
|
20
|
-
import { deserializeAws_queryAddTagsCommand, serializeAws_queryAddTagsCommand } from "../protocols/Aws_query";
|
|
21
|
-
|
|
22
|
-
export interface AddTagsCommandInput extends AddTagsInput {}
|
|
23
|
-
export interface AddTagsCommandOutput extends AddTagsOutput, __MetadataBearer {}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* <p>Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.</p>
|
|
27
|
-
*
|
|
28
|
-
* <p>Each tag consists of a key and an optional value. If a tag with the same key is already associated
|
|
29
|
-
* with the load balancer, <code>AddTags</code> updates its value.</p>
|
|
30
|
-
*
|
|
31
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html">Tag Your Classic Load Balancer</a>
|
|
32
|
-
* in the <i>Classic Load Balancers Guide</i>.</p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { ElasticLoadBalancingClient, AddTagsCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
|
|
37
|
-
* // const { ElasticLoadBalancingClient, AddTagsCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
|
|
38
|
-
* const client = new ElasticLoadBalancingClient(config);
|
|
39
|
-
* const command = new AddTagsCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link AddTagsCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link AddTagsCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class AddTagsCommand extends $Command<
|
|
49
|
-
AddTagsCommandInput,
|
|
50
|
-
AddTagsCommandOutput,
|
|
51
|
-
ElasticLoadBalancingClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: AddTagsCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: ElasticLoadBalancingClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<AddTagsCommandInput, AddTagsCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "ElasticLoadBalancingClient";
|
|
76
|
-
const commandName = "AddTagsCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: AddTagsInput.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: AddTagsOutput.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(input: AddTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_queryAddTagsCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AddTagsCommandOutput> {
|
|
97
|
-
return deserializeAws_queryAddTagsCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ElasticLoadBalancingClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ElasticLoadBalancingClient";
|
|
19
|
-
import { ApplySecurityGroupsToLoadBalancerInput, ApplySecurityGroupsToLoadBalancerOutput } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_queryApplySecurityGroupsToLoadBalancerCommand,
|
|
22
|
-
serializeAws_queryApplySecurityGroupsToLoadBalancerCommand,
|
|
23
|
-
} from "../protocols/Aws_query";
|
|
24
|
-
|
|
25
|
-
export interface ApplySecurityGroupsToLoadBalancerCommandInput extends ApplySecurityGroupsToLoadBalancerInput {}
|
|
26
|
-
export interface ApplySecurityGroupsToLoadBalancerCommandOutput
|
|
27
|
-
extends ApplySecurityGroupsToLoadBalancerOutput,
|
|
28
|
-
__MetadataBearer {}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* <p>Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.</p>
|
|
32
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#elb-vpc-security-groups">Security Groups for Load Balancers in a VPC</a>
|
|
33
|
-
* in the <i>Classic Load Balancers Guide</i>.</p>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { ElasticLoadBalancingClient, ApplySecurityGroupsToLoadBalancerCommand } from "@aws-sdk/client-elastic-load-balancing"; // ES Modules import
|
|
38
|
-
* // const { ElasticLoadBalancingClient, ApplySecurityGroupsToLoadBalancerCommand } = require("@aws-sdk/client-elastic-load-balancing"); // CommonJS import
|
|
39
|
-
* const client = new ElasticLoadBalancingClient(config);
|
|
40
|
-
* const command = new ApplySecurityGroupsToLoadBalancerCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link ApplySecurityGroupsToLoadBalancerCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link ApplySecurityGroupsToLoadBalancerCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link ElasticLoadBalancingClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class ApplySecurityGroupsToLoadBalancerCommand extends $Command<
|
|
50
|
-
ApplySecurityGroupsToLoadBalancerCommandInput,
|
|
51
|
-
ApplySecurityGroupsToLoadBalancerCommandOutput,
|
|
52
|
-
ElasticLoadBalancingClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: ApplySecurityGroupsToLoadBalancerCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: ElasticLoadBalancingClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<ApplySecurityGroupsToLoadBalancerCommandInput, ApplySecurityGroupsToLoadBalancerCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "ElasticLoadBalancingClient";
|
|
77
|
-
const commandName = "ApplySecurityGroupsToLoadBalancerCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: ApplySecurityGroupsToLoadBalancerInput.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: ApplySecurityGroupsToLoadBalancerOutput.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(
|
|
94
|
-
input: ApplySecurityGroupsToLoadBalancerCommandInput,
|
|
95
|
-
context: __SerdeContext
|
|
96
|
-
): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_queryApplySecurityGroupsToLoadBalancerCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(
|
|
101
|
-
output: __HttpResponse,
|
|
102
|
-
context: __SerdeContext
|
|
103
|
-
): Promise<ApplySecurityGroupsToLoadBalancerCommandOutput> {
|
|
104
|
-
return deserializeAws_queryApplySecurityGroupsToLoadBalancerCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|