Class CfnCrossAccountAttachmentPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
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 software.amazon.awscdk.cfnpropertymixins.services.globalaccelerator.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnCrossAccountAttachmentPropsMixin cfnCrossAccountAttachmentPropsMixin = CfnCrossAccountAttachmentPropsMixin.Builder.create(CfnCrossAccountAttachmentMixinProps.builder()
.name("name")
.principals(List.of("principals"))
.resources(List.of(ResourceProperty.builder()
.cidr("cidr")
.endpointId("endpointId")
.region("region")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCrossAccountAttachmentPropsMixin.static interfaceA resource is one of the following: the ARN for an AWS resource that is supported by AWS Global Accelerator to be added as an endpoint, or a CIDR range that specifies a bring your own IP (BYOIP) address pool.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::GlobalAccelerator::CrossAccountAttachment.CfnCrossAccountAttachmentPropsMixin(CfnCrossAccountAttachmentMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::GlobalAccelerator::CrossAccountAttachment.protectedCfnCrossAccountAttachmentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCrossAccountAttachmentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnCrossAccountAttachmentMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnCrossAccountAttachmentPropsMixin
protected CfnCrossAccountAttachmentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCrossAccountAttachmentPropsMixin
protected CfnCrossAccountAttachmentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCrossAccountAttachmentPropsMixin
@Stability(Stable) public CfnCrossAccountAttachmentPropsMixin(@NotNull CfnCrossAccountAttachmentMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::GlobalAccelerator::CrossAccountAttachment.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnCrossAccountAttachmentPropsMixin
@Stability(Stable) public CfnCrossAccountAttachmentPropsMixin(@NotNull CfnCrossAccountAttachmentMixinProps props) Create a mixin to apply properties toAWS::GlobalAccelerator::CrossAccountAttachment.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-