Class CfnResourcePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.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
-
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
- A policy you want to associate with a resource. This parameter is required.- Returns:
this
-
resourceArn
Sets the value ofCfnResourcePolicyProps.getResourceArn()
- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the resource to which you want to attach a policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyProps>
- Returns:
- a new instance of
CfnResourcePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-