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:50.186Z")
@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 classA builder forCfnPolicyPropsstatic final classAn implementation forCfnPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyProps.Builderbuilder()Specifies the policy type and content to use for the new or updated policy.Specifies thePolicyStoreIdof 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
Staticor aTemplateLinkedelement.Returns union: either
IResolvableorCfnPolicy.PolicyDefinitionProperty- See Also:
-
getPolicyStoreId
Specifies thePolicyStoreIdof the policy store you want to store the policy in.- See Also:
-
builder
- Returns:
- a
CfnPolicyProps.BuilderofCfnPolicyProps
-