aws-cdk-lib.aws_verifiedpermissions.CfnPolicyProps

interface CfnPolicyProps

LanguageType name
.NETAmazon.CDK.aws_verifiedpermissions.CfnPolicyProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsverifiedpermissions#CfnPolicyProps
Javaservices.verifiedpermissions.CfnPolicyProps
Pythonaws_cdk.aws_verifiedpermissions.CfnPolicyProps
TypeScript aws-cdk-lib » aws_verifiedpermissions » CfnPolicyProps

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 { aws_verifiedpermissions as verifiedpermissions } from 'aws-cdk-lib';
const cfnPolicyProps: verifiedpermissions.CfnPolicyProps = {
  definition: {
    static: {
      statement: 'statement',

      // the properties below are optional
      description: 'description',
    },
    templateLinked: {
      policyTemplateId: 'policyTemplateId',

      // the properties below are optional
      principal: {
        entityId: 'entityId',
        entityType: 'entityType',
      },
      resource: {
        entityId: 'entityId',
        entityType: 'entityType',
      },
    },
  },

  // the properties below are optional
  policyStoreId: 'policyStoreId',
};

Properties

NameTypeDescription
definitionIResolvable | PolicyDefinitionPropertySpecifies the policy type and content to use for the new or updated policy.
policyStoreId?stringSpecifies the PolicyStoreId of the policy store you want to store the policy in.

definition

Type: IResolvable | PolicyDefinitionProperty

Specifies the policy type and content to use for the new or updated policy.

The definition structure must include either a Static or a TemplateLinked element.


policyStoreId?

Type: string (optional)

Specifies the PolicyStoreId of the policy store you want to store the policy in.