aws_cloudfront_response_headers_policy

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Comment: string, optional
	Comment terra.StringValue `hcl:"comment,attr"`
	// Etag: string, optional
	Etag terra.StringValue `hcl:"etag,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// CorsConfig: optional
	CorsConfig *CorsConfig `hcl:"cors_config,block"`
	// CustomHeadersConfig: optional
	CustomHeadersConfig *CustomHeadersConfig `hcl:"custom_headers_config,block"`
	// RemoveHeadersConfig: optional
	RemoveHeadersConfig *RemoveHeadersConfig `hcl:"remove_headers_config,block"`
	// SecurityHeadersConfig: optional
	SecurityHeadersConfig *SecurityHeadersConfig `hcl:"security_headers_config,block"`
	// ServerTimingHeadersConfig: optional
	ServerTimingHeadersConfig *ServerTimingHeadersConfig `hcl:"server_timing_headers_config,block"`
}

Args contains the configurations for aws_cloudfront_response_headers_policy.

type CorsConfig

type CorsConfig struct {
	// AccessControlAllowCredentials: bool, required
	AccessControlAllowCredentials terra.BoolValue `hcl:"access_control_allow_credentials,attr" validate:"required"`
	// AccessControlMaxAgeSec: number, optional
	AccessControlMaxAgeSec terra.NumberValue `hcl:"access_control_max_age_sec,attr"`
	// OriginOverride: bool, required
	OriginOverride terra.BoolValue `hcl:"origin_override,attr" validate:"required"`
	// CorsConfigAccessControlAllowHeaders: required
	AccessControlAllowHeaders *CorsConfigAccessControlAllowHeaders `hcl:"access_control_allow_headers,block" validate:"required"`
	// CorsConfigAccessControlAllowMethods: required
	AccessControlAllowMethods *CorsConfigAccessControlAllowMethods `hcl:"access_control_allow_methods,block" validate:"required"`
	// CorsConfigAccessControlAllowOrigins: required
	AccessControlAllowOrigins *CorsConfigAccessControlAllowOrigins `hcl:"access_control_allow_origins,block" validate:"required"`
	// CorsConfigAccessControlExposeHeaders: optional
	AccessControlExposeHeaders *CorsConfigAccessControlExposeHeaders `hcl:"access_control_expose_headers,block"`
}

type CorsConfigAccessControlAllowHeaders

type CorsConfigAccessControlAllowHeaders struct {
	// Items: set of string, optional
	Items terra.SetValue[terra.StringValue] `hcl:"items,attr"`
}

type CorsConfigAccessControlAllowHeadersAttributes

type CorsConfigAccessControlAllowHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (CorsConfigAccessControlAllowHeadersAttributes) InternalRef

func (CorsConfigAccessControlAllowHeadersAttributes) InternalTokens

func (CorsConfigAccessControlAllowHeadersAttributes) InternalWithRef

func (CorsConfigAccessControlAllowHeadersAttributes) Items

type CorsConfigAccessControlAllowHeadersState

type CorsConfigAccessControlAllowHeadersState struct {
	Items []string `json:"items"`
}

type CorsConfigAccessControlAllowMethods

type CorsConfigAccessControlAllowMethods struct {
	// Items: set of string, optional
	Items terra.SetValue[terra.StringValue] `hcl:"items,attr"`
}

type CorsConfigAccessControlAllowMethodsAttributes

type CorsConfigAccessControlAllowMethodsAttributes struct {
	// contains filtered or unexported fields
}

func (CorsConfigAccessControlAllowMethodsAttributes) InternalRef

func (CorsConfigAccessControlAllowMethodsAttributes) InternalTokens

func (CorsConfigAccessControlAllowMethodsAttributes) InternalWithRef

func (CorsConfigAccessControlAllowMethodsAttributes) Items

type CorsConfigAccessControlAllowMethodsState

type CorsConfigAccessControlAllowMethodsState struct {
	Items []string `json:"items"`
}

type CorsConfigAccessControlAllowOrigins

type CorsConfigAccessControlAllowOrigins struct {
	// Items: set of string, optional
	Items terra.SetValue[terra.StringValue] `hcl:"items,attr"`
}

type CorsConfigAccessControlAllowOriginsAttributes

type CorsConfigAccessControlAllowOriginsAttributes struct {
	// contains filtered or unexported fields
}

func (CorsConfigAccessControlAllowOriginsAttributes) InternalRef

func (CorsConfigAccessControlAllowOriginsAttributes) InternalTokens

func (CorsConfigAccessControlAllowOriginsAttributes) InternalWithRef

func (CorsConfigAccessControlAllowOriginsAttributes) Items

type CorsConfigAccessControlAllowOriginsState

type CorsConfigAccessControlAllowOriginsState struct {
	Items []string `json:"items"`
}

type CorsConfigAccessControlExposeHeaders

type CorsConfigAccessControlExposeHeaders struct {
	// Items: set of string, optional
	Items terra.SetValue[terra.StringValue] `hcl:"items,attr"`
}

type CorsConfigAccessControlExposeHeadersAttributes

type CorsConfigAccessControlExposeHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (CorsConfigAccessControlExposeHeadersAttributes) InternalRef

func (CorsConfigAccessControlExposeHeadersAttributes) InternalTokens

func (CorsConfigAccessControlExposeHeadersAttributes) InternalWithRef

func (CorsConfigAccessControlExposeHeadersAttributes) Items

type CorsConfigAccessControlExposeHeadersState

type CorsConfigAccessControlExposeHeadersState struct {
	Items []string `json:"items"`
}

type CorsConfigAttributes

type CorsConfigAttributes struct {
	// contains filtered or unexported fields
}

func (CorsConfigAttributes) AccessControlAllowCredentials

func (cc CorsConfigAttributes) AccessControlAllowCredentials() terra.BoolValue

func (CorsConfigAttributes) AccessControlAllowHeaders

func (CorsConfigAttributes) AccessControlAllowMethods

func (CorsConfigAttributes) AccessControlAllowOrigins

func (CorsConfigAttributes) AccessControlExposeHeaders

func (CorsConfigAttributes) AccessControlMaxAgeSec

func (cc CorsConfigAttributes) AccessControlMaxAgeSec() terra.NumberValue

func (CorsConfigAttributes) InternalRef

func (cc CorsConfigAttributes) InternalRef() (terra.Reference, error)

func (CorsConfigAttributes) InternalTokens

func (cc CorsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CorsConfigAttributes) InternalWithRef

func (cc CorsConfigAttributes) InternalWithRef(ref terra.Reference) CorsConfigAttributes

func (CorsConfigAttributes) OriginOverride

func (cc CorsConfigAttributes) OriginOverride() terra.BoolValue

type CorsConfigState

type CorsConfigState struct {
	AccessControlAllowCredentials bool                                        `json:"access_control_allow_credentials"`
	AccessControlMaxAgeSec        float64                                     `json:"access_control_max_age_sec"`
	OriginOverride                bool                                        `json:"origin_override"`
	AccessControlAllowHeaders     []CorsConfigAccessControlAllowHeadersState  `json:"access_control_allow_headers"`
	AccessControlAllowMethods     []CorsConfigAccessControlAllowMethodsState  `json:"access_control_allow_methods"`
	AccessControlAllowOrigins     []CorsConfigAccessControlAllowOriginsState  `json:"access_control_allow_origins"`
	AccessControlExposeHeaders    []CorsConfigAccessControlExposeHeadersState `json:"access_control_expose_headers"`
}

type CustomHeadersConfig

type CustomHeadersConfig struct {
	// CustomHeadersConfigItems: min=0
	Items []CustomHeadersConfigItems `hcl:"items,block" validate:"min=0"`
}

type CustomHeadersConfigAttributes

type CustomHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (CustomHeadersConfigAttributes) InternalRef

func (chc CustomHeadersConfigAttributes) InternalRef() (terra.Reference, error)

func (CustomHeadersConfigAttributes) InternalTokens

func (chc CustomHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomHeadersConfigAttributes) InternalWithRef

func (CustomHeadersConfigAttributes) Items

type CustomHeadersConfigItems

type CustomHeadersConfigItems struct {
	// Header: string, required
	Header terra.StringValue `hcl:"header,attr" validate:"required"`
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type CustomHeadersConfigItemsAttributes

type CustomHeadersConfigItemsAttributes struct {
	// contains filtered or unexported fields
}

func (CustomHeadersConfigItemsAttributes) Header

func (CustomHeadersConfigItemsAttributes) InternalRef

func (CustomHeadersConfigItemsAttributes) InternalTokens

func (CustomHeadersConfigItemsAttributes) InternalWithRef

func (CustomHeadersConfigItemsAttributes) Override

func (CustomHeadersConfigItemsAttributes) Value

type CustomHeadersConfigItemsState

type CustomHeadersConfigItemsState struct {
	Header   string `json:"header"`
	Override bool   `json:"override"`
	Value    string `json:"value"`
}

type CustomHeadersConfigState

type CustomHeadersConfigState struct {
	Items []CustomHeadersConfigItemsState `json:"items"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
}

DataArgs contains the configurations for aws_cloudfront_response_headers_policy.

type DataCorsConfigAccessControlAllowHeadersAttributes

type DataCorsConfigAccessControlAllowHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (DataCorsConfigAccessControlAllowHeadersAttributes) InternalRef

func (DataCorsConfigAccessControlAllowHeadersAttributes) InternalTokens

func (DataCorsConfigAccessControlAllowHeadersAttributes) InternalWithRef

func (DataCorsConfigAccessControlAllowHeadersAttributes) Items

type DataCorsConfigAccessControlAllowHeadersState

type DataCorsConfigAccessControlAllowHeadersState struct {
	Items []string `json:"items"`
}

type DataCorsConfigAccessControlAllowMethodsAttributes

type DataCorsConfigAccessControlAllowMethodsAttributes struct {
	// contains filtered or unexported fields
}

func (DataCorsConfigAccessControlAllowMethodsAttributes) InternalRef

func (DataCorsConfigAccessControlAllowMethodsAttributes) InternalTokens

func (DataCorsConfigAccessControlAllowMethodsAttributes) InternalWithRef

func (DataCorsConfigAccessControlAllowMethodsAttributes) Items

type DataCorsConfigAccessControlAllowMethodsState

type DataCorsConfigAccessControlAllowMethodsState struct {
	Items []string `json:"items"`
}

