SqsSubscriptionObject
Specify an existing SQS queue option to SNS event
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
YAML
BatchSize:StringEnabled:BooleanQueueArn:StringQueuePolicyLogicalId:StringQueueUrl:String
Properties
-
BatchSize -
The maximum number of items to retrieve in a single batch for the SQS queue.
Type: String
Required: No
Default: 10
CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an CloudFormation equivalent.
-
Enabled -
Disables the SQS event source mapping to pause polling and invocation.
Type: Boolean
Required: No
Default: True
CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an CloudFormation equivalent.
-
QueueArn -
Specify an existing SQS queue arn.
Type: String
Required: Yes
CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an CloudFormation equivalent.
-
QueuePolicyLogicalId -
Give a custom logicalId name for the AWS::SQS::QueuePolicy resource.
Type: String
Required: No
CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an CloudFormation equivalent.
-
QueueUrl -
Specify the queue URL associated with the
QueueArnproperty.Type: String
Required: Yes
CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an CloudFormation equivalent.
Examples
Existing SQS for SNS event
Example to add existing SQS queue for subscibing to an SNS topic.
YAML
QueuePolicyLogicalId: CustomQueuePolicyLogicalId QueueArn: Fn::GetAtt: MyCustomQueue.Arn QueueUrl: Ref: MyCustomQueue BatchSize: 5