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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-globalaccelerator/client.rb +397 -1
- data/lib/aws-sdk-globalaccelerator/client_api.rb +208 -0
- data/lib/aws-sdk-globalaccelerator/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-globalaccelerator/endpoints.rb +98 -0
- data/lib/aws-sdk-globalaccelerator/errors.rb +16 -0
- data/lib/aws-sdk-globalaccelerator/plugins/endpoints.rb +14 -0
- data/lib/aws-sdk-globalaccelerator/types.rb +402 -8
- data/lib/aws-sdk-globalaccelerator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 117d7f4838909964d183c6c8624a76dc63fd3dbe4fe23758e5580cc17270f951
|
4
|
+
data.tar.gz: f737ef42762a5b1ea8148b3cdf63e3f6772f091a6d690d27c5eb9e801d753fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8340e652b8cd26722840aea946036bf1695179c2c242cff211381047299334cb936eebdd2ba43a4d788f54fbbcf439e6f1b85e058e359053020b1bbc9c8c5ae1
|
7
|
+
data.tar.gz: 91dcd3eff58d0dbde3035c2bb76a98edf41aa0b80606aef0defd00ea6208f876d6ef57dc0e2e764d392cf827796df46f8d000faa08bd2118832c175e91078623
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
@@ -438,6 +438,7 @@ module Aws::GlobalAccelerator
|
|
438
438
|
# endpoint_configurations: [ # required
|
439
439
|
# {
|
440
440
|
# endpoint_id: "GenericString",
|
441
|
+
# attachment_arn: "GenericString",
|
441
442
|
# },
|
442
443
|
# ],
|
443
444
|
# endpoint_group_arn: "GenericString", # required
|
@@ -504,6 +505,7 @@ module Aws::GlobalAccelerator
|
|
504
505
|
# endpoint_id: "GenericString",
|
505
506
|
# weight: 1,
|
506
507
|
# client_ip_preservation_enabled: false,
|
508
|
+
# attachment_arn: "GenericString",
|
507
509
|
# },
|
508
510
|
# ],
|
509
511
|
# endpoint_group_arn: "GenericString", # required
|
@@ -769,6 +771,96 @@ module Aws::GlobalAccelerator
|
|
769
771
|
req.send_request(options)
|
770
772
|
end
|
771
773
|
|
774
|
+
# Create a cross-account attachment in Global Accelerator. You create a
|
775
|
+
# cross-account attachment to specify the *principals* who have
|
776
|
+
# permission to add to accelerators in their own account the resources
|
777
|
+
# in your account that you also list in the attachment.
|
778
|
+
#
|
779
|
+
# A principal can be an Amazon Web Services account number or the Amazon
|
780
|
+
# Resource Name (ARN) for an accelerator. For account numbers that are
|
781
|
+
# listed as principals, to add a resource listed in the attachment to an
|
782
|
+
# accelerator, you must sign in to an account specified as a principal.
|
783
|
+
# Then you can add the resources that are listed to any of your
|
784
|
+
# accelerators. If an accelerator ARN is listed in the cross-account
|
785
|
+
# attachment as a principal, anyone with permission to make updates to
|
786
|
+
# the accelerator can add as endpoints resources that are listed in the
|
787
|
+
# attachment.
|
788
|
+
#
|
789
|
+
# @option params [required, String] :name
|
790
|
+
# The name of the cross-account attachment.
|
791
|
+
#
|
792
|
+
# @option params [Array<String>] :principals
|
793
|
+
# The principals to list in the cross-account attachment. A principal
|
794
|
+
# can be an Amazon Web Services account number or the Amazon Resource
|
795
|
+
# Name (ARN) for an accelerator.
|
796
|
+
#
|
797
|
+
# @option params [Array<Types::Resource>] :resources
|
798
|
+
# The Amazon Resource Names (ARNs) for the resources to list in the
|
799
|
+
# cross-account attachment. A resource can be any supported Amazon Web
|
800
|
+
# Services resource type for Global Accelerator.
|
801
|
+
#
|
802
|
+
# @option params [required, String] :idempotency_token
|
803
|
+
# A unique, case-sensitive identifier that you provide to ensure the
|
804
|
+
# idempotency—that is, the uniqueness—of the request.
|
805
|
+
#
|
806
|
+
# **A suitable default value is auto-generated.** You should normally
|
807
|
+
# not need to pass this option.**
|
808
|
+
#
|
809
|
+
# @option params [Array<Types::Tag>] :tags
|
810
|
+
# Create tags for cross-account attachment.
|
811
|
+
#
|
812
|
+
# For more information, see [Tagging in Global Accelerator][1] in the
|
813
|
+
# *Global Accelerator Developer Guide*.
|
814
|
+
#
|
815
|
+
#
|
816
|
+
#
|
817
|
+
# [1]: https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html
|
818
|
+
#
|
819
|
+
# @return [Types::CreateCrossAccountAttachmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
820
|
+
#
|
821
|
+
# * {Types::CreateCrossAccountAttachmentResponse#cross_account_attachment #cross_account_attachment} => Types::Attachment
|
822
|
+
#
|
823
|
+
# @example Request syntax with placeholder values
|
824
|
+
#
|
825
|
+
# resp = client.create_cross_account_attachment({
|
826
|
+
# name: "AttachmentName", # required
|
827
|
+
# principals: ["Principal"],
|
828
|
+
# resources: [
|
829
|
+
# {
|
830
|
+
# endpoint_id: "GenericString", # required
|
831
|
+
# region: "GenericString",
|
832
|
+
# },
|
833
|
+
# ],
|
834
|
+
# idempotency_token: "IdempotencyToken", # required
|
835
|
+
# tags: [
|
836
|
+
# {
|
837
|
+
# key: "TagKey", # required
|
838
|
+
# value: "TagValue", # required
|
839
|
+
# },
|
840
|
+
# ],
|
841
|
+
# })
|
842
|
+
#
|
843
|
+
# @example Response structure
|
844
|
+
#
|
845
|
+
# resp.cross_account_attachment.attachment_arn #=> String
|
846
|
+
# resp.cross_account_attachment.name #=> String
|
847
|
+
# resp.cross_account_attachment.principals #=> Array
|
848
|
+
# resp.cross_account_attachment.principals[0] #=> String
|
849
|
+
# resp.cross_account_attachment.resources #=> Array
|
850
|
+
# resp.cross_account_attachment.resources[0].endpoint_id #=> String
|
851
|
+
# resp.cross_account_attachment.resources[0].region #=> String
|
852
|
+
# resp.cross_account_attachment.last_modified_time #=> Time
|
853
|
+
# resp.cross_account_attachment.created_time #=> Time
|
854
|
+
#
|
855
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateCrossAccountAttachment AWS API Documentation
|
856
|
+
#
|
857
|
+
# @overload create_cross_account_attachment(params = {})
|
858
|
+
# @param [Hash] params ({})
|
859
|
+
def create_cross_account_attachment(params = {}, options = {})
|
860
|
+
req = build_request(:create_cross_account_attachment, params)
|
861
|
+
req.send_request(options)
|
862
|
+
end
|
863
|
+
|
772
864
|
# Create a custom routing accelerator. A custom routing accelerator
|
773
865
|
# directs traffic to one of possibly thousands of Amazon EC2 instance
|
774
866
|
# destinations running in a single or multiple virtual private clouds
|
@@ -1112,6 +1204,7 @@ module Aws::GlobalAccelerator
|
|
1112
1204
|
# endpoint_id: "GenericString",
|
1113
1205
|
# weight: 1,
|
1114
1206
|
# client_ip_preservation_enabled: false,
|
1207
|
+
# attachment_arn: "GenericString",
|
1115
1208
|
# },
|
1116
1209
|
# ],
|
1117
1210
|
# traffic_dial_percentage: 1.0,
|
@@ -1285,6 +1378,48 @@ module Aws::GlobalAccelerator
|
|
1285
1378
|
req.send_request(options)
|
1286
1379
|
end
|
1287
1380
|
|
1381
|
+
# Delete a cross-account attachment. When you delete an attachment,
|
1382
|
+
# Global Accelerator revokes the permission to use the resources in the
|
1383
|
+
# attachment from all principals in the list of principals. Global
|
1384
|
+
# Accelerator revokes the permission for specific resources by doing the
|
1385
|
+
# following:
|
1386
|
+
#
|
1387
|
+
# * If the principal is an account ID, Global Accelerator reviews every
|
1388
|
+
# accelerator in the account and removes cross-account endpoints from
|
1389
|
+
# all accelerators.
|
1390
|
+
#
|
1391
|
+
# * If the principal is an accelerator, Global Accelerator reviews just
|
1392
|
+
# that accelerator and removes cross-account endpoints from it.
|
1393
|
+
#
|
1394
|
+
# If there are overlapping permissions provided by multiple
|
1395
|
+
# cross-account attachments, Global Accelerator only removes endpoints
|
1396
|
+
# if there are no current cross-account attachments that provide access
|
1397
|
+
# permission. For example, if you delete a cross-account attachment that
|
1398
|
+
# lists an accelerator as a principal, but another cross-account
|
1399
|
+
# attachment includes the account ID that owns that accelerator,
|
1400
|
+
# endpoints will not be removed from the accelerator.
|
1401
|
+
#
|
1402
|
+
# @option params [required, String] :attachment_arn
|
1403
|
+
# The Amazon Resource Name (ARN) for the cross-account attachment to
|
1404
|
+
# delete.
|
1405
|
+
#
|
1406
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1407
|
+
#
|
1408
|
+
# @example Request syntax with placeholder values
|
1409
|
+
#
|
1410
|
+
# resp = client.delete_cross_account_attachment({
|
1411
|
+
# attachment_arn: "GenericString", # required
|
1412
|
+
# })
|
1413
|
+
#
|
1414
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteCrossAccountAttachment AWS API Documentation
|
1415
|
+
#
|
1416
|
+
# @overload delete_cross_account_attachment(params = {})
|
1417
|
+
# @param [Hash] params ({})
|
1418
|
+
def delete_cross_account_attachment(params = {}, options = {})
|
1419
|
+
req = build_request(:delete_cross_account_attachment, params)
|
1420
|
+
req.send_request(options)
|
1421
|
+
end
|
1422
|
+
|
1288
1423
|
# Delete a custom routing accelerator. Before you can delete an
|
1289
1424
|
# accelerator, you must disable it and remove all dependent resources
|
1290
1425
|
# (listeners and endpoint groups). To disable the accelerator, update
|
@@ -1606,6 +1741,43 @@ module Aws::GlobalAccelerator
|
|
1606
1741
|
req.send_request(options)
|
1607
1742
|
end
|
1608
1743
|
|
1744
|
+
# Gets configuration information about a cross-account attachment.
|
1745
|
+
#
|
1746
|
+
# @option params [required, String] :attachment_arn
|
1747
|
+
# The Amazon Resource Name (ARN) for the cross-account attachment to
|
1748
|
+
# describe.
|
1749
|
+
#
|
1750
|
+
# @return [Types::DescribeCrossAccountAttachmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1751
|
+
#
|
1752
|
+
# * {Types::DescribeCrossAccountAttachmentResponse#cross_account_attachment #cross_account_attachment} => Types::Attachment
|
1753
|
+
#
|
1754
|
+
# @example Request syntax with placeholder values
|
1755
|
+
#
|
1756
|
+
# resp = client.describe_cross_account_attachment({
|
1757
|
+
# attachment_arn: "GenericString", # required
|
1758
|
+
# })
|
1759
|
+
#
|
1760
|
+
# @example Response structure
|
1761
|
+
#
|
1762
|
+
# resp.cross_account_attachment.attachment_arn #=> String
|
1763
|
+
# resp.cross_account_attachment.name #=> String
|
1764
|
+
# resp.cross_account_attachment.principals #=> Array
|
1765
|
+
# resp.cross_account_attachment.principals[0] #=> String
|
1766
|
+
# resp.cross_account_attachment.resources #=> Array
|
1767
|
+
# resp.cross_account_attachment.resources[0].endpoint_id #=> String
|
1768
|
+
# resp.cross_account_attachment.resources[0].region #=> String
|
1769
|
+
# resp.cross_account_attachment.last_modified_time #=> Time
|
1770
|
+
# resp.cross_account_attachment.created_time #=> Time
|
1771
|
+
#
|
1772
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeCrossAccountAttachment AWS API Documentation
|
1773
|
+
#
|
1774
|
+
# @overload describe_cross_account_attachment(params = {})
|
1775
|
+
# @param [Hash] params ({})
|
1776
|
+
def describe_cross_account_attachment(params = {}, options = {})
|
1777
|
+
req = build_request(:describe_cross_account_attachment, params)
|
1778
|
+
req.send_request(options)
|
1779
|
+
end
|
1780
|
+
|
1609
1781
|
# Describe a custom routing accelerator.
|
1610
1782
|
#
|
1611
1783
|
# @option params [required, String] :accelerator_arn
|
@@ -1925,6 +2097,123 @@ module Aws::GlobalAccelerator
|
|
1925
2097
|
req.send_request(options)
|
1926
2098
|
end
|
1927
2099
|
|
2100
|
+
# List the cross-account attachments that have been created in Global
|
2101
|
+
# Accelerator.
|
2102
|
+
#
|
2103
|
+
# @option params [Integer] :max_results
|
2104
|
+
# The number of cross-account attachment objects that you want to return
|
2105
|
+
# with this call. The default value is 10.
|
2106
|
+
#
|
2107
|
+
# @option params [String] :next_token
|
2108
|
+
# The token for the next set of results. You receive this token from a
|
2109
|
+
# previous call.
|
2110
|
+
#
|
2111
|
+
# @return [Types::ListCrossAccountAttachmentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2112
|
+
#
|
2113
|
+
# * {Types::ListCrossAccountAttachmentsResponse#cross_account_attachments #cross_account_attachments} => Array<Types::Attachment>
|
2114
|
+
# * {Types::ListCrossAccountAttachmentsResponse#next_token #next_token} => String
|
2115
|
+
#
|
2116
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2117
|
+
#
|
2118
|
+
# @example Request syntax with placeholder values
|
2119
|
+
#
|
2120
|
+
# resp = client.list_cross_account_attachments({
|
2121
|
+
# max_results: 1,
|
2122
|
+
# next_token: "GenericString",
|
2123
|
+
# })
|
2124
|
+
#
|
2125
|
+
# @example Response structure
|
2126
|
+
#
|
2127
|
+
# resp.cross_account_attachments #=> Array
|
2128
|
+
# resp.cross_account_attachments[0].attachment_arn #=> String
|
2129
|
+
# resp.cross_account_attachments[0].name #=> String
|
2130
|
+
# resp.cross_account_attachments[0].principals #=> Array
|
2131
|
+
# resp.cross_account_attachments[0].principals[0] #=> String
|
2132
|
+
# resp.cross_account_attachments[0].resources #=> Array
|
2133
|
+
# resp.cross_account_attachments[0].resources[0].endpoint_id #=> String
|
2134
|
+
# resp.cross_account_attachments[0].resources[0].region #=> String
|
2135
|
+
# resp.cross_account_attachments[0].last_modified_time #=> Time
|
2136
|
+
# resp.cross_account_attachments[0].created_time #=> Time
|
2137
|
+
# resp.next_token #=> String
|
2138
|
+
#
|
2139
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountAttachments AWS API Documentation
|
2140
|
+
#
|
2141
|
+
# @overload list_cross_account_attachments(params = {})
|
2142
|
+
# @param [Hash] params ({})
|
2143
|
+
def list_cross_account_attachments(params = {}, options = {})
|
2144
|
+
req = build_request(:list_cross_account_attachments, params)
|
2145
|
+
req.send_request(options)
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
# List the accounts that have cross-account endpoints.
|
2149
|
+
#
|
2150
|
+
# @return [Types::ListCrossAccountResourceAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2151
|
+
#
|
2152
|
+
# * {Types::ListCrossAccountResourceAccountsResponse#resource_owner_aws_account_ids #resource_owner_aws_account_ids} => Array<String>
|
2153
|
+
#
|
2154
|
+
# @example Response structure
|
2155
|
+
#
|
2156
|
+
# resp.resource_owner_aws_account_ids #=> Array
|
2157
|
+
# resp.resource_owner_aws_account_ids[0] #=> String
|
2158
|
+
#
|
2159
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountResourceAccounts AWS API Documentation
|
2160
|
+
#
|
2161
|
+
# @overload list_cross_account_resource_accounts(params = {})
|
2162
|
+
# @param [Hash] params ({})
|
2163
|
+
def list_cross_account_resource_accounts(params = {}, options = {})
|
2164
|
+
req = build_request(:list_cross_account_resource_accounts, params)
|
2165
|
+
req.send_request(options)
|
2166
|
+
end
|
2167
|
+
|
2168
|
+
# List the cross-account endpoints available to add to an accelerator.
|
2169
|
+
#
|
2170
|
+
# @option params [String] :accelerator_arn
|
2171
|
+
# The Amazon Resource Name (ARN) of an accelerator in a cross-account
|
2172
|
+
# attachment.
|
2173
|
+
#
|
2174
|
+
# @option params [required, String] :resource_owner_aws_account_id
|
2175
|
+
# The account ID of a resource owner in a cross-account attachment.
|
2176
|
+
#
|
2177
|
+
# @option params [Integer] :max_results
|
2178
|
+
# The number of cross-account endpoints objects that you want to return
|
2179
|
+
# with this call. The default value is 10.
|
2180
|
+
#
|
2181
|
+
# @option params [String] :next_token
|
2182
|
+
# The token for the next set of results. You receive this token from a
|
2183
|
+
# previous call.
|
2184
|
+
#
|
2185
|
+
# @return [Types::ListCrossAccountResourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2186
|
+
#
|
2187
|
+
# * {Types::ListCrossAccountResourcesResponse#cross_account_resources #cross_account_resources} => Array<Types::CrossAccountResource>
|
2188
|
+
# * {Types::ListCrossAccountResourcesResponse#next_token #next_token} => String
|
2189
|
+
#
|
2190
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2191
|
+
#
|
2192
|
+
# @example Request syntax with placeholder values
|
2193
|
+
#
|
2194
|
+
# resp = client.list_cross_account_resources({
|
2195
|
+
# accelerator_arn: "GenericString",
|
2196
|
+
# resource_owner_aws_account_id: "AwsAccountId", # required
|
2197
|
+
# max_results: 1,
|
2198
|
+
# next_token: "GenericString",
|
2199
|
+
# })
|
2200
|
+
#
|
2201
|
+
# @example Response structure
|
2202
|
+
#
|
2203
|
+
# resp.cross_account_resources #=> Array
|
2204
|
+
# resp.cross_account_resources[0].endpoint_id #=> String
|
2205
|
+
# resp.cross_account_resources[0].attachment_arn #=> String
|
2206
|
+
# resp.next_token #=> String
|
2207
|
+
#
|
2208
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountResources AWS API Documentation
|
2209
|
+
#
|
2210
|
+
# @overload list_cross_account_resources(params = {})
|
2211
|
+
# @param [Hash] params ({})
|
2212
|
+
def list_cross_account_resources(params = {}, options = {})
|
2213
|
+
req = build_request(:list_cross_account_resources, params)
|
2214
|
+
req.send_request(options)
|
2215
|
+
end
|
2216
|
+
|
1928
2217
|
# List the custom routing accelerators for an Amazon Web Services
|
1929
2218
|
# account.
|
1930
2219
|
#
|
@@ -2715,6 +3004,112 @@ module Aws::GlobalAccelerator
|
|
2715
3004
|
req.send_request(options)
|
2716
3005
|
end
|
2717
3006
|
|
3007
|
+
# Update a cross-account attachment to add or remove principals or
|
3008
|
+
# resources. When you update an attachment to remove a principal
|
3009
|
+
# (account ID or accelerator) or a resource, Global Accelerator revokes
|
3010
|
+
# the permission for specific resources by doing the following:
|
3011
|
+
#
|
3012
|
+
# * If the principal is an account ID, Global Accelerator reviews every
|
3013
|
+
# accelerator in the account and removes cross-account endpoints from
|
3014
|
+
# all accelerators.
|
3015
|
+
#
|
3016
|
+
# * If the principal is an accelerator, Global Accelerator reviews just
|
3017
|
+
# that accelerator and removes cross-account endpoints from it.
|
3018
|
+
#
|
3019
|
+
# If there are overlapping permissions provided by multiple
|
3020
|
+
# cross-account attachments, Global Accelerator only removes endpoints
|
3021
|
+
# if there are no current cross-account attachments that provide access
|
3022
|
+
# permission. For example, if you delete a cross-account attachment that
|
3023
|
+
# lists an accelerator as a principal, but another cross-account
|
3024
|
+
# attachment includes the account ID that owns that accelerator,
|
3025
|
+
# endpoints will not be removed from the accelerator.
|
3026
|
+
#
|
3027
|
+
# @option params [required, String] :attachment_arn
|
3028
|
+
# The Amazon Resource Name (ARN) of the cross-account attachment to
|
3029
|
+
# update.
|
3030
|
+
#
|
3031
|
+
# @option params [String] :name
|
3032
|
+
# The name of the cross-account attachment.
|
3033
|
+
#
|
3034
|
+
# @option params [Array<String>] :add_principals
|
3035
|
+
# The principals to add to the cross-account attachment. A principal is
|
3036
|
+
# an account or the Amazon Resource Name (ARN) of an accelerator that
|
3037
|
+
# the attachment gives permission to add the resources from another
|
3038
|
+
# account, listed in the attachment.
|
3039
|
+
#
|
3040
|
+
# To add more than one principal, separate the account numbers or
|
3041
|
+
# accelerator ARNs, or both, with commas.
|
3042
|
+
#
|
3043
|
+
# @option params [Array<String>] :remove_principals
|
3044
|
+
# The principals to remove from the cross-account attachment. A
|
3045
|
+
# principal is an account or the Amazon Resource Name (ARN) of an
|
3046
|
+
# accelerator that is given permission to add the resources from another
|
3047
|
+
# account, listed in the cross-account attachment.
|
3048
|
+
#
|
3049
|
+
# To remove more than one principal, separate the account numbers or
|
3050
|
+
# accelerator ARNs, or both, with commas.
|
3051
|
+
#
|
3052
|
+
# @option params [Array<Types::Resource>] :add_resources
|
3053
|
+
# The resources to add to the cross-account attachment. A resource
|
3054
|
+
# listed in a cross-account attachment can be added to an accelerator by
|
3055
|
+
# the principals that are listed in the attachment.
|
3056
|
+
#
|
3057
|
+
# To add more than one resource, separate the resource ARNs with commas.
|
3058
|
+
#
|
3059
|
+
# @option params [Array<Types::Resource>] :remove_resources
|
3060
|
+
# The resources to remove from the cross-account attachment. A resource
|
3061
|
+
# listed in a cross-account attachment can be added to an accelerator fy
|
3062
|
+
# principals that are listed in the cross-account attachment.
|
3063
|
+
#
|
3064
|
+
# To remove more than one resource, separate the resource ARNs with
|
3065
|
+
# commas.
|
3066
|
+
#
|
3067
|
+
# @return [Types::UpdateCrossAccountAttachmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3068
|
+
#
|
3069
|
+
# * {Types::UpdateCrossAccountAttachmentResponse#cross_account_attachment #cross_account_attachment} => Types::Attachment
|
3070
|
+
#
|
3071
|
+
# @example Request syntax with placeholder values
|
3072
|
+
#
|
3073
|
+
# resp = client.update_cross_account_attachment({
|
3074
|
+
# attachment_arn: "GenericString", # required
|
3075
|
+
# name: "AttachmentName",
|
3076
|
+
# add_principals: ["Principal"],
|
3077
|
+
# remove_principals: ["Principal"],
|
3078
|
+
# add_resources: [
|
3079
|
+
# {
|
3080
|
+
# endpoint_id: "GenericString", # required
|
3081
|
+
# region: "GenericString",
|
3082
|
+
# },
|
3083
|
+
# ],
|
3084
|
+
# remove_resources: [
|
3085
|
+
# {
|
3086
|
+
# endpoint_id: "GenericString", # required
|
3087
|
+
# region: "GenericString",
|
3088
|
+
# },
|
3089
|
+
# ],
|
3090
|
+
# })
|
3091
|
+
#
|
3092
|
+
# @example Response structure
|
3093
|
+
#
|
3094
|
+
# resp.cross_account_attachment.attachment_arn #=> String
|
3095
|
+
# resp.cross_account_attachment.name #=> String
|
3096
|
+
# resp.cross_account_attachment.principals #=> Array
|
3097
|
+
# resp.cross_account_attachment.principals[0] #=> String
|
3098
|
+
# resp.cross_account_attachment.resources #=> Array
|
3099
|
+
# resp.cross_account_attachment.resources[0].endpoint_id #=> String
|
3100
|
+
# resp.cross_account_attachment.resources[0].region #=> String
|
3101
|
+
# resp.cross_account_attachment.last_modified_time #=> Time
|
3102
|
+
# resp.cross_account_attachment.created_time #=> Time
|
3103
|
+
#
|
3104
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateCrossAccountAttachment AWS API Documentation
|
3105
|
+
#
|
3106
|
+
# @overload update_cross_account_attachment(params = {})
|
3107
|
+
# @param [Hash] params ({})
|
3108
|
+
def update_cross_account_attachment(params = {}, options = {})
|
3109
|
+
req = build_request(:update_cross_account_attachment, params)
|
3110
|
+
req.send_request(options)
|
3111
|
+
end
|
3112
|
+
|
2718
3113
|
# Update a custom routing accelerator.
|
2719
3114
|
#
|
2720
3115
|
# @option params [required, String] :accelerator_arn
|
@@ -2960,6 +3355,7 @@ module Aws::GlobalAccelerator
|
|
2960
3355
|
# endpoint_id: "GenericString",
|
2961
3356
|
# weight: 1,
|
2962
3357
|
# client_ip_preservation_enabled: false,
|
3358
|
+
# attachment_arn: "GenericString",
|
2963
3359
|
# },
|
2964
3360
|
# ],
|
2965
3361
|
# traffic_dial_percentage: 1.0,
|
@@ -3135,7 +3531,7 @@ module Aws::GlobalAccelerator
|
|
3135
3531
|
params: params,
|
3136
3532
|
config: config)
|
3137
3533
|
context[:gem_name] = 'aws-sdk-globalaccelerator'
|
3138
|
-
context[:gem_version] = '1.
|
3534
|
+
context[:gem_version] = '1.53.0'
|
3139
3535
|
Seahorse::Client::Request.new(handlers, context)
|
3140
3536
|
end
|
3141
3537
|
|