Class CfnService.CrossAccountRoleConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehubv2.CfnService.CrossAccountRoleConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.CrossAccountRoleConfigurationProperty>
- Enclosing interface:
CfnService.CrossAccountRoleConfigurationProperty
@Stability(Stable)
public static final class CfnService.CrossAccountRoleConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.CrossAccountRoleConfigurationProperty>
A builder for
CfnService.CrossAccountRoleConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.crossAccountRoleArn(String crossAccountRoleArn) externalId(String externalId) Sets the value ofCfnService.CrossAccountRoleConfigurationProperty.getExternalId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
crossAccountRoleArn
@Stability(Stable) public CfnService.CrossAccountRoleConfigurationProperty.Builder crossAccountRoleArn(String crossAccountRoleArn) - Parameters:
crossAccountRoleArn- ARN of the cross-account IAM role. This parameter is required.- Returns:
this
-
externalId
@Stability(Stable) public CfnService.CrossAccountRoleConfigurationProperty.Builder externalId(String externalId) Sets the value ofCfnService.CrossAccountRoleConfigurationProperty.getExternalId()- Parameters:
externalId- External ID for cross-account access.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.CrossAccountRoleConfigurationProperty>- Returns:
- a new instance of
CfnService.CrossAccountRoleConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-