Skip to content
v2.278.0

CfnPolicyTemplateProps Struct ​

Properties for defining a CfnPolicyTemplate.

Example ​

ts
// 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 cfnPolicyTemplateProps: verifiedpermissions.CfnPolicyTemplateProps = {
  policyStoreId: 'policyStoreId',
  statement: 'statement',

  // the properties below are optional
  description: 'description',
  name: 'name',
};
python
# 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_template_props = verifiedpermissions.CfnPolicyTemplateProps(
    policy_store_id="policyStoreId",
    statement="statement",

    # the properties below are optional
    description="description",
    name="name"
)
java
// 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.*;

CfnPolicyTemplateProps cfnPolicyTemplateProps = CfnPolicyTemplateProps.builder()
        .policyStoreId("policyStoreId")
        .statement("statement")

        // the properties below are optional
        .description("description")
        .name("name")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.VerifiedPermissions;

var cfnPolicyTemplateProps = new CfnPolicyTemplateProps {
    PolicyStoreId = "policyStoreId",
    Statement = "statement",

    // the properties below are optional
    Description = "description",
    Name = "name"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnPolicyTemplateProps := &CfnPolicyTemplateProps{
	PolicyStoreId: jsii.String("policyStoreId"),
	Statement: jsii.String("statement"),

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description to attach to the new or updated policy template.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
policyStoreIdstringpolicy_store_idstrpolicyStoreIdStringPolicyStoreIdstringPolicyStoreId*string required #
The unique identifier of the policy store that contains the template.
statementstringstatementstrstatementStringStatementstringStatement*string required #
Specifies the content that you want to use for the new policy template, written in the Cedar policy language.