type DataCorsConfigAccessControlAllowOriginsAttributes

type DataCorsConfigAccessControlAllowOriginsAttributes struct {
	// contains filtered or unexported fields
}

func (DataCorsConfigAccessControlAllowOriginsAttributes) InternalRef

func (DataCorsConfigAccessControlAllowOriginsAttributes) InternalTokens

func (DataCorsConfigAccessControlAllowOriginsAttributes) InternalWithRef

func (DataCorsConfigAccessControlAllowOriginsAttributes) Items

type DataCorsConfigAccessControlAllowOriginsState

type DataCorsConfigAccessControlAllowOriginsState struct {
	Items []string `json:"items"`
}

type DataCorsConfigAccessControlExposeHeadersAttributes

type DataCorsConfigAccessControlExposeHeadersAttributes struct {
	// contains filtered or unexported fields
}

func (DataCorsConfigAccessControlExposeHeadersAttributes) InternalRef

func (DataCorsConfigAccessControlExposeHeadersAttributes) InternalTokens

func (DataCorsConfigAccessControlExposeHeadersAttributes) InternalWithRef

func (DataCorsConfigAccessControlExposeHeadersAttributes) Items

type DataCorsConfigAccessControlExposeHeadersState

type DataCorsConfigAccessControlExposeHeadersState struct {
	Items []string `json:"items"`
}

type DataCorsConfigAttributes

type DataCorsConfigAttributes struct {
	// contains filtered or unexported fields
}

func (DataCorsConfigAttributes) AccessControlAllowCredentials

func (cc DataCorsConfigAttributes) AccessControlAllowCredentials() terra.BoolValue

func (DataCorsConfigAttributes) AccessControlAllowHeaders

func (DataCorsConfigAttributes) AccessControlAllowMethods

func (DataCorsConfigAttributes) AccessControlAllowOrigins

func (DataCorsConfigAttributes) AccessControlExposeHeaders

func (DataCorsConfigAttributes) AccessControlMaxAgeSec

func (cc DataCorsConfigAttributes) AccessControlMaxAgeSec() terra.NumberValue

func (DataCorsConfigAttributes) InternalRef

func (cc DataCorsConfigAttributes) InternalRef() (terra.Reference, error)

func (DataCorsConfigAttributes) InternalTokens

func (cc DataCorsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCorsConfigAttributes) InternalWithRef

func (DataCorsConfigAttributes) OriginOverride

func (cc DataCorsConfigAttributes) OriginOverride() terra.BoolValue

type DataCorsConfigState

type DataCorsConfigState struct {
	AccessControlAllowCredentials bool                                            `json:"access_control_allow_credentials"`
	AccessControlMaxAgeSec        float64                                         `json:"access_control_max_age_sec"`
	OriginOverride                bool                                            `json:"origin_override"`
	AccessControlAllowHeaders     []DataCorsConfigAccessControlAllowHeadersState  `json:"access_control_allow_headers"`
	AccessControlAllowMethods     []DataCorsConfigAccessControlAllowMethodsState  `json:"access_control_allow_methods"`
	AccessControlAllowOrigins     []DataCorsConfigAccessControlAllowOriginsState  `json:"access_control_allow_origins"`
	AccessControlExposeHeaders    []DataCorsConfigAccessControlExposeHeadersState `json:"access_control_expose_headers"`
}

type DataCustomHeadersConfigAttributes

type DataCustomHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (DataCustomHeadersConfigAttributes) InternalRef

func (DataCustomHeadersConfigAttributes) InternalTokens

func (chc DataCustomHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCustomHeadersConfigAttributes) InternalWithRef

func (DataCustomHeadersConfigAttributes) Items

type DataCustomHeadersConfigItemsAttributes

type DataCustomHeadersConfigItemsAttributes struct {
	// contains filtered or unexported fields
}

func (DataCustomHeadersConfigItemsAttributes) Header

func (DataCustomHeadersConfigItemsAttributes) InternalRef

func (DataCustomHeadersConfigItemsAttributes) InternalTokens

func (DataCustomHeadersConfigItemsAttributes) InternalWithRef

func (DataCustomHeadersConfigItemsAttributes) Override

func (DataCustomHeadersConfigItemsAttributes) Value

type DataCustomHeadersConfigItemsState

type DataCustomHeadersConfigItemsState struct {
	Header   string `json:"header"`
	Override bool   `json:"override"`
	Value    string `json:"value"`
}

type DataCustomHeadersConfigState

type DataCustomHeadersConfigState struct {
	Items []DataCustomHeadersConfigItemsState `json:"items"`
}

type DataRemoveHeadersConfigAttributes

type DataRemoveHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (DataRemoveHeadersConfigAttributes) InternalRef

func (DataRemoveHeadersConfigAttributes) InternalTokens

func (rhc DataRemoveHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRemoveHeadersConfigAttributes) InternalWithRef

func (DataRemoveHeadersConfigAttributes) Items

type DataRemoveHeadersConfigItemsAttributes

type DataRemoveHeadersConfigItemsAttributes struct {
	// contains filtered or unexported fields
}

func (DataRemoveHeadersConfigItemsAttributes) Header

func (DataRemoveHeadersConfigItemsAttributes) InternalRef

func (DataRemoveHeadersConfigItemsAttributes) InternalTokens

func (DataRemoveHeadersConfigItemsAttributes) InternalWithRef

type DataRemoveHeadersConfigItemsState

type DataRemoveHeadersConfigItemsState struct {
	Header string `json:"header"`
}

type DataRemoveHeadersConfigState

type DataRemoveHeadersConfigState struct {
	Items []DataRemoveHeadersConfigItemsState `json:"items"`
}

type DataSecurityHeadersConfigAttributes

type DataSecurityHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigAttributes) ContentSecurityPolicy

func (DataSecurityHeadersConfigAttributes) ContentTypeOptions

func (DataSecurityHeadersConfigAttributes) FrameOptions

func (DataSecurityHeadersConfigAttributes) InternalRef

func (DataSecurityHeadersConfigAttributes) InternalTokens

func (shc DataSecurityHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSecurityHeadersConfigAttributes) InternalWithRef

func (DataSecurityHeadersConfigAttributes) ReferrerPolicy

func (DataSecurityHeadersConfigAttributes) StrictTransportSecurity

func (DataSecurityHeadersConfigAttributes) XssProtection

type DataSecurityHeadersConfigContentSecurityPolicyAttributes

type DataSecurityHeadersConfigContentSecurityPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigContentSecurityPolicyAttributes) ContentSecurityPolicy

func (DataSecurityHeadersConfigContentSecurityPolicyAttributes) InternalRef

func (DataSecurityHeadersConfigContentSecurityPolicyAttributes) InternalTokens

func (DataSecurityHeadersConfigContentSecurityPolicyAttributes) InternalWithRef

func (DataSecurityHeadersConfigContentSecurityPolicyAttributes) Override

type DataSecurityHeadersConfigContentSecurityPolicyState

type DataSecurityHeadersConfigContentSecurityPolicyState struct {
	ContentSecurityPolicy string `json:"content_security_policy"`
	Override              bool   `json:"override"`
}

