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

com.pulumi.aws.sns.DataProtectionPolicyArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sns;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class DataProtectionPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataProtectionPolicyArgs Empty = new DataProtectionPolicyArgs();

    /**
     * The ARN of the SNS topic
     * 
     */
    @Import(name="arn", required=true)
    private Output arn;

    /**
     * @return The ARN of the SNS topic
     * 
     */
    public Output arn() {
        return this.arn;
    }

    /**
     * The fully-formed AWS policy as JSON. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide.
     * 
     */
    @Import(name="policy", required=true)
    private Output policy;

    /**
     * @return The fully-formed AWS policy as JSON. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide.
     * 
     */
    public Output policy() {
        return this.policy;
    }

    private DataProtectionPolicyArgs() {}

    private DataProtectionPolicyArgs(DataProtectionPolicyArgs $) {
        this.arn = $.arn;
        this.policy = $.policy;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DataProtectionPolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DataProtectionPolicyArgs $;

        public Builder() {
            $ = new DataProtectionPolicyArgs();
        }

        public Builder(DataProtectionPolicyArgs defaults) {
            $ = new DataProtectionPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param arn The ARN of the SNS topic
         * 
         * @return builder
         * 
         */
        public Builder arn(Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The ARN of the SNS topic
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param policy The fully-formed AWS policy as JSON. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide.
         * 
         * @return builder
         * 
         */
        public Builder policy(Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The fully-formed AWS policy as JSON. For more information about building AWS IAM policy documents with this provider, see the AWS IAM Policy Document Guide.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        public DataProtectionPolicyArgs build() {
            if ($.arn == null) {
                throw new MissingRequiredPropertyException("DataProtectionPolicyArgs", "arn");
            }
            if ($.policy == null) {
                throw new MissingRequiredPropertyException("DataProtectionPolicyArgs", "policy");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy