aws-sdk-elasticloadbalancingv2 1.0.0.rc7 → 1.0.0.rc8

Sign up to get free protection for your applications and to get access to all the features.
@@ -162,6 +162,27 @@ module Aws::ElasticLoadBalancingV2
162
162
  #
163
163
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
164
164
  #
165
+ #
166
+ # @example Example: To add tags to a load balancer
167
+ #
168
+ # # This example adds the specified tags to the specified load balancer.
169
+ #
170
+ # resp = client.add_tags({
171
+ # resource_arns: [
172
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
173
+ # ],
174
+ # tags: [
175
+ # {
176
+ # key: "project",
177
+ # value: "lima",
178
+ # },
179
+ # {
180
+ # key: "department",
181
+ # value: "digital-media",
182
+ # },
183
+ # ],
184
+ # })
185
+ #
165
186
  # @example Request syntax with placeholder values
166
187
  #
167
188
  # resp = client.add_tags({
@@ -223,6 +244,87 @@ module Aws::ElasticLoadBalancingV2
223
244
  #
224
245
  # * {Types::CreateListenerOutput#listeners #listeners} => Array<Types::Listener>
225
246
  #
247
+ #
248
+ # @example Example: To create an HTTP listener
249
+ #
250
+ # # This example creates an HTTP listener for the specified load balancer that forwards requests to the specified target group.
251
+ #
252
+ # resp = client.create_listener({
253
+ # default_actions: [
254
+ # {
255
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
256
+ # type: "forward",
257
+ # },
258
+ # ],
259
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
260
+ # port: 80,
261
+ # protocol: "HTTP",
262
+ # })
263
+ #
264
+ # resp.to_h outputs the following:
265
+ # {
266
+ # listeners: [
267
+ # {
268
+ # default_actions: [
269
+ # {
270
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
271
+ # type: "forward",
272
+ # },
273
+ # ],
274
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
275
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
276
+ # port: 80,
277
+ # protocol: "HTTP",
278
+ # },
279
+ # ],
280
+ # }
281
+ #
282
+ # @example Example: To create an HTTPS listener
283
+ #
284
+ # # This example creates an HTTPS listener for the specified load balancer that forwards requests to the specified target group. Note that you must specify an SSL certificate for an HTTPS listener. You can create and manage certificates using AWS Certificate Manager (ACM). Alternatively, you can create a certificate using SSL/TLS tools, get the certificate signed by a certificate authority (CA), and upload the certificate to AWS Identity and Access Management (IAM).
285
+ #
286
+ # resp = client.create_listener({
287
+ # certificates: [
288
+ # {
289
+ # certificate_arn: "arn:aws:iam::123456789012:server-certificate/my-server-cert",
290
+ # },
291
+ # ],
292
+ # default_actions: [
293
+ # {
294
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
295
+ # type: "forward",
296
+ # },
297
+ # ],
298
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
299
+ # port: 443,
300
+ # protocol: "HTTPS",
301
+ # ssl_policy: "ELBSecurityPolicy-2015-05",
302
+ # })
303
+ #
304
+ # resp.to_h outputs the following:
305
+ # {
306
+ # listeners: [
307
+ # {
308
+ # certificates: [
309
+ # {
310
+ # certificate_arn: "arn:aws:iam::123456789012:server-certificate/my-server-cert",
311
+ # },
312
+ # ],
313
+ # default_actions: [
314
+ # {
315
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
316
+ # type: "forward",
317
+ # },
318
+ # ],
319
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
320
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
321
+ # port: 443,
322
+ # protocol: "HTTPS",
323
+ # ssl_policy: "ELBSecurityPolicy-2015-05",
324
+ # },
325
+ # ],
326
+ # }
327
+ #
226
328
  # @example Request syntax with placeholder values
227
329
  #
228
330
  # resp = client.create_listener({
@@ -333,6 +435,98 @@ module Aws::ElasticLoadBalancingV2
333
435
  #
334
436
  # * {Types::CreateLoadBalancerOutput#load_balancers #load_balancers} => Array<Types::LoadBalancer>
335
437
  #
438
+ #
439
+ # @example Example: To create an Internet-facing load balancer
440
+ #
441
+ # # This example creates an Internet-facing load balancer and enables the Availability Zones for the specified subnets.
442
+ #
443
+ # resp = client.create_load_balancer({
444
+ # name: "my-load-balancer",
445
+ # subnets: [
446
+ # "subnet-b7d581c0",
447
+ # "subnet-8360a9e7",
448
+ # ],
449
+ # })
450
+ #
451
+ # resp.to_h outputs the following:
452
+ # {
453
+ # load_balancers: [
454
+ # {
455
+ # availability_zones: [
456
+ # {
457
+ # subnet_id: "subnet-8360a9e7",
458
+ # zone_name: "us-west-2a",
459
+ # },
460
+ # {
461
+ # subnet_id: "subnet-b7d581c0",
462
+ # zone_name: "us-west-2b",
463
+ # },
464
+ # ],
465
+ # canonical_hosted_zone_id: "Z2P70J7EXAMPLE",
466
+ # created_time: Time.parse("2016-03-25T21:26:12.920Z"),
467
+ # dns_name: "my-load-balancer-424835706.us-west-2.elb.amazonaws.com",
468
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
469
+ # load_balancer_name: "my-load-balancer",
470
+ # scheme: "internet-facing",
471
+ # security_groups: [
472
+ # "sg-5943793c",
473
+ # ],
474
+ # state: {
475
+ # code: "provisioning",
476
+ # },
477
+ # type: "application",
478
+ # vpc_id: "vpc-3ac0fb5f",
479
+ # },
480
+ # ],
481
+ # }
482
+ #
483
+ # @example Example: To create an internal load balancer
484
+ #
485
+ # # This example creates an internal load balancer and enables the Availability Zones for the specified subnets.
486
+ #
487
+ # resp = client.create_load_balancer({
488
+ # name: "my-internal-load-balancer",
489
+ # scheme: "internal",
490
+ # security_groups: [
491
+ # ],
492
+ # subnets: [
493
+ # "subnet-b7d581c0",
494
+ # "subnet-8360a9e7",
495
+ # ],
496
+ # })
497
+ #
498
+ # resp.to_h outputs the following:
499
+ # {
500
+ # load_balancers: [
501
+ # {
502
+ # availability_zones: [
503
+ # {
504
+ # subnet_id: "subnet-8360a9e7",
505
+ # zone_name: "us-west-2a",
506
+ # },
507
+ # {
508
+ # subnet_id: "subnet-b7d581c0",
509
+ # zone_name: "us-west-2b",
510
+ # },
511
+ # ],
512
+ # canonical_hosted_zone_id: "Z2P70J7EXAMPLE",
513
+ # created_time: Time.parse("2016-03-25T21:29:48.850Z"),
514
+ # dns_name: "internal-my-internal-load-balancer-1529930873.us-west-2.elb.amazonaws.com",
515
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-internal-load-balancer/5b49b8d4303115c2",
516
+ # load_balancer_name: "my-internal-load-balancer",
517
+ # scheme: "internal",
518
+ # security_groups: [
519
+ # "sg-5943793c",
520
+ # ],
521
+ # state: {
522
+ # code: "provisioning",
523
+ # },
524
+ # type: "application",
525
+ # vpc_id: "vpc-3ac0fb5f",
526
+ # },
527
+ # ],
528
+ # }
529
+ #
336
530
  # @example Request syntax with placeholder values
337
531
  #
338
532
  # resp = client.create_load_balancer({
@@ -441,6 +635,55 @@ module Aws::ElasticLoadBalancingV2
441
635
  #
442
636
  # * {Types::CreateRuleOutput#rules #rules} => Array<Types::Rule>
443
637
  #
638
+ #
639
+ # @example Example: To create a rule
640
+ #
641
+ # # This example creates a rule that forwards requests to the specified target group if the URL contains the specified pattern (for example, /img/*).
642
+ #
643
+ # resp = client.create_rule({
644
+ # actions: [
645
+ # {
646
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
647
+ # type: "forward",
648
+ # },
649
+ # ],
650
+ # conditions: [
651
+ # {
652
+ # field: "path-pattern",
653
+ # values: [
654
+ # "/img/*",
655
+ # ],
656
+ # },
657
+ # ],
658
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
659
+ # priority: 10,
660
+ # })
661
+ #
662
+ # resp.to_h outputs the following:
663
+ # {
664
+ # rules: [
665
+ # {
666
+ # actions: [
667
+ # {
668
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
669
+ # type: "forward",
670
+ # },
671
+ # ],
672
+ # conditions: [
673
+ # {
674
+ # field: "path-pattern",
675
+ # values: [
676
+ # "/img/*",
677
+ # ],
678
+ # },
679
+ # ],
680
+ # is_default: false,
681
+ # priority: "10",
682
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
683
+ # },
684
+ # ],
685
+ # }
686
+ #
444
687
  # @example Request syntax with placeholder values
445
688
  #
446
689
  # resp = client.create_rule({
@@ -556,6 +799,41 @@ module Aws::ElasticLoadBalancingV2
556
799
  #
557
800
  # * {Types::CreateTargetGroupOutput#target_groups #target_groups} => Array<Types::TargetGroup>
558
801
  #
802
+ #
803
+ # @example Example: To create a target group
804
+ #
805
+ # # This example creates a target group that you can use to route traffic to targets using HTTP on port 80. This target group uses the default health check configuration.
806
+ #
807
+ # resp = client.create_target_group({
808
+ # name: "my-targets",
809
+ # port: 80,
810
+ # protocol: "HTTP",
811
+ # vpc_id: "vpc-3ac0fb5f",
812
+ # })
813
+ #
814
+ # resp.to_h outputs the following:
815
+ # {
816
+ # target_groups: [
817
+ # {
818
+ # health_check_interval_seconds: 30,
819
+ # health_check_path: "/",
820
+ # health_check_port: "traffic-port",
821
+ # health_check_protocol: "HTTP",
822
+ # health_check_timeout_seconds: 5,
823
+ # healthy_threshold_count: 5,
824
+ # matcher: {
825
+ # http_code: "200",
826
+ # },
827
+ # port: 80,
828
+ # protocol: "HTTP",
829
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
830
+ # target_group_name: "my-targets",
831
+ # unhealthy_threshold_count: 2,
832
+ # vpc_id: "vpc-3ac0fb5f",
833
+ # },
834
+ # ],
835
+ # }
836
+ #
559
837
  # @example Request syntax with placeholder values
560
838
  #
561
839
  # resp = client.create_target_group({
@@ -613,6 +891,15 @@ module Aws::ElasticLoadBalancingV2
613
891
  #
614
892
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
615
893
  #
894
+ #
895
+ # @example Example: To delete a listener
896
+ #
897
+ # # This example deletes the specified listener.
898
+ #
899
+ # resp = client.delete_listener({
900
+ # listener_arn: "arn:aws:elasticloadbalancing:ua-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
901
+ # })
902
+ #
616
903
  # @example Request syntax with placeholder values
617
904
  #
618
905
  # resp = client.delete_listener({
@@ -645,6 +932,15 @@ module Aws::ElasticLoadBalancingV2
645
932
  #
646
933
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
647
934
  #
935
+ #
936
+ # @example Example: To delete a load balancer
937
+ #
938
+ # # This example deletes the specified load balancer.
939
+ #
940
+ # resp = client.delete_load_balancer({
941
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
942
+ # })
943
+ #
648
944
  # @example Request syntax with placeholder values
649
945
  #
650
946
  # resp = client.delete_load_balancer({
@@ -667,6 +963,15 @@ module Aws::ElasticLoadBalancingV2
667
963
  #
668
964
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
669
965
  #
966
+ #
967
+ # @example Example: To delete a rule
968
+ #
969
+ # # This example deletes the specified rule.
970
+ #
971
+ # resp = client.delete_rule({
972
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3",
973
+ # })
974
+ #
670
975
  # @example Request syntax with placeholder values
671
976
  #
672
977
  # resp = client.delete_rule({
@@ -692,6 +997,15 @@ module Aws::ElasticLoadBalancingV2
692
997
  #
693
998
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
694
999
  #
1000
+ #
1001
+ # @example Example: To delete a target group
1002
+ #
1003
+ # # This example deletes the specified target group.
1004
+ #
1005
+ # resp = client.delete_target_group({
1006
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1007
+ # })
1008
+ #
695
1009
  # @example Request syntax with placeholder values
696
1010
  #
697
1011
  # resp = client.delete_target_group({
@@ -721,6 +1035,20 @@ module Aws::ElasticLoadBalancingV2
721
1035
  #
722
1036
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
723
1037
  #
1038
+ #
1039
+ # @example Example: To deregister a target from a target group
1040
+ #
1041
+ # # This example deregisters the specified instance from the specified target group.
1042
+ #
1043
+ # resp = client.deregister_targets({
1044
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1045
+ # targets: [
1046
+ # {
1047
+ # id: "i-0f76fade",
1048
+ # },
1049
+ # ],
1050
+ # })
1051
+ #
724
1052
  # @example Request syntax with placeholder values
725
1053
  #
726
1054
  # resp = client.deregister_targets({
@@ -809,6 +1137,35 @@ module Aws::ElasticLoadBalancingV2
809
1137
  # * {Types::DescribeListenersOutput#listeners #listeners} => Array<Types::Listener>
810
1138
  # * {Types::DescribeListenersOutput#next_marker #next_marker} => String
811
1139
  #
1140
+ #
1141
+ # @example Example: To describe a listener
1142
+ #
1143
+ # # This example describes the specified listener.
1144
+ #
1145
+ # resp = client.describe_listeners({
1146
+ # listener_arns: [
1147
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
1148
+ # ],
1149
+ # })
1150
+ #
1151
+ # resp.to_h outputs the following:
1152
+ # {
1153
+ # listeners: [
1154
+ # {
1155
+ # default_actions: [
1156
+ # {
1157
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1158
+ # type: "forward",
1159
+ # },
1160
+ # ],
1161
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
1162
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1163
+ # port: 80,
1164
+ # protocol: "HTTP",
1165
+ # },
1166
+ # ],
1167
+ # }
1168
+ #
812
1169
  # @example Request syntax with placeholder values
813
1170
  #
814
1171
  # resp = client.describe_listeners({
@@ -851,6 +1208,41 @@ module Aws::ElasticLoadBalancingV2
851
1208
  #
852
1209
  # * {Types::DescribeLoadBalancerAttributesOutput#attributes #attributes} => Array<Types::LoadBalancerAttribute>
853
1210
  #
1211
+ #
1212
+ # @example Example: To describe load balancer attributes
1213
+ #
1214
+ # # This example describes the attributes of the specified load balancer.
1215
+ #
1216
+ # resp = client.describe_load_balancer_attributes({
1217
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1218
+ # })
1219
+ #
1220
+ # resp.to_h outputs the following:
1221
+ # {
1222
+ # attributes: [
1223
+ # {
1224
+ # key: "access_logs.s3.enabled",
1225
+ # value: "false",
1226
+ # },
1227
+ # {
1228
+ # key: "idle_timeout.timeout_seconds",
1229
+ # value: "60",
1230
+ # },
1231
+ # {
1232
+ # key: "access_logs.s3.prefix",
1233
+ # value: "",
1234
+ # },
1235
+ # {
1236
+ # key: "deletion_protection.enabled",
1237
+ # value: "false",
1238
+ # },
1239
+ # {
1240
+ # key: "access_logs.s3.bucket",
1241
+ # value: "",
1242
+ # },
1243
+ # ],
1244
+ # }
1245
+ #
854
1246
  # @example Request syntax with placeholder values
855
1247
  #
856
1248
  # resp = client.describe_load_balancer_attributes({
@@ -898,6 +1290,49 @@ module Aws::ElasticLoadBalancingV2
898
1290
  # * {Types::DescribeLoadBalancersOutput#load_balancers #load_balancers} => Array<Types::LoadBalancer>
899
1291
  # * {Types::DescribeLoadBalancersOutput#next_marker #next_marker} => String
900
1292
  #
1293
+ #
1294
+ # @example Example: To describe a load balancer
1295
+ #
1296
+ # # This example describes the specified load balancer.
1297
+ #
1298
+ # resp = client.describe_load_balancers({
1299
+ # load_balancer_arns: [
1300
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1301
+ # ],
1302
+ # })
1303
+ #
1304
+ # resp.to_h outputs the following:
1305
+ # {
1306
+ # load_balancers: [
1307
+ # {
1308
+ # availability_zones: [
1309
+ # {
1310
+ # subnet_id: "subnet-8360a9e7",
1311
+ # zone_name: "us-west-2a",
1312
+ # },
1313
+ # {
1314
+ # subnet_id: "subnet-b7d581c0",
1315
+ # zone_name: "us-west-2b",
1316
+ # },
1317
+ # ],
1318
+ # canonical_hosted_zone_id: "Z2P70J7EXAMPLE",
1319
+ # created_time: Time.parse("2016-03-25T21:26:12.920Z"),
1320
+ # dns_name: "my-load-balancer-424835706.us-west-2.elb.amazonaws.com",
1321
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1322
+ # load_balancer_name: "my-load-balancer",
1323
+ # scheme: "internet-facing",
1324
+ # security_groups: [
1325
+ # "sg-5943793c",
1326
+ # ],
1327
+ # state: {
1328
+ # code: "active",
1329
+ # },
1330
+ # type: "application",
1331
+ # vpc_id: "vpc-3ac0fb5f",
1332
+ # },
1333
+ # ],
1334
+ # }
1335
+ #
901
1336
  # @example Request syntax with placeholder values
902
1337
  #
903
1338
  # resp = client.describe_load_balancers({
@@ -958,6 +1393,42 @@ module Aws::ElasticLoadBalancingV2
958
1393
  # * {Types::DescribeRulesOutput#rules #rules} => Array<Types::Rule>
959
1394
  # * {Types::DescribeRulesOutput#next_marker #next_marker} => String
960
1395
  #
1396
+ #
1397
+ # @example Example: To describe a rule
1398
+ #
1399
+ # # This example describes the specified rule.
1400
+ #
1401
+ # resp = client.describe_rules({
1402
+ # rule_arns: [
1403
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
1404
+ # ],
1405
+ # })
1406
+ #
1407
+ # resp.to_h outputs the following:
1408
+ # {
1409
+ # rules: [
1410
+ # {
1411
+ # actions: [
1412
+ # {
1413
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1414
+ # type: "forward",
1415
+ # },
1416
+ # ],
1417
+ # conditions: [
1418
+ # {
1419
+ # field: "path-pattern",
1420
+ # values: [
1421
+ # "/img/*",
1422
+ # ],
1423
+ # },
1424
+ # ],
1425
+ # is_default: false,
1426
+ # priority: "10",
1427
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
1428
+ # },
1429
+ # ],
1430
+ # }
1431
+ #
961
1432
  # @example Request syntax with placeholder values
962
1433
  #
963
1434
  # resp = client.describe_rules({
@@ -1016,6 +1487,109 @@ module Aws::ElasticLoadBalancingV2
1016
1487
  # * {Types::DescribeSSLPoliciesOutput#ssl_policies #ssl_policies} => Array<Types::SslPolicy>
1017
1488
  # * {Types::DescribeSSLPoliciesOutput#next_marker #next_marker} => String
1018
1489
  #
1490
+ #
1491
+ # @example Example: To describe a policy used for SSL negotiation
1492
+ #
1493
+ # # This example describes the specified policy used for SSL negotiation.
1494
+ #
1495
+ # resp = client.describe_ssl_policies({
1496
+ # names: [
1497
+ # "ELBSecurityPolicy-2015-05",
1498
+ # ],
1499
+ # })
1500
+ #
1501
+ # resp.to_h outputs the following:
1502
+ # {
1503
+ # ssl_policies: [
1504
+ # {
1505
+ # ciphers: [
1506
+ # {
1507
+ # name: "ECDHE-ECDSA-AES128-GCM-SHA256",
1508
+ # priority: 1,
1509
+ # },
1510
+ # {
1511
+ # name: "ECDHE-RSA-AES128-GCM-SHA256",
1512
+ # priority: 2,
1513
+ # },
1514
+ # {
1515
+ # name: "ECDHE-ECDSA-AES128-SHA256",
1516
+ # priority: 3,
1517
+ # },
1518
+ # {
1519
+ # name: "ECDHE-RSA-AES128-SHA256",
1520
+ # priority: 4,
1521
+ # },
1522
+ # {
1523
+ # name: "ECDHE-ECDSA-AES128-SHA",
1524
+ # priority: 5,
1525
+ # },
1526
+ # {
1527
+ # name: "ECDHE-RSA-AES128-SHA",
1528
+ # priority: 6,
1529
+ # },
1530
+ # {
1531
+ # name: "DHE-RSA-AES128-SHA",
1532
+ # priority: 7,
1533
+ # },
1534
+ # {
1535
+ # name: "ECDHE-ECDSA-AES256-GCM-SHA384",
1536
+ # priority: 8,
1537
+ # },
1538
+ # {
1539
+ # name: "ECDHE-RSA-AES256-GCM-SHA384",
1540
+ # priority: 9,
1541
+ # },
1542
+ # {
1543
+ # name: "ECDHE-ECDSA-AES256-SHA384",
1544
+ # priority: 10,
1545
+ # },
1546
+ # {
1547
+ # name: "ECDHE-RSA-AES256-SHA384",
1548
+ # priority: 11,
1549
+ # },
1550
+ # {
1551
+ # name: "ECDHE-RSA-AES256-SHA",
1552
+ # priority: 12,
1553
+ # },
1554
+ # {
1555
+ # name: "ECDHE-ECDSA-AES256-SHA",
1556
+ # priority: 13,
1557
+ # },
1558
+ # {
1559
+ # name: "AES128-GCM-SHA256",
1560
+ # priority: 14,
1561
+ # },
1562
+ # {
1563
+ # name: "AES128-SHA256",
1564
+ # priority: 15,
1565
+ # },
1566
+ # {
1567
+ # name: "AES128-SHA",
1568
+ # priority: 16,
1569
+ # },
1570
+ # {
1571
+ # name: "AES256-GCM-SHA384",
1572
+ # priority: 17,
1573
+ # },
1574
+ # {
1575
+ # name: "AES256-SHA256",
1576
+ # priority: 18,
1577
+ # },
1578
+ # {
1579
+ # name: "AES256-SHA",
1580
+ # priority: 19,
1581
+ # },
1582
+ # ],
1583
+ # name: "ELBSecurityPolicy-2015-05",
1584
+ # ssl_protocols: [
1585
+ # "TLSv1",
1586
+ # "TLSv1.1",
1587
+ # "TLSv1.2",
1588
+ # ],
1589
+ # },
1590
+ # ],
1591
+ # }
1592
+ #
1019
1593
  # @example Request syntax with placeholder values
1020
1594
  #
1021
1595
  # resp = client.describe_ssl_policies({
@@ -1054,6 +1628,36 @@ module Aws::ElasticLoadBalancingV2
1054
1628
  #
1055
1629
  # * {Types::DescribeTagsOutput#tag_descriptions #tag_descriptions} => Array<Types::TagDescription>
1056
1630
  #
1631
+ #
1632
+ # @example Example: To describe the tags assigned to a load balancer
1633
+ #
1634
+ # # This example describes the tags assigned to the specified load balancer.
1635
+ #
1636
+ # resp = client.describe_tags({
1637
+ # resource_arns: [
1638
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1639
+ # ],
1640
+ # })
1641
+ #
1642
+ # resp.to_h outputs the following:
1643
+ # {
1644
+ # tag_descriptions: [
1645
+ # {
1646
+ # resource_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1647
+ # tags: [
1648
+ # {
1649
+ # key: "project",
1650
+ # value: "lima",
1651
+ # },
1652
+ # {
1653
+ # key: "department",
1654
+ # value: "digital-media",
1655
+ # },
1656
+ # ],
1657
+ # },
1658
+ # ],
1659
+ # }
1660
+ #
1057
1661
  # @example Request syntax with placeholder values
1058
1662
  #
1059
1663
  # resp = client.describe_tags({
@@ -1086,6 +1690,37 @@ module Aws::ElasticLoadBalancingV2
1086
1690
  #
1087
1691
  # * {Types::DescribeTargetGroupAttributesOutput#attributes #attributes} => Array<Types::TargetGroupAttribute>
1088
1692
  #
1693
+ #
1694
+ # @example Example: To describe target group attributes
1695
+ #
1696
+ # # This example describes the attributes of the specified target group.
1697
+ #
1698
+ # resp = client.describe_target_group_attributes({
1699
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1700
+ # })
1701
+ #
1702
+ # resp.to_h outputs the following:
1703
+ # {
1704
+ # attributes: [
1705
+ # {
1706
+ # key: "stickiness.enabled",
1707
+ # value: "false",
1708
+ # },
1709
+ # {
1710
+ # key: "deregistration_delay.timeout_seconds",
1711
+ # value: "300",
1712
+ # },
1713
+ # {
1714
+ # key: "stickiness.type",
1715
+ # value: "lb_cookie",
1716
+ # },
1717
+ # {
1718
+ # key: "stickiness.lb_cookie.duration_seconds",
1719
+ # value: "86400",
1720
+ # },
1721
+ # ],
1722
+ # }
1723
+ #
1089
1724
  # @example Request syntax with placeholder values
1090
1725
  #
1091
1726
  # resp = client.describe_target_group_attributes({
@@ -1138,6 +1773,43 @@ module Aws::ElasticLoadBalancingV2
1138
1773
  # * {Types::DescribeTargetGroupsOutput#target_groups #target_groups} => Array<Types::TargetGroup>
1139
1774
  # * {Types::DescribeTargetGroupsOutput#next_marker #next_marker} => String
1140
1775
  #
1776
+ #
1777
+ # @example Example: To describe a target group
1778
+ #
1779
+ # # This example describes the specified target group.
1780
+ #
1781
+ # resp = client.describe_target_groups({
1782
+ # target_group_arns: [
1783
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1784
+ # ],
1785
+ # })
1786
+ #
1787
+ # resp.to_h outputs the following:
1788
+ # {
1789
+ # target_groups: [
1790
+ # {
1791
+ # health_check_interval_seconds: 30,
1792
+ # health_check_path: "/",
1793
+ # health_check_port: "traffic-port",
1794
+ # health_check_protocol: "HTTP",
1795
+ # health_check_timeout_seconds: 5,
1796
+ # healthy_threshold_count: 5,
1797
+ # load_balancer_arns: [
1798
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
1799
+ # ],
1800
+ # matcher: {
1801
+ # http_code: "200",
1802
+ # },
1803
+ # port: 80,
1804
+ # protocol: "HTTP",
1805
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1806
+ # target_group_name: "my-targets",
1807
+ # unhealthy_threshold_count: 2,
1808
+ # vpc_id: "vpc-3ac0fb5f",
1809
+ # },
1810
+ # ],
1811
+ # }
1812
+ #
1141
1813
  # @example Request syntax with placeholder values
1142
1814
  #
1143
1815
  # resp = client.describe_target_groups({
@@ -1189,6 +1861,72 @@ module Aws::ElasticLoadBalancingV2
1189
1861
  #
1190
1862
  # * {Types::DescribeTargetHealthOutput#target_health_descriptions #target_health_descriptions} => Array<Types::TargetHealthDescription>
1191
1863
  #
1864
+ #
1865
+ # @example Example: To describe the health of the targets for a target group
1866
+ #
1867
+ # # 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.
1868
+ #
1869
+ # resp = client.describe_target_health({
1870
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1871
+ # })
1872
+ #
1873
+ # resp.to_h outputs the following:
1874
+ # {
1875
+ # target_health_descriptions: [
1876
+ # {
1877
+ # target: {
1878
+ # id: "i-0f76fade",
1879
+ # port: 80,
1880
+ # },
1881
+ # target_health: {
1882
+ # description: "Given target group is not configured to receive traffic from ELB",
1883
+ # reason: "Target.NotInUse",
1884
+ # state: "unused",
1885
+ # },
1886
+ # },
1887
+ # {
1888
+ # health_check_port: "80",
1889
+ # target: {
1890
+ # id: "i-0f76fade",
1891
+ # port: 80,
1892
+ # },
1893
+ # target_health: {
1894
+ # state: "healthy",
1895
+ # },
1896
+ # },
1897
+ # ],
1898
+ # }
1899
+ #
1900
+ # @example Example: To describe the health of a target
1901
+ #
1902
+ # # This example describes the health of the specified target. This target is healthy.
1903
+ #
1904
+ # resp = client.describe_target_health({
1905
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1906
+ # targets: [
1907
+ # {
1908
+ # id: "i-0f76fade",
1909
+ # port: 80,
1910
+ # },
1911
+ # ],
1912
+ # })
1913
+ #
1914
+ # resp.to_h outputs the following:
1915
+ # {
1916
+ # target_health_descriptions: [
1917
+ # {
1918
+ # health_check_port: "80",
1919
+ # target: {
1920
+ # id: "i-0f76fade",
1921
+ # port: 80,
1922
+ # },
1923
+ # target_health: {
1924
+ # state: "healthy",
1925
+ # },
1926
+ # },
1927
+ # ],
1928
+ # }
1929
+ #
1192
1930
  # @example Request syntax with placeholder values
1193
1931
  #
1194
1932
  # resp = client.describe_target_health({
@@ -1256,6 +1994,76 @@ module Aws::ElasticLoadBalancingV2
1256
1994
  #
1257
1995
  # * {Types::ModifyListenerOutput#listeners #listeners} => Array<Types::Listener>
1258
1996
  #
1997
+ #
1998
+ # @example Example: To change the default action for a listener
1999
+ #
2000
+ # # This example changes the default action for the specified listener.
2001
+ #
2002
+ # resp = client.modify_listener({
2003
+ # default_actions: [
2004
+ # {
2005
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f",
2006
+ # type: "forward",
2007
+ # },
2008
+ # ],
2009
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
2010
+ # })
2011
+ #
2012
+ # resp.to_h outputs the following:
2013
+ # {
2014
+ # listeners: [
2015
+ # {
2016
+ # default_actions: [
2017
+ # {
2018
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f",
2019
+ # type: "forward",
2020
+ # },
2021
+ # ],
2022
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2",
2023
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2024
+ # port: 80,
2025
+ # protocol: "HTTP",
2026
+ # },
2027
+ # ],
2028
+ # }
2029
+ #
2030
+ # @example Example: To change the server certificate
2031
+ #
2032
+ # # This example changes the server certificate for the specified HTTPS listener.
2033
+ #
2034
+ # resp = client.modify_listener({
2035
+ # certificates: [
2036
+ # {
2037
+ # certificate_arn: "arn:aws:iam::123456789012:server-certificate/my-new-server-cert",
2038
+ # },
2039
+ # ],
2040
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65",
2041
+ # })
2042
+ #
2043
+ # resp.to_h outputs the following:
2044
+ # {
2045
+ # listeners: [
2046
+ # {
2047
+ # certificates: [
2048
+ # {
2049
+ # certificate_arn: "arn:aws:iam::123456789012:server-certificate/my-new-server-cert",
2050
+ # },
2051
+ # ],
2052
+ # default_actions: [
2053
+ # {
2054
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
2055
+ # type: "forward",
2056
+ # },
2057
+ # ],
2058
+ # listener_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65",
2059
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2060
+ # port: 443,
2061
+ # protocol: "HTTPS",
2062
+ # ssl_policy: "ELBSecurityPolicy-2015-05",
2063
+ # },
2064
+ # ],
2065
+ # }
2066
+ #
1259
2067
  # @example Request syntax with placeholder values
1260
2068
  #
1261
2069
  # resp = client.modify_listener({
@@ -1316,6 +2124,135 @@ module Aws::ElasticLoadBalancingV2
1316
2124
  #
1317
2125
  # * {Types::ModifyLoadBalancerAttributesOutput#attributes #attributes} => Array<Types::LoadBalancerAttribute>
1318
2126
  #
2127
+ #
2128
+ # @example Example: To enable deletion protection
2129
+ #
2130
+ # # This example enables deletion protection for the specified load balancer.
2131
+ #
2132
+ # resp = client.modify_load_balancer_attributes({
2133
+ # attributes: [
2134
+ # {
2135
+ # key: "deletion_protection.enabled",
2136
+ # value: "true",
2137
+ # },
2138
+ # ],
2139
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2140
+ # })
2141
+ #
2142
+ # resp.to_h outputs the following:
2143
+ # {
2144
+ # attributes: [
2145
+ # {
2146
+ # key: "deletion_protection.enabled",
2147
+ # value: "true",
2148
+ # },
2149
+ # {
2150
+ # key: "access_logs.s3.enabled",
2151
+ # value: "false",
2152
+ # },
2153
+ # {
2154
+ # key: "idle_timeout.timeout_seconds",
2155
+ # value: "60",
2156
+ # },
2157
+ # {
2158
+ # key: "access_logs.s3.prefix",
2159
+ # value: "",
2160
+ # },
2161
+ # {
2162
+ # key: "access_logs.s3.bucket",
2163
+ # value: "",
2164
+ # },
2165
+ # ],
2166
+ # }
2167
+ #
2168
+ # @example Example: To change the idle timeout
2169
+ #
2170
+ # # This example changes the idle timeout value for the specified load balancer.
2171
+ #
2172
+ # resp = client.modify_load_balancer_attributes({
2173
+ # attributes: [
2174
+ # {
2175
+ # key: "idle_timeout.timeout_seconds",
2176
+ # value: "30",
2177
+ # },
2178
+ # ],
2179
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2180
+ # })
2181
+ #
2182
+ # resp.to_h outputs the following:
2183
+ # {
2184
+ # attributes: [
2185
+ # {
2186
+ # key: "idle_timeout.timeout_seconds",
2187
+ # value: "30",
2188
+ # },
2189
+ # {
2190
+ # key: "access_logs.s3.enabled",
2191
+ # value: "false",
2192
+ # },
2193
+ # {
2194
+ # key: "access_logs.s3.prefix",
2195
+ # value: "",
2196
+ # },
2197
+ # {
2198
+ # key: "deletion_protection.enabled",
2199
+ # value: "true",
2200
+ # },
2201
+ # {
2202
+ # key: "access_logs.s3.bucket",
2203
+ # value: "",
2204
+ # },
2205
+ # ],
2206
+ # }
2207
+ #
2208
+ # @example Example: To enable access logs
2209
+ #
2210
+ # # 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.
2211
+ #
2212
+ # resp = client.modify_load_balancer_attributes({
2213
+ # attributes: [
2214
+ # {
2215
+ # key: "access_logs.s3.enabled",
2216
+ # value: "true",
2217
+ # },
2218
+ # {
2219
+ # key: "access_logs.s3.bucket",
2220
+ # value: "my-loadbalancer-logs",
2221
+ # },
2222
+ # {
2223
+ # key: "access_logs.s3.prefix",
2224
+ # value: "myapp",
2225
+ # },
2226
+ # ],
2227
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2228
+ # })
2229
+ #
2230
+ # resp.to_h outputs the following:
2231
+ # {
2232
+ # attributes: [
2233
+ # {
2234
+ # key: "access_logs.s3.enabled",
2235
+ # value: "true",
2236
+ # },
2237
+ # {
2238
+ # key: "access_logs.s3.bucket",
2239
+ # value: "my-load-balancer-logs",
2240
+ # },
2241
+ # {
2242
+ # key: "access_logs.s3.prefix",
2243
+ # value: "myapp",
2244
+ # },
2245
+ # {
2246
+ # key: "idle_timeout.timeout_seconds",
2247
+ # value: "60",
2248
+ # },
2249
+ # {
2250
+ # key: "deletion_protection.enabled",
2251
+ # value: "false",
2252
+ # },
2253
+ # ],
2254
+ # }
2255
+ #
1319
2256
  # @example Request syntax with placeholder values
1320
2257
  #
1321
2258
  # resp = client.modify_load_balancer_attributes({
@@ -1363,6 +2300,48 @@ module Aws::ElasticLoadBalancingV2
1363
2300
  #
1364
2301
  # * {Types::ModifyRuleOutput#rules #rules} => Array<Types::Rule>
1365
2302
  #
2303
+ #
2304
+ # @example Example: To modify a rule
2305
+ #
2306
+ # # This example modifies the condition for the specified rule.
2307
+ #
2308
+ # resp = client.modify_rule({
2309
+ # conditions: [
2310
+ # {
2311
+ # field: "path-pattern",
2312
+ # values: [
2313
+ # "/images/*",
2314
+ # ],
2315
+ # },
2316
+ # ],
2317
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
2318
+ # })
2319
+ #
2320
+ # resp.to_h outputs the following:
2321
+ # {
2322
+ # rules: [
2323
+ # {
2324
+ # actions: [
2325
+ # {
2326
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
2327
+ # type: "forward",
2328
+ # },
2329
+ # ],
2330
+ # conditions: [
2331
+ # {
2332
+ # field: "path-pattern",
2333
+ # values: [
2334
+ # "/images/*",
2335
+ # ],
2336
+ # },
2337
+ # ],
2338
+ # is_default: false,
2339
+ # priority: "10",
2340
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee",
2341
+ # },
2342
+ # ],
2343
+ # }
2344
+ #
1366
2345
  # @example Request syntax with placeholder values
1367
2346
  #
1368
2347
  # resp = client.modify_rule({
@@ -1445,6 +2424,42 @@ module Aws::ElasticLoadBalancingV2
1445
2424
  #
1446
2425
  # * {Types::ModifyTargetGroupOutput#target_groups #target_groups} => Array<Types::TargetGroup>
1447
2426
  #
2427
+ #
2428
+ # @example Example: To modify the health check configuration for a target group
2429
+ #
2430
+ # # This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group.
2431
+ #
2432
+ # resp = client.modify_target_group({
2433
+ # health_check_port: "443",
2434
+ # health_check_protocol: "HTTPS",
2435
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f",
2436
+ # })
2437
+ #
2438
+ # resp.to_h outputs the following:
2439
+ # {
2440
+ # target_groups: [
2441
+ # {
2442
+ # health_check_interval_seconds: 30,
2443
+ # health_check_port: "443",
2444
+ # health_check_protocol: "HTTPS",
2445
+ # health_check_timeout_seconds: 5,
2446
+ # healthy_threshold_count: 5,
2447
+ # load_balancer_arns: [
2448
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2449
+ # ],
2450
+ # matcher: {
2451
+ # http_code: "200",
2452
+ # },
2453
+ # port: 443,
2454
+ # protocol: "HTTPS",
2455
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f",
2456
+ # target_group_name: "my-https-targets",
2457
+ # unhealthy_threshold_count: 2,
2458
+ # vpc_id: "vpc-3ac0fb5f",
2459
+ # },
2460
+ # ],
2461
+ # }
2462
+ #
1448
2463
  # @example Request syntax with placeholder values
1449
2464
  #
1450
2465
  # resp = client.modify_target_group({
@@ -1501,6 +2516,43 @@ module Aws::ElasticLoadBalancingV2
1501
2516
  #
1502
2517
  # * {Types::ModifyTargetGroupAttributesOutput#attributes #attributes} => Array<Types::TargetGroupAttribute>
1503
2518
  #
2519
+ #
2520
+ # @example Example: To modify the deregistration delay timeout
2521
+ #
2522
+ # # This example sets the deregistration delay timeout to the specified value for the specified target group.
2523
+ #
2524
+ # resp = client.modify_target_group_attributes({
2525
+ # attributes: [
2526
+ # {
2527
+ # key: "deregistration_delay.timeout_seconds",
2528
+ # value: "600",
2529
+ # },
2530
+ # ],
2531
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
2532
+ # })
2533
+ #
2534
+ # resp.to_h outputs the following:
2535
+ # {
2536
+ # attributes: [
2537
+ # {
2538
+ # key: "stickiness.enabled",
2539
+ # value: "false",
2540
+ # },
2541
+ # {
2542
+ # key: "deregistration_delay.timeout_seconds",
2543
+ # value: "600",
2544
+ # },
2545
+ # {
2546
+ # key: "stickiness.type",
2547
+ # value: "lb_cookie",
2548
+ # },
2549
+ # {
2550
+ # key: "stickiness.lb_cookie.duration_seconds",
2551
+ # value: "86400",
2552
+ # },
2553
+ # ],
2554
+ # }
2555
+ #
1504
2556
  # @example Request syntax with placeholder values
1505
2557
  #
1506
2558
  # resp = client.modify_target_group_attributes({
@@ -1551,6 +2603,41 @@ module Aws::ElasticLoadBalancingV2
1551
2603
  #
1552
2604
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1553
2605
  #
2606
+ #
2607
+ # @example Example: To register targets with a target group
2608
+ #
2609
+ # # This example registers the specified instances with the specified target group.
2610
+ #
2611
+ # resp = client.register_targets({
2612
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
2613
+ # targets: [
2614
+ # {
2615
+ # id: "i-80c8dd94",
2616
+ # },
2617
+ # {
2618
+ # id: "i-ceddcd4d",
2619
+ # },
2620
+ # ],
2621
+ # })
2622
+ #
2623
+ # @example Example: To register targets with a target group using port overrides
2624
+ #
2625
+ # # This example registers the specified instance with the specified target group using multiple ports. This enables you to register ECS containers on the same instance as targets in the target group.
2626
+ #
2627
+ # resp = client.register_targets({
2628
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/3bb63f11dfb0faf9",
2629
+ # targets: [
2630
+ # {
2631
+ # id: "i-80c8dd94",
2632
+ # port: 80,
2633
+ # },
2634
+ # {
2635
+ # id: "i-80c8dd94",
2636
+ # port: 766,
2637
+ # },
2638
+ # ],
2639
+ # })
2640
+ #
1554
2641
  # @example Request syntax with placeholder values
1555
2642
  #
1556
2643
  # resp = client.register_targets({
@@ -1584,6 +2671,21 @@ module Aws::ElasticLoadBalancingV2
1584
2671
  #
1585
2672
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1586
2673
  #
2674
+ #
2675
+ # @example Example: To remove tags from a load balancer
2676
+ #
2677
+ # # This example removes the specified tags from the specified load balancer.
2678
+ #
2679
+ # resp = client.remove_tags({
2680
+ # resource_arns: [
2681
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2682
+ # ],
2683
+ # tag_keys: [
2684
+ # "project",
2685
+ # "department",
2686
+ # ],
2687
+ # })
2688
+ #
1587
2689
  # @example Request syntax with placeholder values
1588
2690
  #
1589
2691
  # resp = client.remove_tags({
@@ -1648,6 +2750,45 @@ module Aws::ElasticLoadBalancingV2
1648
2750
  #
1649
2751
  # * {Types::SetRulePrioritiesOutput#rules #rules} => Array<Types::Rule>
1650
2752
  #
2753
+ #
2754
+ # @example Example: To set the rule priority
2755
+ #
2756
+ # # This example sets the priority of the specified rule.
2757
+ #
2758
+ # resp = client.set_rule_priorities({
2759
+ # rule_priorities: [
2760
+ # {
2761
+ # priority: 5,
2762
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3",
2763
+ # },
2764
+ # ],
2765
+ # })
2766
+ #
2767
+ # resp.to_h outputs the following:
2768
+ # {
2769
+ # rules: [
2770
+ # {
2771
+ # actions: [
2772
+ # {
2773
+ # target_group_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
2774
+ # type: "forward",
2775
+ # },
2776
+ # ],
2777
+ # conditions: [
2778
+ # {
2779
+ # field: "path-pattern",
2780
+ # values: [
2781
+ # "/img/*",
2782
+ # ],
2783
+ # },
2784
+ # ],
2785
+ # is_default: false,
2786
+ # priority: "5",
2787
+ # rule_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3",
2788
+ # },
2789
+ # ],
2790
+ # }
2791
+ #
1651
2792
  # @example Request syntax with placeholder values
1652
2793
  #
1653
2794
  # resp = client.set_rule_priorities({
@@ -1696,6 +2837,25 @@ module Aws::ElasticLoadBalancingV2
1696
2837
  #
1697
2838
  # * {Types::SetSecurityGroupsOutput#security_group_ids #security_group_ids} => Array<String>
1698
2839
  #
2840
+ #
2841
+ # @example Example: To associate a security group with a load balancer
2842
+ #
2843
+ # # This example associates the specified security group with the specified load balancer.
2844
+ #
2845
+ # resp = client.set_security_groups({
2846
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2847
+ # security_groups: [
2848
+ # "sg-5943793c",
2849
+ # ],
2850
+ # })
2851
+ #
2852
+ # resp.to_h outputs the following:
2853
+ # {
2854
+ # security_group_ids: [
2855
+ # "sg-5943793c",
2856
+ # ],
2857
+ # }
2858
+ #
1699
2859
  # @example Request syntax with placeholder values
1700
2860
  #
1701
2861
  # resp = client.set_security_groups({
@@ -1732,6 +2892,33 @@ module Aws::ElasticLoadBalancingV2
1732
2892
  #
1733
2893
  # * {Types::SetSubnetsOutput#availability_zones #availability_zones} => Array<Types::AvailabilityZone>
1734
2894
  #
2895
+ #
2896
+ # @example Example: To enable Availability Zones for a load balancer
2897
+ #
2898
+ # # This example enables the Availability Zones for the specified subnets for the specified load balancer.
2899
+ #
2900
+ # resp = client.set_subnets({
2901
+ # load_balancer_arn: "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188",
2902
+ # subnets: [
2903
+ # "subnet-8360a9e7",
2904
+ # "subnet-b7d581c0",
2905
+ # ],
2906
+ # })
2907
+ #
2908
+ # resp.to_h outputs the following:
2909
+ # {
2910
+ # availability_zones: [
2911
+ # {
2912
+ # subnet_id: "subnet-8360a9e7",
2913
+ # zone_name: "us-west-2a",
2914
+ # },
2915
+ # {
2916
+ # subnet_id: "subnet-b7d581c0",
2917
+ # zone_name: "us-west-2b",
2918
+ # },
2919
+ # ],
2920
+ # }
2921
+ #
1735
2922
  # @example Request syntax with placeholder values
1736
2923
  #
1737
2924
  # resp = client.set_subnets({
@@ -1767,7 +2954,7 @@ module Aws::ElasticLoadBalancingV2
1767
2954
  params: params,
1768
2955
  config: config)
1769
2956
  context[:gem_name] = 'aws-sdk-elasticloadbalancingv2'
1770
- context[:gem_version] = '1.0.0.rc7'
2957
+ context[:gem_version] = '1.0.0.rc8'
1771
2958
  Seahorse::Client::Request.new(handlers, context)
1772
2959
  end
1773
2960