aws_cloudfront_cache_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"`
	// DefaultTtl: number, optional
	DefaultTtl terra.NumberValue `hcl:"default_ttl,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxTtl: number, optional
	MaxTtl terra.NumberValue `hcl:"max_ttl,attr"`
	// MinTtl: number, optional
	MinTtl terra.NumberValue `hcl:"min_ttl,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ParametersInCacheKeyAndForwardedToOrigin: required
	ParametersInCacheKeyAndForwardedToOrigin *ParametersInCacheKeyAndForwardedToOrigin `hcl:"parameters_in_cache_key_and_forwarded_to_origin,block" validate:"required"`
}

Args contains the configurations for aws_cloudfront_cache_policy.

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_cache_policy.

type DataParametersInCacheKeyAndForwardedToOriginAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) CookiesConfig

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingBrotli

func (pickafto DataParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingBrotli() terra.BoolValue

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingGzip

func (pickafto DataParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingGzip() terra.BoolValue

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) HeadersConfig

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) InternalWithRef

func (DataParametersInCacheKeyAndForwardedToOriginAttributes) QueryStringsConfig

type DataParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) CookieBehavior

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) InternalWithRef

type DataParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) Items

type DataParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesState

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

type DataParametersInCacheKeyAndForwardedToOriginCookiesConfigState

type DataParametersInCacheKeyAndForwardedToOriginCookiesConfigState struct {
	CookieBehavior string                                                                  `json:"cookie_behavior"`
	Cookies        []DataParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesState `json:"cookies"`
}

type DataParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) HeaderBehavior

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) InternalWithRef

type DataParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) Items

type DataParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersState

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

type DataParametersInCacheKeyAndForwardedToOriginHeadersConfigState

type DataParametersInCacheKeyAndForwardedToOriginHeadersConfigState struct {
	HeaderBehavior string                                                                  `json:"header_behavior"`
	Headers        []DataParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersState `json:"headers"`
}

type DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) InternalWithRef

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) QueryStringBehavior

type DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes

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

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes) InternalRef

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes) InternalTokens

func (DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes) Items

type DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsState

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

type DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigState

type DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigState struct {
	QueryStringBehavior string                                                                            `json:"query_string_behavior"`
	QueryStrings        []DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsState `json:"query_strings"`
}

type DataParametersInCacheKeyAndForwardedToOriginState

type DataParametersInCacheKeyAndForwardedToOriginState struct {
	EnableAcceptEncodingBrotli bool                                                                  `json:"enable_accept_encoding_brotli"`
	EnableAcceptEncodingGzip   bool                                                                  `json:"enable_accept_encoding_gzip"`
	CookiesConfig              []DataParametersInCacheKeyAndForwardedToOriginCookiesConfigState      `json:"cookies_config"`
	HeadersConfig              []DataParametersInCacheKeyAndForwardedToOriginHeadersConfigState      `json:"headers_config"`
	QueryStringsConfig         []DataParametersInCacheKeyAndForwardedToOriginQueryStringsConfigState `json:"query_strings_config"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_cloudfront_cache_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (accp *DataSource) Attributes() dataAwsCloudfrontCachePolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (accp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (accp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type ParametersInCacheKeyAndForwardedToOrigin

type ParametersInCacheKeyAndForwardedToOrigin struct {
	// EnableAcceptEncodingBrotli: bool, optional
	EnableAcceptEncodingBrotli terra.BoolValue `hcl:"enable_accept_encoding_brotli,attr"`
	// EnableAcceptEncodingGzip: bool, optional
	EnableAcceptEncodingGzip terra.BoolValue `hcl:"enable_accept_encoding_gzip,attr"`
	// ParametersInCacheKeyAndForwardedToOriginCookiesConfig: required
	CookiesConfig *ParametersInCacheKeyAndForwardedToOriginCookiesConfig `hcl:"cookies_config,block" validate:"required"`
	// ParametersInCacheKeyAndForwardedToOriginHeadersConfig: required
	HeadersConfig *ParametersInCacheKeyAndForwardedToOriginHeadersConfig `hcl:"headers_config,block" validate:"required"`
	// ParametersInCacheKeyAndForwardedToOriginQueryStringsConfig: required
	QueryStringsConfig *ParametersInCacheKeyAndForwardedToOriginQueryStringsConfig `hcl:"query_strings_config,block" validate:"required"`
}

type ParametersInCacheKeyAndForwardedToOriginAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginAttributes) CookiesConfig

func (ParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingBrotli

func (pickafto ParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingBrotli() terra.BoolValue

func (ParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingGzip

func (pickafto ParametersInCacheKeyAndForwardedToOriginAttributes) EnableAcceptEncodingGzip() terra.BoolValue

func (ParametersInCacheKeyAndForwardedToOriginAttributes) HeadersConfig

func (ParametersInCacheKeyAndForwardedToOriginAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginAttributes) InternalWithRef

func (ParametersInCacheKeyAndForwardedToOriginAttributes) QueryStringsConfig

type ParametersInCacheKeyAndForwardedToOriginCookiesConfig

type ParametersInCacheKeyAndForwardedToOriginCookiesConfig struct {
	// CookieBehavior: string, required
	CookieBehavior terra.StringValue `hcl:"cookie_behavior,attr" validate:"required"`
	// ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies: optional
	Cookies *ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies `hcl:"cookies,block"`
}

type ParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) CookieBehavior

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigAttributes) InternalWithRef

type ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookies

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

type ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) InternalWithRef

func (ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesAttributes) Items

type ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesState

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

type ParametersInCacheKeyAndForwardedToOriginCookiesConfigState

type ParametersInCacheKeyAndForwardedToOriginCookiesConfigState struct {
	CookieBehavior string                                                              `json:"cookie_behavior"`
	Cookies        []ParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesState `json:"cookies"`
}

type ParametersInCacheKeyAndForwardedToOriginHeadersConfig

type ParametersInCacheKeyAndForwardedToOriginHeadersConfig struct {
	// HeaderBehavior: string, optional
	HeaderBehavior terra.StringValue `hcl:"header_behavior,attr"`
	// ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders: optional
	Headers *ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders `hcl:"headers,block"`
}

type ParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) HeaderBehavior

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigAttributes) InternalWithRef

type ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeaders

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

type ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) InternalWithRef

func (ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersAttributes) Items

type ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersState

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

type ParametersInCacheKeyAndForwardedToOriginHeadersConfigState

type ParametersInCacheKeyAndForwardedToOriginHeadersConfigState struct {
	HeaderBehavior string                                                              `json:"header_behavior"`
	Headers        []ParametersInCacheKeyAndForwardedToOriginHeadersConfigHeadersState `json:"headers"`
}

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfig

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfig struct {
	// QueryStringBehavior: string, required
	QueryStringBehavior terra.StringValue `hcl:"query_string_behavior,attr" validate:"required"`
	// ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings: optional
	QueryStrings *ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings `hcl:"query_strings,block"`
}

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) InternalWithRef

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigAttributes) QueryStringBehavior

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStrings

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

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes

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

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes) InternalRef

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes) InternalTokens

func (ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsAttributes) Items

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsState

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

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigState

type ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigState struct {
	QueryStringBehavior string                                                                        `json:"query_string_behavior"`
	QueryStrings        []ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigQueryStringsState `json:"query_strings"`
}

type ParametersInCacheKeyAndForwardedToOriginState

type ParametersInCacheKeyAndForwardedToOriginState struct {
	EnableAcceptEncodingBrotli bool                                                              `json:"enable_accept_encoding_brotli"`
	EnableAcceptEncodingGzip   bool                                                              `json:"enable_accept_encoding_gzip"`
	CookiesConfig              []ParametersInCacheKeyAndForwardedToOriginCookiesConfigState      `json:"cookies_config"`
	HeadersConfig              []ParametersInCacheKeyAndForwardedToOriginHeadersConfigState      `json:"headers_config"`
	QueryStringsConfig         []ParametersInCacheKeyAndForwardedToOriginQueryStringsConfigState `json:"query_strings_config"`
}

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_cache_policy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (accp *Resource) Attributes() awsCloudfrontCachePolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (accp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (accp *Resource) State() (*awsCloudfrontCachePolicyState, bool)

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

func (*Resource) StateMust

func (accp *Resource) StateMust() *awsCloudfrontCachePolicyState

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

func (*Resource) Type

func (accp *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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