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

com.pulumi.aws.cloudfront.outputs.ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity 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.cloudfront.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity {
    /**
     * @return A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    private Integer accessControlMaxAgeSec;
    /**
     * @return Whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    private @Nullable Boolean includeSubdomains;
    /**
     * @return Whether CloudFront overrides the `Strict-Transport-Security` HTTP response header received from the origin with the one specified in this response headers policy.
     * 
     */
    private Boolean override;
    /**
     * @return Whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    private @Nullable Boolean preload;

    private ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity() {}
    /**
     * @return A number that CloudFront uses as the value for the `max-age` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    public Integer accessControlMaxAgeSec() {
        return this.accessControlMaxAgeSec;
    }
    /**
     * @return Whether CloudFront includes the `includeSubDomains` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    public Optional includeSubdomains() {
        return Optional.ofNullable(this.includeSubdomains);
    }
    /**
     * @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 Boolean override() {
        return this.override;
    }
    /**
     * @return Whether CloudFront includes the `preload` directive in the `Strict-Transport-Security` HTTP response header.
     * 
     */
    public Optional preload() {
        return Optional.ofNullable(this.preload);
    }

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

    public static Builder builder(ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer accessControlMaxAgeSec;
        private @Nullable Boolean includeSubdomains;
        private Boolean override;
        private @Nullable Boolean preload;
        public Builder() {}
        public Builder(ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessControlMaxAgeSec = defaults.accessControlMaxAgeSec;
    	      this.includeSubdomains = defaults.includeSubdomains;
    	      this.override = defaults.override;
    	      this.preload = defaults.preload;
        }

        @CustomType.Setter
        public Builder accessControlMaxAgeSec(Integer accessControlMaxAgeSec) {
            if (accessControlMaxAgeSec == null) {
              throw new MissingRequiredPropertyException("ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity", "accessControlMaxAgeSec");
            }
            this.accessControlMaxAgeSec = accessControlMaxAgeSec;
            return this;
        }
        @CustomType.Setter
        public Builder includeSubdomains(@Nullable Boolean includeSubdomains) {

            this.includeSubdomains = includeSubdomains;
            return this;
        }
        @CustomType.Setter
        public Builder override(Boolean override) {
            if (override == null) {
              throw new MissingRequiredPropertyException("ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity", "override");
            }
            this.override = override;
            return this;
        }
        @CustomType.Setter
        public Builder preload(@Nullable Boolean preload) {

            this.preload = preload;
            return this;
        }
        public ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity build() {
            final var _resultValue = new ResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity();
            _resultValue.accessControlMaxAgeSec = accessControlMaxAgeSec;
            _resultValue.includeSubdomains = includeSubdomains;
            _resultValue.override = override;
            _resultValue.preload = preload;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy