Skip to content
v2.278.0

CfnTopicInlinePolicyProps Struct ​

Properties for defining a CfnTopicInlinePolicy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sns as sns } from 'aws-cdk-lib';

declare const policyDocument: any;
const cfnTopicInlinePolicyProps: sns.CfnTopicInlinePolicyProps = {
  policyDocument: policyDocument,
  topicArn: 'topicArn',
};
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_sns as sns

# policy_document: Any

cfn_topic_inline_policy_props = sns.CfnTopicInlinePolicyProps(
    policy_document=policy_document,
    topic_arn="topicArn"
)
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.sns.*;

Object policyDocument;

CfnTopicInlinePolicyProps cfnTopicInlinePolicyProps = CfnTopicInlinePolicyProps.builder()
        .policyDocument(policyDocument)
        .topicArn("topicArn")
        .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.SNS;

var policyDocument;

var cfnTopicInlinePolicyProps = new CfnTopicInlinePolicyProps {
    PolicyDocument = policyDocument,
    TopicArn = "topicArn"
};
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"

var policyDocument interface{}

cfnTopicInlinePolicyProps := &CfnTopicInlinePolicyProps{
	PolicyDocument: policyDocument,
	TopicArn: jsii.String("topicArn"),
}

Properties ​

policyDocumentanypolicy_documentAnypolicyDocumentObjectPolicyDocumentobjectPolicyDocumentinterface{} required #
A policy document that contains permissions to add to the specified Amazon topic.
topicArnstringtopic_arnstrtopicArnStringTopicArnstringTopicArn*string required #
The Amazon Resource Name (ARN) of the topic to which you want to add the policy.