package awssnssubscriptions import ( "github.com/aws/aws-cdk-go/awscdk/v2/awssns" "github.com/aws/aws-cdk-go/awscdk/v2/awssqs" ) // Properties for an SQS subscription. // // Example: // // 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" // import "github.com/aws/aws-cdk-go/awscdk" // import "github.com/aws/aws-cdk-go/awscdk" // // var filterOrPolicy filterOrPolicy // var queue queue // var subscriptionFilter subscriptionFilter // // sqsSubscriptionProps := &SqsSubscriptionProps{ // DeadLetterQueue: queue, // FilterPolicy: map[string]*subscriptionFilter{ // "filterPolicyKey": subscriptionFilter, // }, // FilterPolicyWithMessageBody: map[string]*filterOrPolicy{ // "filterPolicyWithMessageBodyKey": filterOrPolicy, // }, // RawMessageDelivery: jsii.Boolean(false), // } // type SqsSubscriptionProps struct { // Queue to be used as dead letter queue. // // If not passed no dead letter queue is enabled. DeadLetterQueue awssqs.IQueue `field:"optional" json:"deadLetterQueue" yaml:"deadLetterQueue"` // The filter policy. FilterPolicy *map[string]awssns.SubscriptionFilter `field:"optional" json:"filterPolicy" yaml:"filterPolicy"` // The filter policy that is applied on the message body. // // To apply a filter policy to the message attributes, use `filterPolicy`. A maximum of one of `filterPolicyWithMessageBody` and `filterPolicy` may be used. FilterPolicyWithMessageBody *map[string]awssns.FilterOrPolicy `field:"optional" json:"filterPolicyWithMessageBody" yaml:"filterPolicyWithMessageBody"` // The message to the queue is the same as it was sent to the topic. // // If false, the message will be wrapped in an SNS envelope. RawMessageDelivery *bool `field:"optional" json:"rawMessageDelivery" yaml:"rawMessageDelivery"` }