Package com.pulumi.aws.cloudfront.inputs
Class ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.cloudfront.inputs.ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder
-
- Enclosing class:
- ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs
public static final class ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs defaults)
-
-
Method Detail
-
modeBlock
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder modeBlock(@Nullable com.pulumi.core.Output<java.lang.Boolean> modeBlock)
- Parameters:
modeBlock- Whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header.- Returns:
- builder
-
modeBlock
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder modeBlock(java.lang.Boolean modeBlock)
- Parameters:
modeBlock- Whether CloudFront includes the `mode=block` directive in the `X-XSS-Protection` header.- Returns:
- builder
-
override
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder override(com.pulumi.core.Output<java.lang.Boolean> override)
- Parameters:
override- Whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy.- Returns:
- builder
-
override
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder override(java.lang.Boolean override)
- Parameters:
override- Whether CloudFront overrides the `X-XSS-Protection` HTTP response header received from the origin with the one specified in this response headers policy.- Returns:
- builder
-
protection
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder protection(com.pulumi.core.Output<java.lang.Boolean> protection)
- Parameters:
protection- A Boolean value that determines the value of the `X-XSS-Protection` HTTP response header. When this setting is `true`, the value of the `X-XSS-Protection` header is `1`. When this setting is `false`, the value of the `X-XSS-Protection` header is `0`.- Returns:
- builder
-
protection
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder protection(java.lang.Boolean protection)
- Parameters:
protection- A Boolean value that determines the value of the `X-XSS-Protection` HTTP response header. When this setting is `true`, the value of the `X-XSS-Protection` header is `1`. When this setting is `false`, the value of the `X-XSS-Protection` header is `0`.- Returns:
- builder
-
reportUri
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder reportUri(@Nullable com.pulumi.core.Output<java.lang.String> reportUri)
- Parameters:
reportUri- A reporting URI, which CloudFront uses as the value of the report directive in the `X-XSS-Protection` header. You cannot specify a `reportUri` when `modeBlock` is `true`.- Returns:
- builder
-
reportUri
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs.Builder reportUri(java.lang.String reportUri)
- Parameters:
reportUri- A reporting URI, which CloudFront uses as the value of the report directive in the `X-XSS-Protection` header. You cannot specify a `reportUri` when `modeBlock` is `true`.- Returns:
- builder
-
build
public ResponseHeadersPolicySecurityHeadersConfigXssProtectionArgs build()
-
-