com.pulumi.aws.cloudfront.outputs.GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity {
/**
* @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 Boolean includeSubdomains;
/**
* @return Whether CloudFront overrides the X-XSS-Protection 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 Boolean preload;
private GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity() {}
/**
* @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 Boolean includeSubdomains() {
return this.includeSubdomains;
}
/**
* @return Whether CloudFront overrides the X-XSS-Protection 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 Boolean preload() {
return this.preload;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer accessControlMaxAgeSec;
private Boolean includeSubdomains;
private Boolean override;
private Boolean preload;
public Builder() {}
public Builder(GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity 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("GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity", "accessControlMaxAgeSec");
}
this.accessControlMaxAgeSec = accessControlMaxAgeSec;
return this;
}
@CustomType.Setter
public Builder includeSubdomains(Boolean includeSubdomains) {
if (includeSubdomains == null) {
throw new MissingRequiredPropertyException("GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity", "includeSubdomains");
}
this.includeSubdomains = includeSubdomains;
return this;
}
@CustomType.Setter
public Builder override(Boolean override) {
if (override == null) {
throw new MissingRequiredPropertyException("GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity", "override");
}
this.override = override;
return this;
}
@CustomType.Setter
public Builder preload(Boolean preload) {
if (preload == null) {
throw new MissingRequiredPropertyException("GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity", "preload");
}
this.preload = preload;
return this;
}
public GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity build() {
final var _resultValue = new GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity();
_resultValue.accessControlMaxAgeSec = accessControlMaxAgeSec;
_resultValue.includeSubdomains = includeSubdomains;
_resultValue.override = override;
_resultValue.preload = preload;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy