class CfnCrossAccountAttachmentPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.GlobalAccelerator.Mixins.CfnCrossAccountAttachmentPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsglobalaccelerator/mixins#CfnCrossAccountAttachmentPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.globalaccelerator.mixins.CfnCrossAccountAttachmentPropsMixin |
Python | aws_cdk.mixins_preview.aws_globalaccelerator.mixins.CfnCrossAccountAttachmentPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_globalaccelerator » mixins » CfnCrossAccountAttachmentPropsMixin |
Implements
IMixin
Extends
Mixin
Create a cross-account attachment in AWS 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 AWS 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 AWS Global Accelerator in the AWS Global Accelerator Developer Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as globalaccelerator_mixins } from '@aws-cdk/mixins-preview/aws-globalaccelerator';
const cfnCrossAccountAttachmentPropsMixin = new globalaccelerator_mixins.CfnCrossAccountAttachmentPropsMixin({
name: 'name',
principals: ['principals'],
resources: [{
cidr: 'cidr',
endpointId: 'endpointId',
region: 'region',
}],
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnCrossAccountAttachmentPropsMixin(props: CfnCrossAccountAttachmentMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Cross Account Attachment Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::GlobalAccelerator::CrossAccountAttachment.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript