Class CfnPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicy>
- Enclosing class:
- CfnPolicy
@Stability(Stable)
public static final class CfnPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicy>
A fluent builder for
CfnPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnPolicy.Builder
policyDocument
(Object policyDocument) The JSON document that describes the policy.policyName
(String policyName) The policy name.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPolicy.Builder
.
-
policyDocument
The JSON document that describes the policy.- Parameters:
policyDocument
- The JSON document that describes the policy. This parameter is required.- Returns:
this
-
policyName
The policy name.- Parameters:
policyName
- The policy name. This parameter is required.- Returns:
this
-
build
-