cfdsl.sqs.QueuePolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cfdsl Show documentation
Show all versions of cfdsl Show documentation
Java DSL for Amazon CloudFormation templates
The newest version!
package cfdsl.sqs;
import cfdsl.resource.Resource;
import cfdsl.resource.ResourceBuilder;
import com.google.common.collect.ImmutableMap;
/**
* AWS::SQS::QueuePolicy
* resource type.
*/
public final class QueuePolicy extends Resource {
private QueuePolicy(Builder b) {
super("AWS::SQS::QueuePolicy", b);
}
public static Builder of(
String logicalName, ImmutableMap policyDocument, Queue... queues) {
return new Builder(logicalName, policyDocument, queues);
}
public static final class Builder extends ResourceBuilder {
private Builder(
String logicalName, ImmutableMap policyDocument, Queue[] queues) {
super(logicalName);
addProperty("PolicyDocument", policyDocument);
addProperty("Queues", queues);
}
@Override
public QueuePolicy build() {
return new QueuePolicy(this);
}
}
}