cfdsl.sns.TopicPolicy 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.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);
}
}
}