CfnResourcePolicyProps Struct
Properties for defining a CfnResourcePolicy.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnResourcePolicyProps: logs.CfnResourcePolicyProps = {
policyDocument: 'policyDocument',
policyName: 'policyName',
};
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_logs as logs
cfn_resource_policy_props = logs.CfnResourcePolicyProps(
policy_document="policyDocument",
policy_name="policyName"
)
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.logs.*;
CfnResourcePolicyProps cfnResourcePolicyProps = CfnResourcePolicyProps.builder()
.policyDocument("policyDocument")
.policyName("policyName")
.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.Logs;
var cfnResourcePolicyProps = new CfnResourcePolicyProps {
PolicyDocument = "policyDocument",
PolicyName = "policyName"
};
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"
cfnResourcePolicyProps := &CfnResourcePolicyProps{
PolicyDocument: jsii.String("policyDocument"),
PolicyName: jsii.String("policyName"),
}
Properties
policyDocumentstringpolicy_documentstrpolicyDocumentStringPolicyDocumentstringPolicyDocument*string required #The details of the policy.
It must be formatted in JSON, and you must use backslashes to escape characters that need to be escaped in JSON strings, such as double quote marks.
The name of the resource policy.