CfnPolicyProps
- class aws_cdk.aws_verifiedpermissions.CfnPolicyProps(*, definition, policy_store_id)
 Bases:
objectProperties for defining a
CfnPolicy.- Parameters:
 definition (
Union[IResolvable,PolicyDefinitionProperty,Dict[str,Any]]) – Specifies the policy type and content to use for the new or updated policy. The definition structure must include either aStaticor aTemplateLinkedelement.policy_store_id (
str) – Specifies thePolicyStoreIdof the policy store you want to store the policy in.
- See:
 - ExampleMetadata:
 fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_verifiedpermissions as verifiedpermissions cfn_policy_props = verifiedpermissions.CfnPolicyProps( definition=verifiedpermissions.CfnPolicy.PolicyDefinitionProperty( static=verifiedpermissions.CfnPolicy.StaticPolicyDefinitionProperty( statement="statement", # the properties below are optional description="description" ), template_linked=verifiedpermissions.CfnPolicy.TemplateLinkedPolicyDefinitionProperty( policy_template_id="policyTemplateId", # the properties below are optional principal=verifiedpermissions.CfnPolicy.EntityIdentifierProperty( entity_id="entityId", entity_type="entityType" ), resource=verifiedpermissions.CfnPolicy.EntityIdentifierProperty( entity_id="entityId", entity_type="entityType" ) ) ), policy_store_id="policyStoreId" )
Attributes
- definition
 Specifies the policy type and content to use for the new or updated policy.
The definition structure must include either a
Staticor aTemplateLinkedelement.
- policy_store_id
 Specifies the
PolicyStoreIdof the policy store you want to store the policy in.