@aws-sdk/client-elastic-load-balancing-v2 3.288.0 → 3.289.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 (30) hide show
  1. package/dist-types/commands/AddTagsCommand.d.ts +23 -0
  2. package/dist-types/commands/CreateListenerCommand.d.ts +86 -0
  3. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +96 -0
  4. package/dist-types/commands/CreateRuleCommand.d.ts +51 -0
  5. package/dist-types/commands/CreateTargetGroupCommand.d.ts +37 -0
  6. package/dist-types/commands/DeleteListenerCommand.d.ts +11 -0
  7. package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +11 -0
  8. package/dist-types/commands/DeleteRuleCommand.d.ts +11 -0
  9. package/dist-types/commands/DeleteTargetGroupCommand.d.ts +11 -0
  10. package/dist-types/commands/DeregisterTargetsCommand.d.ts +16 -0
  11. package/dist-types/commands/DescribeListenersCommand.d.ts +31 -0
  12. package/dist-types/commands/DescribeLoadBalancerAttributesCommand.d.ts +37 -0
  13. package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +45 -0
  14. package/dist-types/commands/DescribeRulesCommand.d.ts +38 -0
  15. package/dist-types/commands/DescribeSSLPoliciesCommand.d.ts +105 -0
  16. package/dist-types/commands/DescribeTagsCommand.d.ts +32 -0
  17. package/dist-types/commands/DescribeTargetGroupAttributesCommand.d.ts +33 -0
  18. package/dist-types/commands/DescribeTargetGroupsCommand.d.ts +39 -0
  19. package/dist-types/commands/DescribeTargetHealthCommand.d.ts +71 -0
  20. package/dist-types/commands/ModifyListenerCommand.d.ts +75 -0
  21. package/dist-types/commands/ModifyLoadBalancerAttributesCommand.d.ts +137 -0
  22. package/dist-types/commands/ModifyRuleCommand.d.ts +44 -0
  23. package/dist-types/commands/ModifyTargetGroupAttributesCommand.d.ts +39 -0
  24. package/dist-types/commands/ModifyTargetGroupCommand.d.ts +38 -0
  25. package/dist-types/commands/RegisterTargetsCommand.d.ts +40 -0
  26. package/dist-types/commands/RemoveTagsCommand.d.ts +17 -0
  27. package/dist-types/commands/SetRulePrioritiesCommand.d.ts +41 -0
  28. package/dist-types/commands/SetSecurityGroupsCommand.d.ts +21 -0
  29. package/dist-types/commands/SetSubnetsCommand.d.ts +29 -0
  30. package/package.json +30 -30
@@ -31,6 +31,111 @@ export interface DescribeSSLPoliciesCommandOutput extends DescribeSSLPoliciesOut
31
31
  * @see {@link DescribeSSLPoliciesCommandOutput} for command's `response` shape.
32
32
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
33
33
  *
34
+ * @example To describe a policy used for SSL negotiation
35
+ * ```javascript
36
+ * // This example describes the specified policy used for SSL negotiation.
37
+ * const input = {
38
+ * "Names": [
39
+ * "ELBSecurityPolicy-2015-05"
40
+ * ]
41
+ * };
42
+ * const command = new DescribeSSLPoliciesCommand(input);
43
+ * const response = await client.send(command);
44
+ * /* response ==
45
+ * {
46
+ * "SslPolicies": [
47
+ * {
48
+ * "Ciphers": [
49
+ * {
50
+ * "Name": "ECDHE-ECDSA-AES128-GCM-SHA256",
51
+ * "Priority": 1
52
+ * },
53
+ * {
54
+ * "Name": "ECDHE-RSA-AES128-GCM-SHA256",
55
+ * "Priority": 2
56
+ * },
57
+ * {
58
+ * "Name": "ECDHE-ECDSA-AES128-SHA256",
59
+ * "Priority": 3
60
+ * },
61
+ * {
62
+ * "Name": "ECDHE-RSA-AES128-SHA256",
63
+ * "Priority": 4
64
+ * },
65
+ * {
66
+ * "Name": "ECDHE-ECDSA-AES128-SHA",
67
+ * "Priority": 5
68
+ * },
69
+ * {
70
+ * "Name": "ECDHE-RSA-AES128-SHA",
71
+ * "Priority": 6
72
+ * },
73
+ * {
74
+ * "Name": "DHE-RSA-AES128-SHA",
75
+ * "Priority": 7
76
+ * },
77
+ * {
78
+ * "Name": "ECDHE-ECDSA-AES256-GCM-SHA384",
79
+ * "Priority": 8
80
+ * },
81
+ * {
82
+ * "Name": "ECDHE-RSA-AES256-GCM-SHA384",
83
+ * "Priority": 9
84
+ * },
85
+ * {
86
+ * "Name": "ECDHE-ECDSA-AES256-SHA384",
87
+ * "Priority": 10
88
+ * },
89
+ * {
90
+ * "Name": "ECDHE-RSA-AES256-SHA384",
91
+ * "Priority": 11
92
+ * },
93
+ * {
94
+ * "Name": "ECDHE-RSA-AES256-SHA",
95
+ * "Priority": 12
96
+ * },
97
+ * {
98
+ * "Name": "ECDHE-ECDSA-AES256-SHA",
99
+ * "Priority": 13
100
+ * },
101
+ * {
102
+ * "Name": "AES128-GCM-SHA256",
103
+ * "Priority": 14
104
+ * },
105
+ * {
106
+ * "Name": "AES128-SHA256",
107
+ * "Priority": 15
108
+ * },
109
+ * {
110
+ * "Name": "AES128-SHA",
111
+ * "Priority": 16
112
+ * },
113
+ * {
114
+ * "Name": "AES256-GCM-SHA384",
115
+ * "Priority": 17
116
+ * },
117
+ * {
118
+ * "Name": "AES256-SHA256",
119
+ * "Priority": 18
120
+ * },
121
+ * {
122
+ * "Name": "AES256-SHA",
123
+ * "Priority": 19
124
+ * }
125
+ * ],
126
+ * "Name": "ELBSecurityPolicy-2015-05",
127
+ * "SslProtocols": [
128
+ * "TLSv1",
129
+ * "TLSv1.1",
130
+ * "TLSv1.2"
131
+ * ]
132
+ * }
133
+ * ]
134
+ * }
135
+ * *\/
136
+ * // example id: elbv2-describe-ssl-policies-1
137
+ * ```
138
+ *
34
139
  */
35
140
  export declare class DescribeSSLPoliciesCommand extends $Command<DescribeSSLPoliciesCommandInput, DescribeSSLPoliciesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
36
141
  readonly input: DescribeSSLPoliciesCommandInput;
@@ -31,6 +31,38 @@ export interface DescribeTagsCommandOutput extends DescribeTagsOutput, __Metadat
31
31
  * @see {@link DescribeTagsCommandOutput} for command's `response` shape.
32
32
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
33
33
  *
34
+ * @example To describe the tags assigned to a load balancer
35
+ * ```javascript
36
+ * // This example describes the tags assigned to the specified load balancer.
37
+ * const input = {
38
+ * "ResourceArns": [
39
+ * "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
40
+ * ]
41
+ * };
42
+ * const command = new DescribeTagsCommand(input);
43
+ * const response = await client.send(command);
44
+ * /* response ==
45
+ * {
46
+ * "TagDescriptions": [
47
+ * {
48
+ * "ResourceArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
49
+ * "Tags": [
50
+ * {
51
+ * "Key": "project",
52
+ * "Value": "lima"
53
+ * },
54
+ * {
55
+ * "Key": "department",
56
+ * "Value": "digital-media"
57
+ * }
58
+ * ]
59
+ * }
60
+ * ]
61
+ * }
62
+ * *\/
63
+ * // example id: elbv2-describe-tags-1
64
+ * ```
65
+ *
34
66
  */
35
67
  export declare class DescribeTagsCommand extends $Command<DescribeTagsCommandInput, DescribeTagsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
36
68
  readonly input: DescribeTagsCommandInput;
@@ -50,6 +50,39 @@ export interface DescribeTargetGroupAttributesCommandOutput extends DescribeTarg
50
50
  * @see {@link DescribeTargetGroupAttributesCommandOutput} for command's `response` shape.
51
51
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
52
52
  *
53
+ * @example To describe target group attributes
54
+ * ```javascript
55
+ * // This example describes the attributes of the specified target group.
56
+ * const input = {
57
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
58
+ * };
59
+ * const command = new DescribeTargetGroupAttributesCommand(input);
60
+ * const response = await client.send(command);
61
+ * /* response ==
62
+ * {
63
+ * "Attributes": [
64
+ * {
65
+ * "Key": "stickiness.enabled",
66
+ * "Value": "false"
67
+ * },
68
+ * {
69
+ * "Key": "deregistration_delay.timeout_seconds",
70
+ * "Value": "300"
71
+ * },
72
+ * {
73
+ * "Key": "stickiness.type",
74
+ * "Value": "lb_cookie"
75
+ * },
76
+ * {
77
+ * "Key": "stickiness.lb_cookie.duration_seconds",
78
+ * "Value": "86400"
79
+ * }
80
+ * ]
81
+ * }
82
+ * *\/
83
+ * // example id: elbv2-describe-target-group-attributes-1
84
+ * ```
85
+ *
53
86
  */
54
87
  export declare class DescribeTargetGroupAttributesCommand extends $Command<DescribeTargetGroupAttributesCommandInput, DescribeTargetGroupAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
55
88
  readonly input: DescribeTargetGroupAttributesCommandInput;
@@ -32,6 +32,45 @@ export interface DescribeTargetGroupsCommandOutput extends DescribeTargetGroupsO
32
32
  * @see {@link DescribeTargetGroupsCommandOutput} for command's `response` shape.
33
33
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
34
34
  *
35
+ * @example To describe a target group
36
+ * ```javascript
37
+ * // This example describes the specified target group.
38
+ * const input = {
39
+ * "TargetGroupArns": [
40
+ * "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
41
+ * ]
42
+ * };
43
+ * const command = new DescribeTargetGroupsCommand(input);
44
+ * const response = await client.send(command);
45
+ * /* response ==
46
+ * {
47
+ * "TargetGroups": [
48
+ * {
49
+ * "HealthCheckIntervalSeconds": 30,
50
+ * "HealthCheckPath": "/",
51
+ * "HealthCheckPort": "traffic-port",
52
+ * "HealthCheckProtocol": "HTTP",
53
+ * "HealthCheckTimeoutSeconds": 5,
54
+ * "HealthyThresholdCount": 5,
55
+ * "LoadBalancerArns": [
56
+ * "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
57
+ * ],
58
+ * "Matcher": {
59
+ * "HttpCode": "200"
60
+ * },
61
+ * "Port": 80,
62
+ * "Protocol": "HTTP",
63
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
64
+ * "TargetGroupName": "my-targets",
65
+ * "UnhealthyThresholdCount": 2,
66
+ * "VpcId": "vpc-3ac0fb5f"
67
+ * }
68
+ * ]
69
+ * }
70
+ * *\/
71
+ * // example id: elbv2-describe-target-groups-1
72
+ * ```
73
+ *
35
74
  */
36
75
  export declare class DescribeTargetGroupsCommand extends $Command<DescribeTargetGroupsCommandInput, DescribeTargetGroupsCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
37
76
  readonly input: DescribeTargetGroupsCommandInput;
@@ -29,6 +29,77 @@ export interface DescribeTargetHealthCommandOutput extends DescribeTargetHealthO
29
29
  * @see {@link DescribeTargetHealthCommandOutput} for command's `response` shape.
30
30
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
31
31
  *
32
+ * @example To describe the health of the targets for a target group
33
+ * ```javascript
34
+ * // This example describes the health of the targets for the specified target group. One target is healthy but the other is not specified in an action, so it can't receive traffic from the load balancer.
35
+ * const input = {
36
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
37
+ * };
38
+ * const command = new DescribeTargetHealthCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "TargetHealthDescriptions": [
43
+ * {
44
+ * "Target": {
45
+ * "Id": "i-0f76fade",
46
+ * "Port": 80
47
+ * },
48
+ * "TargetHealth": {
49
+ * "Description": "Given target group is not configured to receive traffic from ELB",
50
+ * "Reason": "Target.NotInUse",
51
+ * "State": "unused"
52
+ * }
53
+ * },
54
+ * {
55
+ * "HealthCheckPort": "80",
56
+ * "Target": {
57
+ * "Id": "i-0f76fade",
58
+ * "Port": 80
59
+ * },
60
+ * "TargetHealth": {
61
+ * "State": "healthy"
62
+ * }
63
+ * }
64
+ * ]
65
+ * }
66
+ * *\/
67
+ * // example id: elbv2-describe-target-health-1
68
+ * ```
69
+ *
70
+ * @example To describe the health of a target
71
+ * ```javascript
72
+ * // This example describes the health of the specified target. This target is healthy.
73
+ * const input = {
74
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
75
+ * "Targets": [
76
+ * {
77
+ * "Id": "i-0f76fade",
78
+ * "Port": 80
79
+ * }
80
+ * ]
81
+ * };
82
+ * const command = new DescribeTargetHealthCommand(input);
83
+ * const response = await client.send(command);
84
+ * /* response ==
85
+ * {
86
+ * "TargetHealthDescriptions": [
87
+ * {
88
+ * "HealthCheckPort": "80",
89
+ * "Target": {
90
+ * "Id": "i-0f76fade",
91
+ * "Port": 80
92
+ * },
93
+ * "TargetHealth": {
94
+ * "State": "healthy"
95
+ * }
96
+ * }
97
+ * ]
98
+ * }
99
+ * *\/
100
+ * // example id: elbv2-describe-target-health-2
101
+ * ```
102
+ *
32
103
  */
33
104
  export declare class DescribeTargetHealthCommand extends $Command<DescribeTargetHealthCommandInput, DescribeTargetHealthCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
34
105
  readonly input: DescribeTargetHealthCommandInput;
@@ -36,6 +36,81 @@ export interface ModifyListenerCommandOutput extends ModifyListenerOutput, __Met
36
36
  * @see {@link ModifyListenerCommandOutput} for command's `response` shape.
37
37
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
38
38
  *
39
+ * @example To change the default action for a listener
40
+ * ```javascript
41
+ * // This example changes the default action for the specified listener.
42
+ * const input = {
43
+ * "DefaultActions": [
44
+ * {
45
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f",
46
+ * "Type": "forward"
47
+ * }
48
+ * ],
49
+ * "ListenerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2"
50
+ * };
51
+ * const command = new ModifyListenerCommand(input);
52
+ * const response = await client.send(command);
53
+ * /* response ==
54
+ * {
55
+ * "Listeners": [
56
+ * {
57
+ * "DefaultActions": [
58
+ * {
59
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f",
60
+ * "Type": "forward"
61
+ * }
62
+ * ],
63
+ * "ListenerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
64
+ * "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
65
+ * "Port": 80,
66
+ * "Protocol": "HTTP"
67
+ * }
68
+ * ]
69
+ * }
70
+ * *\/
71
+ * // example id: elbv2-modify-listener-1
72
+ * ```
73
+ *
74
+ * @example To change the server certificate
75
+ * ```javascript
76
+ * // This example changes the server certificate for the specified HTTPS listener.
77
+ * const input = {
78
+ * "Certificates": [
79
+ * {
80
+ * "CertificateArn": "arn:aws:iam::123456789012:server-certificate/my-new-server-cert"
81
+ * }
82
+ * ],
83
+ * "ListenerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65"
84
+ * };
85
+ * const command = new ModifyListenerCommand(input);
86
+ * const response = await client.send(command);
87
+ * /* response ==
88
+ * {
89
+ * "Listeners": [
90
+ * {
91
+ * "Certificates": [
92
+ * {
93
+ * "CertificateArn": "arn:aws:iam::123456789012:server-certificate/my-new-server-cert"
94
+ * }
95
+ * ],
96
+ * "DefaultActions": [
97
+ * {
98
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
99
+ * "Type": "forward"
100
+ * }
101
+ * ],
102
+ * "ListenerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65",
103
+ * "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
104
+ * "Port": 443,
105
+ * "Protocol": "HTTPS",
106
+ * "SslPolicy": "ELBSecurityPolicy-2015-05"
107
+ * }
108
+ * ]
109
+ * }
110
+ * *\/
111
+ * // example id: elbv2-modify-listener-2
112
+ * ```
113
+ *
39
114
  */
40
115
  export declare class ModifyListenerCommand extends $Command<ModifyListenerCommandInput, ModifyListenerCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
41
116
  readonly input: ModifyListenerCommandInput;
@@ -32,6 +32,143 @@ export interface ModifyLoadBalancerAttributesCommandOutput extends ModifyLoadBal
32
32
  * @see {@link ModifyLoadBalancerAttributesCommandOutput} for command's `response` shape.
33
33
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
34
34
  *
35
+ * @example To enable deletion protection
36
+ * ```javascript
37
+ * // This example enables deletion protection for the specified load balancer.
38
+ * const input = {
39
+ * "Attributes": [
40
+ * {
41
+ * "Key": "deletion_protection.enabled",
42
+ * "Value": "true"
43
+ * }
44
+ * ],
45
+ * "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
46
+ * };
47
+ * const command = new ModifyLoadBalancerAttributesCommand(input);
48
+ * const response = await client.send(command);
49
+ * /* response ==
50
+ * {
51
+ * "Attributes": [
52
+ * {
53
+ * "Key": "deletion_protection.enabled",
54
+ * "Value": "true"
55
+ * },
56
+ * {
57
+ * "Key": "access_logs.s3.enabled",
58
+ * "Value": "false"
59
+ * },
60
+ * {
61
+ * "Key": "idle_timeout.timeout_seconds",
62
+ * "Value": "60"
63
+ * },
64
+ * {
65
+ * "Key": "access_logs.s3.prefix",
66
+ * "Value": ""
67
+ * },
68
+ * {
69
+ * "Key": "access_logs.s3.bucket",
70
+ * "Value": ""
71
+ * }
72
+ * ]
73
+ * }
74
+ * *\/
75
+ * // example id: elbv2-modify-load-balancer-attributes-1
76
+ * ```
77
+ *
78
+ * @example To change the idle timeout
79
+ * ```javascript
80
+ * // This example changes the idle timeout value for the specified load balancer.
81
+ * const input = {
82
+ * "Attributes": [
83
+ * {
84
+ * "Key": "idle_timeout.timeout_seconds",
85
+ * "Value": "30"
86
+ * }
87
+ * ],
88
+ * "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
89
+ * };
90
+ * const command = new ModifyLoadBalancerAttributesCommand(input);
91
+ * const response = await client.send(command);
92
+ * /* response ==
93
+ * {
94
+ * "Attributes": [
95
+ * {
96
+ * "Key": "idle_timeout.timeout_seconds",
97
+ * "Value": "30"
98
+ * },
99
+ * {
100
+ * "Key": "access_logs.s3.enabled",
101
+ * "Value": "false"
102
+ * },
103
+ * {
104
+ * "Key": "access_logs.s3.prefix",
105
+ * "Value": ""
106
+ * },
107
+ * {
108
+ * "Key": "deletion_protection.enabled",
109
+ * "Value": "true"
110
+ * },
111
+ * {
112
+ * "Key": "access_logs.s3.bucket",
113
+ * "Value": ""
114
+ * }
115
+ * ]
116
+ * }
117
+ * *\/
118
+ * // example id: elbv2-modify-load-balancer-attributes-2
119
+ * ```
120
+ *
121
+ * @example To enable access logs
122
+ * ```javascript
123
+ * // This example enables access logs for the specified load balancer. Note that the S3 bucket must exist in the same region as the load balancer and must have a policy attached that grants access to the Elastic Load Balancing service.
124
+ * const input = {
125
+ * "Attributes": [
126
+ * {
127
+ * "Key": "access_logs.s3.enabled",
128
+ * "Value": "true"
129
+ * },
130
+ * {
131
+ * "Key": "access_logs.s3.bucket",
132
+ * "Value": "my-loadbalancer-logs"
133
+ * },
134
+ * {
135
+ * "Key": "access_logs.s3.prefix",
136
+ * "Value": "myapp"
137
+ * }
138
+ * ],
139
+ * "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
140
+ * };
141
+ * const command = new ModifyLoadBalancerAttributesCommand(input);
142
+ * const response = await client.send(command);
143
+ * /* response ==
144
+ * {
145
+ * "Attributes": [
146
+ * {
147
+ * "Key": "access_logs.s3.enabled",
148
+ * "Value": "true"
149
+ * },
150
+ * {
151
+ * "Key": "access_logs.s3.bucket",
152
+ * "Value": "my-load-balancer-logs"
153
+ * },
154
+ * {
155
+ * "Key": "access_logs.s3.prefix",
156
+ * "Value": "myapp"
157
+ * },
158
+ * {
159
+ * "Key": "idle_timeout.timeout_seconds",
160
+ * "Value": "60"
161
+ * },
162
+ * {
163
+ * "Key": "deletion_protection.enabled",
164
+ * "Value": "false"
165
+ * }
166
+ * ]
167
+ * }
168
+ * *\/
169
+ * // example id: elbv2-modify-load-balancer-attributes-3
170
+ * ```
171
+ *
35
172
  */
36
173
  export declare class ModifyLoadBalancerAttributesCommand extends $Command<ModifyLoadBalancerAttributesCommandInput, ModifyLoadBalancerAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
37
174
  readonly input: ModifyLoadBalancerAttributesCommandInput;
@@ -33,6 +33,50 @@ export interface ModifyRuleCommandOutput extends ModifyRuleOutput, __MetadataBea
33
33
  * @see {@link ModifyRuleCommandOutput} for command's `response` shape.
34
34
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
35
35
  *
36
+ * @example To modify a rule
37
+ * ```javascript
38
+ * // This example modifies the condition for the specified rule.
39
+ * const input = {
40
+ * "Conditions": [
41
+ * {
42
+ * "Field": "path-pattern",
43
+ * "Values": [
44
+ * "/images/*"
45
+ * ]
46
+ * }
47
+ * ],
48
+ * "RuleArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee"
49
+ * };
50
+ * const command = new ModifyRuleCommand(input);
51
+ * const response = await client.send(command);
52
+ * /* response ==
53
+ * {
54
+ * "Rules": [
55
+ * {
56
+ * "Actions": [
57
+ * {
58
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
59
+ * "Type": "forward"
60
+ * }
61
+ * ],
62
+ * "Conditions": [
63
+ * {
64
+ * "Field": "path-pattern",
65
+ * "Values": [
66
+ * "/images/*"
67
+ * ]
68
+ * }
69
+ * ],
70
+ * "IsDefault": false,
71
+ * "Priority": "10",
72
+ * "RuleArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee"
73
+ * }
74
+ * ]
75
+ * }
76
+ * *\/
77
+ * // example id: elbv2-modify-rule-1
78
+ * ```
79
+ *
36
80
  */
37
81
  export declare class ModifyRuleCommand extends $Command<ModifyRuleCommandInput, ModifyRuleCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
38
82
  readonly input: ModifyRuleCommandInput;
@@ -29,6 +29,45 @@ export interface ModifyTargetGroupAttributesCommandOutput extends ModifyTargetGr
29
29
  * @see {@link ModifyTargetGroupAttributesCommandOutput} for command's `response` shape.
30
30
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
31
31
  *
32
+ * @example To modify the deregistration delay timeout
33
+ * ```javascript
34
+ * // This example sets the deregistration delay timeout to the specified value for the specified target group.
35
+ * const input = {
36
+ * "Attributes": [
37
+ * {
38
+ * "Key": "deregistration_delay.timeout_seconds",
39
+ * "Value": "600"
40
+ * }
41
+ * ],
42
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
43
+ * };
44
+ * const command = new ModifyTargetGroupAttributesCommand(input);
45
+ * const response = await client.send(command);
46
+ * /* response ==
47
+ * {
48
+ * "Attributes": [
49
+ * {
50
+ * "Key": "stickiness.enabled",
51
+ * "Value": "false"
52
+ * },
53
+ * {
54
+ * "Key": "deregistration_delay.timeout_seconds",
55
+ * "Value": "600"
56
+ * },
57
+ * {
58
+ * "Key": "stickiness.type",
59
+ * "Value": "lb_cookie"
60
+ * },
61
+ * {
62
+ * "Key": "stickiness.lb_cookie.duration_seconds",
63
+ * "Value": "86400"
64
+ * }
65
+ * ]
66
+ * }
67
+ * *\/
68
+ * // example id: elbv2-modify-target-group-attributes-1
69
+ * ```
70
+ *
32
71
  */
33
72
  export declare class ModifyTargetGroupAttributesCommand extends $Command<ModifyTargetGroupAttributesCommandInput, ModifyTargetGroupAttributesCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
34
73
  readonly input: ModifyTargetGroupAttributesCommandInput;
@@ -30,6 +30,44 @@ export interface ModifyTargetGroupCommandOutput extends ModifyTargetGroupOutput,
30
30
  * @see {@link ModifyTargetGroupCommandOutput} for command's `response` shape.
31
31
  * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape.
32
32
  *
33
+ * @example To modify the health check configuration for a target group
34
+ * ```javascript
35
+ * // This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group.
36
+ * const input = {
37
+ * "HealthCheckPort": "443",
38
+ * "HealthCheckProtocol": "HTTPS",
39
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f"
40
+ * };
41
+ * const command = new ModifyTargetGroupCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "TargetGroups": [
46
+ * {
47
+ * "HealthCheckIntervalSeconds": 30,
48
+ * "HealthCheckPort": "443",
49
+ * "HealthCheckProtocol": "HTTPS",
50
+ * "HealthCheckTimeoutSeconds": 5,
51
+ * "HealthyThresholdCount": 5,
52
+ * "LoadBalancerArns": [
53
+ * "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
54
+ * ],
55
+ * "Matcher": {
56
+ * "HttpCode": "200"
57
+ * },
58
+ * "Port": 443,
59
+ * "Protocol": "HTTPS",
60
+ * "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f",
61
+ * "TargetGroupName": "my-https-targets",
62
+ * "UnhealthyThresholdCount": 2,
63
+ * "VpcId": "vpc-3ac0fb5f"
64
+ * }
65
+ * ]
66
+ * }
67
+ * *\/
68
+ * // example id: elbv2-modify-target-group-1
69
+ * ```
70
+ *
33
71
  */
34
72
  export declare class ModifyTargetGroupCommand extends $Command<ModifyTargetGroupCommandInput, ModifyTargetGroupCommandOutput, ElasticLoadBalancingV2ClientResolvedConfig> {
35
73
  readonly input: ModifyTargetGroupCommandInput;