type DataSecurityHeadersConfigContentTypeOptionsAttributes

type DataSecurityHeadersConfigContentTypeOptionsAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigContentTypeOptionsAttributes) InternalRef

func (DataSecurityHeadersConfigContentTypeOptionsAttributes) InternalTokens

func (DataSecurityHeadersConfigContentTypeOptionsAttributes) InternalWithRef

func (DataSecurityHeadersConfigContentTypeOptionsAttributes) Override

type DataSecurityHeadersConfigContentTypeOptionsState

type DataSecurityHeadersConfigContentTypeOptionsState struct {
	Override bool `json:"override"`
}

type DataSecurityHeadersConfigFrameOptionsAttributes

type DataSecurityHeadersConfigFrameOptionsAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigFrameOptionsAttributes) FrameOption

func (DataSecurityHeadersConfigFrameOptionsAttributes) InternalRef

func (DataSecurityHeadersConfigFrameOptionsAttributes) InternalTokens

func (DataSecurityHeadersConfigFrameOptionsAttributes) InternalWithRef

func (DataSecurityHeadersConfigFrameOptionsAttributes) Override

type DataSecurityHeadersConfigFrameOptionsState

type DataSecurityHeadersConfigFrameOptionsState struct {
	FrameOption string `json:"frame_option"`
	Override    bool   `json:"override"`
}

type DataSecurityHeadersConfigReferrerPolicyAttributes

type DataSecurityHeadersConfigReferrerPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigReferrerPolicyAttributes) InternalRef

func (DataSecurityHeadersConfigReferrerPolicyAttributes) InternalTokens

func (DataSecurityHeadersConfigReferrerPolicyAttributes) InternalWithRef

func (DataSecurityHeadersConfigReferrerPolicyAttributes) Override

func (DataSecurityHeadersConfigReferrerPolicyAttributes) ReferrerPolicy

type DataSecurityHeadersConfigReferrerPolicyState

type DataSecurityHeadersConfigReferrerPolicyState struct {
	Override       bool   `json:"override"`
	ReferrerPolicy string `json:"referrer_policy"`
}

type DataSecurityHeadersConfigState

type DataSecurityHeadersConfigState struct {
	ContentSecurityPolicy   []DataSecurityHeadersConfigContentSecurityPolicyState   `json:"content_security_policy"`
	ContentTypeOptions      []DataSecurityHeadersConfigContentTypeOptionsState      `json:"content_type_options"`
	FrameOptions            []DataSecurityHeadersConfigFrameOptionsState            `json:"frame_options"`
	ReferrerPolicy          []DataSecurityHeadersConfigReferrerPolicyState          `json:"referrer_policy"`
	StrictTransportSecurity []DataSecurityHeadersConfigStrictTransportSecurityState `json:"strict_transport_security"`
	XssProtection           []DataSecurityHeadersConfigXssProtectionState           `json:"xss_protection"`
}

type DataSecurityHeadersConfigStrictTransportSecurityAttributes

type DataSecurityHeadersConfigStrictTransportSecurityAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) AccessControlMaxAgeSec

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) IncludeSubdomains

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) InternalRef

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) InternalTokens

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) InternalWithRef

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) Override

func (DataSecurityHeadersConfigStrictTransportSecurityAttributes) Preload

type DataSecurityHeadersConfigStrictTransportSecurityState

type DataSecurityHeadersConfigStrictTransportSecurityState struct {
	AccessControlMaxAgeSec float64 `json:"access_control_max_age_sec"`
	IncludeSubdomains      bool    `json:"include_subdomains"`
	Override               bool    `json:"override"`
	Preload                bool    `json:"preload"`
}

type DataSecurityHeadersConfigXssProtectionAttributes

type DataSecurityHeadersConfigXssProtectionAttributes struct {
	// contains filtered or unexported fields
}

func (DataSecurityHeadersConfigXssProtectionAttributes) InternalRef

func (DataSecurityHeadersConfigXssProtectionAttributes) InternalTokens

func (DataSecurityHeadersConfigXssProtectionAttributes) InternalWithRef

func (DataSecurityHeadersConfigXssProtectionAttributes) ModeBlock

func (DataSecurityHeadersConfigXssProtectionAttributes) Override

func (DataSecurityHeadersConfigXssProtectionAttributes) Protection

func (DataSecurityHeadersConfigXssProtectionAttributes) ReportUri

type DataSecurityHeadersConfigXssProtectionState

