All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfdsl.sqs.QueuePolicy Maven / Gradle / Ivy

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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy