We recommend new projects start with resources from the AWS provider.
aws-native.sns.getSubscription
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::SNS::Subscription
Using getSubscription
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSubscription(args: GetSubscriptionArgs, opts?: InvokeOptions): Promise<GetSubscriptionResult>
function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionResult>
def get_subscription(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionResult
def get_subscription_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionResult]
func LookupSubscription(ctx *Context, args *LookupSubscriptionArgs, opts ...InvokeOption) (*LookupSubscriptionResult, error)
func LookupSubscriptionOutput(ctx *Context, args *LookupSubscriptionOutputArgs, opts ...InvokeOption) LookupSubscriptionResultOutput
> Note: This function is named LookupSubscription
in the Go SDK.
public static class GetSubscription
{
public static Task<GetSubscriptionResult> InvokeAsync(GetSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionResult> Invoke(GetSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSubscriptionResult> getSubscription(GetSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:sns:getSubscription
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- Arn of the subscription
- Arn string
- Arn of the subscription
- arn String
- Arn of the subscription
- arn string
- Arn of the subscription
- arn str
- Arn of the subscription
- arn String
- Arn of the subscription
getSubscription Result
The following output properties are available:
- Arn string
- Arn of the subscription
- Delivery
Policy object The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Filter
Policy object The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Filter
Policy stringScope - This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- Raw
Message boolDelivery - When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- Redrive
Policy object When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Replay
Policy object Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Subscription
Role stringArn - This property applies only to Amazon Data Firehose delivery stream subscriptions.
- Arn string
- Arn of the subscription
- Delivery
Policy interface{} The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Filter
Policy interface{} The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Filter
Policy stringScope - This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- Raw
Message boolDelivery - When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- Redrive
Policy interface{} When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Replay
Policy interface{} Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- Subscription
Role stringArn - This property applies only to Amazon Data Firehose delivery stream subscriptions.
- arn String
- Arn of the subscription
- delivery
Policy Object The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter
Policy Object The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter
Policy StringScope - This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- raw
Message BooleanDelivery - When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- redrive
Policy Object When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- replay
Policy Object Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- subscription
Role StringArn - This property applies only to Amazon Data Firehose delivery stream subscriptions.
- arn string
- Arn of the subscription
- delivery
Policy any The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter
Policy any The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter
Policy stringScope - This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- raw
Message booleanDelivery - When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- redrive
Policy any When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- replay
Policy any Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- subscription
Role stringArn - This property applies only to Amazon Data Firehose delivery stream subscriptions.
- arn str
- Arn of the subscription
- delivery_
policy Any The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter_
policy Any The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter_
policy_ strscope - This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- raw_
message_ booldelivery - When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- redrive_
policy Any When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- replay_
policy Any Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- subscription_
role_ strarn - This property applies only to Amazon Data Firehose delivery stream subscriptions.
- arn String
- Arn of the subscription
- delivery
Policy Any The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter
Policy Any The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- filter
Policy StringScope - This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- raw
Message BooleanDelivery - When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- redrive
Policy Any When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- replay
Policy Any Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
Search the CloudFormation User Guide for
AWS::SNS::Subscription
for more information about the expected schema for this property.- subscription
Role StringArn - This property applies only to Amazon Data Firehose delivery stream subscriptions.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.