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