Interface CfnPolicy.PolicyDefinitionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPolicy.PolicyDefinitionProperty.Jsii$Proxy
Enclosing class:
CfnPolicy

@Stability(Stable) public static interface CfnPolicy.PolicyDefinitionProperty extends software.amazon.jsii.JsiiSerializable
A structure that defines a Cedar policy.

It includes the policy type, a description, and a policy body. This is a top level data type used to create a policy.

This data type is used as a request parameter for the CreatePolicy operation. This structure must always have either an Static or a TemplateLinked element.

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.verifiedpermissions.*;
 PolicyDefinitionProperty policyDefinitionProperty = PolicyDefinitionProperty.builder()
         .static(StaticPolicyDefinitionProperty.builder()
                 .statement("statement")
                 // the properties below are optional
                 .description("description")
                 .build())
         .templateLinked(TemplateLinkedPolicyDefinitionProperty.builder()
                 .policyTemplateId("policyTemplateId")
                 // the properties below are optional
                 .principal(EntityIdentifierProperty.builder()
                         .entityId("entityId")
                         .entityType("entityType")
                         .build())
                 .resource(EntityIdentifierProperty.builder()
                         .entityId("entityId")
                         .entityType("entityType")
                         .build())
                 .build())
         .build();
 

See Also: