AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
aws.cloudfront.getResponseHeadersPolicy
Explore with Pulumi AI
Use this data source to retrieve information about a CloudFront cache policy.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.cloudfront.getResponseHeadersPolicy({
name: "example-policy",
});
import pulumi
import pulumi_aws as aws
example = aws.cloudfront.get_response_headers_policy(name="example-policy")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfront.LookupResponseHeadersPolicy(ctx, &cloudfront.LookupResponseHeadersPolicyArgs{
Name: pulumi.StringRef("example-policy"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.CloudFront.GetResponseHeadersPolicy.Invoke(new()
{
Name = "example-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudfront.CloudfrontFunctions;
import com.pulumi.aws.cloudfront.inputs.GetResponseHeadersPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = CloudfrontFunctions.getResponseHeadersPolicy(GetResponseHeadersPolicyArgs.builder()
.name("example-policy")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:cloudfront:getResponseHeadersPolicy
arguments:
name: example-policy
AWS-Managed Policies
AWS managed response header policy names are prefixed with Managed-
:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.cloudfront.getResponseHeadersPolicy({
name: "Managed-SimpleCORS",
});
import pulumi
import pulumi_aws as aws
example = aws.cloudfront.get_response_headers_policy(name="Managed-SimpleCORS")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudfront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfront.LookupResponseHeadersPolicy(ctx, &cloudfront.LookupResponseHeadersPolicyArgs{
Name: pulumi.StringRef("Managed-SimpleCORS"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.CloudFront.GetResponseHeadersPolicy.Invoke(new()
{
Name = "Managed-SimpleCORS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudfront.CloudfrontFunctions;
import com.pulumi.aws.cloudfront.inputs.GetResponseHeadersPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = CloudfrontFunctions.getResponseHeadersPolicy(GetResponseHeadersPolicyArgs.builder()
.name("Managed-SimpleCORS")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:cloudfront:getResponseHeadersPolicy
arguments:
name: Managed-SimpleCORS
Using getResponseHeadersPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResponseHeadersPolicy(args: GetResponseHeadersPolicyArgs, opts?: InvokeOptions): Promise<GetResponseHeadersPolicyResult>
function getResponseHeadersPolicyOutput(args: GetResponseHeadersPolicyOutputArgs, opts?: InvokeOptions): Output<GetResponseHeadersPolicyResult>
def get_response_headers_policy(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResponseHeadersPolicyResult
def get_response_headers_policy_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResponseHeadersPolicyResult]
func LookupResponseHeadersPolicy(ctx *Context, args *LookupResponseHeadersPolicyArgs, opts ...InvokeOption) (*LookupResponseHeadersPolicyResult, error)
func LookupResponseHeadersPolicyOutput(ctx *Context, args *LookupResponseHeadersPolicyOutputArgs, opts ...InvokeOption) LookupResponseHeadersPolicyResultOutput
> Note: This function is named LookupResponseHeadersPolicy
in the Go SDK.
public static class GetResponseHeadersPolicy
{
public static Task<GetResponseHeadersPolicyResult> InvokeAsync(GetResponseHeadersPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetResponseHeadersPolicyResult> Invoke(GetResponseHeadersPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResponseHeadersPolicyResult> getResponseHeadersPolicy(GetResponseHeadersPolicyArgs args, InvokeOptions options)
public static Output<GetResponseHeadersPolicyResult> getResponseHeadersPolicy(GetResponseHeadersPolicyArgs args, InvokeOptions options)
fn::invoke:
function: aws:cloudfront/getResponseHeadersPolicy:getResponseHeadersPolicy
arguments:
# arguments dictionary
The following arguments are supported:
getResponseHeadersPolicy Result
The following output properties are available:
- Arn string
- The response headers policy ARN.
- Comment string
- Comment to describe the response headers policy. The comment cannot be longer than 128 characters.
- Cors
Configs List<GetResponse Headers Policy Cors Config> - Configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
- Custom
Headers List<GetConfigs Response Headers Policy Custom Headers Config> - Object that contains an attribute
items
that contains a list of Custom Headers. See Custom Header for more information. - Etag string
- Current version of the response headers policy.
- Id string
- Name string
- Remove
Headers List<GetConfigs Response Headers Policy Remove Headers Config> - Object that contains an attribute
items
that contains a list of Remove Headers. See Remove Header for more information. - Security
Headers List<GetConfigs Response Headers Policy Security Headers Config> - A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
- Server
Timing List<GetHeaders Configs Response Headers Policy Server Timing Headers Config> - (Optional) Configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
- Arn string
- The response headers policy ARN.
- Comment string
- Comment to describe the response headers policy. The comment cannot be longer than 128 characters.
- Cors
Configs []GetResponse Headers Policy Cors Config - Configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
- Custom
Headers []GetConfigs Response Headers Policy Custom Headers Config - Object that contains an attribute
items
that contains a list of Custom Headers. See Custom Header for more information. - Etag string
- Current version of the response headers policy.
- Id string
- Name string
- Remove
Headers []GetConfigs Response Headers Policy Remove Headers Config - Object that contains an attribute
items
that contains a list of Remove Headers. See Remove Header for more information. - Security
Headers []GetConfigs Response Headers Policy Security Headers Config - A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
- Server
Timing []GetHeaders Configs Response Headers Policy Server Timing Headers Config - (Optional) Configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
- arn String
- The response headers policy ARN.
- comment String
- Comment to describe the response headers policy. The comment cannot be longer than 128 characters.
- cors
Configs List<GetResponse Headers Policy Cors Config> - Configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
- custom
Headers List<GetConfigs Response Headers Policy Custom Headers Config> - Object that contains an attribute
items
that contains a list of Custom Headers. See Custom Header for more information. - etag String
- Current version of the response headers policy.
- id String
- name String
- remove
Headers List<GetConfigs Response Headers Policy Remove Headers Config> - Object that contains an attribute
items
that contains a list of Remove Headers. See Remove Header for more information. - security
Headers List<GetConfigs Response Headers Policy Security Headers Config> - A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
- server
Timing List<GetHeaders Configs Response Headers Policy Server Timing Headers Config> - (Optional) Configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
- arn string
- The response headers policy ARN.
- comment string
- Comment to describe the response headers policy. The comment cannot be longer than 128 characters.
- cors
Configs GetResponse Headers Policy Cors Config[] - Configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
- custom
Headers GetConfigs Response Headers Policy Custom Headers Config[] - Object that contains an attribute
items
that contains a list of Custom Headers. See Custom Header for more information. - etag string
- Current version of the response headers policy.
- id string
- name string
- remove
Headers GetConfigs Response Headers Policy Remove Headers Config[] - Object that contains an attribute
items
that contains a list of Remove Headers. See Remove Header for more information. - security
Headers GetConfigs Response Headers Policy Security Headers Config[] - A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
- server
Timing GetHeaders Configs Response Headers Policy Server Timing Headers Config[] - (Optional) Configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
- arn str
- The response headers policy ARN.
- comment str
- Comment to describe the response headers policy. The comment cannot be longer than 128 characters.
- cors_
configs Sequence[GetResponse Headers Policy Cors Config] - Configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
- custom_
headers_ Sequence[Getconfigs Response Headers Policy Custom Headers Config] - Object that contains an attribute
items
that contains a list of Custom Headers. See Custom Header for more information. - etag str
- Current version of the response headers policy.
- id str
- name str
- remove_
headers_ Sequence[Getconfigs Response Headers Policy Remove Headers Config] - Object that contains an attribute
items
that contains a list of Remove Headers. See Remove Header for more information. - security_
headers_ Sequence[Getconfigs Response Headers Policy Security Headers Config] - A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
- server_
timing_ Sequence[Getheaders_ configs Response Headers Policy Server Timing Headers Config] - (Optional) Configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
- arn String
- The response headers policy ARN.
- comment String
- Comment to describe the response headers policy. The comment cannot be longer than 128 characters.
- cors
Configs List<Property Map> - Configuration for a set of HTTP response headers that are used for Cross-Origin Resource Sharing (CORS). See Cors Config for more information.
- custom
Headers List<Property Map>Configs - Object that contains an attribute
items
that contains a list of Custom Headers. See Custom Header for more information. - etag String
- Current version of the response headers policy.
- id String
- name String
- remove
Headers List<Property Map>Configs - Object that contains an attribute
items
that contains a list of Remove Headers. See Remove Header for more information. - security
Headers List<Property Map>Configs - A configuration for a set of security-related HTTP response headers. See Security Headers Config for more information.
- server
Timing List<Property Map>Headers Configs - (Optional) Configuration for enabling the Server-Timing header in HTTP responses sent from CloudFront. See Server Timing Headers Config for more information.
Supporting Types
GetResponseHeadersPolicyCorsConfig
- Access
Control Allow Credentials This property is required. bool - A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
- Access
Control Allow Headers This property is required. List<GetResponse Headers Policy Cors Config Access Control Allow Header> - Object that contains an attribute
items
that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - Access
Control Allow Methods This property is required. List<GetResponse Headers Policy Cors Config Access Control Allow Method> - Object that contains an attribute
items
that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values:GET
|POST
|OPTIONS
|PUT
|DELETE
|HEAD
|ALL
- Access
Control Allow Origins This property is required. List<GetResponse Headers Policy Cors Config Access Control Allow Origin> - Object that contains an attribute
items
that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - Access
Control Expose Headers This property is required. List<GetResponse Headers Policy Cors Config Access Control Expose Header> - Object that contains an attribute
items
that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - Access
Control Max Age Sec This property is required. int - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- Origin
Override This property is required. bool
- Access
Control Allow Credentials This property is required. bool - A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
- Access
Control Allow Headers This property is required. []GetResponse Headers Policy Cors Config Access Control Allow Header - Object that contains an attribute
items
that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - Access
Control Allow Methods This property is required. []GetResponse Headers Policy Cors Config Access Control Allow Method - Object that contains an attribute
items
that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values:GET
|POST
|OPTIONS
|PUT
|DELETE
|HEAD
|ALL
- Access
Control Allow Origins This property is required. []GetResponse Headers Policy Cors Config Access Control Allow Origin - Object that contains an attribute
items
that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - Access
Control Expose Headers This property is required. []GetResponse Headers Policy Cors Config Access Control Expose Header - Object that contains an attribute
items
that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - Access
Control Max Age Sec This property is required. int - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- Origin
Override This property is required. bool
- access
Control Allow Credentials This property is required. Boolean - A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
- access
Control Allow Headers This property is required. List<GetResponse Headers Policy Cors Config Access Control Allow Header> - Object that contains an attribute
items
that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - access
Control Allow Methods This property is required. List<GetResponse Headers Policy Cors Config Access Control Allow Method> - Object that contains an attribute
items
that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values:GET
|POST
|OPTIONS
|PUT
|DELETE
|HEAD
|ALL
- access
Control Allow Origins This property is required. List<GetResponse Headers Policy Cors Config Access Control Allow Origin> - Object that contains an attribute
items
that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - access
Control Expose Headers This property is required. List<GetResponse Headers Policy Cors Config Access Control Expose Header> - Object that contains an attribute
items
that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - access
Control Max Age Sec This property is required. Integer - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- origin
Override This property is required. Boolean
- access
Control Allow Credentials This property is required. boolean - A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
- access
Control Allow Headers This property is required. GetResponse Headers Policy Cors Config Access Control Allow Header[] - Object that contains an attribute
items
that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - access
Control Allow Methods This property is required. GetResponse Headers Policy Cors Config Access Control Allow Method[] - Object that contains an attribute
items
that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values:GET
|POST
|OPTIONS
|PUT
|DELETE
|HEAD
|ALL
- access
Control Allow Origins This property is required. GetResponse Headers Policy Cors Config Access Control Allow Origin[] - Object that contains an attribute
items
that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - access
Control Expose Headers This property is required. GetResponse Headers Policy Cors Config Access Control Expose Header[] - Object that contains an attribute
items
that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - access
Control Max Age Sec This property is required. number - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- origin
Override This property is required. boolean
- access_
control_ allow_ credentials This property is required. bool - A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
- access_
control_ allow_ headers This property is required. Sequence[GetResponse Headers Policy Cors Config Access Control Allow Header] - Object that contains an attribute
items
that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - access_
control_ allow_ methods This property is required. Sequence[GetResponse Headers Policy Cors Config Access Control Allow Method] - Object that contains an attribute
items
that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values:GET
|POST
|OPTIONS
|PUT
|DELETE
|HEAD
|ALL
- access_
control_ allow_ origins This property is required. Sequence[GetResponse Headers Policy Cors Config Access Control Allow Origin] - Object that contains an attribute
items
that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - access_
control_ expose_ headers This property is required. Sequence[GetResponse Headers Policy Cors Config Access Control Expose Header] - Object that contains an attribute
items
that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - access_
control_ max_ age_ sec This property is required. int - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- origin_
override This property is required. bool
- access
Control Allow Credentials This property is required. Boolean - A Boolean value that CloudFront uses as the value for the Access-Control-Allow-Credentials HTTP response header.
- access
Control Allow Headers This property is required. List<Property Map> - Object that contains an attribute
items
that contains a list of HTTP header names that CloudFront includes as values for the Access-Control-Allow-Headers HTTP response header. - access
Control Allow Methods This property is required. List<Property Map> - Object that contains an attribute
items
that contains a list of HTTP methods that CloudFront includes as values for the Access-Control-Allow-Methods HTTP response header. Valid values:GET
|POST
|OPTIONS
|PUT
|DELETE
|HEAD
|ALL
- access
Control Allow Origins This property is required. List<Property Map> - Object that contains an attribute
items
that contains a list of origins that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header. - access
Control Expose Headers This property is required. List<Property Map> - Object that contains an attribute
items
that contains a list of HTTP headers that CloudFront includes as values for the Access-Control-Expose-Headers HTTP response header. - access
Control Max Age Sec This property is required. Number - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- origin
Override This property is required. Boolean
GetResponseHeadersPolicyCorsConfigAccessControlAllowHeader
- Items
This property is required. List<string>
- Items
This property is required. []string
- items
This property is required. List<String>
- items
This property is required. string[]
- items
This property is required. Sequence[str]
- items
This property is required. List<String>
GetResponseHeadersPolicyCorsConfigAccessControlAllowMethod
- Items
This property is required. List<string>
- Items
This property is required. []string
- items
This property is required. List<String>
- items
This property is required. string[]
- items
This property is required. Sequence[str]
- items
This property is required. List<String>
GetResponseHeadersPolicyCorsConfigAccessControlAllowOrigin
- Items
This property is required. List<string>
- Items
This property is required. []string
- items
This property is required. List<String>
- items
This property is required. string[]
- items
This property is required. Sequence[str]
- items
This property is required. List<String>
GetResponseHeadersPolicyCorsConfigAccessControlExposeHeader
- Items
This property is required. List<string>
- Items
This property is required. []string
- items
This property is required. List<String>
- items
This property is required. string[]
- items
This property is required. Sequence[str]
- items
This property is required. List<String>
GetResponseHeadersPolicyCustomHeadersConfig
- Items
This property is required. List<GetResponse Headers Policy Custom Headers Config Item>
- Items
This property is required. []GetResponse Headers Policy Custom Headers Config Item
- items
This property is required. List<GetResponse Headers Policy Custom Headers Config Item>
- items
This property is required. GetResponse Headers Policy Custom Headers Config Item[]
- items
This property is required. Sequence[GetResponse Headers Policy Custom Headers Config Item]
- items
This property is required. List<Property Map>
GetResponseHeadersPolicyCustomHeadersConfigItem
- Header
This property is required. string - The HTTP header name.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Value
This property is required. string - Value for the HTTP response header.
- Header
This property is required. string - The HTTP header name.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Value
This property is required. string - Value for the HTTP response header.
- header
This property is required. String - The HTTP header name.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- value
This property is required. String - Value for the HTTP response header.
- header
This property is required. string - The HTTP header name.
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- value
This property is required. string - Value for the HTTP response header.
- header
This property is required. str - The HTTP header name.
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- value
This property is required. str - Value for the HTTP response header.
- header
This property is required. String - The HTTP header name.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- value
This property is required. String - Value for the HTTP response header.
GetResponseHeadersPolicyRemoveHeadersConfig
- Items
This property is required. List<GetResponse Headers Policy Remove Headers Config Item>
- Items
This property is required. []GetResponse Headers Policy Remove Headers Config Item
- items
This property is required. List<GetResponse Headers Policy Remove Headers Config Item>
- items
This property is required. GetResponse Headers Policy Remove Headers Config Item[]
- items
This property is required. Sequence[GetResponse Headers Policy Remove Headers Config Item]
- items
This property is required. List<Property Map>
GetResponseHeadersPolicyRemoveHeadersConfigItem
- Header
This property is required. string - The HTTP header name.
- Header
This property is required. string - The HTTP header name.
- header
This property is required. String - The HTTP header name.
- header
This property is required. string - The HTTP header name.
- header
This property is required. str - The HTTP header name.
- header
This property is required. String - The HTTP header name.
GetResponseHeadersPolicySecurityHeadersConfig
- Content
Security Policies This property is required. List<GetResponse Headers Policy Security Headers Config Content Security Policy> - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- Content
Type Options This property is required. List<GetResponse Headers Policy Security Headers Config Content Type Option> - A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information.
- Frame
Options This property is required. List<GetResponse Headers Policy Security Headers Config Frame Option> - Setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information.
- Referrer
Policies This property is required. List<GetResponse Headers Policy Security Headers Config Referrer Policy> - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- Strict
Transport Securities This property is required. List<GetResponse Headers Policy Security Headers Config Strict Transport Security> - Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information.
- Xss
Protections This property is required. List<GetResponse Headers Policy Security Headers Config Xss Protection> - Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information.
- Content
Security Policies This property is required. []GetResponse Headers Policy Security Headers Config Content Security Policy - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- Content
Type Options This property is required. []GetResponse Headers Policy Security Headers Config Content Type Option - A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information.
- Frame
Options This property is required. []GetResponse Headers Policy Security Headers Config Frame Option - Setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information.
- Referrer
Policies This property is required. []GetResponse Headers Policy Security Headers Config Referrer Policy - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- Strict
Transport Securities This property is required. []GetResponse Headers Policy Security Headers Config Strict Transport Security - Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information.
- Xss
Protections This property is required. []GetResponse Headers Policy Security Headers Config Xss Protection - Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information.
- content
Security Policies This property is required. List<GetResponse Headers Policy Security Headers Config Content Security Policy> - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- content
Type Options This property is required. List<GetResponse Headers Policy Security Headers Config Content Type Option> - A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information.
- frame
Options This property is required. List<GetResponse Headers Policy Security Headers Config Frame Option> - Setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information.
- referrer
Policies This property is required. List<GetResponse Headers Policy Security Headers Config Referrer Policy> - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- strict
Transport Securities This property is required. List<GetResponse Headers Policy Security Headers Config Strict Transport Security> - Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information.
- xss
Protections This property is required. List<GetResponse Headers Policy Security Headers Config Xss Protection> - Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information.
- content
Security Policies This property is required. GetResponse Headers Policy Security Headers Config Content Security Policy[] - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- content
Type Options This property is required. GetResponse Headers Policy Security Headers Config Content Type Option[] - A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information.
- frame
Options This property is required. GetResponse Headers Policy Security Headers Config Frame Option[] - Setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information.
- referrer
Policies This property is required. GetResponse Headers Policy Security Headers Config Referrer Policy[] - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- strict
Transport Securities This property is required. GetResponse Headers Policy Security Headers Config Strict Transport Security[] - Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information.
- xss
Protections This property is required. GetResponse Headers Policy Security Headers Config Xss Protection[] - Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information.
- content_
security_ policies This property is required. Sequence[GetResponse Headers Policy Security Headers Config Content Security Policy] - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- content_
type_ options This property is required. Sequence[GetResponse Headers Policy Security Headers Config Content Type Option] - A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information.
- frame_
options This property is required. Sequence[GetResponse Headers Policy Security Headers Config Frame Option] - Setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information.
- referrer_
policies This property is required. Sequence[GetResponse Headers Policy Security Headers Config Referrer Policy] - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- strict_
transport_ securities This property is required. Sequence[GetResponse Headers Policy Security Headers Config Strict Transport Security] - Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information.
- xss_
protections This property is required. Sequence[GetResponse Headers Policy Security Headers Config Xss Protection] - Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information.
- content
Security Policies This property is required. List<Property Map> - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- content
Type Options This property is required. List<Property Map> - A setting that determines whether CloudFront includes the X-Content-Type-Options HTTP response header with its value set to nosniff. See Content Type Options for more information.
- frame
Options This property is required. List<Property Map> - Setting that determines whether CloudFront includes the X-Frame-Options HTTP response header and the header’s value. See Frame Options for more information.
- referrer
Policies This property is required. List<Property Map> - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- strict
Transport Securities This property is required. List<Property Map> - Settings that determine whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value. See Strict Transport Security for more information.
- xss
Protections This property is required. List<Property Map> - Settings that determine whether CloudFront includes the X-XSS-Protection HTTP response header and the header’s value. See XSS Protection for more information.
GetResponseHeadersPolicySecurityHeadersConfigContentSecurityPolicy
- Content
Security Policy This property is required. string - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Content
Security Policy This property is required. string - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- content
Security Policy This property is required. String - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- content
Security Policy This property is required. string - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- content_
security_ policy This property is required. str - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- content
Security Policy This property is required. String - The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
GetResponseHeadersPolicySecurityHeadersConfigContentTypeOption
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
GetResponseHeadersPolicySecurityHeadersConfigFrameOption
- Frame
Option This property is required. string - Value of the X-Frame-Options HTTP response header. Valid values:
DENY
|SAMEORIGIN
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Frame
Option This property is required. string - Value of the X-Frame-Options HTTP response header. Valid values:
DENY
|SAMEORIGIN
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- frame
Option This property is required. String - Value of the X-Frame-Options HTTP response header. Valid values:
DENY
|SAMEORIGIN
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- frame
Option This property is required. string - Value of the X-Frame-Options HTTP response header. Valid values:
DENY
|SAMEORIGIN
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- frame_
option This property is required. str - Value of the X-Frame-Options HTTP response header. Valid values:
DENY
|SAMEORIGIN
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- frame
Option This property is required. String - Value of the X-Frame-Options HTTP response header. Valid values:
DENY
|SAMEORIGIN
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
GetResponseHeadersPolicySecurityHeadersConfigReferrerPolicy
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Referrer
Policy This property is required. string - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Referrer
Policy This property is required. string - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- referrer
Policy This property is required. String - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- referrer
Policy This property is required. string - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- referrer_
policy This property is required. str - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- referrer
Policy This property is required. String - Value of the Referrer-Policy HTTP response header. Valid Values:
no-referrer
|no-referrer-when-downgrade
|origin
|origin-when-cross-origin
|same-origin
|strict-origin
|strict-origin-when-cross-origin
|unsafe-url
GetResponseHeadersPolicySecurityHeadersConfigStrictTransportSecurity
- Access
Control Max Age Sec This property is required. int - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- Include
Subdomains This property is required. bool - Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Preload
This property is required. bool - Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
- Access
Control Max Age Sec This property is required. int - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- Include
Subdomains This property is required. bool - Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Preload
This property is required. bool - Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
- access
Control Max Age Sec This property is required. Integer - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- include
Subdomains This property is required. Boolean - Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- preload
This property is required. Boolean - Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
- access
Control Max Age Sec This property is required. number - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- include
Subdomains This property is required. boolean - Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- preload
This property is required. boolean - Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
- access_
control_ max_ age_ sec This property is required. int - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- include_
subdomains This property is required. bool - Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- preload
This property is required. bool - Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
- access
Control Max Age Sec This property is required. Number - A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.
- include
Subdomains This property is required. Boolean - Whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- preload
This property is required. Boolean - Whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.
GetResponseHeadersPolicySecurityHeadersConfigXssProtection
- Mode
Block This property is required. bool - Whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Protection
This property is required. bool - 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.
- Report
Uri This property is required. string - Whether CloudFront sets a reporting URI in the X-XSS-Protection header.
- Mode
Block This property is required. bool - Whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
- Override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- Protection
This property is required. bool - 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.
- Report
Uri This property is required. string - Whether CloudFront sets a reporting URI in the X-XSS-Protection header.
- mode
Block This property is required. Boolean - Whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- protection
This property is required. Boolean - 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.
- report
Uri This property is required. String - Whether CloudFront sets a reporting URI in the X-XSS-Protection header.
- mode
Block This property is required. boolean - Whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
- override
This property is required. boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- protection
This property is required. boolean - 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.
- report
Uri This property is required. string - Whether CloudFront sets a reporting URI in the X-XSS-Protection header.
- mode_
block This property is required. bool - Whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
- override
This property is required. bool - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- protection
This property is required. bool - 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.
- report_
uri This property is required. str - Whether CloudFront sets a reporting URI in the X-XSS-Protection header.
- mode
Block This property is required. Boolean - Whether CloudFront includes the mode=block directive in the X-XSS-Protection header.
- override
This property is required. Boolean - Whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
- protection
This property is required. Boolean - 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.
- report
Uri This property is required. String - Whether CloudFront sets a reporting URI in the X-XSS-Protection header.
GetResponseHeadersPolicyServerTimingHeadersConfig
- Enabled
This property is required. bool - Whether CloudFront adds the
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - Sampling
Rate This property is required. double - Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
- Enabled
This property is required. bool - Whether CloudFront adds the
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - Sampling
Rate This property is required. float64 - Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
- enabled
This property is required. Boolean - Whether CloudFront adds the
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - sampling
Rate This property is required. Double - Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
- enabled
This property is required. boolean - Whether CloudFront adds the
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - sampling
Rate This property is required. number - Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
- enabled
This property is required. bool - Whether CloudFront adds the
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - sampling_
rate This property is required. float - Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
- enabled
This property is required. Boolean - Whether CloudFront adds the
Server-Timing
header to HTTP responses that it sends in response to requests that match a cache behavior that's associated with this response headers policy. - sampling
Rate This property is required. Number - Number 0–100 (inclusive) that specifies the percentage of responses that you want CloudFront to add the Server-Timing header to.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.