type DataSecurityHeadersConfigXssProtectionState struct {
	ModeBlock  bool   `json:"mode_block"`
	Override   bool   `json:"override"`
	Protection bool   `json:"protection"`
	ReportUri  string `json:"report_uri"`
}

type DataServerTimingHeadersConfigAttributes

type DataServerTimingHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (DataServerTimingHeadersConfigAttributes) Enabled

func (DataServerTimingHeadersConfigAttributes) InternalRef

func (DataServerTimingHeadersConfigAttributes) InternalTokens

func (DataServerTimingHeadersConfigAttributes) InternalWithRef

func (DataServerTimingHeadersConfigAttributes) SamplingRate

type DataServerTimingHeadersConfigState

type DataServerTimingHeadersConfigState struct {
	Enabled      bool    `json:"enabled"`
	SamplingRate float64 `json:"sampling_rate"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_cloudfront_response_headers_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (acrhp *DataSource) Attributes() dataAwsCloudfrontResponseHeadersPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (acrhp *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (acrhp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (acrhp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type RemoveHeadersConfig

type RemoveHeadersConfig struct {
	// RemoveHeadersConfigItems: min=0
	Items []RemoveHeadersConfigItems `hcl:"items,block" validate:"min=0"`
}

type RemoveHeadersConfigAttributes

type RemoveHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (RemoveHeadersConfigAttributes) InternalRef

func (rhc RemoveHeadersConfigAttributes) InternalRef() (terra.Reference, error)

func (RemoveHeadersConfigAttributes) InternalTokens

func (rhc RemoveHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RemoveHeadersConfigAttributes) InternalWithRef

func (RemoveHeadersConfigAttributes) Items

type RemoveHeadersConfigItems

type RemoveHeadersConfigItems struct {
	// Header: string, required
	Header terra.StringValue `hcl:"header,attr" validate:"required"`
}

type RemoveHeadersConfigItemsAttributes

type RemoveHeadersConfigItemsAttributes struct {
	// contains filtered or unexported fields
}

func (RemoveHeadersConfigItemsAttributes) Header

func (RemoveHeadersConfigItemsAttributes) InternalRef

func (RemoveHeadersConfigItemsAttributes) InternalTokens

func (RemoveHeadersConfigItemsAttributes) InternalWithRef

type RemoveHeadersConfigItemsState

type RemoveHeadersConfigItemsState struct {
	Header string `json:"header"`
}

type RemoveHeadersConfigState

type RemoveHeadersConfigState struct {
	Items []RemoveHeadersConfigItemsState `json:"items"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_cloudfront_response_headers_policy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acrhp *Resource) Attributes() awsCloudfrontResponseHeadersPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (acrhp *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (acrhp *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (acrhp *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (acrhp *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (acrhp *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acrhp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acrhp *Resource) State() (*awsCloudfrontResponseHeadersPolicyState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (acrhp *Resource) StateMust() *awsCloudfrontResponseHeadersPolicyState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (acrhp *Resource) Type() string

Type returns the Terraform object type for Resource.

type SecurityHeadersConfig

type SecurityHeadersConfig struct {
	// SecurityHeadersConfigContentSecurityPolicy: optional
	ContentSecurityPolicy *SecurityHeadersConfigContentSecurityPolicy `hcl:"content_security_policy,block"`
	// SecurityHeadersConfigContentTypeOptions: optional
	ContentTypeOptions *SecurityHeadersConfigContentTypeOptions `hcl:"content_type_options,block"`
	// SecurityHeadersConfigFrameOptions: optional
	FrameOptions *SecurityHeadersConfigFrameOptions `hcl:"frame_options,block"`
	// SecurityHeadersConfigReferrerPolicy: optional
	ReferrerPolicy *SecurityHeadersConfigReferrerPolicy `hcl:"referrer_policy,block"`
	// SecurityHeadersConfigStrictTransportSecurity: optional
	StrictTransportSecurity *SecurityHeadersConfigStrictTransportSecurity `hcl:"strict_transport_security,block"`
	// SecurityHeadersConfigXssProtection: optional
	XssProtection *SecurityHeadersConfigXssProtection `hcl:"xss_protection,block"`
}

type SecurityHeadersConfigAttributes

type SecurityHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigAttributes) ContentSecurityPolicy

func (SecurityHeadersConfigAttributes) ContentTypeOptions

func (SecurityHeadersConfigAttributes) FrameOptions

func (SecurityHeadersConfigAttributes) InternalRef

func (SecurityHeadersConfigAttributes) InternalTokens

func (shc SecurityHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SecurityHeadersConfigAttributes) InternalWithRef

func (SecurityHeadersConfigAttributes) ReferrerPolicy

func (SecurityHeadersConfigAttributes) StrictTransportSecurity

func (SecurityHeadersConfigAttributes) XssProtection

type SecurityHeadersConfigContentSecurityPolicy

type SecurityHeadersConfigContentSecurityPolicy struct {
	// ContentSecurityPolicy: string, required
	ContentSecurityPolicy terra.StringValue `hcl:"content_security_policy,attr" validate:"required"`
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
}

type SecurityHeadersConfigContentSecurityPolicyAttributes

type SecurityHeadersConfigContentSecurityPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigContentSecurityPolicyAttributes) ContentSecurityPolicy

func (SecurityHeadersConfigContentSecurityPolicyAttributes) InternalRef

func (SecurityHeadersConfigContentSecurityPolicyAttributes) InternalTokens

func (SecurityHeadersConfigContentSecurityPolicyAttributes) InternalWithRef

func (SecurityHeadersConfigContentSecurityPolicyAttributes) Override

type SecurityHeadersConfigContentSecurityPolicyState

type SecurityHeadersConfigContentSecurityPolicyState struct {
	ContentSecurityPolicy string `json:"content_security_policy"`
	Override              bool   `json:"override"`
}

type SecurityHeadersConfigContentTypeOptions

type SecurityHeadersConfigContentTypeOptions struct {
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
}

type SecurityHeadersConfigContentTypeOptionsAttributes

type SecurityHeadersConfigContentTypeOptionsAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigContentTypeOptionsAttributes) InternalRef

func (SecurityHeadersConfigContentTypeOptionsAttributes) InternalTokens

func (SecurityHeadersConfigContentTypeOptionsAttributes) InternalWithRef

func (SecurityHeadersConfigContentTypeOptionsAttributes) Override

type SecurityHeadersConfigContentTypeOptionsState

type SecurityHeadersConfigContentTypeOptionsState struct {
	Override bool `json:"override"`
}

type SecurityHeadersConfigFrameOptions

type SecurityHeadersConfigFrameOptions struct {
	// FrameOption: string, required
	FrameOption terra.StringValue `hcl:"frame_option,attr" validate:"required"`
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
}

type SecurityHeadersConfigFrameOptionsAttributes

type SecurityHeadersConfigFrameOptionsAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigFrameOptionsAttributes) FrameOption

func (SecurityHeadersConfigFrameOptionsAttributes) InternalRef

func (SecurityHeadersConfigFrameOptionsAttributes) InternalTokens

func (SecurityHeadersConfigFrameOptionsAttributes) InternalWithRef

func (SecurityHeadersConfigFrameOptionsAttributes) Override

type SecurityHeadersConfigFrameOptionsState

type SecurityHeadersConfigFrameOptionsState struct {
	FrameOption string `json:"frame_option"`
	Override    bool   `json:"override"`
}

type SecurityHeadersConfigReferrerPolicy

type SecurityHeadersConfigReferrerPolicy struct {
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
	// ReferrerPolicy: string, required
	ReferrerPolicy terra.StringValue `hcl:"referrer_policy,attr" validate:"required"`
}

type SecurityHeadersConfigReferrerPolicyAttributes

type SecurityHeadersConfigReferrerPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigReferrerPolicyAttributes) InternalRef

func (SecurityHeadersConfigReferrerPolicyAttributes) InternalTokens

func (SecurityHeadersConfigReferrerPolicyAttributes) InternalWithRef

func (SecurityHeadersConfigReferrerPolicyAttributes) Override

func (SecurityHeadersConfigReferrerPolicyAttributes) ReferrerPolicy

type SecurityHeadersConfigReferrerPolicyState

type SecurityHeadersConfigReferrerPolicyState struct {
	Override       bool   `json:"override"`
	ReferrerPolicy string `json:"referrer_policy"`
}

type SecurityHeadersConfigState

type SecurityHeadersConfigState struct {
	ContentSecurityPolicy   []SecurityHeadersConfigContentSecurityPolicyState   `json:"content_security_policy"`
	ContentTypeOptions      []SecurityHeadersConfigContentTypeOptionsState      `json:"content_type_options"`
	FrameOptions            []SecurityHeadersConfigFrameOptionsState            `json:"frame_options"`
	ReferrerPolicy          []SecurityHeadersConfigReferrerPolicyState          `json:"referrer_policy"`
	StrictTransportSecurity []SecurityHeadersConfigStrictTransportSecurityState `json:"strict_transport_security"`
	XssProtection           []SecurityHeadersConfigXssProtectionState           `json:"xss_protection"`
}

type SecurityHeadersConfigStrictTransportSecurity

type SecurityHeadersConfigStrictTransportSecurity struct {
	// AccessControlMaxAgeSec: number, required
	AccessControlMaxAgeSec terra.NumberValue `hcl:"access_control_max_age_sec,attr" validate:"required"`
	// IncludeSubdomains: bool, optional
	IncludeSubdomains terra.BoolValue `hcl:"include_subdomains,attr"`
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
	// Preload: bool, optional
	Preload terra.BoolValue `hcl:"preload,attr"`
}

type SecurityHeadersConfigStrictTransportSecurityAttributes

type SecurityHeadersConfigStrictTransportSecurityAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigStrictTransportSecurityAttributes) AccessControlMaxAgeSec

func (SecurityHeadersConfigStrictTransportSecurityAttributes) IncludeSubdomains

func (SecurityHeadersConfigStrictTransportSecurityAttributes) InternalRef

func (SecurityHeadersConfigStrictTransportSecurityAttributes) InternalTokens

func (SecurityHeadersConfigStrictTransportSecurityAttributes) InternalWithRef

func (SecurityHeadersConfigStrictTransportSecurityAttributes) Override

func (SecurityHeadersConfigStrictTransportSecurityAttributes) Preload

type SecurityHeadersConfigStrictTransportSecurityState

type SecurityHeadersConfigStrictTransportSecurityState struct {
	AccessControlMaxAgeSec float64 `json:"access_control_max_age_sec"`
	IncludeSubdomains      bool    `json:"include_subdomains"`
	Override               bool    `json:"override"`
	Preload                bool    `json:"preload"`
}

type SecurityHeadersConfigXssProtection

type SecurityHeadersConfigXssProtection struct {
	// ModeBlock: bool, optional
	ModeBlock terra.BoolValue `hcl:"mode_block,attr"`
	// Override: bool, required
	Override terra.BoolValue `hcl:"override,attr" validate:"required"`
	// Protection: bool, required
	Protection terra.BoolValue `hcl:"protection,attr" validate:"required"`
	// ReportUri: string, optional
	ReportUri terra.StringValue `hcl:"report_uri,attr"`
}

type SecurityHeadersConfigXssProtectionAttributes

type SecurityHeadersConfigXssProtectionAttributes struct {
	// contains filtered or unexported fields
}

func (SecurityHeadersConfigXssProtectionAttributes) InternalRef

func (SecurityHeadersConfigXssProtectionAttributes) InternalTokens

func (SecurityHeadersConfigXssProtectionAttributes) InternalWithRef

func (SecurityHeadersConfigXssProtectionAttributes) ModeBlock

func (SecurityHeadersConfigXssProtectionAttributes) Override

func (SecurityHeadersConfigXssProtectionAttributes) Protection

func (SecurityHeadersConfigXssProtectionAttributes) ReportUri

type SecurityHeadersConfigXssProtectionState

type SecurityHeadersConfigXssProtectionState struct {
	ModeBlock  bool   `json:"mode_block"`
	Override   bool   `json:"override"`
	Protection bool   `json:"protection"`
	ReportUri  string `json:"report_uri"`
}

type ServerTimingHeadersConfig

type ServerTimingHeadersConfig struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// SamplingRate: number, required
	SamplingRate terra.NumberValue `hcl:"sampling_rate,attr" validate:"required"`
}

type ServerTimingHeadersConfigAttributes

type ServerTimingHeadersConfigAttributes struct {
	// contains filtered or unexported fields
}

func (ServerTimingHeadersConfigAttributes) Enabled

func (ServerTimingHeadersConfigAttributes) InternalRef

func (ServerTimingHeadersConfigAttributes) InternalTokens

func (sthc ServerTimingHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServerTimingHeadersConfigAttributes) InternalWithRef

func (ServerTimingHeadersConfigAttributes) SamplingRate

type ServerTimingHeadersConfigState

type ServerTimingHeadersConfigState struct {
	Enabled      bool    `json:"enabled"`
	SamplingRate float64 `json:"sampling_rate"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL