StaticPolicyDefinitionProperty Struct
A structure that defines a static policy.
- Source
- Generated code
- Type last changed
- v2.93.0 · 23 Aug 2023
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
description?optionalstringdescription?optionalstrdescription?optionalStringDescription?optionalstringDescription?optional*string#The description of the static policy.
The policy content of the static policy, written in the Cedar policy language.