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

com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs 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.inputs;

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


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

    public static final ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs Empty = new ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs();

    /**
     * A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    @Import(name="accessControlMaxAgeSec", required=true)
    private Output accessControlMaxAgeSec;

    /**
     * @return A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    public Output accessControlMaxAgeSec() {
        return this.accessControlMaxAgeSec;
    }

    /**
     * Whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    @Import(name="includeSubdomains")
    private @Nullable Output includeSubdomains;

    /**
     * @return Whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    public Optional> includeSubdomains() {
        return Optional.ofNullable(this.includeSubdomains);
    }

    /**
     * Whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
     * 
     */
    @Import(name="override", required=true)
    private Output override;

    /**
     * @return Whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
     * 
     */
    public Output override() {
        return this.override;
    }

    /**
     * Whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    @Import(name="preload")
    private @Nullable Output preload;

    /**
     * @return Whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    public Optional> preload() {
        return Optional.ofNullable(this.preload);
    }

    private ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs() {}

    private ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs(ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs $) {
        this.accessControlMaxAgeSec = $.accessControlMaxAgeSec;
        this.includeSubdomains = $.includeSubdomains;
        this.override = $.override;
        this.preload = $.preload;
    }

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

    public static final class Builder {
        private ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs $;

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

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

        /**
         * @param accessControlMaxAgeSec A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder accessControlMaxAgeSec(Output accessControlMaxAgeSec) {
            $.accessControlMaxAgeSec = accessControlMaxAgeSec;
            return this;
        }

        /**
         * @param accessControlMaxAgeSec A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder accessControlMaxAgeSec(Integer accessControlMaxAgeSec) {
            return accessControlMaxAgeSec(Output.of(accessControlMaxAgeSec));
        }

        /**
         * @param includeSubdomains Whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder includeSubdomains(@Nullable Output includeSubdomains) {
            $.includeSubdomains = includeSubdomains;
            return this;
        }

        /**
         * @param includeSubdomains Whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder includeSubdomains(Boolean includeSubdomains) {
            return includeSubdomains(Output.of(includeSubdomains));
        }

        /**
         * @param override Whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder override(Output override) {
            $.override = override;
            return this;
        }

        /**
         * @param override Whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
         * 
         * @return builder
         * 
         */
        public Builder override(Boolean override) {
            return override(Output.of(override));
        }

        /**
         * @param preload Whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder preload(@Nullable Output preload) {
            $.preload = preload;
            return this;
        }

        /**
         * @param preload Whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
         * 
         * @return builder
         * 
         */
        public Builder preload(Boolean preload) {
            return preload(Output.of(preload));
        }

        public ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs build() {
            if ($.accessControlMaxAgeSec == null) {
                throw new MissingRequiredPropertyException("ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs", "accessControlMaxAgeSec");
            }
            if ($.override == null) {
                throw new MissingRequiredPropertyException("ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurityArgs", "override");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy