@aws-sdk/client-elastic-load-balancing 3.774.0 → 3.777.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.
Files changed (36) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +17 -18
  3. package/dist-es/ElasticLoadBalancingClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/runtimeExtensions.js +2 -14
  7. package/dist-types/commands/AddTagsCommand.d.ts +12 -9
  8. package/dist-types/commands/ApplySecurityGroupsToLoadBalancerCommand.d.ts +6 -6
  9. package/dist-types/commands/AttachLoadBalancerToSubnetsCommand.d.ts +6 -6
  10. package/dist-types/commands/ConfigureHealthCheckCommand.d.ts +16 -16
  11. package/dist-types/commands/CreateAppCookieStickinessPolicyCommand.d.ts +9 -6
  12. package/dist-types/commands/CreateLBCookieStickinessPolicyCommand.d.ts +9 -6
  13. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +61 -65
  14. package/dist-types/commands/CreateLoadBalancerListenersCommand.d.ts +23 -18
  15. package/dist-types/commands/CreateLoadBalancerPolicyCommand.d.ts +32 -25
  16. package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +7 -4
  17. package/dist-types/commands/DeleteLoadBalancerListenersCommand.d.ts +8 -5
  18. package/dist-types/commands/DeleteLoadBalancerPolicyCommand.d.ts +8 -5
  19. package/dist-types/commands/DeregisterInstancesFromLoadBalancerCommand.d.ts +9 -9
  20. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -0
  21. package/dist-types/commands/DescribeInstanceHealthCommand.d.ts +13 -13
  22. package/dist-types/commands/DescribeLoadBalancerAttributesCommand.d.ts +14 -14
  23. package/dist-types/commands/DescribeLoadBalancerPoliciesCommand.d.ts +11 -11
  24. package/dist-types/commands/DescribeLoadBalancerPolicyTypesCommand.d.ts +11 -11
  25. package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +50 -50
  26. package/dist-types/commands/DescribeTagsCommand.d.ts +11 -11
  27. package/dist-types/commands/DetachLoadBalancerFromSubnetsCommand.d.ts +6 -6
  28. package/dist-types/commands/DisableAvailabilityZonesForLoadBalancerCommand.d.ts +6 -6
  29. package/dist-types/commands/EnableAvailabilityZonesForLoadBalancerCommand.d.ts +6 -6
  30. package/dist-types/commands/ModifyLoadBalancerAttributesCommand.d.ts +22 -23
  31. package/dist-types/commands/RegisterInstancesWithLoadBalancerCommand.d.ts +10 -10
  32. package/dist-types/commands/RemoveTagsCommand.d.ts +9 -6
  33. package/dist-types/commands/SetLoadBalancerListenerSSLCertificateCommand.d.ts +9 -6
  34. package/dist-types/commands/SetLoadBalancerPoliciesForBackendServerCommand.d.ts +9 -6
  35. package/dist-types/commands/SetLoadBalancerPoliciesOfListenerCommand.d.ts +9 -6
  36. package/package.json +34 -34
@@ -40,8 +40,6 @@ const defaultElasticLoadBalancingHttpAuthSchemeProvider = (authParameters) => {
40
40
  exports.defaultElasticLoadBalancingHttpAuthSchemeProvider = defaultElasticLoadBalancingHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
42
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
- return {
44
- ...config_0,
45
- };
43
+ return Object.assign(config_0, {});
46
44
  };
47
45
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -101,12 +101,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
101
101
 
102
102
  // src/endpoint/EndpointParameters.ts
103
103
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
104
- return {
105
- ...options,
104
+ return Object.assign(options, {
106
105
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
107
106
  useFipsEndpoint: options.useFipsEndpoint ?? false,
108
107
  defaultSigningName: "elasticloadbalancing"
109
- };
108
+ });
110
109
  }, "resolveClientEndpointParameters");
111
110
  var commonParams = {
112
111
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -163,22 +162,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
163
162
  }, "resolveHttpAuthRuntimeConfig");
164
163
 
165
164
  // src/runtimeExtensions.ts
166
- var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
167
165
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
168
- const extensionConfiguration = {
169
- ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
170
- ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
171
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
172
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
173
- };
166
+ const extensionConfiguration = Object.assign(
167
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
168
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
169
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
170
+ getHttpAuthExtensionConfiguration(runtimeConfig)
171
+ );
174
172
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
175
- return {
176
- ...runtimeConfig,
177
- ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
178
- ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
179
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
180
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
181
- };
173
+ return Object.assign(
174
+ runtimeConfig,
175
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
176
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
177
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
178
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
179
+ );
182
180
  }, "resolveRuntimeExtensions");
183
181
 
184
182
  // src/ElasticLoadBalancingClient.ts
@@ -192,6 +190,8 @@ var ElasticLoadBalancingClient = class extends import_smithy_client.Client {
192
190
  config;
193
191
  constructor(...[configuration]) {
194
192
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
193
+ super(_config_0);
194
+ this.initConfig = _config_0;
195
195
  const _config_1 = resolveClientEndpointParameters(_config_0);
196
196
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
197
197
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
@@ -200,7 +200,6 @@ var ElasticLoadBalancingClient = class extends import_smithy_client.Client {
200
200
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
201
201
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
202
202
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
203
- super(_config_8);
204
203
  this.config = _config_8;
205
204
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
206
205
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
@@ -17,6 +17,8 @@ export class ElasticLoadBalancingClient extends __Client {
17
17
  config;
18
18
  constructor(...[configuration]) {
19
19
  const _config_0 = __getRuntimeConfig(configuration || {});
20
+ super(_config_0);
21
+ this.initConfig = _config_0;
20
22
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
23
  const _config_2 = resolveUserAgentConfig(_config_1);
22
24
  const _config_3 = resolveRetryConfig(_config_2);
@@ -25,7 +27,6 @@ export class ElasticLoadBalancingClient extends __Client {
25
27
  const _config_6 = resolveEndpointConfig(_config_5);
26
28
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
29
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
- super(_config_8);
29
30
  this.config = _config_8;
30
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
32
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -35,7 +35,5 @@ export const defaultElasticLoadBalancingHttpAuthSchemeProvider = (authParameters
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
37
  const config_0 = resolveAwsSdkSigV4Config(config);
38
- return {
39
- ...config_0,
40
- };
38
+ return Object.assign(config_0, {});
41
39
  };
@@ -1,10 +1,9 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
- return {
3
- ...options,
2
+ return Object.assign(options, {
4
3
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
6
5
  defaultSigningName: "elasticloadbalancing",
7
- };
6
+ });
8
7
  };
9
8
  export const commonParams = {
10
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
- const asPartial = (t) => t;
6
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = {
8
- ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
- };
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
13
7
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
- return {
15
- ...runtimeConfig,
16
- ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
- };
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
21
9
  };
@@ -75,30 +75,33 @@ declare const AddTagsCommand_base: {
75
75
  * @throws {@link ElasticLoadBalancingServiceException}
76
76
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
77
77
  *
78
- * @public
78
+ *
79
79
  * @example To add tags to a load balancer
80
80
  * ```javascript
81
81
  * // This example adds two tags to the specified load balancer.
82
82
  * const input = {
83
- * "LoadBalancerNames": [
83
+ * LoadBalancerNames: [
84
84
  * "my-load-balancer"
85
85
  * ],
86
- * "Tags": [
86
+ * Tags: [
87
87
  * {
88
- * "Key": "project",
89
- * "Value": "lima"
88
+ * Key: "project",
89
+ * Value: "lima"
90
90
  * },
91
91
  * {
92
- * "Key": "department",
93
- * "Value": "digital-media"
92
+ * Key: "department",
93
+ * Value: "digital-media"
94
94
  * }
95
95
  * ]
96
96
  * };
97
97
  * const command = new AddTagsCommand(input);
98
- * await client.send(command);
99
- * // example id: elb-add-tags-1
98
+ * const response = await client.send(command);
99
+ * /* response is
100
+ * { /* metadata only *\/ }
101
+ * *\/
100
102
  * ```
101
103
  *
104
+ * @public
102
105
  */
103
106
  export declare class AddTagsCommand extends AddTagsCommand_base {
104
107
  /** @internal type navigation helper, not in runtime. */
@@ -70,28 +70,28 @@ declare const ApplySecurityGroupsToLoadBalancerCommand_base: {
70
70
  * @throws {@link ElasticLoadBalancingServiceException}
71
71
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
72
72
  *
73
- * @public
73
+ *
74
74
  * @example To associate a security group with a load balancer in a VPC
75
75
  * ```javascript
76
76
  * // This example associates a security group with the specified load balancer in a VPC.
77
77
  * const input = {
78
- * "LoadBalancerName": "my-load-balancer",
79
- * "SecurityGroups": [
78
+ * LoadBalancerName: "my-load-balancer",
79
+ * SecurityGroups: [
80
80
  * "sg-fc448899"
81
81
  * ]
82
82
  * };
83
83
  * const command = new ApplySecurityGroupsToLoadBalancerCommand(input);
84
84
  * const response = await client.send(command);
85
- * /* response ==
85
+ * /* response is
86
86
  * {
87
- * "SecurityGroups": [
87
+ * SecurityGroups: [
88
88
  * "sg-fc448899"
89
89
  * ]
90
90
  * }
91
91
  * *\/
92
- * // example id: elb-apply-security-groups-to-load-balancer-1
93
92
  * ```
94
93
  *
94
+ * @public
95
95
  */
96
96
  export declare class ApplySecurityGroupsToLoadBalancerCommand extends ApplySecurityGroupsToLoadBalancerCommand_base {
97
97
  /** @internal type navigation helper, not in runtime. */
@@ -74,29 +74,29 @@ declare const AttachLoadBalancerToSubnetsCommand_base: {
74
74
  * @throws {@link ElasticLoadBalancingServiceException}
75
75
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
76
76
  *
77
- * @public
77
+ *
78
78
  * @example To attach subnets to a load balancer
79
79
  * ```javascript
80
80
  * // This example adds the specified subnet to the set of configured subnets for the specified load balancer.
81
81
  * const input = {
82
- * "LoadBalancerName": "my-load-balancer",
83
- * "Subnets": [
82
+ * LoadBalancerName: "my-load-balancer",
83
+ * Subnets: [
84
84
  * "subnet-0ecac448"
85
85
  * ]
86
86
  * };
87
87
  * const command = new AttachLoadBalancerToSubnetsCommand(input);
88
88
  * const response = await client.send(command);
89
- * /* response ==
89
+ * /* response is
90
90
  * {
91
- * "Subnets": [
91
+ * Subnets: [
92
92
  * "subnet-15aaab61",
93
93
  * "subnet-0ecac448"
94
94
  * ]
95
95
  * }
96
96
  * *\/
97
- * // example id: elb-attach-load-balancer-to-subnets-1
98
97
  * ```
99
98
  *
99
+ * @public
100
100
  */
101
101
  export declare class AttachLoadBalancerToSubnetsCommand extends AttachLoadBalancerToSubnetsCommand_base {
102
102
  /** @internal type navigation helper, not in runtime. */
@@ -72,36 +72,36 @@ declare const ConfigureHealthCheckCommand_base: {
72
72
  * @throws {@link ElasticLoadBalancingServiceException}
73
73
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
74
74
  *
75
- * @public
75
+ *
76
76
  * @example To specify the health check settings for your backend EC2 instances
77
77
  * ```javascript
78
78
  * // This example specifies the health check settings used to evaluate the health of your backend EC2 instances.
79
79
  * const input = {
80
- * "HealthCheck": {
81
- * "HealthyThreshold": 2,
82
- * "Interval": 30,
83
- * "Target": "HTTP:80/png",
84
- * "Timeout": 3,
85
- * "UnhealthyThreshold": 2
80
+ * HealthCheck: {
81
+ * HealthyThreshold: 2,
82
+ * Interval: 30,
83
+ * Target: "HTTP:80/png",
84
+ * Timeout: 3,
85
+ * UnhealthyThreshold: 2
86
86
  * },
87
- * "LoadBalancerName": "my-load-balancer"
87
+ * LoadBalancerName: "my-load-balancer"
88
88
  * };
89
89
  * const command = new ConfigureHealthCheckCommand(input);
90
90
  * const response = await client.send(command);
91
- * /* response ==
91
+ * /* response is
92
92
  * {
93
- * "HealthCheck": {
94
- * "HealthyThreshold": 2,
95
- * "Interval": 30,
96
- * "Target": "HTTP:80/png",
97
- * "Timeout": 3,
98
- * "UnhealthyThreshold": 2
93
+ * HealthCheck: {
94
+ * HealthyThreshold: 2,
95
+ * Interval: 30,
96
+ * Target: "HTTP:80/png",
97
+ * Timeout: 3,
98
+ * UnhealthyThreshold: 2
99
99
  * }
100
100
  * }
101
101
  * *\/
102
- * // example id: elb-configure-health-check-1
103
102
  * ```
104
103
  *
104
+ * @public
105
105
  */
106
106
  export declare class ConfigureHealthCheckCommand extends ConfigureHealthCheckCommand_base {
107
107
  /** @internal type navigation helper, not in runtime. */
@@ -74,20 +74,23 @@ declare const CreateAppCookieStickinessPolicyCommand_base: {
74
74
  * @throws {@link ElasticLoadBalancingServiceException}
75
75
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
76
76
  *
77
- * @public
77
+ *
78
78
  * @example To generate a stickiness policy for your load balancer
79
79
  * ```javascript
80
80
  * // This example generates a stickiness policy that follows the sticky session lifetimes of the application-generated cookie.
81
81
  * const input = {
82
- * "CookieName": "my-app-cookie",
83
- * "LoadBalancerName": "my-load-balancer",
84
- * "PolicyName": "my-app-cookie-policy"
82
+ * CookieName: "my-app-cookie",
83
+ * LoadBalancerName: "my-load-balancer",
84
+ * PolicyName: "my-app-cookie-policy"
85
85
  * };
86
86
  * const command = new CreateAppCookieStickinessPolicyCommand(input);
87
- * await client.send(command);
88
- * // example id: elb-create-app-cookie-stickiness-policy-1
87
+ * const response = await client.send(command);
88
+ * /* response is
89
+ * { /* metadata only *\/ }
90
+ * *\/
89
91
  * ```
90
92
  *
93
+ * @public
91
94
  */
92
95
  export declare class CreateAppCookieStickinessPolicyCommand extends CreateAppCookieStickinessPolicyCommand_base {
93
96
  /** @internal type navigation helper, not in runtime. */
@@ -72,20 +72,23 @@ declare const CreateLBCookieStickinessPolicyCommand_base: {
72
72
  * @throws {@link ElasticLoadBalancingServiceException}
73
73
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
74
74
  *
75
- * @public
75
+ *
76
76
  * @example To generate a duration-based stickiness policy for your load balancer
77
77
  * ```javascript
78
78
  * // This example generates a stickiness policy with sticky session lifetimes controlled by the specified expiration period.
79
79
  * const input = {
80
- * "CookieExpirationPeriod": 60,
81
- * "LoadBalancerName": "my-load-balancer",
82
- * "PolicyName": "my-duration-cookie-policy"
80
+ * CookieExpirationPeriod: 60,
81
+ * LoadBalancerName: "my-load-balancer",
82
+ * PolicyName: "my-duration-cookie-policy"
83
83
  * };
84
84
  * const command = new CreateLBCookieStickinessPolicyCommand(input);
85
- * await client.send(command);
86
- * // example id: elb-create-lb-cookie-stickiness-policy-1
85
+ * const response = await client.send(command);
86
+ * /* response is
87
+ * { /* metadata only *\/ }
88
+ * *\/
87
89
  * ```
88
90
  *
91
+ * @public
89
92
  */
90
93
  export declare class CreateLBCookieStickinessPolicyCommand extends CreateLBCookieStickinessPolicyCommand_base {
91
94
  /** @internal type navigation helper, not in runtime. */
@@ -130,166 +130,162 @@ declare const CreateLoadBalancerCommand_base: {
130
130
  * @throws {@link ElasticLoadBalancingServiceException}
131
131
  * <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
132
132
  *
133
- * @public
133
+ *
134
134
  * @example To create an HTTP load balancer in a VPC
135
135
  * ```javascript
136
136
  * // This example creates a load balancer with an HTTP listener in a VPC.
137
137
  * const input = {
138
- * "Listeners": [
138
+ * Listeners: [
139
139
  * {
140
- * "InstancePort": 80,
141
- * "InstanceProtocol": "HTTP",
142
- * "LoadBalancerPort": 80,
143
- * "Protocol": "HTTP"
140
+ * InstancePort: 80,
141
+ * InstanceProtocol: "HTTP",
142
+ * LoadBalancerPort: 80,
143
+ * Protocol: "HTTP"
144
144
  * }
145
145
  * ],
146
- * "LoadBalancerName": "my-load-balancer",
147
- * "SecurityGroups": [
146
+ * LoadBalancerName: "my-load-balancer",
147
+ * SecurityGroups: [
148
148
  * "sg-a61988c3"
149
149
  * ],
150
- * "Subnets": [
150
+ * Subnets: [
151
151
  * "subnet-15aaab61"
152
152
  * ]
153
153
  * };
154
154
  * const command = new CreateLoadBalancerCommand(input);
155
155
  * const response = await client.send(command);
156
- * /* response ==
156
+ * /* response is
157
157
  * {
158
- * "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
158
+ * DNSName: "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
159
159
  * }
160
160
  * *\/
161
- * // example id: elb-create-load-balancer-1
162
161
  * ```
163
162
  *
164
163
  * @example To create an HTTP load balancer in EC2-Classic
165
164
  * ```javascript
166
165
  * // This example creates a load balancer with an HTTP listener in EC2-Classic.
167
166
  * const input = {
168
- * "AvailabilityZones": [
167
+ * AvailabilityZones: [
169
168
  * "us-west-2a"
170
169
  * ],
171
- * "Listeners": [
170
+ * Listeners: [
172
171
  * {
173
- * "InstancePort": 80,
174
- * "InstanceProtocol": "HTTP",
175
- * "LoadBalancerPort": 80,
176
- * "Protocol": "HTTP"
172
+ * InstancePort: 80,
173
+ * InstanceProtocol: "HTTP",
174
+ * LoadBalancerPort: 80,
175
+ * Protocol: "HTTP"
177
176
  * }
178
177
  * ],
179
- * "LoadBalancerName": "my-load-balancer"
178
+ * LoadBalancerName: "my-load-balancer"
180
179
  * };
181
180
  * const command = new CreateLoadBalancerCommand(input);
182
181
  * const response = await client.send(command);
183
- * /* response ==
182
+ * /* response is
184
183
  * {
185
- * "DNSName": "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
184
+ * DNSName: "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
186
185
  * }
187
186
  * *\/
188
- * // example id: elb-create-load-balancer-2
189
187
  * ```
190
188
  *
191
189
  * @example To create an HTTPS load balancer in a VPC
192
190
  * ```javascript
193
191
  * // This example creates a load balancer with an HTTPS listener in a VPC.
194
192
  * const input = {
195
- * "Listeners": [
193
+ * Listeners: [
196
194
  * {
197
- * "InstancePort": 80,
198
- * "InstanceProtocol": "HTTP",
199
- * "LoadBalancerPort": 80,
200
- * "Protocol": "HTTP"
195
+ * InstancePort: 80,
196
+ * InstanceProtocol: "HTTP",
197
+ * LoadBalancerPort: 80,
198
+ * Protocol: "HTTP"
201
199
  * },
202
200
  * {
203
- * "InstancePort": 80,
204
- * "InstanceProtocol": "HTTP",
205
- * "LoadBalancerPort": 443,
206
- * "Protocol": "HTTPS",
207
- * "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/my-server-cert"
201
+ * InstancePort: 80,
202
+ * InstanceProtocol: "HTTP",
203
+ * LoadBalancerPort: 443,
204
+ * Protocol: "HTTPS",
205
+ * SSLCertificateId: "arn:aws:iam::123456789012:server-certificate/my-server-cert"
208
206
  * }
209
207
  * ],
210
- * "LoadBalancerName": "my-load-balancer",
211
- * "SecurityGroups": [
208
+ * LoadBalancerName: "my-load-balancer",
209
+ * SecurityGroups: [
212
210
  * "sg-a61988c3"
213
211
  * ],
214
- * "Subnets": [
212
+ * Subnets: [
215
213
  * "subnet-15aaab61"
216
214
  * ]
217
215
  * };
218
216
  * const command = new CreateLoadBalancerCommand(input);
219
217
  * const response = await client.send(command);
220
- * /* response ==
218
+ * /* response is
221
219
  * {
222
- * "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
220
+ * DNSName: "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
223
221
  * }
224
222
  * *\/
225
- * // example id: elb-create-load-balancer-3
226
223
  * ```
227
224
  *
228
225
  * @example To create an HTTPS load balancer in EC2-Classic
229
226
  * ```javascript
230
227
  * // This example creates a load balancer with an HTTPS listener in EC2-Classic.
231
228
  * const input = {
232
- * "AvailabilityZones": [
229
+ * AvailabilityZones: [
233
230
  * "us-west-2a"
234
231
  * ],
235
- * "Listeners": [
232
+ * Listeners: [
236
233
  * {
237
- * "InstancePort": 80,
238
- * "InstanceProtocol": "HTTP",
239
- * "LoadBalancerPort": 80,
240
- * "Protocol": "HTTP"
234
+ * InstancePort: 80,
235
+ * InstanceProtocol: "HTTP",
236
+ * LoadBalancerPort: 80,
237
+ * Protocol: "HTTP"
241
238
  * },
242
239
  * {
243
- * "InstancePort": 80,
244
- * "InstanceProtocol": "HTTP",
245
- * "LoadBalancerPort": 443,
246
- * "Protocol": "HTTPS",
247
- * "SSLCertificateId": "arn:aws:iam::123456789012:server-certificate/my-server-cert"
240
+ * InstancePort: 80,
241
+ * InstanceProtocol: "HTTP",
242
+ * LoadBalancerPort: 443,
243
+ * Protocol: "HTTPS",
244
+ * SSLCertificateId: "arn:aws:iam::123456789012:server-certificate/my-server-cert"
248
245
  * }
249
246
  * ],
250
- * "LoadBalancerName": "my-load-balancer"
247
+ * LoadBalancerName: "my-load-balancer"
251
248
  * };
252
249
  * const command = new CreateLoadBalancerCommand(input);
253
250
  * const response = await client.send(command);
254
- * /* response ==
251
+ * /* response is
255
252
  * {
256
- * "DNSName": "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
253
+ * DNSName: "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
257
254
  * }
258
255
  * *\/
259
- * // example id: elb-create-load-balancer-4
260
256
  * ```
261
257
  *
262
258
  * @example To create an internal load balancer
263
259
  * ```javascript
264
260
  * // This example creates an internal load balancer with an HTTP listener in a VPC.
265
261
  * const input = {
266
- * "Listeners": [
262
+ * Listeners: [
267
263
  * {
268
- * "InstancePort": 80,
269
- * "InstanceProtocol": "HTTP",
270
- * "LoadBalancerPort": 80,
271
- * "Protocol": "HTTP"
264
+ * InstancePort: 80,
265
+ * InstanceProtocol: "HTTP",
266
+ * LoadBalancerPort: 80,
267
+ * Protocol: "HTTP"
272
268
  * }
273
269
  * ],
274
- * "LoadBalancerName": "my-load-balancer",
275
- * "Scheme": "internal",
276
- * "SecurityGroups": [
270
+ * LoadBalancerName: "my-load-balancer",
271
+ * Scheme: "internal",
272
+ * SecurityGroups: [
277
273
  * "sg-a61988c3"
278
274
  * ],
279
- * "Subnets": [
275
+ * Subnets: [
280
276
  * "subnet-15aaab61"
281
277
  * ]
282
278
  * };
283
279
  * const command = new CreateLoadBalancerCommand(input);
284
280
  * const response = await client.send(command);
285
- * /* response ==
281
+ * /* response is
286
282
  * {
287
- * "DNSName": "internal-my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
283
+ * DNSName: "internal-my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
288
284
  * }
289
285
  * *\/
290
- * // example id: elb-create-load-balancer-5
291
286
  * ```
292
287
  *
288
+ * @public
293
289
  */
294
290
  export declare class CreateLoadBalancerCommand extends CreateLoadBalancerCommand_base {
295
291
  /** @internal type navigation helper, not in runtime. */