Skip to content

Amazon SQS operation binding

Contains information about the operation representation in Amazon SQS.

Structure

copy

Examples

json
{
    "queues": [
        {
            "name": "myQueue",
            "fifoQueue": true,
            "deduplicationScope": "messageGroup",
            "fifoThroughputLimit": "perMessageGroupId",
            "deliveryDelay": 10,
            "redrivePolicy": {
                "deadLetterQueue": {
                    "name": "myQueue_error"
                },
                "maxReceiveCount": 15
            },
            "policy": {
                "statements": [
                    {
                        "effect": "Deny",
                        "principal": "arn:aws:iam::123456789012:user/dec.kolakowski",
                        "action": [
                            "sqs:SendMessage",
                            "sqs:ReceiveMessage"
                        ]
                    }
                ]
            }
        },
        {
            "name": "myQueue_error",
            "deliveryDelay": 10
        }
    ]
}

Changelog

Added

queue.policy.statements.resource

The resource(s) that this policy applies to.

json
{ 
  "resource": { 
      "description": "The resource(s) that this policy applies to.", 
      "oneOf": [ 
        { 
          "type": "string"
        }, 
        { 
          "type": "array", 
          "items": { 
              "type": "string"
          } 
        } 
      ] 
    } 
} 

queue.policy.statements.condition

Specific circumstances under which the policy grants permission

json
{
  "condition": { 
    "description": "Specific circumstances under which the policy grants permission", 
    "type": "object", 
    "patternProperties": { 
      ".*": { 
        "type": "object", 
        "patternProperties": { 
          ".*": { 
            "oneOf": [ 
              { 
                "type": "string"
              }, 
              { 
                "type": "array", 
                "items": { 
                  "type": "string"
                } 
              } 
            ] 
          } 
        } 
      } 
    } 
  } 
}

Changed

queue.policy.statements.principal

The AWS account(s) or resource ARN(s) that this statement applies to.

json
{
  "principal": {
    "description": "The AWS account(s) or resource ARN(s) that this statement applies to.",
    "oneOf": [
      {
        "type": "string"
      },
      { 
        "type": "object", 
        "properties": { 
          "AWS": { 
            "oneOf": [ 
              { 
                "type": "string"
              }, 
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ] 
          } 
        }, 
        "required": [ 
          "AWS"
        ], 
        "additionalProperties": false
      }, 
      { 
        "type": "object", 
        "properties": { 
          "Service": { 
            "oneOf": [ 
              { 
                "type": "string"
              }, 
              { 
                "type": "array", 
                "items": { 
                  "type": "string"
                } 
              } 
            ] 
          } 
        }, 
        "required": [ 
          "Service"
        ], 
        "additionalProperties": false
      }
    ]
  }
}