Class CfnCrossAccountAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.globalaccelerator.CfnCrossAccountAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrossAccountAttachment>
- Enclosing class:
CfnCrossAccountAttachment
@Stability(Stable)
public static final class CfnCrossAccountAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrossAccountAttachment>
A fluent builder for
CfnCrossAccountAttachment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The name of the cross-account attachment.principals
(List<String> principals) The principals included in the cross-account attachment.The resources included in the cross-account attachment.resources
(IResolvable resources) The resources included in the cross-account attachment.Add tags for a cross-account attachment.
-
Method Details
-
create
@Stability(Stable) public static CfnCrossAccountAttachment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCrossAccountAttachment.Builder
.
-
name
The name of the cross-account attachment.- Parameters:
name
- The name of the cross-account attachment. This parameter is required.- Returns:
this
- See Also:
-
principals
The principals included in the cross-account attachment.- Parameters:
principals
- The principals included in the cross-account attachment. This parameter is required.- Returns:
this
- See Also:
-
resources
The resources included in the cross-account attachment.- Parameters:
resources
- The resources included in the cross-account attachment. This parameter is required.- Returns:
this
- See Also:
-
resources
@Stability(Stable) public CfnCrossAccountAttachment.Builder resources(List<? extends Object> resources) The resources included in the cross-account attachment.- Parameters:
resources
- The resources included in the cross-account attachment. This parameter is required.- Returns:
this
- See Also:
-
tags
Add tags for a cross-account attachment.For more information, see Tagging in AWS Global Accelerator in the AWS Global Accelerator Developer Guide .
- Parameters:
tags
- Add tags for a cross-account attachment. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCrossAccountAttachment>
- Returns:
- a newly built instance of
CfnCrossAccountAttachment
.
-