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

com.pulumi.aws.cloudfront.OriginAccessControlArgs Maven / Gradle / Ivy

// *** 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.cloudfront;

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


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

    public static final OriginAccessControlArgs Empty = new OriginAccessControlArgs();

    /**
     * The description of the Origin Access Control. Defaults to "Managed by Pulumi" if omitted.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the Origin Access Control. Defaults to "Managed by Pulumi" if omitted.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A name that identifies the Origin Access Control.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A name that identifies the Origin Access Control.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The type of origin that this Origin Access Control is for. Valid values are `lambda`, `mediapackagev2`, `mediastore`, and `s3`.
     * 
     */
    @Import(name="originAccessControlOriginType", required=true)
    private Output originAccessControlOriginType;

    /**
     * @return The type of origin that this Origin Access Control is for. Valid values are `lambda`, `mediapackagev2`, `mediastore`, and `s3`.
     * 
     */
    public Output originAccessControlOriginType() {
        return this.originAccessControlOriginType;
    }

    /**
     * Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
     * 
     */
    @Import(name="signingBehavior", required=true)
    private Output signingBehavior;

    /**
     * @return Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
     * 
     */
    public Output signingBehavior() {
        return this.signingBehavior;
    }

    /**
     * Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
     * 
     */
    @Import(name="signingProtocol", required=true)
    private Output signingProtocol;

    /**
     * @return Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
     * 
     */
    public Output signingProtocol() {
        return this.signingProtocol;
    }

    private OriginAccessControlArgs() {}

    private OriginAccessControlArgs(OriginAccessControlArgs $) {
        this.description = $.description;
        this.name = $.name;
        this.originAccessControlOriginType = $.originAccessControlOriginType;
        this.signingBehavior = $.signingBehavior;
        this.signingProtocol = $.signingProtocol;
    }

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

    public static final class Builder {
        private OriginAccessControlArgs $;

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

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

        /**
         * @param description The description of the Origin Access Control. Defaults to "Managed by Pulumi" if omitted.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the Origin Access Control. Defaults to "Managed by Pulumi" if omitted.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name A name that identifies the Origin Access Control.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A name that identifies the Origin Access Control.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param originAccessControlOriginType The type of origin that this Origin Access Control is for. Valid values are `lambda`, `mediapackagev2`, `mediastore`, and `s3`.
         * 
         * @return builder
         * 
         */
        public Builder originAccessControlOriginType(Output originAccessControlOriginType) {
            $.originAccessControlOriginType = originAccessControlOriginType;
            return this;
        }

        /**
         * @param originAccessControlOriginType The type of origin that this Origin Access Control is for. Valid values are `lambda`, `mediapackagev2`, `mediastore`, and `s3`.
         * 
         * @return builder
         * 
         */
        public Builder originAccessControlOriginType(String originAccessControlOriginType) {
            return originAccessControlOriginType(Output.of(originAccessControlOriginType));
        }

        /**
         * @param signingBehavior Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
         * 
         * @return builder
         * 
         */
        public Builder signingBehavior(Output signingBehavior) {
            $.signingBehavior = signingBehavior;
            return this;
        }

        /**
         * @param signingBehavior Specifies which requests CloudFront signs. Specify `always` for the most common use case. Allowed values: `always`, `never`, and `no-override`.
         * 
         * @return builder
         * 
         */
        public Builder signingBehavior(String signingBehavior) {
            return signingBehavior(Output.of(signingBehavior));
        }

        /**
         * @param signingProtocol Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
         * 
         * @return builder
         * 
         */
        public Builder signingProtocol(Output signingProtocol) {
            $.signingProtocol = signingProtocol;
            return this;
        }

        /**
         * @param signingProtocol Determines how CloudFront signs (authenticates) requests. The only valid value is `sigv4`.
         * 
         * @return builder
         * 
         */
        public Builder signingProtocol(String signingProtocol) {
            return signingProtocol(Output.of(signingProtocol));
        }

        public OriginAccessControlArgs build() {
            if ($.originAccessControlOriginType == null) {
                throw new MissingRequiredPropertyException("OriginAccessControlArgs", "originAccessControlOriginType");
            }
            if ($.signingBehavior == null) {
                throw new MissingRequiredPropertyException("OriginAccessControlArgs", "signingBehavior");
            }
            if ($.signingProtocol == null) {
                throw new MissingRequiredPropertyException("OriginAccessControlArgs", "signingProtocol");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy