aws-sdk-globalaccelerator 1.52.0 → 1.53.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,12 @@ module Aws::GlobalAccelerator
31
31
  AllowCustomRoutingTrafficRequest = Shapes::StructureShape.new(name: 'AllowCustomRoutingTrafficRequest')
32
32
  AssociatedEndpointGroupFoundException = Shapes::StructureShape.new(name: 'AssociatedEndpointGroupFoundException')
33
33
  AssociatedListenerFoundException = Shapes::StructureShape.new(name: 'AssociatedListenerFoundException')
34
+ Attachment = Shapes::StructureShape.new(name: 'Attachment')
35
+ AttachmentName = Shapes::StringShape.new(name: 'AttachmentName')
36
+ AttachmentNotFoundException = Shapes::StructureShape.new(name: 'AttachmentNotFoundException')
37
+ Attachments = Shapes::ListShape.new(name: 'Attachments')
38
+ AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
39
+ AwsAccountIds = Shapes::ListShape.new(name: 'AwsAccountIds')
34
40
  ByoipCidr = Shapes::StructureShape.new(name: 'ByoipCidr')
35
41
  ByoipCidrEvent = Shapes::StructureShape.new(name: 'ByoipCidrEvent')
36
42
  ByoipCidrEvents = Shapes::ListShape.new(name: 'ByoipCidrEvents')
@@ -42,6 +48,8 @@ module Aws::GlobalAccelerator
42
48
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
43
49
  CreateAcceleratorRequest = Shapes::StructureShape.new(name: 'CreateAcceleratorRequest')
44
50
  CreateAcceleratorResponse = Shapes::StructureShape.new(name: 'CreateAcceleratorResponse')
51
+ CreateCrossAccountAttachmentRequest = Shapes::StructureShape.new(name: 'CreateCrossAccountAttachmentRequest')
52
+ CreateCrossAccountAttachmentResponse = Shapes::StructureShape.new(name: 'CreateCrossAccountAttachmentResponse')
45
53
  CreateCustomRoutingAcceleratorRequest = Shapes::StructureShape.new(name: 'CreateCustomRoutingAcceleratorRequest')
46
54
  CreateCustomRoutingAcceleratorResponse = Shapes::StructureShape.new(name: 'CreateCustomRoutingAcceleratorResponse')
47
55
  CreateCustomRoutingEndpointGroupRequest = Shapes::StructureShape.new(name: 'CreateCustomRoutingEndpointGroupRequest')
@@ -52,6 +60,8 @@ module Aws::GlobalAccelerator
52
60
  CreateEndpointGroupResponse = Shapes::StructureShape.new(name: 'CreateEndpointGroupResponse')
53
61
  CreateListenerRequest = Shapes::StructureShape.new(name: 'CreateListenerRequest')
54
62
  CreateListenerResponse = Shapes::StructureShape.new(name: 'CreateListenerResponse')
63
+ CrossAccountResource = Shapes::StructureShape.new(name: 'CrossAccountResource')
64
+ CrossAccountResources = Shapes::ListShape.new(name: 'CrossAccountResources')
55
65
  CustomRoutingAccelerator = Shapes::StructureShape.new(name: 'CustomRoutingAccelerator')
56
66
  CustomRoutingAcceleratorAttributes = Shapes::StructureShape.new(name: 'CustomRoutingAcceleratorAttributes')
57
67
  CustomRoutingAcceleratorStatus = Shapes::StringShape.new(name: 'CustomRoutingAcceleratorStatus')
@@ -72,6 +82,7 @@ module Aws::GlobalAccelerator
72
82
  CustomRoutingProtocol = Shapes::StringShape.new(name: 'CustomRoutingProtocol')
73
83
  CustomRoutingProtocols = Shapes::ListShape.new(name: 'CustomRoutingProtocols')
74
84
  DeleteAcceleratorRequest = Shapes::StructureShape.new(name: 'DeleteAcceleratorRequest')
85
+ DeleteCrossAccountAttachmentRequest = Shapes::StructureShape.new(name: 'DeleteCrossAccountAttachmentRequest')
75
86
  DeleteCustomRoutingAcceleratorRequest = Shapes::StructureShape.new(name: 'DeleteCustomRoutingAcceleratorRequest')
76
87
  DeleteCustomRoutingEndpointGroupRequest = Shapes::StructureShape.new(name: 'DeleteCustomRoutingEndpointGroupRequest')
77
88
  DeleteCustomRoutingListenerRequest = Shapes::StructureShape.new(name: 'DeleteCustomRoutingListenerRequest')
@@ -84,6 +95,8 @@ module Aws::GlobalAccelerator
84
95
  DescribeAcceleratorAttributesResponse = Shapes::StructureShape.new(name: 'DescribeAcceleratorAttributesResponse')
85
96
  DescribeAcceleratorRequest = Shapes::StructureShape.new(name: 'DescribeAcceleratorRequest')
86
97
  DescribeAcceleratorResponse = Shapes::StructureShape.new(name: 'DescribeAcceleratorResponse')
98
+ DescribeCrossAccountAttachmentRequest = Shapes::StructureShape.new(name: 'DescribeCrossAccountAttachmentRequest')
99
+ DescribeCrossAccountAttachmentResponse = Shapes::StructureShape.new(name: 'DescribeCrossAccountAttachmentResponse')
87
100
  DescribeCustomRoutingAcceleratorAttributesRequest = Shapes::StructureShape.new(name: 'DescribeCustomRoutingAcceleratorAttributesRequest')
88
101
  DescribeCustomRoutingAcceleratorAttributesResponse = Shapes::StructureShape.new(name: 'DescribeCustomRoutingAcceleratorAttributesResponse')
89
102
  DescribeCustomRoutingAcceleratorRequest = Shapes::StructureShape.new(name: 'DescribeCustomRoutingAcceleratorRequest')
@@ -139,6 +152,12 @@ module Aws::GlobalAccelerator
139
152
  ListAcceleratorsResponse = Shapes::StructureShape.new(name: 'ListAcceleratorsResponse')
140
153
  ListByoipCidrsRequest = Shapes::StructureShape.new(name: 'ListByoipCidrsRequest')
141
154
  ListByoipCidrsResponse = Shapes::StructureShape.new(name: 'ListByoipCidrsResponse')
155
+ ListCrossAccountAttachmentsRequest = Shapes::StructureShape.new(name: 'ListCrossAccountAttachmentsRequest')
156
+ ListCrossAccountAttachmentsResponse = Shapes::StructureShape.new(name: 'ListCrossAccountAttachmentsResponse')
157
+ ListCrossAccountResourceAccountsRequest = Shapes::StructureShape.new(name: 'ListCrossAccountResourceAccountsRequest')
158
+ ListCrossAccountResourceAccountsResponse = Shapes::StructureShape.new(name: 'ListCrossAccountResourceAccountsResponse')
159
+ ListCrossAccountResourcesRequest = Shapes::StructureShape.new(name: 'ListCrossAccountResourcesRequest')
160
+ ListCrossAccountResourcesResponse = Shapes::StructureShape.new(name: 'ListCrossAccountResourcesResponse')
142
161
  ListCustomRoutingAcceleratorsRequest = Shapes::StructureShape.new(name: 'ListCustomRoutingAcceleratorsRequest')
143
162
  ListCustomRoutingAcceleratorsResponse = Shapes::StructureShape.new(name: 'ListCustomRoutingAcceleratorsResponse')
144
163
  ListCustomRoutingEndpointGroupsRequest = Shapes::StructureShape.new(name: 'ListCustomRoutingEndpointGroupsRequest')
@@ -167,13 +186,17 @@ module Aws::GlobalAccelerator
167
186
  PortOverrides = Shapes::ListShape.new(name: 'PortOverrides')
168
187
  PortRange = Shapes::StructureShape.new(name: 'PortRange')
169
188
  PortRanges = Shapes::ListShape.new(name: 'PortRanges')
189
+ Principal = Shapes::StringShape.new(name: 'Principal')
190
+ Principals = Shapes::ListShape.new(name: 'Principals')
170
191
  Protocol = Shapes::StringShape.new(name: 'Protocol')
171
192
  Protocols = Shapes::ListShape.new(name: 'Protocols')
172
193
  ProvisionByoipCidrRequest = Shapes::StructureShape.new(name: 'ProvisionByoipCidrRequest')
173
194
  ProvisionByoipCidrResponse = Shapes::StructureShape.new(name: 'ProvisionByoipCidrResponse')
174
195
  RemoveCustomRoutingEndpointsRequest = Shapes::StructureShape.new(name: 'RemoveCustomRoutingEndpointsRequest')
175
196
  RemoveEndpointsRequest = Shapes::StructureShape.new(name: 'RemoveEndpointsRequest')
197
+ Resource = Shapes::StructureShape.new(name: 'Resource')
176
198
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
199
+ Resources = Shapes::ListShape.new(name: 'Resources')
177
200
  SocketAddress = Shapes::StructureShape.new(name: 'SocketAddress')
178
201
  SocketAddresses = Shapes::ListShape.new(name: 'SocketAddresses')
179
202
  Tag = Shapes::StructureShape.new(name: 'Tag')
@@ -193,6 +216,8 @@ module Aws::GlobalAccelerator
193
216
  UpdateAcceleratorAttributesResponse = Shapes::StructureShape.new(name: 'UpdateAcceleratorAttributesResponse')
194
217
  UpdateAcceleratorRequest = Shapes::StructureShape.new(name: 'UpdateAcceleratorRequest')
195
218
  UpdateAcceleratorResponse = Shapes::StructureShape.new(name: 'UpdateAcceleratorResponse')
219
+ UpdateCrossAccountAttachmentRequest = Shapes::StructureShape.new(name: 'UpdateCrossAccountAttachmentRequest')
220
+ UpdateCrossAccountAttachmentResponse = Shapes::StructureShape.new(name: 'UpdateCrossAccountAttachmentResponse')
196
221
  UpdateCustomRoutingAcceleratorAttributesRequest = Shapes::StructureShape.new(name: 'UpdateCustomRoutingAcceleratorAttributesRequest')
197
222
  UpdateCustomRoutingAcceleratorAttributesResponse = Shapes::StructureShape.new(name: 'UpdateCustomRoutingAcceleratorAttributesResponse')
198
223
  UpdateCustomRoutingAcceleratorRequest = Shapes::StructureShape.new(name: 'UpdateCustomRoutingAcceleratorRequest')
@@ -276,6 +301,21 @@ module Aws::GlobalAccelerator
276
301
  AssociatedListenerFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
277
302
  AssociatedListenerFoundException.struct_class = Types::AssociatedListenerFoundException
278
303
 
304
+ Attachment.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AttachmentArn"))
305
+ Attachment.add_member(:name, Shapes::ShapeRef.new(shape: AttachmentName, location_name: "Name"))
306
+ Attachment.add_member(:principals, Shapes::ShapeRef.new(shape: Principals, location_name: "Principals"))
307
+ Attachment.add_member(:resources, Shapes::ShapeRef.new(shape: Resources, location_name: "Resources"))
308
+ Attachment.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModifiedTime"))
309
+ Attachment.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedTime"))
310
+ Attachment.struct_class = Types::Attachment
311
+
312
+ AttachmentNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
313
+ AttachmentNotFoundException.struct_class = Types::AttachmentNotFoundException
314
+
315
+ Attachments.member = Shapes::ShapeRef.new(shape: Attachment)
316
+
317
+ AwsAccountIds.member = Shapes::ShapeRef.new(shape: AwsAccountId)
318
+
279
319
  ByoipCidr.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, location_name: "Cidr"))
280
320
  ByoipCidr.add_member(:state, Shapes::ShapeRef.new(shape: ByoipCidrState, location_name: "State"))
281
321
  ByoipCidr.add_member(:events, Shapes::ShapeRef.new(shape: ByoipCidrEvents, location_name: "Events"))
@@ -310,6 +350,16 @@ module Aws::GlobalAccelerator
310
350
  CreateAcceleratorResponse.add_member(:accelerator, Shapes::ShapeRef.new(shape: Accelerator, location_name: "Accelerator"))
311
351
  CreateAcceleratorResponse.struct_class = Types::CreateAcceleratorResponse
312
352
 
353
+ CreateCrossAccountAttachmentRequest.add_member(:name, Shapes::ShapeRef.new(shape: AttachmentName, required: true, location_name: "Name"))
354
+ CreateCrossAccountAttachmentRequest.add_member(:principals, Shapes::ShapeRef.new(shape: Principals, location_name: "Principals"))
355
+ CreateCrossAccountAttachmentRequest.add_member(:resources, Shapes::ShapeRef.new(shape: Resources, location_name: "Resources"))
356
+ CreateCrossAccountAttachmentRequest.add_member(:idempotency_token, Shapes::ShapeRef.new(shape: IdempotencyToken, required: true, location_name: "IdempotencyToken", metadata: {"idempotencyToken"=>true}))
357
+ CreateCrossAccountAttachmentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
358
+ CreateCrossAccountAttachmentRequest.struct_class = Types::CreateCrossAccountAttachmentRequest
359
+
360
+ CreateCrossAccountAttachmentResponse.add_member(:cross_account_attachment, Shapes::ShapeRef.new(shape: Attachment, location_name: "CrossAccountAttachment"))
361
+ CreateCrossAccountAttachmentResponse.struct_class = Types::CreateCrossAccountAttachmentResponse
362
+
313
363
  CreateCustomRoutingAcceleratorRequest.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Name"))
314
364
  CreateCustomRoutingAcceleratorRequest.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: IpAddressType, location_name: "IpAddressType"))
315
365
  CreateCustomRoutingAcceleratorRequest.add_member(:ip_addresses, Shapes::ShapeRef.new(shape: IpAddresses, location_name: "IpAddresses"))
@@ -364,6 +414,12 @@ module Aws::GlobalAccelerator
364
414
  CreateListenerResponse.add_member(:listener, Shapes::ShapeRef.new(shape: Listener, location_name: "Listener"))
365
415
  CreateListenerResponse.struct_class = Types::CreateListenerResponse
366
416
 
417
+ CrossAccountResource.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: GenericString, location_name: "EndpointId"))
418
+ CrossAccountResource.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AttachmentArn"))
419
+ CrossAccountResource.struct_class = Types::CrossAccountResource
420
+
421
+ CrossAccountResources.member = Shapes::ShapeRef.new(shape: CrossAccountResource)
422
+
367
423
  CustomRoutingAccelerator.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AcceleratorArn"))
368
424
  CustomRoutingAccelerator.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, location_name: "Name"))
369
425
  CustomRoutingAccelerator.add_member(:ip_address_type, Shapes::ShapeRef.new(shape: IpAddressType, location_name: "IpAddressType"))
@@ -397,6 +453,7 @@ module Aws::GlobalAccelerator
397
453
  CustomRoutingDestinationDescriptions.member = Shapes::ShapeRef.new(shape: CustomRoutingDestinationDescription)
398
454
 
399
455
  CustomRoutingEndpointConfiguration.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: GenericString, location_name: "EndpointId"))
456
+ CustomRoutingEndpointConfiguration.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AttachmentArn"))
400
457
  CustomRoutingEndpointConfiguration.struct_class = Types::CustomRoutingEndpointConfiguration
401
458
 
402
459
  CustomRoutingEndpointConfigurations.member = Shapes::ShapeRef.new(shape: CustomRoutingEndpointConfiguration)
@@ -425,6 +482,9 @@ module Aws::GlobalAccelerator
425
482
  DeleteAcceleratorRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AcceleratorArn"))
426
483
  DeleteAcceleratorRequest.struct_class = Types::DeleteAcceleratorRequest
427
484
 
485
+ DeleteCrossAccountAttachmentRequest.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AttachmentArn"))
486
+ DeleteCrossAccountAttachmentRequest.struct_class = Types::DeleteCrossAccountAttachmentRequest
487
+
428
488
  DeleteCustomRoutingAcceleratorRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AcceleratorArn"))
429
489
  DeleteCustomRoutingAcceleratorRequest.struct_class = Types::DeleteCustomRoutingAcceleratorRequest
430
490
 
@@ -465,6 +525,12 @@ module Aws::GlobalAccelerator
465
525
  DescribeAcceleratorResponse.add_member(:accelerator, Shapes::ShapeRef.new(shape: Accelerator, location_name: "Accelerator"))
466
526
  DescribeAcceleratorResponse.struct_class = Types::DescribeAcceleratorResponse
467
527
 
528
+ DescribeCrossAccountAttachmentRequest.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AttachmentArn"))
529
+ DescribeCrossAccountAttachmentRequest.struct_class = Types::DescribeCrossAccountAttachmentRequest
530
+
531
+ DescribeCrossAccountAttachmentResponse.add_member(:cross_account_attachment, Shapes::ShapeRef.new(shape: Attachment, location_name: "CrossAccountAttachment"))
532
+ DescribeCrossAccountAttachmentResponse.struct_class = Types::DescribeCrossAccountAttachmentResponse
533
+
468
534
  DescribeCustomRoutingAcceleratorAttributesRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AcceleratorArn"))
469
535
  DescribeCustomRoutingAcceleratorAttributesRequest.struct_class = Types::DescribeCustomRoutingAcceleratorAttributesRequest
470
536
 
@@ -523,6 +589,7 @@ module Aws::GlobalAccelerator
523
589
  EndpointConfiguration.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: GenericString, location_name: "EndpointId"))
524
590
  EndpointConfiguration.add_member(:weight, Shapes::ShapeRef.new(shape: EndpointWeight, location_name: "Weight"))
525
591
  EndpointConfiguration.add_member(:client_ip_preservation_enabled, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "ClientIPPreservationEnabled"))
592
+ EndpointConfiguration.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AttachmentArn"))
526
593
  EndpointConfiguration.struct_class = Types::EndpointConfiguration
527
594
 
528
595
  EndpointConfigurations.member = Shapes::ShapeRef.new(shape: EndpointConfiguration)
@@ -610,6 +677,29 @@ module Aws::GlobalAccelerator
610
677
  ListByoipCidrsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
611
678
  ListByoipCidrsResponse.struct_class = Types::ListByoipCidrsResponse
612
679
 
680
+ ListCrossAccountAttachmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
681
+ ListCrossAccountAttachmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
682
+ ListCrossAccountAttachmentsRequest.struct_class = Types::ListCrossAccountAttachmentsRequest
683
+
684
+ ListCrossAccountAttachmentsResponse.add_member(:cross_account_attachments, Shapes::ShapeRef.new(shape: Attachments, location_name: "CrossAccountAttachments"))
685
+ ListCrossAccountAttachmentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
686
+ ListCrossAccountAttachmentsResponse.struct_class = Types::ListCrossAccountAttachmentsResponse
687
+
688
+ ListCrossAccountResourceAccountsRequest.struct_class = Types::ListCrossAccountResourceAccountsRequest
689
+
690
+ ListCrossAccountResourceAccountsResponse.add_member(:resource_owner_aws_account_ids, Shapes::ShapeRef.new(shape: AwsAccountIds, location_name: "ResourceOwnerAwsAccountIds"))
691
+ ListCrossAccountResourceAccountsResponse.struct_class = Types::ListCrossAccountResourceAccountsResponse
692
+
693
+ ListCrossAccountResourcesRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, location_name: "AcceleratorArn"))
694
+ ListCrossAccountResourcesRequest.add_member(:resource_owner_aws_account_id, Shapes::ShapeRef.new(shape: AwsAccountId, required: true, location_name: "ResourceOwnerAwsAccountId"))
695
+ ListCrossAccountResourcesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
696
+ ListCrossAccountResourcesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
697
+ ListCrossAccountResourcesRequest.struct_class = Types::ListCrossAccountResourcesRequest
698
+
699
+ ListCrossAccountResourcesResponse.add_member(:cross_account_resources, Shapes::ShapeRef.new(shape: CrossAccountResources, location_name: "CrossAccountResources"))
700
+ ListCrossAccountResourcesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
701
+ ListCrossAccountResourcesResponse.struct_class = Types::ListCrossAccountResourcesResponse
702
+
613
703
  ListCustomRoutingAcceleratorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
614
704
  ListCustomRoutingAcceleratorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: GenericString, location_name: "NextToken"))
615
705
  ListCustomRoutingAcceleratorsRequest.struct_class = Types::ListCustomRoutingAcceleratorsRequest
@@ -713,6 +803,8 @@ module Aws::GlobalAccelerator
713
803
 
714
804
  PortRanges.member = Shapes::ShapeRef.new(shape: PortRange)
715
805
 
806
+ Principals.member = Shapes::ShapeRef.new(shape: Principal)
807
+
716
808
  Protocols.member = Shapes::ShapeRef.new(shape: Protocol)
717
809
 
718
810
  ProvisionByoipCidrRequest.add_member(:cidr, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "Cidr"))
@@ -730,6 +822,12 @@ module Aws::GlobalAccelerator
730
822
  RemoveEndpointsRequest.add_member(:endpoint_group_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "EndpointGroupArn"))
731
823
  RemoveEndpointsRequest.struct_class = Types::RemoveEndpointsRequest
732
824
 
825
+ Resource.add_member(:endpoint_id, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "EndpointId"))
826
+ Resource.add_member(:region, Shapes::ShapeRef.new(shape: GenericString, location_name: "Region"))
827
+ Resource.struct_class = Types::Resource
828
+
829
+ Resources.member = Shapes::ShapeRef.new(shape: Resource)
830
+
733
831
  SocketAddress.add_member(:ip_address, Shapes::ShapeRef.new(shape: GenericString, location_name: "IpAddress"))
734
832
  SocketAddress.add_member(:port, Shapes::ShapeRef.new(shape: PortNumber, location_name: "Port"))
735
833
  SocketAddress.struct_class = Types::SocketAddress
@@ -777,6 +875,17 @@ module Aws::GlobalAccelerator
777
875
  UpdateAcceleratorResponse.add_member(:accelerator, Shapes::ShapeRef.new(shape: Accelerator, location_name: "Accelerator"))
778
876
  UpdateAcceleratorResponse.struct_class = Types::UpdateAcceleratorResponse
779
877
 
878
+ UpdateCrossAccountAttachmentRequest.add_member(:attachment_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AttachmentArn"))
879
+ UpdateCrossAccountAttachmentRequest.add_member(:name, Shapes::ShapeRef.new(shape: AttachmentName, location_name: "Name"))
880
+ UpdateCrossAccountAttachmentRequest.add_member(:add_principals, Shapes::ShapeRef.new(shape: Principals, location_name: "AddPrincipals"))
881
+ UpdateCrossAccountAttachmentRequest.add_member(:remove_principals, Shapes::ShapeRef.new(shape: Principals, location_name: "RemovePrincipals"))
882
+ UpdateCrossAccountAttachmentRequest.add_member(:add_resources, Shapes::ShapeRef.new(shape: Resources, location_name: "AddResources"))
883
+ UpdateCrossAccountAttachmentRequest.add_member(:remove_resources, Shapes::ShapeRef.new(shape: Resources, location_name: "RemoveResources"))
884
+ UpdateCrossAccountAttachmentRequest.struct_class = Types::UpdateCrossAccountAttachmentRequest
885
+
886
+ UpdateCrossAccountAttachmentResponse.add_member(:cross_account_attachment, Shapes::ShapeRef.new(shape: Attachment, location_name: "CrossAccountAttachment"))
887
+ UpdateCrossAccountAttachmentResponse.struct_class = Types::UpdateCrossAccountAttachmentResponse
888
+
780
889
  UpdateCustomRoutingAcceleratorAttributesRequest.add_member(:accelerator_arn, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "AcceleratorArn"))
781
890
  UpdateCustomRoutingAcceleratorAttributesRequest.add_member(:flow_logs_enabled, Shapes::ShapeRef.new(shape: GenericBoolean, location_name: "FlowLogsEnabled"))
782
891
  UpdateCustomRoutingAcceleratorAttributesRequest.add_member(:flow_logs_s3_bucket, Shapes::ShapeRef.new(shape: GenericString, location_name: "FlowLogsS3Bucket"))
@@ -914,6 +1023,19 @@ module Aws::GlobalAccelerator
914
1023
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
915
1024
  end)
916
1025
 
1026
+ api.add_operation(:create_cross_account_attachment, Seahorse::Model::Operation.new.tap do |o|
1027
+ o.name = "CreateCrossAccountAttachment"
1028
+ o.http_method = "POST"
1029
+ o.http_request_uri = "/"
1030
+ o.input = Shapes::ShapeRef.new(shape: CreateCrossAccountAttachmentRequest)
1031
+ o.output = Shapes::ShapeRef.new(shape: CreateCrossAccountAttachmentResponse)
1032
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1033
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1034
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1035
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1036
+ o.errors << Shapes::ShapeRef.new(shape: TransactionInProgressException)
1037
+ end)
1038
+
917
1039
  api.add_operation(:create_custom_routing_accelerator, Seahorse::Model::Operation.new.tap do |o|
918
1040
  o.name = "CreateCustomRoutingAccelerator"
919
1041
  o.http_method = "POST"
@@ -996,6 +1118,19 @@ module Aws::GlobalAccelerator
996
1118
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
997
1119
  end)
998
1120
 
1121
+ api.add_operation(:delete_cross_account_attachment, Seahorse::Model::Operation.new.tap do |o|
1122
+ o.name = "DeleteCrossAccountAttachment"
1123
+ o.http_method = "POST"
1124
+ o.http_request_uri = "/"
1125
+ o.input = Shapes::ShapeRef.new(shape: DeleteCrossAccountAttachmentRequest)
1126
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1127
+ o.errors << Shapes::ShapeRef.new(shape: AttachmentNotFoundException)
1128
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1129
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1130
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1131
+ o.errors << Shapes::ShapeRef.new(shape: TransactionInProgressException)
1132
+ end)
1133
+
999
1134
  api.add_operation(:delete_custom_routing_accelerator, Seahorse::Model::Operation.new.tap do |o|
1000
1135
  o.name = "DeleteCustomRoutingAccelerator"
1001
1136
  o.http_method = "POST"
@@ -1101,6 +1236,18 @@ module Aws::GlobalAccelerator
1101
1236
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1102
1237
  end)
1103
1238
 
1239
+ api.add_operation(:describe_cross_account_attachment, Seahorse::Model::Operation.new.tap do |o|
1240
+ o.name = "DescribeCrossAccountAttachment"
1241
+ o.http_method = "POST"
1242
+ o.http_request_uri = "/"
1243
+ o.input = Shapes::ShapeRef.new(shape: DescribeCrossAccountAttachmentRequest)
1244
+ o.output = Shapes::ShapeRef.new(shape: DescribeCrossAccountAttachmentResponse)
1245
+ o.errors << Shapes::ShapeRef.new(shape: AttachmentNotFoundException)
1246
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1247
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1248
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1249
+ end)
1250
+
1104
1251
  api.add_operation(:describe_custom_routing_accelerator, Seahorse::Model::Operation.new.tap do |o|
1105
1252
  o.name = "DescribeCustomRoutingAccelerator"
1106
1253
  o.http_method = "POST"
@@ -1202,6 +1349,53 @@ module Aws::GlobalAccelerator
1202
1349
  )
1203
1350
  end)
1204
1351
 
1352
+ api.add_operation(:list_cross_account_attachments, Seahorse::Model::Operation.new.tap do |o|
1353
+ o.name = "ListCrossAccountAttachments"
1354
+ o.http_method = "POST"
1355
+ o.http_request_uri = "/"
1356
+ o.input = Shapes::ShapeRef.new(shape: ListCrossAccountAttachmentsRequest)
1357
+ o.output = Shapes::ShapeRef.new(shape: ListCrossAccountAttachmentsResponse)
1358
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1359
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1360
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1361
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1362
+ o[:pager] = Aws::Pager.new(
1363
+ limit_key: "max_results",
1364
+ tokens: {
1365
+ "next_token" => "next_token"
1366
+ }
1367
+ )
1368
+ end)
1369
+
1370
+ api.add_operation(:list_cross_account_resource_accounts, Seahorse::Model::Operation.new.tap do |o|
1371
+ o.name = "ListCrossAccountResourceAccounts"
1372
+ o.http_method = "POST"
1373
+ o.http_request_uri = "/"
1374
+ o.input = Shapes::ShapeRef.new(shape: ListCrossAccountResourceAccountsRequest)
1375
+ o.output = Shapes::ShapeRef.new(shape: ListCrossAccountResourceAccountsResponse)
1376
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1377
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1378
+ end)
1379
+
1380
+ api.add_operation(:list_cross_account_resources, Seahorse::Model::Operation.new.tap do |o|
1381
+ o.name = "ListCrossAccountResources"
1382
+ o.http_method = "POST"
1383
+ o.http_request_uri = "/"
1384
+ o.input = Shapes::ShapeRef.new(shape: ListCrossAccountResourcesRequest)
1385
+ o.output = Shapes::ShapeRef.new(shape: ListCrossAccountResourcesResponse)
1386
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1387
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1388
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1389
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1390
+ o.errors << Shapes::ShapeRef.new(shape: AcceleratorNotFoundException)
1391
+ o[:pager] = Aws::Pager.new(
1392
+ limit_key: "max_results",
1393
+ tokens: {
1394
+ "next_token" => "next_token"
1395
+ }
1396
+ )
1397
+ end)
1398
+
1205
1399
  api.add_operation(:list_custom_routing_accelerators, Seahorse::Model::Operation.new.tap do |o|
1206
1400
  o.name = "ListCustomRoutingAccelerators"
1207
1401
  o.http_method = "POST"
@@ -1425,6 +1619,20 @@ module Aws::GlobalAccelerator
1425
1619
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1426
1620
  end)
1427
1621
 
1622
+ api.add_operation(:update_cross_account_attachment, Seahorse::Model::Operation.new.tap do |o|
1623
+ o.name = "UpdateCrossAccountAttachment"
1624
+ o.http_method = "POST"
1625
+ o.http_request_uri = "/"
1626
+ o.input = Shapes::ShapeRef.new(shape: UpdateCrossAccountAttachmentRequest)
1627
+ o.output = Shapes::ShapeRef.new(shape: UpdateCrossAccountAttachmentResponse)
1628
+ o.errors << Shapes::ShapeRef.new(shape: AttachmentNotFoundException)
1629
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1630
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceErrorException)
1631
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
1632
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1633
+ o.errors << Shapes::ShapeRef.new(shape: TransactionInProgressException)
1634
+ end)
1635
+
1428
1636
  api.add_operation(:update_custom_routing_accelerator, Seahorse::Model::Operation.new.tap do |o|
1429
1637
  o.name = "UpdateCustomRoutingAccelerator"
1430
1638
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::GlobalAccelerator
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -82,6 +82,20 @@ module Aws::GlobalAccelerator
82
82
  end
83
83
  end
84
84
 
85
+ class CreateCrossAccountAttachment
86
+ def self.build(context)
87
+ unless context.config.regional_endpoint
88
+ endpoint = context.config.endpoint.to_s
89
+ end
90
+ Aws::GlobalAccelerator::EndpointParameters.new(
91
+ region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
93
+ use_fips: context.config.use_fips_endpoint,
94
+ endpoint: endpoint,
95
+ )
96
+ end
97
+ end
98
+
85
99
  class CreateCustomRoutingAccelerator
86
100
  def self.build(context)
87
101
  unless context.config.regional_endpoint
@@ -166,6 +180,20 @@ module Aws::GlobalAccelerator
166
180
  end
167
181
  end
168
182
 
183
+ class DeleteCrossAccountAttachment
184
+ def self.build(context)
185
+ unless context.config.regional_endpoint
186
+ endpoint = context.config.endpoint.to_s
187
+ end
188
+ Aws::GlobalAccelerator::EndpointParameters.new(
189
+ region: context.config.region,
190
+ use_dual_stack: context.config.use_dualstack_endpoint,
191
+ use_fips: context.config.use_fips_endpoint,
192
+ endpoint: endpoint,
193
+ )
194
+ end
195
+ end
196
+
169
197
  class DeleteCustomRoutingAccelerator
170
198
  def self.build(context)
171
199
  unless context.config.regional_endpoint
@@ -292,6 +320,20 @@ module Aws::GlobalAccelerator
292
320
  end
293
321
  end
294
322
 
323
+ class DescribeCrossAccountAttachment
324
+ def self.build(context)
325
+ unless context.config.regional_endpoint
326
+ endpoint = context.config.endpoint.to_s
327
+ end
328
+ Aws::GlobalAccelerator::EndpointParameters.new(
329
+ region: context.config.region,
330
+ use_dual_stack: context.config.use_dualstack_endpoint,
331
+ use_fips: context.config.use_fips_endpoint,
332
+ endpoint: endpoint,
333
+ )
334
+ end
335
+ end
336
+
295
337
  class DescribeCustomRoutingAccelerator
296
338
  def self.build(context)
297
339
  unless context.config.regional_endpoint
@@ -404,6 +446,48 @@ module Aws::GlobalAccelerator
404
446
  end
405
447
  end
406
448
 
449
+ class ListCrossAccountAttachments
450
+ def self.build(context)
451
+ unless context.config.regional_endpoint
452
+ endpoint = context.config.endpoint.to_s
453
+ end
454
+ Aws::GlobalAccelerator::EndpointParameters.new(
455
+ region: context.config.region,
456
+ use_dual_stack: context.config.use_dualstack_endpoint,
457
+ use_fips: context.config.use_fips_endpoint,
458
+ endpoint: endpoint,
459
+ )
460
+ end
461
+ end
462
+
463
+ class ListCrossAccountResourceAccounts
464
+ def self.build(context)
465
+ unless context.config.regional_endpoint
466
+ endpoint = context.config.endpoint.to_s
467
+ end
468
+ Aws::GlobalAccelerator::EndpointParameters.new(
469
+ region: context.config.region,
470
+ use_dual_stack: context.config.use_dualstack_endpoint,
471
+ use_fips: context.config.use_fips_endpoint,
472
+ endpoint: endpoint,
473
+ )
474
+ end
475
+ end
476
+
477
+ class ListCrossAccountResources
478
+ def self.build(context)
479
+ unless context.config.regional_endpoint
480
+ endpoint = context.config.endpoint.to_s
481
+ end
482
+ Aws::GlobalAccelerator::EndpointParameters.new(
483
+ region: context.config.region,
484
+ use_dual_stack: context.config.use_dualstack_endpoint,
485
+ use_fips: context.config.use_fips_endpoint,
486
+ endpoint: endpoint,
487
+ )
488
+ end
489
+ end
490
+
407
491
  class ListCustomRoutingAccelerators
408
492
  def self.build(context)
409
493
  unless context.config.regional_endpoint
@@ -614,6 +698,20 @@ module Aws::GlobalAccelerator
614
698
  end
615
699
  end
616
700
 
701
+ class UpdateCrossAccountAttachment
702
+ def self.build(context)
703
+ unless context.config.regional_endpoint
704
+ endpoint = context.config.endpoint.to_s
705
+ end
706
+ Aws::GlobalAccelerator::EndpointParameters.new(
707
+ region: context.config.region,
708
+ use_dual_stack: context.config.use_dualstack_endpoint,
709
+ use_fips: context.config.use_fips_endpoint,
710
+ endpoint: endpoint,
711
+ )
712
+ end
713
+ end
714
+
617
715
  class UpdateCustomRoutingAccelerator
618
716
  def self.build(context)
619
717
  unless context.config.regional_endpoint
@@ -32,6 +32,7 @@ module Aws::GlobalAccelerator
32
32
  # * {AccessDeniedException}
33
33
  # * {AssociatedEndpointGroupFoundException}
34
34
  # * {AssociatedListenerFoundException}
35
+ # * {AttachmentNotFoundException}
35
36
  # * {ByoipCidrNotFoundException}
36
37
  # * {ConflictException}
37
38
  # * {EndpointAlreadyExistsException}
@@ -128,6 +129,21 @@ module Aws::GlobalAccelerator
128
129
  end
129
130
  end
130
131
 
132
+ class AttachmentNotFoundException < ServiceError
133
+
134
+ # @param [Seahorse::Client::RequestContext] context
135
+ # @param [String] message
136
+ # @param [Aws::GlobalAccelerator::Types::AttachmentNotFoundException] data
137
+ def initialize(context, message, data = Aws::EmptyStructure.new)
138
+ super(context, message, data)
139
+ end
140
+
141
+ # @return [String]
142
+ def message
143
+ @message || @data[:message]
144
+ end
145
+ end
146
+
131
147
  class ByoipCidrNotFoundException < ServiceError
132
148
 
133
149
  # @param [Seahorse::Client::RequestContext] context
@@ -66,6 +66,8 @@ module Aws::GlobalAccelerator
66
66
  Aws::GlobalAccelerator::Endpoints::AllowCustomRoutingTraffic.build(context)
67
67
  when :create_accelerator
68
68
  Aws::GlobalAccelerator::Endpoints::CreateAccelerator.build(context)
69
+ when :create_cross_account_attachment
70
+ Aws::GlobalAccelerator::Endpoints::CreateCrossAccountAttachment.build(context)
69
71
  when :create_custom_routing_accelerator
70
72
  Aws::GlobalAccelerator::Endpoints::CreateCustomRoutingAccelerator.build(context)
71
73
  when :create_custom_routing_endpoint_group
@@ -78,6 +80,8 @@ module Aws::GlobalAccelerator
78
80
  Aws::GlobalAccelerator::Endpoints::CreateListener.build(context)
79
81
  when :delete_accelerator
80
82
  Aws::GlobalAccelerator::Endpoints::DeleteAccelerator.build(context)
83
+ when :delete_cross_account_attachment
84
+ Aws::GlobalAccelerator::Endpoints::DeleteCrossAccountAttachment.build(context)
81
85
  when :delete_custom_routing_accelerator
82
86
  Aws::GlobalAccelerator::Endpoints::DeleteCustomRoutingAccelerator.build(context)
83
87
  when :delete_custom_routing_endpoint_group
@@ -96,6 +100,8 @@ module Aws::GlobalAccelerator
96
100
  Aws::GlobalAccelerator::Endpoints::DescribeAccelerator.build(context)
97
101
  when :describe_accelerator_attributes
98
102
  Aws::GlobalAccelerator::Endpoints::DescribeAcceleratorAttributes.build(context)
103
+ when :describe_cross_account_attachment
104
+ Aws::GlobalAccelerator::Endpoints::DescribeCrossAccountAttachment.build(context)
99
105
  when :describe_custom_routing_accelerator
100
106
  Aws::GlobalAccelerator::Endpoints::DescribeCustomRoutingAccelerator.build(context)
101
107
  when :describe_custom_routing_accelerator_attributes
@@ -112,6 +118,12 @@ module Aws::GlobalAccelerator
112
118
  Aws::GlobalAccelerator::Endpoints::ListAccelerators.build(context)
113
119
  when :list_byoip_cidrs
114
120
  Aws::GlobalAccelerator::Endpoints::ListByoipCidrs.build(context)
121
+ when :list_cross_account_attachments
122
+ Aws::GlobalAccelerator::Endpoints::ListCrossAccountAttachments.build(context)
123
+ when :list_cross_account_resource_accounts
124
+ Aws::GlobalAccelerator::Endpoints::ListCrossAccountResourceAccounts.build(context)
125
+ when :list_cross_account_resources
126
+ Aws::GlobalAccelerator::Endpoints::ListCrossAccountResources.build(context)
115
127
  when :list_custom_routing_accelerators
116
128
  Aws::GlobalAccelerator::Endpoints::ListCustomRoutingAccelerators.build(context)
117
129
  when :list_custom_routing_endpoint_groups
@@ -142,6 +154,8 @@ module Aws::GlobalAccelerator
142
154
  Aws::GlobalAccelerator::Endpoints::UpdateAccelerator.build(context)
143
155
  when :update_accelerator_attributes
144
156
  Aws::GlobalAccelerator::Endpoints::UpdateAcceleratorAttributes.build(context)
157
+ when :update_cross_account_attachment
158
+ Aws::GlobalAccelerator::Endpoints::UpdateCrossAccountAttachment.build(context)
145
159
  when :update_custom_routing_accelerator
146
160
  Aws::GlobalAccelerator::Endpoints::UpdateCustomRoutingAccelerator.build(context)
147
161
  when :update_custom_routing_accelerator_attributes