Skip to content
v2.278.0

StaticPolicyDefinitionProperty Struct ​

A structure that defines a static policy.

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 staticPolicyDefinitionProperty: verifiedpermissions.CfnPolicy.StaticPolicyDefinitionProperty = {
  statement: 'statement',

  // the properties below are optional
  description: 'description',
};
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

static_policy_definition_property = verifiedpermissions.CfnPolicy.StaticPolicyDefinitionProperty(
    statement="statement",

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

StaticPolicyDefinitionProperty staticPolicyDefinitionProperty = StaticPolicyDefinitionProperty.builder()
        .statement("statement")

        // the properties below are optional
        .description("description")
        .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 staticPolicyDefinitionProperty = new StaticPolicyDefinitionProperty {
    Statement = "statement",

    // the properties below are optional
    Description = "description"
};
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"

staticPolicyDefinitionProperty := &StaticPolicyDefinitionProperty{
	Statement: jsii.String("statement"),

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

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the static policy.
statementstringstatementstrstatementStringStatementstringStatement*string required #
The policy content of the static policy, written in the Cedar policy language.