-
Notifications
You must be signed in to change notification settings - Fork 17
/
SmsSubscriptionProps.go
49 lines (46 loc) · 1.73 KB
/
SmsSubscriptionProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package awssnssubscriptions
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awssns"
"github.com/aws/aws-cdk-go/awscdk/v2/awssqs"
)
// Options for SMS subscriptions.
//
// 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
//
// smsSubscriptionProps := &SmsSubscriptionProps{
// DeadLetterQueue: queue,
// FilterPolicy: map[string]*subscriptionFilter{
// "filterPolicyKey": subscriptionFilter,
// },
// FilterPolicyWithMessageBody: map[string]*filterOrPolicy{
// "filterPolicyWithMessageBodyKey": filterOrPolicy,
// },
// }
//
type SmsSubscriptionProps struct {
// Queue to be used as dead letter queue.
//
// If not passed no dead letter queue is enabled.
// Default: - No dead letter queue enabled.
//
DeadLetterQueue awssqs.IQueue `field:"optional" json:"deadLetterQueue" yaml:"deadLetterQueue"`
// The filter policy.
// Default: - all messages are delivered.
//
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.
// Default: - all messages are delivered.
//
FilterPolicyWithMessageBody *map[string]awssns.FilterOrPolicy `field:"optional" json:"filterPolicyWithMessageBody" yaml:"filterPolicyWithMessageBody"`
}