aws-sns
Verified for current stable LTS
Aws Sns Command: Add Permission
An engineer would use the 'aws sns add-permission' command when they need to grant specific AWS accounts permission to perform actions on an Amazon SNS topic, such as subscribing or publishing messages, especially when facilitating cross-account access in a multi-tenant architecture. Exact CLI syntax to add permission using Aws Sns.
When to use this: An engineer would use the 'aws sns add-permission' command when they need to grant specific AWS accounts permission to perform actions on an Amazon SNS topic, such as subscribing or publishing messages, especially when facilitating cross-account access in a multi-tenant architecture.
Command Syntax
aws sns add-permission --topic-arn <topic_ARN> --label <topic_label> --aws-account-id <account_id> --action-name <AddPermission|CreatePlatformApplication|DeleteEndpoint|GetDataProtectionPolicy|GetEndpointAttributes|Subscribe|...> aws sns add-permission --topic-arn <topic_ARN> --label <topic_label> --aws-account-id <account_id> --action-name <AddPermission|CreatePlatformApplication|DeleteEndpoint|GetDataProtectionPolicy|GetEndpointAttributes|Subscribe|...> Command Breakdown
--topic-arn- Command Option
- Tool-specific option used by this command invocation.
--label- Command Option
- Tool-specific option used by this command invocation.
--aws-account-id- Command Option
- Tool-specific option used by this command invocation.
--action-name- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to add permission using Aws Sns.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Aws Sns Command: List Objects
aws sns list-<origination-numbers|phone-numbers-opted-out|platform-applications|sms-sandbox-phone-numbers|subscriptions|topics> Aws Sns Command: Subscribe Email aws sns subscribe --topic-arn <topic_ARN> --protocol email --notification-endpoint <email> Aws Sns Command: Unsubscribe aws sns unsubscribe --subscription-arn <subscription_ARN> Aws Sns Command: Tag Resource aws sns tag-resource --resource-arn <topic_ARN> --tags <Key=tag1_key Key=tag2_key,Value=tag2_value ...> Aws Sns Command: Create Topic aws sns create-topic --name <name>