Skip to content

Commit

Permalink
Merge pull request #137 from tylersouthwick/add-sqs-redrive
Browse files Browse the repository at this point in the history
add RedrivePolicy for SQS
  • Loading branch information
T.J. Corrigan committed Feb 1, 2017
2 parents cab8912 + 1e16eb5 commit ef84b93
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ case class `AWS::SQS::Queue`(name: String,
MessageRetentionPeriod: Token[Int],
ReceiveMessageWaitTimeSeconds: Token[Int],
VisibilityTimeout: Token[Int],
RedrivePolicy: Option[RedrivePolicy] = None,
override val Condition: Option[ConditionRef] = None)
extends Resource[`AWS::SQS::Queue`] with HasArn with Subscribable {

Expand All @@ -27,7 +28,7 @@ case class `AWS::SQS::Queue`(name: String,
}

object `AWS::SQS::Queue` extends DefaultJsonProtocol {
implicit val format: JsonFormat[`AWS::SQS::Queue`] = jsonFormat7(`AWS::SQS::Queue`.apply)
implicit val format: JsonFormat[`AWS::SQS::Queue`] = jsonFormat8(`AWS::SQS::Queue`.apply)
}

case class `AWS::SQS::QueuePolicy`(name: String,
Expand All @@ -41,3 +42,13 @@ case class `AWS::SQS::QueuePolicy`(name: String,
object `AWS::SQS::QueuePolicy` extends DefaultJsonProtocol {
implicit val format: JsonFormat[`AWS::SQS::QueuePolicy`] = jsonFormat4(`AWS::SQS::QueuePolicy`.apply)
}


case class RedrivePolicy(
deadLetterTargetArn: Token[String],
maxReceiveCount: Token[Int]
)

object RedrivePolicy extends DefaultJsonProtocol {
implicit val format: JsonFormat[RedrivePolicy] = jsonFormat2(RedrivePolicy.apply)
}

0 comments on commit ef84b93

Please sign in to comment.