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

com.pulumi.aws.cloudfront.ResponseHeadersPolicyArgs 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.aws.cloudfront.inputs.ResponseHeadersPolicyCorsConfigArgs;
import com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicyCustomHeadersConfigArgs;
import com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicyRemoveHeadersConfigArgs;
import com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicySecurityHeadersConfigArgs;
import com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicyServerTimingHeadersConfigArgs;
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 ResponseHeadersPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResponseHeadersPolicyArgs Empty = new ResponseHeadersPolicyArgs();

    /**
     * A comment to describe the response headers policy. The comment cannot be longer than 128 characters.
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return A comment to describe the response headers policy. The comment cannot be longer than 128 characters.
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
     * 
     */
    @Import(name="corsConfig")
    private @Nullable Output corsConfig;

    /**
     * @return A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
     * 
     */
    public Optional> corsConfig() {
        return Optional.ofNullable(this.corsConfig);
    }

    /**
     * Object that contains an attribute `items` that contains a list of custom headers. See Custom Header for more information.
     * 
     */
    @Import(name="customHeadersConfig")
    private @Nullable Output customHeadersConfig;

    /**
     * @return Object that contains an attribute `items` that contains a list of custom headers. See Custom Header for more information.
     * 
     */
    public Optional> customHeadersConfig() {
        return Optional.ofNullable(this.customHeadersConfig);
    }

    /**
     * The current version of the response headers policy.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return The current version of the response headers policy.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * A unique name to identify the response headers policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A unique name to identify the response headers policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute `items` that contains a list of headers. See Remove Header for more information.
     * 
     */
    @Import(name="removeHeadersConfig")
    private @Nullable Output removeHeadersConfig;

    /**
     * @return A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute `items` that contains a list of headers. See Remove Header for more information.
     * 
     */
    public Optional> removeHeadersConfig() {
        return Optional.ofNullable(this.removeHeadersConfig);
    }

    /**
     * A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
     * 
     */
    @Import(name="securityHeadersConfig")
    private @Nullable Output securityHeadersConfig;

    /**
     * @return A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
     * 
     */
    public Optional> securityHeadersConfig() {
        return Optional.ofNullable(this.securityHeadersConfig);
    }

    /**
     * A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
     * 
     */
    @Import(name="serverTimingHeadersConfig")
    private @Nullable Output serverTimingHeadersConfig;

    /**
     * @return A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
     * 
     */
    public Optional> serverTimingHeadersConfig() {
        return Optional.ofNullable(this.serverTimingHeadersConfig);
    }

    private ResponseHeadersPolicyArgs() {}

    private ResponseHeadersPolicyArgs(ResponseHeadersPolicyArgs $) {
        this.comment = $.comment;
        this.corsConfig = $.corsConfig;
        this.customHeadersConfig = $.customHeadersConfig;
        this.etag = $.etag;
        this.name = $.name;
        this.removeHeadersConfig = $.removeHeadersConfig;
        this.securityHeadersConfig = $.securityHeadersConfig;
        this.serverTimingHeadersConfig = $.serverTimingHeadersConfig;
    }

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

    public static final class Builder {
        private ResponseHeadersPolicyArgs $;

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

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

        /**
         * @param comment A comment to describe the response headers policy. The comment cannot be longer than 128 characters.
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment A comment to describe the response headers policy. The comment cannot be longer than 128 characters.
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param corsConfig A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
         * 
         * @return builder
         * 
         */
        public Builder corsConfig(@Nullable Output corsConfig) {
            $.corsConfig = corsConfig;
            return this;
        }

        /**
         * @param corsConfig A configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
         * 
         * @return builder
         * 
         */
        public Builder corsConfig(ResponseHeadersPolicyCorsConfigArgs corsConfig) {
            return corsConfig(Output.of(corsConfig));
        }

        /**
         * @param customHeadersConfig Object that contains an attribute `items` that contains a list of custom headers. See Custom Header for more information.
         * 
         * @return builder
         * 
         */
        public Builder customHeadersConfig(@Nullable Output customHeadersConfig) {
            $.customHeadersConfig = customHeadersConfig;
            return this;
        }

        /**
         * @param customHeadersConfig Object that contains an attribute `items` that contains a list of custom headers. See Custom Header for more information.
         * 
         * @return builder
         * 
         */
        public Builder customHeadersConfig(ResponseHeadersPolicyCustomHeadersConfigArgs customHeadersConfig) {
            return customHeadersConfig(Output.of(customHeadersConfig));
        }

        /**
         * @param etag The current version of the response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag The current version of the response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @param name A unique name to identify the response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A unique name to identify the response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param removeHeadersConfig A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute `items` that contains a list of headers. See Remove Header for more information.
         * 
         * @return builder
         * 
         */
        public Builder removeHeadersConfig(@Nullable Output removeHeadersConfig) {
            $.removeHeadersConfig = removeHeadersConfig;
            return this;
        }

        /**
         * @param removeHeadersConfig A configuration for a set of HTTP headers to remove from the HTTP response. Object that contains an attribute `items` that contains a list of headers. See Remove Header for more information.
         * 
         * @return builder
         * 
         */
        public Builder removeHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfigArgs removeHeadersConfig) {
            return removeHeadersConfig(Output.of(removeHeadersConfig));
        }

        /**
         * @param securityHeadersConfig A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
         * 
         * @return builder
         * 
         */
        public Builder securityHeadersConfig(@Nullable Output securityHeadersConfig) {
            $.securityHeadersConfig = securityHeadersConfig;
            return this;
        }

        /**
         * @param securityHeadersConfig A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
         * 
         * @return builder
         * 
         */
        public Builder securityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfigArgs securityHeadersConfig) {
            return securityHeadersConfig(Output.of(securityHeadersConfig));
        }

        /**
         * @param serverTimingHeadersConfig A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
         * 
         * @return builder
         * 
         */
        public Builder serverTimingHeadersConfig(@Nullable Output serverTimingHeadersConfig) {
            $.serverTimingHeadersConfig = serverTimingHeadersConfig;
            return this;
        }

        /**
         * @param serverTimingHeadersConfig A configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
         * 
         * @return builder
         * 
         */
        public Builder serverTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfigArgs serverTimingHeadersConfig) {
            return serverTimingHeadersConfig(Output.of(serverTimingHeadersConfig));
        }

        public ResponseHeadersPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy