aws-sdk-elasticloadbalancingv2 1.38.0 → 1.43.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.
- checksums.yaml +5 -5
- data/lib/aws-sdk-elasticloadbalancingv2.rb +7 -4
- data/lib/aws-sdk-elasticloadbalancingv2/client.rb +225 -33
- data/lib/aws-sdk-elasticloadbalancingv2/client_api.rb +87 -0
- data/lib/aws-sdk-elasticloadbalancingv2/errors.rb +429 -0
- data/lib/aws-sdk-elasticloadbalancingv2/resource.rb +1 -0
- data/lib/aws-sdk-elasticloadbalancingv2/types.rb +415 -44
- data/lib/aws-sdk-elasticloadbalancingv2/waiters.rb +65 -0
- metadata +3 -3
@@ -11,6 +11,7 @@ module Aws::ElasticLoadBalancingV2
|
|
11
11
|
|
12
12
|
include Seahorse::Model
|
13
13
|
|
14
|
+
ALPNPolicyNotSupportedException = Shapes::StructureShape.new(name: 'ALPNPolicyNotSupportedException')
|
14
15
|
Action = Shapes::StructureShape.new(name: 'Action')
|
15
16
|
ActionOrder = Shapes::IntegerShape.new(name: 'ActionOrder')
|
16
17
|
ActionTypeEnum = Shapes::StringShape.new(name: 'ActionTypeEnum')
|
@@ -21,6 +22,8 @@ module Aws::ElasticLoadBalancingV2
|
|
21
22
|
AddTagsOutput = Shapes::StructureShape.new(name: 'AddTagsOutput')
|
22
23
|
AllocationId = Shapes::StringShape.new(name: 'AllocationId')
|
23
24
|
AllocationIdNotFoundException = Shapes::StructureShape.new(name: 'AllocationIdNotFoundException')
|
25
|
+
AlpnPolicyName = Shapes::ListShape.new(name: 'AlpnPolicyName')
|
26
|
+
AlpnPolicyValue = Shapes::StringShape.new(name: 'AlpnPolicyValue')
|
24
27
|
AuthenticateCognitoActionAuthenticationRequestExtraParams = Shapes::MapShape.new(name: 'AuthenticateCognitoActionAuthenticationRequestExtraParams')
|
25
28
|
AuthenticateCognitoActionAuthenticationRequestParamName = Shapes::StringShape.new(name: 'AuthenticateCognitoActionAuthenticationRequestParamName')
|
26
29
|
AuthenticateCognitoActionAuthenticationRequestParamValue = Shapes::StringShape.new(name: 'AuthenticateCognitoActionAuthenticationRequestParamValue')
|
@@ -179,6 +182,7 @@ module Aws::ElasticLoadBalancingV2
|
|
179
182
|
PathPatternConditionConfig = Shapes::StructureShape.new(name: 'PathPatternConditionConfig')
|
180
183
|
Port = Shapes::IntegerShape.new(name: 'Port')
|
181
184
|
PriorityInUseException = Shapes::StructureShape.new(name: 'PriorityInUseException')
|
185
|
+
PrivateIPv4Address = Shapes::StringShape.new(name: 'PrivateIPv4Address')
|
182
186
|
ProtocolEnum = Shapes::StringShape.new(name: 'ProtocolEnum')
|
183
187
|
QueryStringConditionConfig = Shapes::StructureShape.new(name: 'QueryStringConditionConfig')
|
184
188
|
QueryStringKeyValuePair = Shapes::StructureShape.new(name: 'QueryStringKeyValuePair')
|
@@ -283,6 +287,8 @@ module Aws::ElasticLoadBalancingV2
|
|
283
287
|
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
284
288
|
ZoneName = Shapes::StringShape.new(name: 'ZoneName')
|
285
289
|
|
290
|
+
ALPNPolicyNotSupportedException.struct_class = Types::ALPNPolicyNotSupportedException
|
291
|
+
|
286
292
|
Action.add_member(:type, Shapes::ShapeRef.new(shape: ActionTypeEnum, required: true, location_name: "Type"))
|
287
293
|
Action.add_member(:target_group_arn, Shapes::ShapeRef.new(shape: TargetGroupArn, location_name: "TargetGroupArn"))
|
288
294
|
Action.add_member(:authenticate_oidc_config, Shapes::ShapeRef.new(shape: AuthenticateOidcActionConfig, location_name: "AuthenticateOidcConfig"))
|
@@ -308,6 +314,10 @@ module Aws::ElasticLoadBalancingV2
|
|
308
314
|
|
309
315
|
AddTagsOutput.struct_class = Types::AddTagsOutput
|
310
316
|
|
317
|
+
AllocationIdNotFoundException.struct_class = Types::AllocationIdNotFoundException
|
318
|
+
|
319
|
+
AlpnPolicyName.member = Shapes::ShapeRef.new(shape: AlpnPolicyValue)
|
320
|
+
|
311
321
|
AuthenticateCognitoActionAuthenticationRequestExtraParams.key = Shapes::ShapeRef.new(shape: AuthenticateCognitoActionAuthenticationRequestParamName)
|
312
322
|
AuthenticateCognitoActionAuthenticationRequestExtraParams.value = Shapes::ShapeRef.new(shape: AuthenticateCognitoActionAuthenticationRequestParamValue)
|
313
323
|
|
@@ -343,6 +353,8 @@ module Aws::ElasticLoadBalancingV2
|
|
343
353
|
AvailabilityZone.add_member(:load_balancer_addresses, Shapes::ShapeRef.new(shape: LoadBalancerAddresses, location_name: "LoadBalancerAddresses"))
|
344
354
|
AvailabilityZone.struct_class = Types::AvailabilityZone
|
345
355
|
|
356
|
+
AvailabilityZoneNotSupportedException.struct_class = Types::AvailabilityZoneNotSupportedException
|
357
|
+
|
346
358
|
AvailabilityZones.member = Shapes::ShapeRef.new(shape: AvailabilityZone)
|
347
359
|
|
348
360
|
Certificate.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: CertificateArn, location_name: "CertificateArn"))
|
@@ -351,6 +363,8 @@ module Aws::ElasticLoadBalancingV2
|
|
351
363
|
|
352
364
|
CertificateList.member = Shapes::ShapeRef.new(shape: Certificate)
|
353
365
|
|
366
|
+
CertificateNotFoundException.struct_class = Types::CertificateNotFoundException
|
367
|
+
|
354
368
|
Cipher.add_member(:name, Shapes::ShapeRef.new(shape: CipherName, location_name: "Name"))
|
355
369
|
Cipher.add_member(:priority, Shapes::ShapeRef.new(shape: CipherPriority, location_name: "Priority"))
|
356
370
|
Cipher.struct_class = Types::Cipher
|
@@ -363,6 +377,7 @@ module Aws::ElasticLoadBalancingV2
|
|
363
377
|
CreateListenerInput.add_member(:ssl_policy, Shapes::ShapeRef.new(shape: SslPolicyName, location_name: "SslPolicy"))
|
364
378
|
CreateListenerInput.add_member(:certificates, Shapes::ShapeRef.new(shape: CertificateList, location_name: "Certificates"))
|
365
379
|
CreateListenerInput.add_member(:default_actions, Shapes::ShapeRef.new(shape: Actions, required: true, location_name: "DefaultActions"))
|
380
|
+
CreateListenerInput.add_member(:alpn_policy, Shapes::ShapeRef.new(shape: AlpnPolicyName, location_name: "AlpnPolicy"))
|
366
381
|
CreateListenerInput.struct_class = Types::CreateListenerInput
|
367
382
|
|
368
383
|
CreateListenerOutput.add_member(:listeners, Shapes::ShapeRef.new(shape: Listeners, location_name: "Listeners"))
|
@@ -527,6 +542,14 @@ module Aws::ElasticLoadBalancingV2
|
|
527
542
|
DescribeTargetHealthOutput.add_member(:target_health_descriptions, Shapes::ShapeRef.new(shape: TargetHealthDescriptions, location_name: "TargetHealthDescriptions"))
|
528
543
|
DescribeTargetHealthOutput.struct_class = Types::DescribeTargetHealthOutput
|
529
544
|
|
545
|
+
DuplicateListenerException.struct_class = Types::DuplicateListenerException
|
546
|
+
|
547
|
+
DuplicateLoadBalancerNameException.struct_class = Types::DuplicateLoadBalancerNameException
|
548
|
+
|
549
|
+
DuplicateTagKeysException.struct_class = Types::DuplicateTagKeysException
|
550
|
+
|
551
|
+
DuplicateTargetGroupNameException.struct_class = Types::DuplicateTargetGroupNameException
|
552
|
+
|
530
553
|
FixedResponseActionConfig.add_member(:message_body, Shapes::ShapeRef.new(shape: FixedResponseActionMessage, location_name: "MessageBody"))
|
531
554
|
FixedResponseActionConfig.add_member(:status_code, Shapes::ShapeRef.new(shape: FixedResponseActionStatusCode, required: true, location_name: "StatusCode"))
|
532
555
|
FixedResponseActionConfig.add_member(:content_type, Shapes::ShapeRef.new(shape: FixedResponseActionContentType, location_name: "ContentType"))
|
@@ -536,6 +559,8 @@ module Aws::ElasticLoadBalancingV2
|
|
536
559
|
ForwardActionConfig.add_member(:target_group_stickiness_config, Shapes::ShapeRef.new(shape: TargetGroupStickinessConfig, location_name: "TargetGroupStickinessConfig"))
|
537
560
|
ForwardActionConfig.struct_class = Types::ForwardActionConfig
|
538
561
|
|
562
|
+
HealthUnavailableException.struct_class = Types::HealthUnavailableException
|
563
|
+
|
539
564
|
HostHeaderConditionConfig.add_member(:values, Shapes::ShapeRef.new(shape: ListOfString, location_name: "Values"))
|
540
565
|
HostHeaderConditionConfig.struct_class = Types::HostHeaderConditionConfig
|
541
566
|
|
@@ -546,6 +571,20 @@ module Aws::ElasticLoadBalancingV2
|
|
546
571
|
HttpRequestMethodConditionConfig.add_member(:values, Shapes::ShapeRef.new(shape: ListOfString, location_name: "Values"))
|
547
572
|
HttpRequestMethodConditionConfig.struct_class = Types::HttpRequestMethodConditionConfig
|
548
573
|
|
574
|
+
IncompatibleProtocolsException.struct_class = Types::IncompatibleProtocolsException
|
575
|
+
|
576
|
+
InvalidConfigurationRequestException.struct_class = Types::InvalidConfigurationRequestException
|
577
|
+
|
578
|
+
InvalidLoadBalancerActionException.struct_class = Types::InvalidLoadBalancerActionException
|
579
|
+
|
580
|
+
InvalidSchemeException.struct_class = Types::InvalidSchemeException
|
581
|
+
|
582
|
+
InvalidSecurityGroupException.struct_class = Types::InvalidSecurityGroupException
|
583
|
+
|
584
|
+
InvalidSubnetException.struct_class = Types::InvalidSubnetException
|
585
|
+
|
586
|
+
InvalidTargetException.struct_class = Types::InvalidTargetException
|
587
|
+
|
549
588
|
Limit.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
|
550
589
|
Limit.add_member(:max, Shapes::ShapeRef.new(shape: Max, location_name: "Max"))
|
551
590
|
Limit.struct_class = Types::Limit
|
@@ -561,10 +600,13 @@ module Aws::ElasticLoadBalancingV2
|
|
561
600
|
Listener.add_member(:certificates, Shapes::ShapeRef.new(shape: CertificateList, location_name: "Certificates"))
|
562
601
|
Listener.add_member(:ssl_policy, Shapes::ShapeRef.new(shape: SslPolicyName, location_name: "SslPolicy"))
|
563
602
|
Listener.add_member(:default_actions, Shapes::ShapeRef.new(shape: Actions, location_name: "DefaultActions"))
|
603
|
+
Listener.add_member(:alpn_policy, Shapes::ShapeRef.new(shape: AlpnPolicyName, location_name: "AlpnPolicy"))
|
564
604
|
Listener.struct_class = Types::Listener
|
565
605
|
|
566
606
|
ListenerArns.member = Shapes::ShapeRef.new(shape: ListenerArn)
|
567
607
|
|
608
|
+
ListenerNotFoundException.struct_class = Types::ListenerNotFoundException
|
609
|
+
|
568
610
|
Listeners.member = Shapes::ShapeRef.new(shape: Listener)
|
569
611
|
|
570
612
|
LoadBalancer.add_member(:load_balancer_arn, Shapes::ShapeRef.new(shape: LoadBalancerArn, location_name: "LoadBalancerArn"))
|
@@ -583,6 +625,7 @@ module Aws::ElasticLoadBalancingV2
|
|
583
625
|
|
584
626
|
LoadBalancerAddress.add_member(:ip_address, Shapes::ShapeRef.new(shape: IpAddress, location_name: "IpAddress"))
|
585
627
|
LoadBalancerAddress.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
|
628
|
+
LoadBalancerAddress.add_member(:private_i_pv_4_address, Shapes::ShapeRef.new(shape: PrivateIPv4Address, location_name: "PrivateIPv4Address"))
|
586
629
|
LoadBalancerAddress.struct_class = Types::LoadBalancerAddress
|
587
630
|
|
588
631
|
LoadBalancerAddresses.member = Shapes::ShapeRef.new(shape: LoadBalancerAddress)
|
@@ -597,6 +640,8 @@ module Aws::ElasticLoadBalancingV2
|
|
597
640
|
|
598
641
|
LoadBalancerNames.member = Shapes::ShapeRef.new(shape: LoadBalancerName)
|
599
642
|
|
643
|
+
LoadBalancerNotFoundException.struct_class = Types::LoadBalancerNotFoundException
|
644
|
+
|
600
645
|
LoadBalancerState.add_member(:code, Shapes::ShapeRef.new(shape: LoadBalancerStateEnum, location_name: "Code"))
|
601
646
|
LoadBalancerState.add_member(:reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "Reason"))
|
602
647
|
LoadBalancerState.struct_class = Types::LoadBalancerState
|
@@ -612,6 +657,7 @@ module Aws::ElasticLoadBalancingV2
|
|
612
657
|
ModifyListenerInput.add_member(:ssl_policy, Shapes::ShapeRef.new(shape: SslPolicyName, location_name: "SslPolicy"))
|
613
658
|
ModifyListenerInput.add_member(:certificates, Shapes::ShapeRef.new(shape: CertificateList, location_name: "Certificates"))
|
614
659
|
ModifyListenerInput.add_member(:default_actions, Shapes::ShapeRef.new(shape: Actions, location_name: "DefaultActions"))
|
660
|
+
ModifyListenerInput.add_member(:alpn_policy, Shapes::ShapeRef.new(shape: AlpnPolicyName, location_name: "AlpnPolicy"))
|
615
661
|
ModifyListenerInput.struct_class = Types::ModifyListenerInput
|
616
662
|
|
617
663
|
ModifyListenerOutput.add_member(:listeners, Shapes::ShapeRef.new(shape: Listeners, location_name: "Listeners"))
|
@@ -654,9 +700,13 @@ module Aws::ElasticLoadBalancingV2
|
|
654
700
|
ModifyTargetGroupOutput.add_member(:target_groups, Shapes::ShapeRef.new(shape: TargetGroups, location_name: "TargetGroups"))
|
655
701
|
ModifyTargetGroupOutput.struct_class = Types::ModifyTargetGroupOutput
|
656
702
|
|
703
|
+
OperationNotPermittedException.struct_class = Types::OperationNotPermittedException
|
704
|
+
|
657
705
|
PathPatternConditionConfig.add_member(:values, Shapes::ShapeRef.new(shape: ListOfString, location_name: "Values"))
|
658
706
|
PathPatternConditionConfig.struct_class = Types::PathPatternConditionConfig
|
659
707
|
|
708
|
+
PriorityInUseException.struct_class = Types::PriorityInUseException
|
709
|
+
|
660
710
|
QueryStringConditionConfig.add_member(:values, Shapes::ShapeRef.new(shape: QueryStringKeyValuePairList, location_name: "Values"))
|
661
711
|
QueryStringConditionConfig.struct_class = Types::QueryStringConditionConfig
|
662
712
|
|
@@ -694,6 +744,8 @@ module Aws::ElasticLoadBalancingV2
|
|
694
744
|
|
695
745
|
ResourceArns.member = Shapes::ShapeRef.new(shape: ResourceArn)
|
696
746
|
|
747
|
+
ResourceInUseException.struct_class = Types::ResourceInUseException
|
748
|
+
|
697
749
|
Rule.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
698
750
|
Rule.add_member(:priority, Shapes::ShapeRef.new(shape: String, location_name: "Priority"))
|
699
751
|
Rule.add_member(:conditions, Shapes::ShapeRef.new(shape: RuleConditionList, location_name: "Conditions"))
|
@@ -715,6 +767,8 @@ module Aws::ElasticLoadBalancingV2
|
|
715
767
|
|
716
768
|
RuleConditionList.member = Shapes::ShapeRef.new(shape: RuleCondition)
|
717
769
|
|
770
|
+
RuleNotFoundException.struct_class = Types::RuleNotFoundException
|
771
|
+
|
718
772
|
RulePriorityList.member = Shapes::ShapeRef.new(shape: RulePriorityPair)
|
719
773
|
|
720
774
|
RulePriorityPair.add_member(:rule_arn, Shapes::ShapeRef.new(shape: RuleArn, location_name: "RuleArn"))
|
@@ -723,6 +777,8 @@ module Aws::ElasticLoadBalancingV2
|
|
723
777
|
|
724
778
|
Rules.member = Shapes::ShapeRef.new(shape: Rule)
|
725
779
|
|
780
|
+
SSLPolicyNotFoundException.struct_class = Types::SSLPolicyNotFoundException
|
781
|
+
|
726
782
|
SecurityGroups.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
727
783
|
|
728
784
|
SetIpAddressTypeInput.add_member(:load_balancer_arn, Shapes::ShapeRef.new(shape: LoadBalancerArn, required: true, location_name: "LoadBalancerArn"))
|
@@ -769,10 +825,13 @@ module Aws::ElasticLoadBalancingV2
|
|
769
825
|
|
770
826
|
SubnetMapping.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
|
771
827
|
SubnetMapping.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
|
828
|
+
SubnetMapping.add_member(:private_i_pv_4_address, Shapes::ShapeRef.new(shape: PrivateIPv4Address, location_name: "PrivateIPv4Address"))
|
772
829
|
SubnetMapping.struct_class = Types::SubnetMapping
|
773
830
|
|
774
831
|
SubnetMappings.member = Shapes::ShapeRef.new(shape: SubnetMapping)
|
775
832
|
|
833
|
+
SubnetNotFoundException.struct_class = Types::SubnetNotFoundException
|
834
|
+
|
776
835
|
Subnets.member = Shapes::ShapeRef.new(shape: SubnetId)
|
777
836
|
|
778
837
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
@@ -816,6 +875,8 @@ module Aws::ElasticLoadBalancingV2
|
|
816
875
|
|
817
876
|
TargetGroupArns.member = Shapes::ShapeRef.new(shape: TargetGroupArn)
|
818
877
|
|
878
|
+
TargetGroupAssociationLimitException.struct_class = Types::TargetGroupAssociationLimitException
|
879
|
+
|
819
880
|
TargetGroupAttribute.add_member(:key, Shapes::ShapeRef.new(shape: TargetGroupAttributeKey, location_name: "Key"))
|
820
881
|
TargetGroupAttribute.add_member(:value, Shapes::ShapeRef.new(shape: TargetGroupAttributeValue, location_name: "Value"))
|
821
882
|
TargetGroupAttribute.struct_class = Types::TargetGroupAttribute
|
@@ -826,6 +887,8 @@ module Aws::ElasticLoadBalancingV2
|
|
826
887
|
|
827
888
|
TargetGroupNames.member = Shapes::ShapeRef.new(shape: TargetGroupName)
|
828
889
|
|
890
|
+
TargetGroupNotFoundException.struct_class = Types::TargetGroupNotFoundException
|
891
|
+
|
829
892
|
TargetGroupStickinessConfig.add_member(:enabled, Shapes::ShapeRef.new(shape: TargetGroupStickinessEnabled, location_name: "Enabled"))
|
830
893
|
TargetGroupStickinessConfig.add_member(:duration_seconds, Shapes::ShapeRef.new(shape: TargetGroupStickinessDurationSeconds, location_name: "DurationSeconds"))
|
831
894
|
TargetGroupStickinessConfig.struct_class = Types::TargetGroupStickinessConfig
|
@@ -848,6 +911,28 @@ module Aws::ElasticLoadBalancingV2
|
|
848
911
|
|
849
912
|
TargetHealthDescriptions.member = Shapes::ShapeRef.new(shape: TargetHealthDescription)
|
850
913
|
|
914
|
+
TooManyActionsException.struct_class = Types::TooManyActionsException
|
915
|
+
|
916
|
+
TooManyCertificatesException.struct_class = Types::TooManyCertificatesException
|
917
|
+
|
918
|
+
TooManyListenersException.struct_class = Types::TooManyListenersException
|
919
|
+
|
920
|
+
TooManyLoadBalancersException.struct_class = Types::TooManyLoadBalancersException
|
921
|
+
|
922
|
+
TooManyRegistrationsForTargetIdException.struct_class = Types::TooManyRegistrationsForTargetIdException
|
923
|
+
|
924
|
+
TooManyRulesException.struct_class = Types::TooManyRulesException
|
925
|
+
|
926
|
+
TooManyTagsException.struct_class = Types::TooManyTagsException
|
927
|
+
|
928
|
+
TooManyTargetGroupsException.struct_class = Types::TooManyTargetGroupsException
|
929
|
+
|
930
|
+
TooManyTargetsException.struct_class = Types::TooManyTargetsException
|
931
|
+
|
932
|
+
TooManyUniqueTargetGroupsPerLoadBalancerException.struct_class = Types::TooManyUniqueTargetGroupsPerLoadBalancerException
|
933
|
+
|
934
|
+
UnsupportedProtocolException.struct_class = Types::UnsupportedProtocolException
|
935
|
+
|
851
936
|
|
852
937
|
# @api private
|
853
938
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -911,6 +996,7 @@ module Aws::ElasticLoadBalancingV2
|
|
911
996
|
o.errors << Shapes::ShapeRef.new(shape: TooManyActionsException)
|
912
997
|
o.errors << Shapes::ShapeRef.new(shape: InvalidLoadBalancerActionException)
|
913
998
|
o.errors << Shapes::ShapeRef.new(shape: TooManyUniqueTargetGroupsPerLoadBalancerException)
|
999
|
+
o.errors << Shapes::ShapeRef.new(shape: ALPNPolicyNotSupportedException)
|
914
1000
|
end)
|
915
1001
|
|
916
1002
|
api.add_operation(:create_load_balancer, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1161,6 +1247,7 @@ module Aws::ElasticLoadBalancingV2
|
|
1161
1247
|
o.errors << Shapes::ShapeRef.new(shape: TooManyActionsException)
|
1162
1248
|
o.errors << Shapes::ShapeRef.new(shape: InvalidLoadBalancerActionException)
|
1163
1249
|
o.errors << Shapes::ShapeRef.new(shape: TooManyUniqueTargetGroupsPerLoadBalancerException)
|
1250
|
+
o.errors << Shapes::ShapeRef.new(shape: ALPNPolicyNotSupportedException)
|
1164
1251
|
end)
|
1165
1252
|
|
1166
1253
|
api.add_operation(:modify_load_balancer_attributes, Seahorse::Model::Operation.new.tap do |o|
|
@@ -6,9 +6,438 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::ElasticLoadBalancingV2
|
9
|
+
|
10
|
+
# When ElasticLoadBalancingV2 returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::ElasticLoadBalancingV2::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all ElasticLoadBalancingV2 errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::ElasticLoadBalancingV2::Errors::ServiceError
|
18
|
+
# # rescues all ElasticLoadBalancingV2 API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {ALPNPolicyNotSupportedException}
|
29
|
+
# * {AllocationIdNotFoundException}
|
30
|
+
# * {AvailabilityZoneNotSupportedException}
|
31
|
+
# * {CertificateNotFoundException}
|
32
|
+
# * {DuplicateListenerException}
|
33
|
+
# * {DuplicateLoadBalancerNameException}
|
34
|
+
# * {DuplicateTagKeysException}
|
35
|
+
# * {DuplicateTargetGroupNameException}
|
36
|
+
# * {HealthUnavailableException}
|
37
|
+
# * {IncompatibleProtocolsException}
|
38
|
+
# * {InvalidConfigurationRequestException}
|
39
|
+
# * {InvalidLoadBalancerActionException}
|
40
|
+
# * {InvalidSchemeException}
|
41
|
+
# * {InvalidSecurityGroupException}
|
42
|
+
# * {InvalidSubnetException}
|
43
|
+
# * {InvalidTargetException}
|
44
|
+
# * {ListenerNotFoundException}
|
45
|
+
# * {LoadBalancerNotFoundException}
|
46
|
+
# * {OperationNotPermittedException}
|
47
|
+
# * {PriorityInUseException}
|
48
|
+
# * {ResourceInUseException}
|
49
|
+
# * {RuleNotFoundException}
|
50
|
+
# * {SSLPolicyNotFoundException}
|
51
|
+
# * {SubnetNotFoundException}
|
52
|
+
# * {TargetGroupAssociationLimitException}
|
53
|
+
# * {TargetGroupNotFoundException}
|
54
|
+
# * {TooManyActionsException}
|
55
|
+
# * {TooManyCertificatesException}
|
56
|
+
# * {TooManyListenersException}
|
57
|
+
# * {TooManyLoadBalancersException}
|
58
|
+
# * {TooManyRegistrationsForTargetIdException}
|
59
|
+
# * {TooManyRulesException}
|
60
|
+
# * {TooManyTagsException}
|
61
|
+
# * {TooManyTargetGroupsException}
|
62
|
+
# * {TooManyTargetsException}
|
63
|
+
# * {TooManyUniqueTargetGroupsPerLoadBalancerException}
|
64
|
+
# * {UnsupportedProtocolException}
|
65
|
+
#
|
66
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
67
|
+
# if they are not defined above.
|
9
68
|
module Errors
|
10
69
|
|
11
70
|
extend Aws::Errors::DynamicErrors
|
12
71
|
|
72
|
+
class ALPNPolicyNotSupportedException < ServiceError
|
73
|
+
|
74
|
+
# @param [Seahorse::Client::RequestContext] context
|
75
|
+
# @param [String] message
|
76
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::ALPNPolicyNotSupportedException] data
|
77
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
78
|
+
super(context, message, data)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
class AllocationIdNotFoundException < ServiceError
|
83
|
+
|
84
|
+
# @param [Seahorse::Client::RequestContext] context
|
85
|
+
# @param [String] message
|
86
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::AllocationIdNotFoundException] data
|
87
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
88
|
+
super(context, message, data)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class AvailabilityZoneNotSupportedException < ServiceError
|
93
|
+
|
94
|
+
# @param [Seahorse::Client::RequestContext] context
|
95
|
+
# @param [String] message
|
96
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::AvailabilityZoneNotSupportedException] data
|
97
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
98
|
+
super(context, message, data)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
class CertificateNotFoundException < ServiceError
|
103
|
+
|
104
|
+
# @param [Seahorse::Client::RequestContext] context
|
105
|
+
# @param [String] message
|
106
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::CertificateNotFoundException] data
|
107
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
108
|
+
super(context, message, data)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class DuplicateListenerException < ServiceError
|
113
|
+
|
114
|
+
# @param [Seahorse::Client::RequestContext] context
|
115
|
+
# @param [String] message
|
116
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::DuplicateListenerException] data
|
117
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
118
|
+
super(context, message, data)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
class DuplicateLoadBalancerNameException < ServiceError
|
123
|
+
|
124
|
+
# @param [Seahorse::Client::RequestContext] context
|
125
|
+
# @param [String] message
|
126
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::DuplicateLoadBalancerNameException] data
|
127
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
128
|
+
super(context, message, data)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class DuplicateTagKeysException < ServiceError
|
133
|
+
|
134
|
+
# @param [Seahorse::Client::RequestContext] context
|
135
|
+
# @param [String] message
|
136
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::DuplicateTagKeysException] data
|
137
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
138
|
+
super(context, message, data)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
class DuplicateTargetGroupNameException < ServiceError
|
143
|
+
|
144
|
+
# @param [Seahorse::Client::RequestContext] context
|
145
|
+
# @param [String] message
|
146
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::DuplicateTargetGroupNameException] data
|
147
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
148
|
+
super(context, message, data)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
class HealthUnavailableException < ServiceError
|
153
|
+
|
154
|
+
# @param [Seahorse::Client::RequestContext] context
|
155
|
+
# @param [String] message
|
156
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::HealthUnavailableException] data
|
157
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
158
|
+
super(context, message, data)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
class IncompatibleProtocolsException < ServiceError
|
163
|
+
|
164
|
+
# @param [Seahorse::Client::RequestContext] context
|
165
|
+
# @param [String] message
|
166
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::IncompatibleProtocolsException] data
|
167
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
168
|
+
super(context, message, data)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
class InvalidConfigurationRequestException < ServiceError
|
173
|
+
|
174
|
+
# @param [Seahorse::Client::RequestContext] context
|
175
|
+
# @param [String] message
|
176
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::InvalidConfigurationRequestException] data
|
177
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
178
|
+
super(context, message, data)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class InvalidLoadBalancerActionException < ServiceError
|
183
|
+
|
184
|
+
# @param [Seahorse::Client::RequestContext] context
|
185
|
+
# @param [String] message
|
186
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::InvalidLoadBalancerActionException] data
|
187
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
188
|
+
super(context, message, data)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
class InvalidSchemeException < ServiceError
|
193
|
+
|
194
|
+
# @param [Seahorse::Client::RequestContext] context
|
195
|
+
# @param [String] message
|
196
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::InvalidSchemeException] data
|
197
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
198
|
+
super(context, message, data)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class InvalidSecurityGroupException < ServiceError
|
203
|
+
|
204
|
+
# @param [Seahorse::Client::RequestContext] context
|
205
|
+
# @param [String] message
|
206
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::InvalidSecurityGroupException] data
|
207
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
208
|
+
super(context, message, data)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
class InvalidSubnetException < ServiceError
|
213
|
+
|
214
|
+
# @param [Seahorse::Client::RequestContext] context
|
215
|
+
# @param [String] message
|
216
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::InvalidSubnetException] data
|
217
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
218
|
+
super(context, message, data)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class InvalidTargetException < ServiceError
|
223
|
+
|
224
|
+
# @param [Seahorse::Client::RequestContext] context
|
225
|
+
# @param [String] message
|
226
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::InvalidTargetException] data
|
227
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
228
|
+
super(context, message, data)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
class ListenerNotFoundException < ServiceError
|
233
|
+
|
234
|
+
# @param [Seahorse::Client::RequestContext] context
|
235
|
+
# @param [String] message
|
236
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::ListenerNotFoundException] data
|
237
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
238
|
+
super(context, message, data)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
class LoadBalancerNotFoundException < ServiceError
|
243
|
+
|
244
|
+
# @param [Seahorse::Client::RequestContext] context
|
245
|
+
# @param [String] message
|
246
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::LoadBalancerNotFoundException] data
|
247
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
248
|
+
super(context, message, data)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class OperationNotPermittedException < ServiceError
|
253
|
+
|
254
|
+
# @param [Seahorse::Client::RequestContext] context
|
255
|
+
# @param [String] message
|
256
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::OperationNotPermittedException] data
|
257
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
258
|
+
super(context, message, data)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
class PriorityInUseException < ServiceError
|
263
|
+
|
264
|
+
# @param [Seahorse::Client::RequestContext] context
|
265
|
+
# @param [String] message
|
266
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::PriorityInUseException] data
|
267
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
268
|
+
super(context, message, data)
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
class ResourceInUseException < ServiceError
|
273
|
+
|
274
|
+
# @param [Seahorse::Client::RequestContext] context
|
275
|
+
# @param [String] message
|
276
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::ResourceInUseException] data
|
277
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
278
|
+
super(context, message, data)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
class RuleNotFoundException < ServiceError
|
283
|
+
|
284
|
+
# @param [Seahorse::Client::RequestContext] context
|
285
|
+
# @param [String] message
|
286
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::RuleNotFoundException] data
|
287
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
288
|
+
super(context, message, data)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
class SSLPolicyNotFoundException < ServiceError
|
293
|
+
|
294
|
+
# @param [Seahorse::Client::RequestContext] context
|
295
|
+
# @param [String] message
|
296
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::SSLPolicyNotFoundException] data
|
297
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
298
|
+
super(context, message, data)
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
class SubnetNotFoundException < ServiceError
|
303
|
+
|
304
|
+
# @param [Seahorse::Client::RequestContext] context
|
305
|
+
# @param [String] message
|
306
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::SubnetNotFoundException] data
|
307
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
308
|
+
super(context, message, data)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
class TargetGroupAssociationLimitException < ServiceError
|
313
|
+
|
314
|
+
# @param [Seahorse::Client::RequestContext] context
|
315
|
+
# @param [String] message
|
316
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TargetGroupAssociationLimitException] data
|
317
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
318
|
+
super(context, message, data)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
class TargetGroupNotFoundException < ServiceError
|
323
|
+
|
324
|
+
# @param [Seahorse::Client::RequestContext] context
|
325
|
+
# @param [String] message
|
326
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TargetGroupNotFoundException] data
|
327
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
328
|
+
super(context, message, data)
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
class TooManyActionsException < ServiceError
|
333
|
+
|
334
|
+
# @param [Seahorse::Client::RequestContext] context
|
335
|
+
# @param [String] message
|
336
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyActionsException] data
|
337
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
338
|
+
super(context, message, data)
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
class TooManyCertificatesException < ServiceError
|
343
|
+
|
344
|
+
# @param [Seahorse::Client::RequestContext] context
|
345
|
+
# @param [String] message
|
346
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyCertificatesException] data
|
347
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
348
|
+
super(context, message, data)
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
class TooManyListenersException < ServiceError
|
353
|
+
|
354
|
+
# @param [Seahorse::Client::RequestContext] context
|
355
|
+
# @param [String] message
|
356
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyListenersException] data
|
357
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
358
|
+
super(context, message, data)
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
362
|
+
class TooManyLoadBalancersException < ServiceError
|
363
|
+
|
364
|
+
# @param [Seahorse::Client::RequestContext] context
|
365
|
+
# @param [String] message
|
366
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyLoadBalancersException] data
|
367
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
368
|
+
super(context, message, data)
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
class TooManyRegistrationsForTargetIdException < ServiceError
|
373
|
+
|
374
|
+
# @param [Seahorse::Client::RequestContext] context
|
375
|
+
# @param [String] message
|
376
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyRegistrationsForTargetIdException] data
|
377
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
378
|
+
super(context, message, data)
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
class TooManyRulesException < ServiceError
|
383
|
+
|
384
|
+
# @param [Seahorse::Client::RequestContext] context
|
385
|
+
# @param [String] message
|
386
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyRulesException] data
|
387
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
388
|
+
super(context, message, data)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
class TooManyTagsException < ServiceError
|
393
|
+
|
394
|
+
# @param [Seahorse::Client::RequestContext] context
|
395
|
+
# @param [String] message
|
396
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyTagsException] data
|
397
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
398
|
+
super(context, message, data)
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
class TooManyTargetGroupsException < ServiceError
|
403
|
+
|
404
|
+
# @param [Seahorse::Client::RequestContext] context
|
405
|
+
# @param [String] message
|
406
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyTargetGroupsException] data
|
407
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
408
|
+
super(context, message, data)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
412
|
+
class TooManyTargetsException < ServiceError
|
413
|
+
|
414
|
+
# @param [Seahorse::Client::RequestContext] context
|
415
|
+
# @param [String] message
|
416
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyTargetsException] data
|
417
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
418
|
+
super(context, message, data)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
class TooManyUniqueTargetGroupsPerLoadBalancerException < ServiceError
|
423
|
+
|
424
|
+
# @param [Seahorse::Client::RequestContext] context
|
425
|
+
# @param [String] message
|
426
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::TooManyUniqueTargetGroupsPerLoadBalancerException] data
|
427
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
428
|
+
super(context, message, data)
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
class UnsupportedProtocolException < ServiceError
|
433
|
+
|
434
|
+
# @param [Seahorse::Client::RequestContext] context
|
435
|
+
# @param [String] message
|
436
|
+
# @param [Aws::ElasticLoadBalancingV2::Types::UnsupportedProtocolException] data
|
437
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
438
|
+
super(context, message, data)
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
13
442
|
end
|
14
443
|
end
|