Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnResourcePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyProps>
- Enclosing interface:
CfnResourcePolicyProps
@Stability(Stable)
public static final class CfnResourcePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyProps>
A builder for
CfnResourcePolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnResourcePolicyProps.getPolicy()resourceArn(String resourceArn) Sets the value ofCfnResourcePolicyProps.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policy
Sets the value ofCfnResourcePolicyProps.getPolicy()- Parameters:
policy- The Amazon Resource Name (ARN) of the service network or service. This parameter is required.- Returns:
this
-
resourceArn
Sets the value ofCfnResourcePolicyProps.getResourceArn()- Parameters:
resourceArn- An IAM policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyProps>- Returns:
- a new instance of
CfnResourcePolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-