cloudfrontresponseheaderspolicy

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlAllowHeaders

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

type AccessControlAllowHeadersAttributes

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

func (AccessControlAllowHeadersAttributes) InternalRef

func (AccessControlAllowHeadersAttributes) InternalTokens

func (acah AccessControlAllowHeadersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessControlAllowHeadersAttributes) InternalWithRef

func (AccessControlAllowHeadersAttributes) Items

type AccessControlAllowHeadersState

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

type AccessControlAllowMethods

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

type AccessControlAllowMethodsAttributes

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

func (AccessControlAllowMethodsAttributes) InternalRef

func (AccessControlAllowMethodsAttributes) InternalTokens

func (acam AccessControlAllowMethodsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessControlAllowMethodsAttributes) InternalWithRef

func (AccessControlAllowMethodsAttributes) Items

type AccessControlAllowMethodsState

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

type AccessControlAllowOrigins

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

type AccessControlAllowOriginsAttributes

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

func (AccessControlAllowOriginsAttributes) InternalRef

func (AccessControlAllowOriginsAttributes) InternalTokens

func (acao AccessControlAllowOriginsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessControlAllowOriginsAttributes) InternalWithRef

func (AccessControlAllowOriginsAttributes) Items

type AccessControlAllowOriginsState

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

type AccessControlExposeHeaders

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

type AccessControlExposeHeadersAttributes

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

func (AccessControlExposeHeadersAttributes) InternalRef

func (AccessControlExposeHeadersAttributes) InternalTokens

func (aceh AccessControlExposeHeadersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessControlExposeHeadersAttributes) InternalWithRef

func (AccessControlExposeHeadersAttributes) Items

type AccessControlExposeHeadersState

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

type ContentSecurityPolicy

type ContentSecurityPolicy 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 ContentSecurityPolicyAttributes

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

func (ContentSecurityPolicyAttributes) ContentSecurityPolicy

func (csp ContentSecurityPolicyAttributes) ContentSecurityPolicy() terra.StringValue

func (ContentSecurityPolicyAttributes) InternalRef

func (ContentSecurityPolicyAttributes) InternalTokens

func (csp ContentSecurityPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ContentSecurityPolicyAttributes) InternalWithRef

func (ContentSecurityPolicyAttributes) Override

type ContentSecurityPolicyState

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

type ContentTypeOptions

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

type ContentTypeOptionsAttributes

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

func (ContentTypeOptionsAttributes) InternalRef

func (cto ContentTypeOptionsAttributes) InternalRef() (terra.Reference, error)

func (ContentTypeOptionsAttributes) InternalTokens

func (cto ContentTypeOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ContentTypeOptionsAttributes) InternalWithRef

func (ContentTypeOptionsAttributes) Override

type ContentTypeOptionsState

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

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"`
	// AccessControlAllowHeaders: required
	AccessControlAllowHeaders *AccessControlAllowHeaders `hcl:"access_control_allow_headers,block" validate:"required"`
	// AccessControlAllowMethods: required
	AccessControlAllowMethods *AccessControlAllowMethods `hcl:"access_control_allow_methods,block" validate:"required"`
	// AccessControlAllowOrigins: required
	AccessControlAllowOrigins *AccessControlAllowOrigins `hcl:"access_control_allow_origins,block" validate:"required"`
	// AccessControlExposeHeaders: optional
	AccessControlExposeHeaders *AccessControlExposeHeaders `hcl:"access_control_expose_headers,block"`
}

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     []AccessControlAllowHeadersState  `json:"access_control_allow_headers"`
	AccessControlAllowMethods     []AccessControlAllowMethodsState  `json:"access_control_allow_methods"`
	AccessControlAllowOrigins     []AccessControlAllowOriginsState  `json:"access_control_allow_origins"`
	AccessControlExposeHeaders    []AccessControlExposeHeadersState `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 FrameOptions

type FrameOptions 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 FrameOptionsAttributes

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

func (FrameOptionsAttributes) FrameOption

func (fo FrameOptionsAttributes) FrameOption() terra.StringValue

func (FrameOptionsAttributes) InternalRef

func (fo FrameOptionsAttributes) InternalRef() (terra.Reference, error)

func (FrameOptionsAttributes) InternalTokens

func (fo FrameOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FrameOptionsAttributes) InternalWithRef

func (FrameOptionsAttributes) Override

func (fo FrameOptionsAttributes) Override() terra.BoolValue

type FrameOptionsState

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

type ReferrerPolicy

type ReferrerPolicy 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 ReferrerPolicyAttributes

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

func (ReferrerPolicyAttributes) InternalRef

func (rp ReferrerPolicyAttributes) InternalRef() (terra.Reference, error)

func (ReferrerPolicyAttributes) InternalTokens

func (rp ReferrerPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReferrerPolicyAttributes) InternalWithRef

func (ReferrerPolicyAttributes) Override

func (ReferrerPolicyAttributes) ReferrerPolicy

func (rp ReferrerPolicyAttributes) ReferrerPolicy() terra.StringValue

type ReferrerPolicyState

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

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 SecurityHeadersConfig

type SecurityHeadersConfig struct {
	// ContentSecurityPolicy: optional
	ContentSecurityPolicy *ContentSecurityPolicy `hcl:"content_security_policy,block"`
	// ContentTypeOptions: optional
	ContentTypeOptions *ContentTypeOptions `hcl:"content_type_options,block"`
	// FrameOptions: optional
	FrameOptions *FrameOptions `hcl:"frame_options,block"`
	// ReferrerPolicy: optional
	ReferrerPolicy *ReferrerPolicy `hcl:"referrer_policy,block"`
	// StrictTransportSecurity: optional
	StrictTransportSecurity *StrictTransportSecurity `hcl:"strict_transport_security,block"`
	// XssProtection: optional
	XssProtection *XssProtection `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 SecurityHeadersConfigState

type SecurityHeadersConfigState struct {
	ContentSecurityPolicy   []ContentSecurityPolicyState   `json:"content_security_policy"`
	ContentTypeOptions      []ContentTypeOptionsState      `json:"content_type_options"`
	FrameOptions            []FrameOptionsState            `json:"frame_options"`
	ReferrerPolicy          []ReferrerPolicyState          `json:"referrer_policy"`
	StrictTransportSecurity []StrictTransportSecurityState `json:"strict_transport_security"`
	XssProtection           []XssProtectionState           `json:"xss_protection"`
}

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"`
}

type StrictTransportSecurity

type StrictTransportSecurity 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 StrictTransportSecurityAttributes

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

func (StrictTransportSecurityAttributes) AccessControlMaxAgeSec

func (sts StrictTransportSecurityAttributes) AccessControlMaxAgeSec() terra.NumberValue

func (StrictTransportSecurityAttributes) IncludeSubdomains

func (sts StrictTransportSecurityAttributes) IncludeSubdomains() terra.BoolValue

func (StrictTransportSecurityAttributes) InternalRef

func (StrictTransportSecurityAttributes) InternalTokens

func (sts StrictTransportSecurityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StrictTransportSecurityAttributes) InternalWithRef

func (StrictTransportSecurityAttributes) Override

func (StrictTransportSecurityAttributes) Preload

type StrictTransportSecurityState

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

type XssProtection

type XssProtection 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 XssProtectionAttributes

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

func (XssProtectionAttributes) InternalRef

func (xp XssProtectionAttributes) InternalRef() (terra.Reference, error)

func (XssProtectionAttributes) InternalTokens

func (xp XssProtectionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (XssProtectionAttributes) InternalWithRef

func (XssProtectionAttributes) ModeBlock

func (xp XssProtectionAttributes) ModeBlock() terra.BoolValue

func (XssProtectionAttributes) Override

func (xp XssProtectionAttributes) Override() terra.BoolValue

func (XssProtectionAttributes) Protection

func (xp XssProtectionAttributes) Protection() terra.BoolValue

func (XssProtectionAttributes) ReportUri

func (xp XssProtectionAttributes) ReportUri() terra.StringValue

type XssProtectionState

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

Jump to

Keyboard shortcuts

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