cloudfrontdistribution

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 CustomErrorResponse

type CustomErrorResponse struct {
	// ErrorCachingMinTtl: number, optional
	ErrorCachingMinTtl terra.NumberValue `hcl:"error_caching_min_ttl,attr"`
	// ErrorCode: number, required
	ErrorCode terra.NumberValue `hcl:"error_code,attr" validate:"required"`
	// ResponseCode: number, optional
	ResponseCode terra.NumberValue `hcl:"response_code,attr"`
	// ResponsePagePath: string, optional
	ResponsePagePath terra.StringValue `hcl:"response_page_path,attr"`
}

type CustomErrorResponseAttributes

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

func (CustomErrorResponseAttributes) ErrorCachingMinTtl

func (cer CustomErrorResponseAttributes) ErrorCachingMinTtl() terra.NumberValue

func (CustomErrorResponseAttributes) ErrorCode

func (CustomErrorResponseAttributes) InternalRef

func (cer CustomErrorResponseAttributes) InternalRef() (terra.Reference, error)

func (CustomErrorResponseAttributes) InternalTokens

func (cer CustomErrorResponseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomErrorResponseAttributes) InternalWithRef

func (CustomErrorResponseAttributes) ResponseCode

func (cer CustomErrorResponseAttributes) ResponseCode() terra.NumberValue

func (CustomErrorResponseAttributes) ResponsePagePath

func (cer CustomErrorResponseAttributes) ResponsePagePath() terra.StringValue

type CustomErrorResponseState

type CustomErrorResponseState struct {
	ErrorCachingMinTtl float64 `json:"error_caching_min_ttl"`
	ErrorCode          float64 `json:"error_code"`
	ResponseCode       float64 `json:"response_code"`
	ResponsePagePath   string  `json:"response_page_path"`
}

type CustomHeader

type CustomHeader struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type CustomHeaderAttributes

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

func (CustomHeaderAttributes) InternalRef

func (ch CustomHeaderAttributes) InternalRef() (terra.Reference, error)

func (CustomHeaderAttributes) InternalTokens

func (ch CustomHeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomHeaderAttributes) InternalWithRef

func (CustomHeaderAttributes) Name

func (CustomHeaderAttributes) Value

type CustomHeaderState

type CustomHeaderState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type CustomOriginConfig

type CustomOriginConfig struct {
	// HttpPort: number, required
	HttpPort terra.NumberValue `hcl:"http_port,attr" validate:"required"`
	// HttpsPort: number, required
	HttpsPort terra.NumberValue `hcl:"https_port,attr" validate:"required"`
	// OriginKeepaliveTimeout: number, optional
	OriginKeepaliveTimeout terra.NumberValue `hcl:"origin_keepalive_timeout,attr"`
	// OriginProtocolPolicy: string, required
	OriginProtocolPolicy terra.StringValue `hcl:"origin_protocol_policy,attr" validate:"required"`
	// OriginReadTimeout: number, optional
	OriginReadTimeout terra.NumberValue `hcl:"origin_read_timeout,attr"`
	// OriginSslProtocols: set of string, required
	OriginSslProtocols terra.SetValue[terra.StringValue] `hcl:"origin_ssl_protocols,attr" validate:"required"`
}

type CustomOriginConfigAttributes

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

func (CustomOriginConfigAttributes) HttpPort

func (CustomOriginConfigAttributes) HttpsPort

func (CustomOriginConfigAttributes) InternalRef

func (coc CustomOriginConfigAttributes) InternalRef() (terra.Reference, error)

func (CustomOriginConfigAttributes) InternalTokens

func (coc CustomOriginConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomOriginConfigAttributes) InternalWithRef

func (CustomOriginConfigAttributes) OriginKeepaliveTimeout

func (coc CustomOriginConfigAttributes) OriginKeepaliveTimeout() terra.NumberValue

func (CustomOriginConfigAttributes) OriginProtocolPolicy

func (coc CustomOriginConfigAttributes) OriginProtocolPolicy() terra.StringValue

func (CustomOriginConfigAttributes) OriginReadTimeout

func (coc CustomOriginConfigAttributes) OriginReadTimeout() terra.NumberValue

func (CustomOriginConfigAttributes) OriginSslProtocols

func (coc CustomOriginConfigAttributes) OriginSslProtocols() terra.SetValue[terra.StringValue]

type CustomOriginConfigState

type CustomOriginConfigState struct {
	HttpPort               float64  `json:"http_port"`
	HttpsPort              float64  `json:"https_port"`
	OriginKeepaliveTimeout float64  `json:"origin_keepalive_timeout"`
	OriginProtocolPolicy   string   `json:"origin_protocol_policy"`
	OriginReadTimeout      float64  `json:"origin_read_timeout"`
	OriginSslProtocols     []string `json:"origin_ssl_protocols"`
}

type DefaultCacheBehavior

type DefaultCacheBehavior struct {
	// AllowedMethods: set of string, required
	AllowedMethods terra.SetValue[terra.StringValue] `hcl:"allowed_methods,attr" validate:"required"`
	// CachePolicyId: string, optional
	CachePolicyId terra.StringValue `hcl:"cache_policy_id,attr"`
	// CachedMethods: set of string, required
	CachedMethods terra.SetValue[terra.StringValue] `hcl:"cached_methods,attr" validate:"required"`
	// Compress: bool, optional
	Compress terra.BoolValue `hcl:"compress,attr"`
	// DefaultTtl: number, optional
	DefaultTtl terra.NumberValue `hcl:"default_ttl,attr"`
	// FieldLevelEncryptionId: string, optional
	FieldLevelEncryptionId terra.StringValue `hcl:"field_level_encryption_id,attr"`
	// MaxTtl: number, optional
	MaxTtl terra.NumberValue `hcl:"max_ttl,attr"`
	// MinTtl: number, optional
	MinTtl terra.NumberValue `hcl:"min_ttl,attr"`
	// OriginRequestPolicyId: string, optional
	OriginRequestPolicyId terra.StringValue `hcl:"origin_request_policy_id,attr"`
	// RealtimeLogConfigArn: string, optional
	RealtimeLogConfigArn terra.StringValue `hcl:"realtime_log_config_arn,attr"`
	// ResponseHeadersPolicyId: string, optional
	ResponseHeadersPolicyId terra.StringValue `hcl:"response_headers_policy_id,attr"`
	// SmoothStreaming: bool, optional
	SmoothStreaming terra.BoolValue `hcl:"smooth_streaming,attr"`
	// TargetOriginId: string, required
	TargetOriginId terra.StringValue `hcl:"target_origin_id,attr" validate:"required"`
	// TrustedKeyGroups: list of string, optional
	TrustedKeyGroups terra.ListValue[terra.StringValue] `hcl:"trusted_key_groups,attr"`
	// TrustedSigners: list of string, optional
	TrustedSigners terra.ListValue[terra.StringValue] `hcl:"trusted_signers,attr"`
	// ViewerProtocolPolicy: string, required
	ViewerProtocolPolicy terra.StringValue `hcl:"viewer_protocol_policy,attr" validate:"required"`
	// DefaultCacheBehaviorForwardedValues: optional
	ForwardedValues *DefaultCacheBehaviorForwardedValues `hcl:"forwarded_values,block"`
	// DefaultCacheBehaviorFunctionAssociation: min=0,max=2
	FunctionAssociation []DefaultCacheBehaviorFunctionAssociation `hcl:"function_association,block" validate:"min=0,max=2"`
	// DefaultCacheBehaviorLambdaFunctionAssociation: min=0,max=4
	LambdaFunctionAssociation []DefaultCacheBehaviorLambdaFunctionAssociation `hcl:"lambda_function_association,block" validate:"min=0,max=4"`
}

type DefaultCacheBehaviorAttributes

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

func (DefaultCacheBehaviorAttributes) AllowedMethods

func (DefaultCacheBehaviorAttributes) CachePolicyId

func (dcb DefaultCacheBehaviorAttributes) CachePolicyId() terra.StringValue

func (DefaultCacheBehaviorAttributes) CachedMethods

func (DefaultCacheBehaviorAttributes) Compress

func (DefaultCacheBehaviorAttributes) DefaultTtl

func (DefaultCacheBehaviorAttributes) FieldLevelEncryptionId

func (dcb DefaultCacheBehaviorAttributes) FieldLevelEncryptionId() terra.StringValue

func (DefaultCacheBehaviorAttributes) ForwardedValues

func (DefaultCacheBehaviorAttributes) FunctionAssociation

func (DefaultCacheBehaviorAttributes) InternalRef

func (dcb DefaultCacheBehaviorAttributes) InternalRef() (terra.Reference, error)

func (DefaultCacheBehaviorAttributes) InternalTokens

func (dcb DefaultCacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DefaultCacheBehaviorAttributes) InternalWithRef

func (DefaultCacheBehaviorAttributes) LambdaFunctionAssociation

func (DefaultCacheBehaviorAttributes) MaxTtl

func (DefaultCacheBehaviorAttributes) MinTtl

func (DefaultCacheBehaviorAttributes) OriginRequestPolicyId

func (dcb DefaultCacheBehaviorAttributes) OriginRequestPolicyId() terra.StringValue

func (DefaultCacheBehaviorAttributes) RealtimeLogConfigArn

func (dcb DefaultCacheBehaviorAttributes) RealtimeLogConfigArn() terra.StringValue

func (DefaultCacheBehaviorAttributes) ResponseHeadersPolicyId

func (dcb DefaultCacheBehaviorAttributes) ResponseHeadersPolicyId() terra.StringValue

func (DefaultCacheBehaviorAttributes) SmoothStreaming

func (dcb DefaultCacheBehaviorAttributes) SmoothStreaming() terra.BoolValue

func (DefaultCacheBehaviorAttributes) TargetOriginId

func (dcb DefaultCacheBehaviorAttributes) TargetOriginId() terra.StringValue

func (DefaultCacheBehaviorAttributes) TrustedKeyGroups

func (DefaultCacheBehaviorAttributes) TrustedSigners

func (DefaultCacheBehaviorAttributes) ViewerProtocolPolicy

func (dcb DefaultCacheBehaviorAttributes) ViewerProtocolPolicy() terra.StringValue

type DefaultCacheBehaviorForwardedValues

type DefaultCacheBehaviorForwardedValues struct {
	// Headers: set of string, optional
	Headers terra.SetValue[terra.StringValue] `hcl:"headers,attr"`
	// QueryString: bool, required
	QueryString terra.BoolValue `hcl:"query_string,attr" validate:"required"`
	// QueryStringCacheKeys: list of string, optional
	QueryStringCacheKeys terra.ListValue[terra.StringValue] `hcl:"query_string_cache_keys,attr"`
	// DefaultCacheBehaviorForwardedValuesCookies: required
	Cookies *DefaultCacheBehaviorForwardedValuesCookies `hcl:"cookies,block" validate:"required"`
}

type DefaultCacheBehaviorForwardedValuesAttributes

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

func (DefaultCacheBehaviorForwardedValuesAttributes) Cookies

func (DefaultCacheBehaviorForwardedValuesAttributes) Headers

func (DefaultCacheBehaviorForwardedValuesAttributes) InternalRef

func (DefaultCacheBehaviorForwardedValuesAttributes) InternalTokens

func (DefaultCacheBehaviorForwardedValuesAttributes) InternalWithRef

func (DefaultCacheBehaviorForwardedValuesAttributes) QueryString

func (DefaultCacheBehaviorForwardedValuesAttributes) QueryStringCacheKeys

type DefaultCacheBehaviorForwardedValuesCookies

type DefaultCacheBehaviorForwardedValuesCookies struct {
	// Forward: string, required
	Forward terra.StringValue `hcl:"forward,attr" validate:"required"`
	// WhitelistedNames: set of string, optional
	WhitelistedNames terra.SetValue[terra.StringValue] `hcl:"whitelisted_names,attr"`
}

type DefaultCacheBehaviorForwardedValuesCookiesAttributes

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

func (DefaultCacheBehaviorForwardedValuesCookiesAttributes) Forward

func (DefaultCacheBehaviorForwardedValuesCookiesAttributes) InternalRef

func (DefaultCacheBehaviorForwardedValuesCookiesAttributes) InternalTokens

func (DefaultCacheBehaviorForwardedValuesCookiesAttributes) InternalWithRef

func (DefaultCacheBehaviorForwardedValuesCookiesAttributes) WhitelistedNames

type DefaultCacheBehaviorForwardedValuesCookiesState

type DefaultCacheBehaviorForwardedValuesCookiesState struct {
	Forward          string   `json:"forward"`
	WhitelistedNames []string `json:"whitelisted_names"`
}

type DefaultCacheBehaviorForwardedValuesState

type DefaultCacheBehaviorForwardedValuesState struct {
	Headers              []string                                          `json:"headers"`
	QueryString          bool                                              `json:"query_string"`
	QueryStringCacheKeys []string                                          `json:"query_string_cache_keys"`
	Cookies              []DefaultCacheBehaviorForwardedValuesCookiesState `json:"cookies"`
}

type DefaultCacheBehaviorFunctionAssociation

type DefaultCacheBehaviorFunctionAssociation struct {
	// EventType: string, required
	EventType terra.StringValue `hcl:"event_type,attr" validate:"required"`
	// FunctionArn: string, required
	FunctionArn terra.StringValue `hcl:"function_arn,attr" validate:"required"`
}

type DefaultCacheBehaviorFunctionAssociationAttributes

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

func (DefaultCacheBehaviorFunctionAssociationAttributes) EventType

func (DefaultCacheBehaviorFunctionAssociationAttributes) FunctionArn

func (DefaultCacheBehaviorFunctionAssociationAttributes) InternalRef

func (DefaultCacheBehaviorFunctionAssociationAttributes) InternalTokens

func (DefaultCacheBehaviorFunctionAssociationAttributes) InternalWithRef

type DefaultCacheBehaviorFunctionAssociationState

type DefaultCacheBehaviorFunctionAssociationState struct {
	EventType   string `json:"event_type"`
	FunctionArn string `json:"function_arn"`
}

type DefaultCacheBehaviorLambdaFunctionAssociation

type DefaultCacheBehaviorLambdaFunctionAssociation struct {
	// EventType: string, required
	EventType terra.StringValue `hcl:"event_type,attr" validate:"required"`
	// IncludeBody: bool, optional
	IncludeBody terra.BoolValue `hcl:"include_body,attr"`
	// LambdaArn: string, required
	LambdaArn terra.StringValue `hcl:"lambda_arn,attr" validate:"required"`
}

type DefaultCacheBehaviorLambdaFunctionAssociationAttributes

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

func (DefaultCacheBehaviorLambdaFunctionAssociationAttributes) EventType

func (DefaultCacheBehaviorLambdaFunctionAssociationAttributes) IncludeBody

func (DefaultCacheBehaviorLambdaFunctionAssociationAttributes) InternalRef

func (DefaultCacheBehaviorLambdaFunctionAssociationAttributes) InternalTokens

func (DefaultCacheBehaviorLambdaFunctionAssociationAttributes) InternalWithRef

func (DefaultCacheBehaviorLambdaFunctionAssociationAttributes) LambdaArn

type DefaultCacheBehaviorLambdaFunctionAssociationState

type DefaultCacheBehaviorLambdaFunctionAssociationState struct {
	EventType   string `json:"event_type"`
	IncludeBody bool   `json:"include_body"`
	LambdaArn   string `json:"lambda_arn"`
}

type DefaultCacheBehaviorState

type DefaultCacheBehaviorState struct {
	AllowedMethods            []string                                             `json:"allowed_methods"`
	CachePolicyId             string                                               `json:"cache_policy_id"`
	CachedMethods             []string                                             `json:"cached_methods"`
	Compress                  bool                                                 `json:"compress"`
	DefaultTtl                float64                                              `json:"default_ttl"`
	FieldLevelEncryptionId    string                                               `json:"field_level_encryption_id"`
	MaxTtl                    float64                                              `json:"max_ttl"`
	MinTtl                    float64                                              `json:"min_ttl"`
	OriginRequestPolicyId     string                                               `json:"origin_request_policy_id"`
	RealtimeLogConfigArn      string                                               `json:"realtime_log_config_arn"`
	ResponseHeadersPolicyId   string                                               `json:"response_headers_policy_id"`
	SmoothStreaming           bool                                                 `json:"smooth_streaming"`
	TargetOriginId            string                                               `json:"target_origin_id"`
	TrustedKeyGroups          []string                                             `json:"trusted_key_groups"`
	TrustedSigners            []string                                             `json:"trusted_signers"`
	ViewerProtocolPolicy      string                                               `json:"viewer_protocol_policy"`
	ForwardedValues           []DefaultCacheBehaviorForwardedValuesState           `json:"forwarded_values"`
	FunctionAssociation       []DefaultCacheBehaviorFunctionAssociationState       `json:"function_association"`
	LambdaFunctionAssociation []DefaultCacheBehaviorLambdaFunctionAssociationState `json:"lambda_function_association"`
}

type FailoverCriteria

type FailoverCriteria struct {
	// StatusCodes: set of number, required
	StatusCodes terra.SetValue[terra.NumberValue] `hcl:"status_codes,attr" validate:"required"`
}

type FailoverCriteriaAttributes

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

func (FailoverCriteriaAttributes) InternalRef

func (fc FailoverCriteriaAttributes) InternalRef() (terra.Reference, error)

func (FailoverCriteriaAttributes) InternalTokens

func (fc FailoverCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FailoverCriteriaAttributes) InternalWithRef

func (FailoverCriteriaAttributes) StatusCodes

type FailoverCriteriaState

type FailoverCriteriaState struct {
	StatusCodes []float64 `json:"status_codes"`
}

type GeoRestriction

type GeoRestriction struct {
	// Locations: set of string, optional
	Locations terra.SetValue[terra.StringValue] `hcl:"locations,attr"`
	// RestrictionType: string, required
	RestrictionType terra.StringValue `hcl:"restriction_type,attr" validate:"required"`
}

type GeoRestrictionAttributes

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

func (GeoRestrictionAttributes) InternalRef

func (gr GeoRestrictionAttributes) InternalRef() (terra.Reference, error)

func (GeoRestrictionAttributes) InternalTokens

func (gr GeoRestrictionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GeoRestrictionAttributes) InternalWithRef

func (GeoRestrictionAttributes) Locations

func (GeoRestrictionAttributes) RestrictionType

func (gr GeoRestrictionAttributes) RestrictionType() terra.StringValue

type GeoRestrictionState

type GeoRestrictionState struct {
	Locations       []string `json:"locations"`
	RestrictionType string   `json:"restriction_type"`
}

type LoggingConfig

type LoggingConfig struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// IncludeCookies: bool, optional
	IncludeCookies terra.BoolValue `hcl:"include_cookies,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
}

type LoggingConfigAttributes

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

func (LoggingConfigAttributes) Bucket

func (LoggingConfigAttributes) IncludeCookies

func (lc LoggingConfigAttributes) IncludeCookies() terra.BoolValue

func (LoggingConfigAttributes) InternalRef

func (lc LoggingConfigAttributes) InternalRef() (terra.Reference, error)

func (LoggingConfigAttributes) InternalTokens

func (lc LoggingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingConfigAttributes) InternalWithRef

func (LoggingConfigAttributes) Prefix

type LoggingConfigState

type LoggingConfigState struct {
	Bucket         string `json:"bucket"`
	IncludeCookies bool   `json:"include_cookies"`
	Prefix         string `json:"prefix"`
}

type Member

type Member struct {
	// OriginId: string, required
	OriginId terra.StringValue `hcl:"origin_id,attr" validate:"required"`
}

type MemberAttributes

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

func (MemberAttributes) InternalRef

func (m MemberAttributes) InternalRef() (terra.Reference, error)

func (MemberAttributes) InternalTokens

func (m MemberAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MemberAttributes) InternalWithRef

func (m MemberAttributes) InternalWithRef(ref terra.Reference) MemberAttributes

func (MemberAttributes) OriginId

func (m MemberAttributes) OriginId() terra.StringValue

type MemberState

type MemberState struct {
	OriginId string `json:"origin_id"`
}

type OrderedCacheBehavior

type OrderedCacheBehavior struct {
	// AllowedMethods: set of string, required
	AllowedMethods terra.SetValue[terra.StringValue] `hcl:"allowed_methods,attr" validate:"required"`
	// CachePolicyId: string, optional
	CachePolicyId terra.StringValue `hcl:"cache_policy_id,attr"`
	// CachedMethods: set of string, required
	CachedMethods terra.SetValue[terra.StringValue] `hcl:"cached_methods,attr" validate:"required"`
	// Compress: bool, optional
	Compress terra.BoolValue `hcl:"compress,attr"`
	// DefaultTtl: number, optional
	DefaultTtl terra.NumberValue `hcl:"default_ttl,attr"`
	// FieldLevelEncryptionId: string, optional
	FieldLevelEncryptionId terra.StringValue `hcl:"field_level_encryption_id,attr"`
	// MaxTtl: number, optional
	MaxTtl terra.NumberValue `hcl:"max_ttl,attr"`
	// MinTtl: number, optional
	MinTtl terra.NumberValue `hcl:"min_ttl,attr"`
	// OriginRequestPolicyId: string, optional
	OriginRequestPolicyId terra.StringValue `hcl:"origin_request_policy_id,attr"`
	// PathPattern: string, required
	PathPattern terra.StringValue `hcl:"path_pattern,attr" validate:"required"`
	// RealtimeLogConfigArn: string, optional
	RealtimeLogConfigArn terra.StringValue `hcl:"realtime_log_config_arn,attr"`
	// ResponseHeadersPolicyId: string, optional
	ResponseHeadersPolicyId terra.StringValue `hcl:"response_headers_policy_id,attr"`
	// SmoothStreaming: bool, optional
	SmoothStreaming terra.BoolValue `hcl:"smooth_streaming,attr"`
	// TargetOriginId: string, required
	TargetOriginId terra.StringValue `hcl:"target_origin_id,attr" validate:"required"`
	// TrustedKeyGroups: list of string, optional
	TrustedKeyGroups terra.ListValue[terra.StringValue] `hcl:"trusted_key_groups,attr"`
	// TrustedSigners: list of string, optional
	TrustedSigners terra.ListValue[terra.StringValue] `hcl:"trusted_signers,attr"`
	// ViewerProtocolPolicy: string, required
	ViewerProtocolPolicy terra.StringValue `hcl:"viewer_protocol_policy,attr" validate:"required"`
	// OrderedCacheBehaviorForwardedValues: optional
	ForwardedValues *OrderedCacheBehaviorForwardedValues `hcl:"forwarded_values,block"`
	// OrderedCacheBehaviorFunctionAssociation: min=0,max=2
	FunctionAssociation []OrderedCacheBehaviorFunctionAssociation `hcl:"function_association,block" validate:"min=0,max=2"`
	// OrderedCacheBehaviorLambdaFunctionAssociation: min=0,max=4
	LambdaFunctionAssociation []OrderedCacheBehaviorLambdaFunctionAssociation `hcl:"lambda_function_association,block" validate:"min=0,max=4"`
}

type OrderedCacheBehaviorAttributes

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

func (OrderedCacheBehaviorAttributes) AllowedMethods

func (OrderedCacheBehaviorAttributes) CachePolicyId

func (ocb OrderedCacheBehaviorAttributes) CachePolicyId() terra.StringValue

func (OrderedCacheBehaviorAttributes) CachedMethods

func (OrderedCacheBehaviorAttributes) Compress

func (OrderedCacheBehaviorAttributes) DefaultTtl

func (OrderedCacheBehaviorAttributes) FieldLevelEncryptionId

func (ocb OrderedCacheBehaviorAttributes) FieldLevelEncryptionId() terra.StringValue

func (OrderedCacheBehaviorAttributes) ForwardedValues

func (OrderedCacheBehaviorAttributes) FunctionAssociation

func (OrderedCacheBehaviorAttributes) InternalRef

func (ocb OrderedCacheBehaviorAttributes) InternalRef() (terra.Reference, error)

func (OrderedCacheBehaviorAttributes) InternalTokens

func (ocb OrderedCacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OrderedCacheBehaviorAttributes) InternalWithRef

func (OrderedCacheBehaviorAttributes) LambdaFunctionAssociation

func (OrderedCacheBehaviorAttributes) MaxTtl

func (OrderedCacheBehaviorAttributes) MinTtl

func (OrderedCacheBehaviorAttributes) OriginRequestPolicyId

func (ocb OrderedCacheBehaviorAttributes) OriginRequestPolicyId() terra.StringValue

func (OrderedCacheBehaviorAttributes) PathPattern

func (OrderedCacheBehaviorAttributes) RealtimeLogConfigArn

func (ocb OrderedCacheBehaviorAttributes) RealtimeLogConfigArn() terra.StringValue

func (OrderedCacheBehaviorAttributes) ResponseHeadersPolicyId

func (ocb OrderedCacheBehaviorAttributes) ResponseHeadersPolicyId() terra.StringValue

func (OrderedCacheBehaviorAttributes) SmoothStreaming

func (ocb OrderedCacheBehaviorAttributes) SmoothStreaming() terra.BoolValue

func (OrderedCacheBehaviorAttributes) TargetOriginId

func (ocb OrderedCacheBehaviorAttributes) TargetOriginId() terra.StringValue

func (OrderedCacheBehaviorAttributes) TrustedKeyGroups

func (OrderedCacheBehaviorAttributes) TrustedSigners

func (OrderedCacheBehaviorAttributes) ViewerProtocolPolicy

func (ocb OrderedCacheBehaviorAttributes) ViewerProtocolPolicy() terra.StringValue

type OrderedCacheBehaviorForwardedValues

type OrderedCacheBehaviorForwardedValues struct {
	// Headers: set of string, optional
	Headers terra.SetValue[terra.StringValue] `hcl:"headers,attr"`
	// QueryString: bool, required
	QueryString terra.BoolValue `hcl:"query_string,attr" validate:"required"`
	// QueryStringCacheKeys: list of string, optional
	QueryStringCacheKeys terra.ListValue[terra.StringValue] `hcl:"query_string_cache_keys,attr"`
	// OrderedCacheBehaviorForwardedValuesCookies: required
	Cookies *OrderedCacheBehaviorForwardedValuesCookies `hcl:"cookies,block" validate:"required"`
}

type OrderedCacheBehaviorForwardedValuesAttributes

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

func (OrderedCacheBehaviorForwardedValuesAttributes) Cookies

func (OrderedCacheBehaviorForwardedValuesAttributes) Headers

func (OrderedCacheBehaviorForwardedValuesAttributes) InternalRef

func (OrderedCacheBehaviorForwardedValuesAttributes) InternalTokens

func (OrderedCacheBehaviorForwardedValuesAttributes) InternalWithRef

func (OrderedCacheBehaviorForwardedValuesAttributes) QueryString

func (OrderedCacheBehaviorForwardedValuesAttributes) QueryStringCacheKeys

type OrderedCacheBehaviorForwardedValuesCookies

type OrderedCacheBehaviorForwardedValuesCookies struct {
	// Forward: string, required
	Forward terra.StringValue `hcl:"forward,attr" validate:"required"`
	// WhitelistedNames: set of string, optional
	WhitelistedNames terra.SetValue[terra.StringValue] `hcl:"whitelisted_names,attr"`
}

type OrderedCacheBehaviorForwardedValuesCookiesAttributes

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

func (OrderedCacheBehaviorForwardedValuesCookiesAttributes) Forward

func (OrderedCacheBehaviorForwardedValuesCookiesAttributes) InternalRef

func (OrderedCacheBehaviorForwardedValuesCookiesAttributes) InternalTokens

func (OrderedCacheBehaviorForwardedValuesCookiesAttributes) InternalWithRef

func (OrderedCacheBehaviorForwardedValuesCookiesAttributes) WhitelistedNames

type OrderedCacheBehaviorForwardedValuesCookiesState

type OrderedCacheBehaviorForwardedValuesCookiesState struct {
	Forward          string   `json:"forward"`
	WhitelistedNames []string `json:"whitelisted_names"`
}

type OrderedCacheBehaviorForwardedValuesState

type OrderedCacheBehaviorForwardedValuesState struct {
	Headers              []string                                          `json:"headers"`
	QueryString          bool                                              `json:"query_string"`
	QueryStringCacheKeys []string                                          `json:"query_string_cache_keys"`
	Cookies              []OrderedCacheBehaviorForwardedValuesCookiesState `json:"cookies"`
}

type OrderedCacheBehaviorFunctionAssociation

type OrderedCacheBehaviorFunctionAssociation struct {
	// EventType: string, required
	EventType terra.StringValue `hcl:"event_type,attr" validate:"required"`
	// FunctionArn: string, required
	FunctionArn terra.StringValue `hcl:"function_arn,attr" validate:"required"`
}

type OrderedCacheBehaviorFunctionAssociationAttributes

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

func (OrderedCacheBehaviorFunctionAssociationAttributes) EventType

func (OrderedCacheBehaviorFunctionAssociationAttributes) FunctionArn

func (OrderedCacheBehaviorFunctionAssociationAttributes) InternalRef

func (OrderedCacheBehaviorFunctionAssociationAttributes) InternalTokens

func (OrderedCacheBehaviorFunctionAssociationAttributes) InternalWithRef

type OrderedCacheBehaviorFunctionAssociationState

type OrderedCacheBehaviorFunctionAssociationState struct {
	EventType   string `json:"event_type"`
	FunctionArn string `json:"function_arn"`
}

type OrderedCacheBehaviorLambdaFunctionAssociation

type OrderedCacheBehaviorLambdaFunctionAssociation struct {
	// EventType: string, required
	EventType terra.StringValue `hcl:"event_type,attr" validate:"required"`
	// IncludeBody: bool, optional
	IncludeBody terra.BoolValue `hcl:"include_body,attr"`
	// LambdaArn: string, required
	LambdaArn terra.StringValue `hcl:"lambda_arn,attr" validate:"required"`
}

type OrderedCacheBehaviorLambdaFunctionAssociationAttributes

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

func (OrderedCacheBehaviorLambdaFunctionAssociationAttributes) EventType

func (OrderedCacheBehaviorLambdaFunctionAssociationAttributes) IncludeBody

func (OrderedCacheBehaviorLambdaFunctionAssociationAttributes) InternalRef

func (OrderedCacheBehaviorLambdaFunctionAssociationAttributes) InternalTokens

func (OrderedCacheBehaviorLambdaFunctionAssociationAttributes) InternalWithRef

func (OrderedCacheBehaviorLambdaFunctionAssociationAttributes) LambdaArn

type OrderedCacheBehaviorLambdaFunctionAssociationState

type OrderedCacheBehaviorLambdaFunctionAssociationState struct {
	EventType   string `json:"event_type"`
	IncludeBody bool   `json:"include_body"`
	LambdaArn   string `json:"lambda_arn"`
}

type OrderedCacheBehaviorState

type OrderedCacheBehaviorState struct {
	AllowedMethods            []string                                             `json:"allowed_methods"`
	CachePolicyId             string                                               `json:"cache_policy_id"`
	CachedMethods             []string                                             `json:"cached_methods"`
	Compress                  bool                                                 `json:"compress"`
	DefaultTtl                float64                                              `json:"default_ttl"`
	FieldLevelEncryptionId    string                                               `json:"field_level_encryption_id"`
	MaxTtl                    float64                                              `json:"max_ttl"`
	MinTtl                    float64                                              `json:"min_ttl"`
	OriginRequestPolicyId     string                                               `json:"origin_request_policy_id"`
	PathPattern               string                                               `json:"path_pattern"`
	RealtimeLogConfigArn      string                                               `json:"realtime_log_config_arn"`
	ResponseHeadersPolicyId   string                                               `json:"response_headers_policy_id"`
	SmoothStreaming           bool                                                 `json:"smooth_streaming"`
	TargetOriginId            string                                               `json:"target_origin_id"`
	TrustedKeyGroups          []string                                             `json:"trusted_key_groups"`
	TrustedSigners            []string                                             `json:"trusted_signers"`
	ViewerProtocolPolicy      string                                               `json:"viewer_protocol_policy"`
	ForwardedValues           []OrderedCacheBehaviorForwardedValuesState           `json:"forwarded_values"`
	FunctionAssociation       []OrderedCacheBehaviorFunctionAssociationState       `json:"function_association"`
	LambdaFunctionAssociation []OrderedCacheBehaviorLambdaFunctionAssociationState `json:"lambda_function_association"`
}

type Origin

type Origin struct {
	// ConnectionAttempts: number, optional
	ConnectionAttempts terra.NumberValue `hcl:"connection_attempts,attr"`
	// ConnectionTimeout: number, optional
	ConnectionTimeout terra.NumberValue `hcl:"connection_timeout,attr"`
	// DomainName: string, required
	DomainName terra.StringValue `hcl:"domain_name,attr" validate:"required"`
	// OriginAccessControlId: string, optional
	OriginAccessControlId terra.StringValue `hcl:"origin_access_control_id,attr"`
	// OriginId: string, required
	OriginId terra.StringValue `hcl:"origin_id,attr" validate:"required"`
	// OriginPath: string, optional
	OriginPath terra.StringValue `hcl:"origin_path,attr"`
	// CustomHeader: min=0
	CustomHeader []CustomHeader `hcl:"custom_header,block" validate:"min=0"`
	// CustomOriginConfig: optional
	CustomOriginConfig *CustomOriginConfig `hcl:"custom_origin_config,block"`
	// OriginShield: optional
	OriginShield *OriginShield `hcl:"origin_shield,block"`
	// S3OriginConfig: optional
	S3OriginConfig *S3OriginConfig `hcl:"s3_origin_config,block"`
}

type OriginAttributes

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

func (OriginAttributes) ConnectionAttempts

func (o OriginAttributes) ConnectionAttempts() terra.NumberValue

func (OriginAttributes) ConnectionTimeout

func (o OriginAttributes) ConnectionTimeout() terra.NumberValue

func (OriginAttributes) CustomHeader

func (OriginAttributes) CustomOriginConfig

func (OriginAttributes) DomainName

func (o OriginAttributes) DomainName() terra.StringValue

func (OriginAttributes) InternalRef

func (o OriginAttributes) InternalRef() (terra.Reference, error)

func (OriginAttributes) InternalTokens

func (o OriginAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OriginAttributes) InternalWithRef

func (o OriginAttributes) InternalWithRef(ref terra.Reference) OriginAttributes

func (OriginAttributes) OriginAccessControlId

func (o OriginAttributes) OriginAccessControlId() terra.StringValue

func (OriginAttributes) OriginId

func (o OriginAttributes) OriginId() terra.StringValue

func (OriginAttributes) OriginPath

func (o OriginAttributes) OriginPath() terra.StringValue

func (OriginAttributes) OriginShield

func (OriginAttributes) S3OriginConfig

type OriginGroup

type OriginGroup struct {
	// OriginId: string, required
	OriginId terra.StringValue `hcl:"origin_id,attr" validate:"required"`
	// FailoverCriteria: required
	FailoverCriteria *FailoverCriteria `hcl:"failover_criteria,block" validate:"required"`
	// Member: min=2,max=2
	Member []Member `hcl:"member,block" validate:"min=2,max=2"`
}

type OriginGroupAttributes

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

func (OriginGroupAttributes) FailoverCriteria

func (OriginGroupAttributes) InternalRef

func (og OriginGroupAttributes) InternalRef() (terra.Reference, error)

func (OriginGroupAttributes) InternalTokens

func (og OriginGroupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OriginGroupAttributes) InternalWithRef

func (OriginGroupAttributes) Member

func (OriginGroupAttributes) OriginId

func (og OriginGroupAttributes) OriginId() terra.StringValue

type OriginGroupState

type OriginGroupState struct {
	OriginId         string                  `json:"origin_id"`
	FailoverCriteria []FailoverCriteriaState `json:"failover_criteria"`
	Member           []MemberState           `json:"member"`
}

type OriginShield

type OriginShield struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// OriginShieldRegion: string, required
	OriginShieldRegion terra.StringValue `hcl:"origin_shield_region,attr" validate:"required"`
}

type OriginShieldAttributes

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

func (OriginShieldAttributes) Enabled

func (os OriginShieldAttributes) Enabled() terra.BoolValue

func (OriginShieldAttributes) InternalRef

func (os OriginShieldAttributes) InternalRef() (terra.Reference, error)

func (OriginShieldAttributes) InternalTokens

func (os OriginShieldAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OriginShieldAttributes) InternalWithRef

func (OriginShieldAttributes) OriginShieldRegion

func (os OriginShieldAttributes) OriginShieldRegion() terra.StringValue

type OriginShieldState

type OriginShieldState struct {
	Enabled            bool   `json:"enabled"`
	OriginShieldRegion string `json:"origin_shield_region"`
}

type OriginState

type OriginState struct {
	ConnectionAttempts    float64                   `json:"connection_attempts"`
	ConnectionTimeout     float64                   `json:"connection_timeout"`
	DomainName            string                    `json:"domain_name"`
	OriginAccessControlId string                    `json:"origin_access_control_id"`
	OriginId              string                    `json:"origin_id"`
	OriginPath            string                    `json:"origin_path"`
	CustomHeader          []CustomHeaderState       `json:"custom_header"`
	CustomOriginConfig    []CustomOriginConfigState `json:"custom_origin_config"`
	OriginShield          []OriginShieldState       `json:"origin_shield"`
	S3OriginConfig        []S3OriginConfigState     `json:"s3_origin_config"`
}

type Restrictions

type Restrictions struct {
	// GeoRestriction: required
	GeoRestriction *GeoRestriction `hcl:"geo_restriction,block" validate:"required"`
}

type RestrictionsAttributes

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

func (RestrictionsAttributes) GeoRestriction

func (RestrictionsAttributes) InternalRef

func (r RestrictionsAttributes) InternalRef() (terra.Reference, error)

func (RestrictionsAttributes) InternalTokens

func (r RestrictionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestrictionsAttributes) InternalWithRef

type RestrictionsState

type RestrictionsState struct {
	GeoRestriction []GeoRestrictionState `json:"geo_restriction"`
}

type S3OriginConfig

type S3OriginConfig struct {
	// OriginAccessIdentity: string, required
	OriginAccessIdentity terra.StringValue `hcl:"origin_access_identity,attr" validate:"required"`
}

type S3OriginConfigAttributes

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

func (S3OriginConfigAttributes) InternalRef

func (soc S3OriginConfigAttributes) InternalRef() (terra.Reference, error)

func (S3OriginConfigAttributes) InternalTokens

func (soc S3OriginConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (S3OriginConfigAttributes) InternalWithRef

func (S3OriginConfigAttributes) OriginAccessIdentity

func (soc S3OriginConfigAttributes) OriginAccessIdentity() terra.StringValue

type S3OriginConfigState

type S3OriginConfigState struct {
	OriginAccessIdentity string `json:"origin_access_identity"`
}

type TrustedKeyGroups

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

type TrustedKeyGroupsAttributes

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

func (TrustedKeyGroupsAttributes) Enabled

func (TrustedKeyGroupsAttributes) InternalRef

func (tkg TrustedKeyGroupsAttributes) InternalRef() (terra.Reference, error)

func (TrustedKeyGroupsAttributes) InternalTokens

func (tkg TrustedKeyGroupsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TrustedKeyGroupsAttributes) InternalWithRef

func (TrustedKeyGroupsAttributes) Items

type TrustedKeyGroupsItems

type TrustedKeyGroupsItems struct{}

type TrustedKeyGroupsItemsAttributes

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

func (TrustedKeyGroupsItemsAttributes) InternalRef

func (TrustedKeyGroupsItemsAttributes) InternalTokens

func (i TrustedKeyGroupsItemsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TrustedKeyGroupsItemsAttributes) InternalWithRef

func (TrustedKeyGroupsItemsAttributes) KeyGroupId

func (TrustedKeyGroupsItemsAttributes) KeyPairIds

type TrustedKeyGroupsItemsState

type TrustedKeyGroupsItemsState struct {
	KeyGroupId string   `json:"key_group_id"`
	KeyPairIds []string `json:"key_pair_ids"`
}

type TrustedKeyGroupsState

type TrustedKeyGroupsState struct {
	Enabled bool                         `json:"enabled"`
	Items   []TrustedKeyGroupsItemsState `json:"items"`
}

type TrustedSigners

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

type TrustedSignersAttributes

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

func (TrustedSignersAttributes) Enabled

func (TrustedSignersAttributes) InternalRef

func (ts TrustedSignersAttributes) InternalRef() (terra.Reference, error)

func (TrustedSignersAttributes) InternalTokens

func (ts TrustedSignersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TrustedSignersAttributes) InternalWithRef

func (TrustedSignersAttributes) Items

type TrustedSignersItems

type TrustedSignersItems struct{}

type TrustedSignersItemsAttributes

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

func (TrustedSignersItemsAttributes) AwsAccountNumber

func (i TrustedSignersItemsAttributes) AwsAccountNumber() terra.StringValue

func (TrustedSignersItemsAttributes) InternalRef

func (TrustedSignersItemsAttributes) InternalTokens

func (i TrustedSignersItemsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TrustedSignersItemsAttributes) InternalWithRef

func (TrustedSignersItemsAttributes) KeyPairIds

type TrustedSignersItemsState

type TrustedSignersItemsState struct {
	AwsAccountNumber string   `json:"aws_account_number"`
	KeyPairIds       []string `json:"key_pair_ids"`
}

type TrustedSignersState

type TrustedSignersState struct {
	Enabled bool                       `json:"enabled"`
	Items   []TrustedSignersItemsState `json:"items"`
}

type ViewerCertificate

type ViewerCertificate struct {
	// AcmCertificateArn: string, optional
	AcmCertificateArn terra.StringValue `hcl:"acm_certificate_arn,attr"`
	// CloudfrontDefaultCertificate: bool, optional
	CloudfrontDefaultCertificate terra.BoolValue `hcl:"cloudfront_default_certificate,attr"`
	// IamCertificateId: string, optional
	IamCertificateId terra.StringValue `hcl:"iam_certificate_id,attr"`
	// MinimumProtocolVersion: string, optional
	MinimumProtocolVersion terra.StringValue `hcl:"minimum_protocol_version,attr"`
	// SslSupportMethod: string, optional
	SslSupportMethod terra.StringValue `hcl:"ssl_support_method,attr"`
}

type ViewerCertificateAttributes

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

func (ViewerCertificateAttributes) AcmCertificateArn

func (vc ViewerCertificateAttributes) AcmCertificateArn() terra.StringValue

func (ViewerCertificateAttributes) CloudfrontDefaultCertificate

func (vc ViewerCertificateAttributes) CloudfrontDefaultCertificate() terra.BoolValue

func (ViewerCertificateAttributes) IamCertificateId

func (vc ViewerCertificateAttributes) IamCertificateId() terra.StringValue

func (ViewerCertificateAttributes) InternalRef

func (vc ViewerCertificateAttributes) InternalRef() (terra.Reference, error)

func (ViewerCertificateAttributes) InternalTokens

func (vc ViewerCertificateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ViewerCertificateAttributes) InternalWithRef

func (ViewerCertificateAttributes) MinimumProtocolVersion

func (vc ViewerCertificateAttributes) MinimumProtocolVersion() terra.StringValue

func (ViewerCertificateAttributes) SslSupportMethod

func (vc ViewerCertificateAttributes) SslSupportMethod() terra.StringValue

type ViewerCertificateState

type ViewerCertificateState struct {
	AcmCertificateArn            string `json:"acm_certificate_arn"`
	CloudfrontDefaultCertificate bool   `json:"cloudfront_default_certificate"`
	IamCertificateId             string `json:"iam_certificate_id"`
	MinimumProtocolVersion       string `json:"minimum_protocol_version"`
	SslSupportMethod             string `json:"ssl_support_method"`
}

Jump to

Keyboard shortcuts

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