AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Create a cross-account attachment in Global Accelerator. You create a cross-account attachment to specify the principals who have permission to work with resources in accelerators in their own account. You specify, in the same attachment, the resources that are shared.

A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator. For account numbers that are listed as principals, to work with a resource listed in the attachment, you must sign in to an account specified as a principal. Then, you can work with resources that are listed, with any of your accelerators. If an accelerator ARN is listed in the cross-account attachment as a principal, anyone with permission to make updates to the accelerator can work with resources that are listed in the attachment.

Specify each principal and resource separately. To specify two CIDR address pools, list them individually under Resources, and so on. For a command line operation, for example, you might use a statement like the following:

"Resources": [{"Cidr": "169.254.60.0/24"},{"Cidr": "169.254.59.0/24"}]

For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateCrossAccountAttachmentAsync.

Namespace: Amazon.GlobalAccelerator
Assembly: AWSSDK.GlobalAccelerator.dll
Version: 3.x.y.z

Syntax

C#
public abstract CreateCrossAccountAttachmentResponse CreateCrossAccountAttachment(
         CreateCrossAccountAttachmentRequest request
)

Parameters

request
Type: Amazon.GlobalAccelerator.Model.CreateCrossAccountAttachmentRequest

Container for the necessary parameters to execute the CreateCrossAccountAttachment service method.

Return Value


The response from the CreateCrossAccountAttachment service method, as returned by GlobalAccelerator.

Exceptions

ExceptionCondition
AccessDeniedException You don't have access permission.
InternalServiceErrorException There was an internal error for Global Accelerator.
InvalidArgumentException An argument that you specified is invalid.
LimitExceededException Processing your request would cause you to exceed an Global Accelerator limit.
TransactionInProgressException There's already a transaction in progress. Another transaction can't be processed.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also