Interface CfnPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-17T00:47:13.544Z")
@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.verifiedpermissions.*; CfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder() .definition(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()) .policyStoreId("policyStoreId") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPolicyProps
static final class
An implementation forCfnPolicyProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyProps.Builder
builder()
Specifies the policy type and content to use for the new or updated policy.Specifies thePolicyStoreId
of the policy store you want to store the policy in.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefinition
Specifies the policy type and content to use for the new or updated policy.The definition structure must include either a
Static
or aTemplateLinked
element.- See Also:
-
getPolicyStoreId
Specifies thePolicyStoreId
of the policy store you want to store the policy in.- See Also:
-
builder
- Returns:
- a
CfnPolicyProps.Builder
ofCfnPolicyProps
-