aws.sns-topic-policy resource¶
Description¶
TopicPolicy manages the access policy attached to an SNS topic. The topic ARN is the policy's identity; a topic holds a single Policy attribute, so the topic cannot change without replacing the policy, while the document is reconciled in place. Both the write and the read go through the topic's Policy attribute (SetTopicAttributes / GetTopicAttributes); SNS has no dedicated topic-policy API. The document is sent verbatim: unobin compares inputs as written, so the policy never needs canonicalizing to avoid a phantom diff against the form SNS echoes back.
Source: internal/service/sns/topic_policy_rsrc.go:27
Example usage:
imports: {
aws: 'github.com/cloudboss/unobin-library-aws'
}
resources: {
example: aws.sns-topic-policy {
# Set input fields here.
}
}
Inputs¶
arn
string
policy
string
Input Constraints¶
This kind declares no extra input constraints.
Outputs¶
owner
string
policy
string