aws_cloudfront_origin_request_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"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// CookiesConfig: required
	CookiesConfig *CookiesConfig `hcl:"cookies_config,block" validate:"required"`
	// HeadersConfig: required
	HeadersConfig *HeadersConfig `hcl:"headers_config,block" validate:"required"`
	// QueryStringsConfig: required
	QueryStringsConfig *QueryStringsConfig `hcl:"query_strings_config,block" validate:"required"`
}

Args contains the configurations for aws_cloudfront_origin_request_policy.

type CookiesConfig

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

type CookiesConfigAttributes

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

func (CookiesConfigAttributes) CookieBehavior

func (cc CookiesConfigAttributes) CookieBehavior() terra.StringValue

func (CookiesConfigAttributes) Cookies

func (CookiesConfigAttributes) InternalRef

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

func (CookiesConfigAttributes) InternalTokens

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

func (CookiesConfigAttributes) InternalWithRef

type CookiesConfigCookies

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

type CookiesConfigCookiesAttributes

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

func (CookiesConfigCookiesAttributes) InternalRef

func (CookiesConfigCookiesAttributes) InternalTokens

func (c CookiesConfigCookiesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CookiesConfigCookiesAttributes) InternalWithRef

func (CookiesConfigCookiesAttributes) Items

type CookiesConfigCookiesState

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

type CookiesConfigState

type CookiesConfigState struct {
	CookieBehavior string                      `json:"cookie_behavior"`
	Cookies        []CookiesConfigCookiesState `json:"cookies"`
}

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

type DataCookiesConfigAttributes

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

func (DataCookiesConfigAttributes) CookieBehavior

func (cc DataCookiesConfigAttributes) CookieBehavior() terra.StringValue

func (DataCookiesConfigAttributes) Cookies

func (DataCookiesConfigAttributes) InternalRef

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

func (DataCookiesConfigAttributes) InternalTokens

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

func (DataCookiesConfigAttributes) InternalWithRef

type DataCookiesConfigCookiesAttributes

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

func (DataCookiesConfigCookiesAttributes) InternalRef

func (DataCookiesConfigCookiesAttributes) InternalTokens

func (DataCookiesConfigCookiesAttributes) InternalWithRef

func (DataCookiesConfigCookiesAttributes) Items

type DataCookiesConfigCookiesState

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

type DataCookiesConfigState

type DataCookiesConfigState struct {
	CookieBehavior string                          `json:"cookie_behavior"`
	Cookies        []DataCookiesConfigCookiesState `json:"cookies"`
}

type DataHeadersConfigAttributes

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

func (DataHeadersConfigAttributes) HeaderBehavior

func (hc DataHeadersConfigAttributes) HeaderBehavior() terra.StringValue

func (DataHeadersConfigAttributes) Headers

func (DataHeadersConfigAttributes) InternalRef

func (hc DataHeadersConfigAttributes) InternalRef() (terra.Reference, error)

func (DataHeadersConfigAttributes) InternalTokens

func (hc DataHeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataHeadersConfigAttributes) InternalWithRef

type DataHeadersConfigHeadersAttributes

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

func (DataHeadersConfigHeadersAttributes) InternalRef

func (DataHeadersConfigHeadersAttributes) InternalTokens

func (DataHeadersConfigHeadersAttributes) InternalWithRef

func (DataHeadersConfigHeadersAttributes) Items

type DataHeadersConfigHeadersState

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

type DataHeadersConfigState

type DataHeadersConfigState struct {
	HeaderBehavior string                          `json:"header_behavior"`
	Headers        []DataHeadersConfigHeadersState `json:"headers"`
}

type DataQueryStringsConfigAttributes

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

func (DataQueryStringsConfigAttributes) InternalRef

func (DataQueryStringsConfigAttributes) InternalTokens

func (qsc DataQueryStringsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataQueryStringsConfigAttributes) InternalWithRef

func (DataQueryStringsConfigAttributes) QueryStringBehavior

func (qsc DataQueryStringsConfigAttributes) QueryStringBehavior() terra.StringValue

func (DataQueryStringsConfigAttributes) QueryStrings

type DataQueryStringsConfigQueryStringsAttributes

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

func (DataQueryStringsConfigQueryStringsAttributes) InternalRef

func (DataQueryStringsConfigQueryStringsAttributes) InternalTokens

func (DataQueryStringsConfigQueryStringsAttributes) InternalWithRef

func (DataQueryStringsConfigQueryStringsAttributes) Items

type DataQueryStringsConfigQueryStringsState

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

type DataQueryStringsConfigState

type DataQueryStringsConfigState struct {
	QueryStringBehavior string                                    `json:"query_string_behavior"`
	QueryStrings        []DataQueryStringsConfigQueryStringsState `json:"query_strings"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_cloudfront_origin_request_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (acorp *DataSource) Attributes() dataAwsCloudfrontOriginRequestPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (acorp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (acorp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type HeadersConfig

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

type HeadersConfigAttributes

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

func (HeadersConfigAttributes) HeaderBehavior

func (hc HeadersConfigAttributes) HeaderBehavior() terra.StringValue

func (HeadersConfigAttributes) Headers

func (HeadersConfigAttributes) InternalRef

func (hc HeadersConfigAttributes) InternalRef() (terra.Reference, error)

func (HeadersConfigAttributes) InternalTokens

func (hc HeadersConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HeadersConfigAttributes) InternalWithRef

type HeadersConfigHeaders

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

type HeadersConfigHeadersAttributes

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

func (HeadersConfigHeadersAttributes) InternalRef

func (HeadersConfigHeadersAttributes) InternalTokens

func (h HeadersConfigHeadersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HeadersConfigHeadersAttributes) InternalWithRef

func (HeadersConfigHeadersAttributes) Items

type HeadersConfigHeadersState

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

type HeadersConfigState

type HeadersConfigState struct {
	HeaderBehavior string                      `json:"header_behavior"`
	Headers        []HeadersConfigHeadersState `json:"headers"`
}

type QueryStringsConfig

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

type QueryStringsConfigAttributes

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

func (QueryStringsConfigAttributes) InternalRef

func (qsc QueryStringsConfigAttributes) InternalRef() (terra.Reference, error)

func (QueryStringsConfigAttributes) InternalTokens

func (qsc QueryStringsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (QueryStringsConfigAttributes) InternalWithRef

func (QueryStringsConfigAttributes) QueryStringBehavior

func (qsc QueryStringsConfigAttributes) QueryStringBehavior() terra.StringValue

func (QueryStringsConfigAttributes) QueryStrings

type QueryStringsConfigQueryStrings

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

type QueryStringsConfigQueryStringsAttributes

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

func (QueryStringsConfigQueryStringsAttributes) InternalRef

func (QueryStringsConfigQueryStringsAttributes) InternalTokens

func (QueryStringsConfigQueryStringsAttributes) InternalWithRef

func (QueryStringsConfigQueryStringsAttributes) Items

type QueryStringsConfigQueryStringsState

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

type QueryStringsConfigState

type QueryStringsConfigState struct {
	QueryStringBehavior string                                `json:"query_string_behavior"`
	QueryStrings        []QueryStringsConfigQueryStringsState `json:"query_strings"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acorp *Resource) Attributes() awsCloudfrontOriginRequestPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acorp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acorp *Resource) State() (*awsCloudfrontOriginRequestPolicyState, bool)

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

func (*Resource) StateMust

func (acorp *Resource) StateMust() *awsCloudfrontOriginRequestPolicyState

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

func (*Resource) Type

func (acorp *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