@aws-sdk/client-elastic-load-balancing 3.775.0 → 3.782.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AddTagsCommand.d.ts +12 -9
- package/dist-types/commands/ApplySecurityGroupsToLoadBalancerCommand.d.ts +6 -6
- package/dist-types/commands/AttachLoadBalancerToSubnetsCommand.d.ts +6 -6
- package/dist-types/commands/ConfigureHealthCheckCommand.d.ts +16 -16
- package/dist-types/commands/CreateAppCookieStickinessPolicyCommand.d.ts +9 -6
- package/dist-types/commands/CreateLBCookieStickinessPolicyCommand.d.ts +9 -6
- package/dist-types/commands/CreateLoadBalancerCommand.d.ts +61 -65
- package/dist-types/commands/CreateLoadBalancerListenersCommand.d.ts +23 -18
- package/dist-types/commands/CreateLoadBalancerPolicyCommand.d.ts +32 -25
- package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +7 -4
- package/dist-types/commands/DeleteLoadBalancerListenersCommand.d.ts +8 -5
- package/dist-types/commands/DeleteLoadBalancerPolicyCommand.d.ts +8 -5
- package/dist-types/commands/DeregisterInstancesFromLoadBalancerCommand.d.ts +9 -9
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeInstanceHealthCommand.d.ts +13 -13
- package/dist-types/commands/DescribeLoadBalancerAttributesCommand.d.ts +14 -14
- package/dist-types/commands/DescribeLoadBalancerPoliciesCommand.d.ts +11 -11
- package/dist-types/commands/DescribeLoadBalancerPolicyTypesCommand.d.ts +11 -11
- package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +50 -50
- package/dist-types/commands/DescribeTagsCommand.d.ts +11 -11
- package/dist-types/commands/DetachLoadBalancerFromSubnetsCommand.d.ts +6 -6
- package/dist-types/commands/DisableAvailabilityZonesForLoadBalancerCommand.d.ts +6 -6
- package/dist-types/commands/EnableAvailabilityZonesForLoadBalancerCommand.d.ts +6 -6
- package/dist-types/commands/ModifyLoadBalancerAttributesCommand.d.ts +22 -23
- package/dist-types/commands/RegisterInstancesWithLoadBalancerCommand.d.ts +10 -10
- package/dist-types/commands/RemoveTagsCommand.d.ts +9 -6
- package/dist-types/commands/SetLoadBalancerListenerSSLCertificateCommand.d.ts +9 -6
- package/dist-types/commands/SetLoadBalancerPoliciesForBackendServerCommand.d.ts +9 -6
- package/dist-types/commands/SetLoadBalancerPoliciesOfListenerCommand.d.ts +9 -6
- package/package.json +5 -5
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
83
|
+
* LoadBalancerNames: [
|
|
84
84
|
* "my-load-balancer"
|
|
85
85
|
* ],
|
|
86
|
-
*
|
|
86
|
+
* Tags: [
|
|
87
87
|
* {
|
|
88
|
-
*
|
|
89
|
-
*
|
|
88
|
+
* Key: "project",
|
|
89
|
+
* Value: "lima"
|
|
90
90
|
* },
|
|
91
91
|
* {
|
|
92
|
-
*
|
|
93
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
79
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
83
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
80
|
+
* HealthCheck: {
|
|
81
|
+
* HealthyThreshold: 2,
|
|
82
|
+
* Interval: 30,
|
|
83
|
+
* Target: "HTTP:80/png",
|
|
84
|
+
* Timeout: 3,
|
|
85
|
+
* UnhealthyThreshold: 2
|
|
86
86
|
* },
|
|
87
|
-
*
|
|
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
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
138
|
+
* Listeners: [
|
|
139
139
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
140
|
+
* InstancePort: 80,
|
|
141
|
+
* InstanceProtocol: "HTTP",
|
|
142
|
+
* LoadBalancerPort: 80,
|
|
143
|
+
* Protocol: "HTTP"
|
|
144
144
|
* }
|
|
145
145
|
* ],
|
|
146
|
-
*
|
|
147
|
-
*
|
|
146
|
+
* LoadBalancerName: "my-load-balancer",
|
|
147
|
+
* SecurityGroups: [
|
|
148
148
|
* "sg-a61988c3"
|
|
149
149
|
* ],
|
|
150
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
167
|
+
* AvailabilityZones: [
|
|
169
168
|
* "us-west-2a"
|
|
170
169
|
* ],
|
|
171
|
-
*
|
|
170
|
+
* Listeners: [
|
|
172
171
|
* {
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
172
|
+
* InstancePort: 80,
|
|
173
|
+
* InstanceProtocol: "HTTP",
|
|
174
|
+
* LoadBalancerPort: 80,
|
|
175
|
+
* Protocol: "HTTP"
|
|
177
176
|
* }
|
|
178
177
|
* ],
|
|
179
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
193
|
+
* Listeners: [
|
|
196
194
|
* {
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
195
|
+
* InstancePort: 80,
|
|
196
|
+
* InstanceProtocol: "HTTP",
|
|
197
|
+
* LoadBalancerPort: 80,
|
|
198
|
+
* Protocol: "HTTP"
|
|
201
199
|
* },
|
|
202
200
|
* {
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
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
|
-
*
|
|
211
|
-
*
|
|
208
|
+
* LoadBalancerName: "my-load-balancer",
|
|
209
|
+
* SecurityGroups: [
|
|
212
210
|
* "sg-a61988c3"
|
|
213
211
|
* ],
|
|
214
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
229
|
+
* AvailabilityZones: [
|
|
233
230
|
* "us-west-2a"
|
|
234
231
|
* ],
|
|
235
|
-
*
|
|
232
|
+
* Listeners: [
|
|
236
233
|
* {
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
234
|
+
* InstancePort: 80,
|
|
235
|
+
* InstanceProtocol: "HTTP",
|
|
236
|
+
* LoadBalancerPort: 80,
|
|
237
|
+
* Protocol: "HTTP"
|
|
241
238
|
* },
|
|
242
239
|
* {
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
262
|
+
* Listeners: [
|
|
267
263
|
* {
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
264
|
+
* InstancePort: 80,
|
|
265
|
+
* InstanceProtocol: "HTTP",
|
|
266
|
+
* LoadBalancerPort: 80,
|
|
267
|
+
* Protocol: "HTTP"
|
|
272
268
|
* }
|
|
273
269
|
* ],
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
270
|
+
* LoadBalancerName: "my-load-balancer",
|
|
271
|
+
* Scheme: "internal",
|
|
272
|
+
* SecurityGroups: [
|
|
277
273
|
* "sg-a61988c3"
|
|
278
274
|
* ],
|
|
279
|
-
*
|
|
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
|
-
*
|
|
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. */
|
|
@@ -80,46 +80,51 @@ declare const CreateLoadBalancerListenersCommand_base: {
|
|
|
80
80
|
* @throws {@link ElasticLoadBalancingServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
*
|
|
84
84
|
* @example To create an HTTP listener for a load balancer
|
|
85
85
|
* ```javascript
|
|
86
86
|
* // This example creates a listener for your load balancer at port 80 using the HTTP protocol.
|
|
87
87
|
* const input = {
|
|
88
|
-
*
|
|
88
|
+
* Listeners: [
|
|
89
89
|
* {
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
90
|
+
* InstancePort: 80,
|
|
91
|
+
* InstanceProtocol: "HTTP",
|
|
92
|
+
* LoadBalancerPort: 80,
|
|
93
|
+
* Protocol: "HTTP"
|
|
94
94
|
* }
|
|
95
95
|
* ],
|
|
96
|
-
*
|
|
96
|
+
* LoadBalancerName: "my-load-balancer"
|
|
97
97
|
* };
|
|
98
98
|
* const command = new CreateLoadBalancerListenersCommand(input);
|
|
99
|
-
* await client.send(command);
|
|
100
|
-
*
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* /* response is
|
|
101
|
+
* { /* metadata only *\/ }
|
|
102
|
+
* *\/
|
|
101
103
|
* ```
|
|
102
104
|
*
|
|
103
105
|
* @example To create an HTTPS listener for a load balancer
|
|
104
106
|
* ```javascript
|
|
105
107
|
* // This example creates a listener for your load balancer at port 443 using the HTTPS protocol.
|
|
106
108
|
* const input = {
|
|
107
|
-
*
|
|
109
|
+
* Listeners: [
|
|
108
110
|
* {
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
111
|
+
* InstancePort: 80,
|
|
112
|
+
* InstanceProtocol: "HTTP",
|
|
113
|
+
* LoadBalancerPort: 443,
|
|
114
|
+
* Protocol: "HTTPS",
|
|
115
|
+
* SSLCertificateId: "arn:aws:iam::123456789012:server-certificate/my-server-cert"
|
|
114
116
|
* }
|
|
115
117
|
* ],
|
|
116
|
-
*
|
|
118
|
+
* LoadBalancerName: "my-load-balancer"
|
|
117
119
|
* };
|
|
118
120
|
* const command = new CreateLoadBalancerListenersCommand(input);
|
|
119
|
-
* await client.send(command);
|
|
120
|
-
*
|
|
121
|
+
* const response = await client.send(command);
|
|
122
|
+
* /* response is
|
|
123
|
+
* { /* metadata only *\/ }
|
|
124
|
+
* *\/
|
|
121
125
|
* ```
|
|
122
126
|
*
|
|
127
|
+
* @public
|
|
123
128
|
*/
|
|
124
129
|
export declare class CreateLoadBalancerListenersCommand extends CreateLoadBalancerListenersCommand_base {
|
|
125
130
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -76,64 +76,71 @@ declare const CreateLoadBalancerPolicyCommand_base: {
|
|
|
76
76
|
* @throws {@link ElasticLoadBalancingServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
|
|
78
78
|
*
|
|
79
|
-
*
|
|
79
|
+
*
|
|
80
80
|
* @example To create a policy that enables Proxy Protocol on a load balancer
|
|
81
81
|
* ```javascript
|
|
82
82
|
* // This example creates a policy that enables Proxy Protocol on the specified load balancer.
|
|
83
83
|
* const input = {
|
|
84
|
-
*
|
|
85
|
-
*
|
|
84
|
+
* LoadBalancerName: "my-load-balancer",
|
|
85
|
+
* PolicyAttributes: [
|
|
86
86
|
* {
|
|
87
|
-
*
|
|
88
|
-
*
|
|
87
|
+
* AttributeName: "ProxyProtocol",
|
|
88
|
+
* AttributeValue: "true"
|
|
89
89
|
* }
|
|
90
90
|
* ],
|
|
91
|
-
*
|
|
92
|
-
*
|
|
91
|
+
* PolicyName: "my-ProxyProtocol-policy",
|
|
92
|
+
* PolicyTypeName: "ProxyProtocolPolicyType"
|
|
93
93
|
* };
|
|
94
94
|
* const command = new CreateLoadBalancerPolicyCommand(input);
|
|
95
|
-
* await client.send(command);
|
|
96
|
-
*
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* /* response is
|
|
97
|
+
* { /* metadata only *\/ }
|
|
98
|
+
* *\/
|
|
97
99
|
* ```
|
|
98
100
|
*
|
|
99
101
|
* @example To create a public key policy
|
|
100
102
|
* ```javascript
|
|
101
103
|
* // This example creates a public key policy.
|
|
102
104
|
* const input = {
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
+
* LoadBalancerName: "my-load-balancer",
|
|
106
|
+
* PolicyAttributes: [
|
|
105
107
|
* {
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
+
* AttributeName: "PublicKey",
|
|
109
|
+
* AttributeValue: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAYUjnfyEyXr1pxjhFWBpMlggUcqoi3kl+dS74kj//c6x7ROtusUaeQCTgIUkayttRDWchuqo1pHC1u+n5xxXnBBe2ejbb2WRsKIQ5rXEeixsjFpFsojpSQKkzhVGI6mJVZBJDVKSHmswnwLBdofLhzvllpovBPTHe+o4haAWvDBALJU0pkSI1FecPHcs2hwxf14zHoXy1e2k36A64nXW43wtfx5qcVSIxtCEOjnYRg7RPvybaGfQ+v6Iaxb/+7J5kEvZhTFQId+bSiJImF1FSUT1W1xwzBZPUbcUkkXDj45vC2s3Z8E+Lk7a3uZhvsQHLZnrfuWjBWGWvZ/MhZYgEXAMPLE"
|
|
108
110
|
* }
|
|
109
111
|
* ],
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
+
* PolicyName: "my-PublicKey-policy",
|
|
113
|
+
* PolicyTypeName: "PublicKeyPolicyType"
|
|
112
114
|
* };
|
|
113
115
|
* const command = new CreateLoadBalancerPolicyCommand(input);
|
|
114
|
-
* await client.send(command);
|
|
115
|
-
*
|
|
116
|
+
* const response = await client.send(command);
|
|
117
|
+
* /* response is
|
|
118
|
+
* { /* metadata only *\/ }
|
|
119
|
+
* *\/
|
|
116
120
|
* ```
|
|
117
121
|
*
|
|
118
122
|
* @example To create a backend server authentication policy
|
|
119
123
|
* ```javascript
|
|
120
124
|
* // This example creates a backend server authentication policy that enables authentication on your backend instance using a public key policy.
|
|
121
125
|
* const input = {
|
|
122
|
-
*
|
|
123
|
-
*
|
|
126
|
+
* LoadBalancerName: "my-load-balancer",
|
|
127
|
+
* PolicyAttributes: [
|
|
124
128
|
* {
|
|
125
|
-
*
|
|
126
|
-
*
|
|
129
|
+
* AttributeName: "PublicKeyPolicyName",
|
|
130
|
+
* AttributeValue: "my-PublicKey-policy"
|
|
127
131
|
* }
|
|
128
132
|
* ],
|
|
129
|
-
*
|
|
130
|
-
*
|
|
133
|
+
* PolicyName: "my-authentication-policy",
|
|
134
|
+
* PolicyTypeName: "BackendServerAuthenticationPolicyType"
|
|
131
135
|
* };
|
|
132
136
|
* const command = new CreateLoadBalancerPolicyCommand(input);
|
|
133
|
-
* await client.send(command);
|
|
134
|
-
*
|
|
137
|
+
* const response = await client.send(command);
|
|
138
|
+
* /* response is
|
|
139
|
+
* { /* metadata only *\/ }
|
|
140
|
+
* *\/
|
|
135
141
|
* ```
|
|
136
142
|
*
|
|
143
|
+
* @public
|
|
137
144
|
*/
|
|
138
145
|
export declare class CreateLoadBalancerPolicyCommand extends CreateLoadBalancerPolicyCommand_base {
|
|
139
146
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -55,18 +55,21 @@ declare const DeleteLoadBalancerCommand_base: {
|
|
|
55
55
|
* @throws {@link ElasticLoadBalancingServiceException}
|
|
56
56
|
* <p>Base exception class for all service exceptions from ElasticLoadBalancing service.</p>
|
|
57
57
|
*
|
|
58
|
-
*
|
|
58
|
+
*
|
|
59
59
|
* @example To delete a load balancer
|
|
60
60
|
* ```javascript
|
|
61
61
|
* // This example deletes the specified load balancer.
|
|
62
62
|
* const input = {
|
|
63
|
-
*
|
|
63
|
+
* LoadBalancerName: "my-load-balancer"
|
|
64
64
|
* };
|
|
65
65
|
* const command = new DeleteLoadBalancerCommand(input);
|
|
66
|
-
* await client.send(command);
|
|
67
|
-
*
|
|
66
|
+
* const response = await client.send(command);
|
|
67
|
+
* /* response is
|
|
68
|
+
* { /* metadata only *\/ }
|
|
69
|
+
* *\/
|
|
68
70
|
* ```
|
|
69
71
|
*
|
|
72
|
+
* @public
|
|
70
73
|
*/
|
|
71
74
|
export declare class DeleteLoadBalancerCommand extends DeleteLoadBalancerCommand_base {
|
|
72
75
|
/** @internal type navigation helper, not in runtime. */
|