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

com.pulumi.aws.cloudfront.inputs.OriginAccessControlState Maven / Gradle / Ivy

Go to download

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

The 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.cloudfront.inputs;

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


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

    public static final OriginAccessControlState Empty = new OriginAccessControlState();

    /**
     * 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);
    }

    /**
     * The current version of this Origin Access Control.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return The current version of this Origin Access Control.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * 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")
    private @Nullable Output originAccessControlOriginType;

    /**
     * @return The type of origin that this Origin Access Control is for. Valid values are `lambda`, `mediapackagev2`, `mediastore`, and `s3`.
     * 
     */
    public Optional> originAccessControlOriginType() {
        return Optional.ofNullable(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")
    private @Nullable Output signingBehavior;

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

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

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

    private OriginAccessControlState() {}

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

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

    public static final class Builder {
        private OriginAccessControlState $;

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

        public Builder(OriginAccessControlState defaults) {
            $ = new OriginAccessControlState(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 etag The current version of this Origin Access Control.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag The current version of this Origin Access Control.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @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(@Nullable 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(@Nullable 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(@Nullable 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 OriginAccessControlState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy