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

com.pulumi.aws.sqs.QueuePolicyArgs 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.sqs;

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 QueuePolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final QueuePolicyArgs Empty = new QueuePolicyArgs();

    /**
     * The JSON policy for the SQS queue.
     * 
     */
    @Import(name="policy", required=true)
    private Output policy;

    /**
     * @return The JSON policy for the SQS queue.
     * 
     */
    public Output policy() {
        return this.policy;
    }

    /**
     * The URL of the SQS Queue to which to attach the policy
     * 
     */
    @Import(name="queueUrl", required=true)
    private Output queueUrl;

    /**
     * @return The URL of the SQS Queue to which to attach the policy
     * 
     */
    public Output queueUrl() {
        return this.queueUrl;
    }

    private QueuePolicyArgs() {}

    private QueuePolicyArgs(QueuePolicyArgs $) {
        this.policy = $.policy;
        this.queueUrl = $.queueUrl;
    }

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

    public static final class Builder {
        private QueuePolicyArgs $;

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

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

        /**
         * @param policy The JSON policy for the SQS queue.
         * 
         * @return builder
         * 
         */
        public Builder policy(Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The JSON policy for the SQS queue.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param queueUrl The URL of the SQS Queue to which to attach the policy
         * 
         * @return builder
         * 
         */
        public Builder queueUrl(Output queueUrl) {
            $.queueUrl = queueUrl;
            return this;
        }

        /**
         * @param queueUrl The URL of the SQS Queue to which to attach the policy
         * 
         * @return builder
         * 
         */
        public Builder queueUrl(String queueUrl) {
            return queueUrl(Output.of(queueUrl));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy