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

cfdsl.sns.TopicPolicy Maven / Gradle / Ivy

The newest version!
package cfdsl.sns;

import cfdsl.resource.Resource;
import cfdsl.resource.ResourceBuilder;
import com.google.common.collect.ImmutableMap;

/**
 * AWS::SNS::TopicPolicy
 * resource type.
 */
public final class TopicPolicy extends Resource {
    private TopicPolicy(Builder builder) {
        super("AWS::SNS::TopicPolicy", builder);
    }

    public static Builder forTopics(
            String logicalName, Topic[] topics, ImmutableMap policyDocument) {
        return new Builder(logicalName, topics, policyDocument);
    }

    public static final class Builder extends ResourceBuilder {
        Builder(String logicalName, Topic[] topics, ImmutableMap policyDocument) {
            super(logicalName);
            addProperty("Topics", topics);
            addProperty("PolicyDocument", policyDocument);
        }

        @Override
        public TopicPolicy build() {
            return new TopicPolicy(this);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy