Interface CfnPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:41.474Z")
@Stability(Stable)
public interface CfnPolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPolicy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
Object policyDocument;
CfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder()
.policyDocument(policyDocument)
// the properties below are optional
.policyName("policyName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicyPropsstatic final classAn implementation forCfnPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyProps.Builderbuilder()The JSON document that describes the policy.default StringThe policy name.getTags()Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPolicyDocument
The JSON document that describes the policy.- See Also:
-
getPolicyName
The policy name.- See Also:
-
getTags
- See Also:
-
builder
- Returns:
- a
CfnPolicyProps.BuilderofCfnPolicyProps
-