aws_lightsail_distribution

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 {
	// BundleId: string, required
	BundleId terra.StringValue `hcl:"bundle_id,attr" validate:"required"`
	// CertificateName: string, optional
	CertificateName terra.StringValue `hcl:"certificate_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IpAddressType: string, optional
	IpAddressType terra.StringValue `hcl:"ip_address_type,attr"`
	// IsEnabled: bool, optional
	IsEnabled terra.BoolValue `hcl:"is_enabled,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// CacheBehavior: min=0
	CacheBehavior []CacheBehavior `hcl:"cache_behavior,block" validate:"min=0"`
	// CacheBehaviorSettings: optional
	CacheBehaviorSettings *CacheBehaviorSettings `hcl:"cache_behavior_settings,block"`
	// DefaultCacheBehavior: required
	DefaultCacheBehavior *DefaultCacheBehavior `hcl:"default_cache_behavior,block" validate:"required"`
	// Origin: required
	Origin *Origin `hcl:"origin,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_lightsail_distribution.

type CacheBehavior

type CacheBehavior struct {
	// Behavior: string, required
	Behavior terra.StringValue `hcl:"behavior,attr" validate:"required"`
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
}

type CacheBehaviorAttributes

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

func (CacheBehaviorAttributes) Behavior

func (CacheBehaviorAttributes) InternalRef

func (cb CacheBehaviorAttributes) InternalRef() (terra.Reference, error)

func (CacheBehaviorAttributes) InternalTokens

func (cb CacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CacheBehaviorAttributes) InternalWithRef

func (CacheBehaviorAttributes) Path

type CacheBehaviorSettings

type CacheBehaviorSettings struct {
	// AllowedHttpMethods: string, optional
	AllowedHttpMethods terra.StringValue `hcl:"allowed_http_methods,attr"`
	// CachedHttpMethods: string, optional
	CachedHttpMethods terra.StringValue `hcl:"cached_http_methods,attr"`
	// DefaultTtl: number, optional
	DefaultTtl terra.NumberValue `hcl:"default_ttl,attr"`
	// MaximumTtl: number, optional
	MaximumTtl terra.NumberValue `hcl:"maximum_ttl,attr"`
	// MinimumTtl: number, optional
	MinimumTtl terra.NumberValue `hcl:"minimum_ttl,attr"`
	// CacheBehaviorSettingsForwardedCookies: optional
	ForwardedCookies *CacheBehaviorSettingsForwardedCookies `hcl:"forwarded_cookies,block"`
	// CacheBehaviorSettingsForwardedHeaders: optional
	ForwardedHeaders *CacheBehaviorSettingsForwardedHeaders `hcl:"forwarded_headers,block"`
	// CacheBehaviorSettingsForwardedQueryStrings: optional
	ForwardedQueryStrings *CacheBehaviorSettingsForwardedQueryStrings `hcl:"forwarded_query_strings,block"`
}

type CacheBehaviorSettingsAttributes

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

func (CacheBehaviorSettingsAttributes) AllowedHttpMethods

func (cbs CacheBehaviorSettingsAttributes) AllowedHttpMethods() terra.StringValue

func (CacheBehaviorSettingsAttributes) CachedHttpMethods

func (cbs CacheBehaviorSettingsAttributes) CachedHttpMethods() terra.StringValue

func (CacheBehaviorSettingsAttributes) DefaultTtl

func (CacheBehaviorSettingsAttributes) ForwardedCookies

func (CacheBehaviorSettingsAttributes) ForwardedHeaders

func (CacheBehaviorSettingsAttributes) ForwardedQueryStrings

func (CacheBehaviorSettingsAttributes) InternalRef

func (CacheBehaviorSettingsAttributes) InternalTokens

func (cbs CacheBehaviorSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CacheBehaviorSettingsAttributes) InternalWithRef

func (CacheBehaviorSettingsAttributes) MaximumTtl

func (CacheBehaviorSettingsAttributes) MinimumTtl

type CacheBehaviorSettingsForwardedCookies

type CacheBehaviorSettingsForwardedCookies struct {
	// CookiesAllowList: set of string, optional
	CookiesAllowList terra.SetValue[terra.StringValue] `hcl:"cookies_allow_list,attr"`
	// Option: string, optional
	Option terra.StringValue `hcl:"option,attr"`
}

type CacheBehaviorSettingsForwardedCookiesAttributes

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

func (CacheBehaviorSettingsForwardedCookiesAttributes) CookiesAllowList

func (CacheBehaviorSettingsForwardedCookiesAttributes) InternalRef

func (CacheBehaviorSettingsForwardedCookiesAttributes) InternalTokens

func (CacheBehaviorSettingsForwardedCookiesAttributes) InternalWithRef

func (CacheBehaviorSettingsForwardedCookiesAttributes) Option

type CacheBehaviorSettingsForwardedCookiesState

type CacheBehaviorSettingsForwardedCookiesState struct {
	CookiesAllowList []string `json:"cookies_allow_list"`
	Option           string   `json:"option"`
}

type CacheBehaviorSettingsForwardedHeaders

type CacheBehaviorSettingsForwardedHeaders struct {
	// HeadersAllowList: set of string, optional
	HeadersAllowList terra.SetValue[terra.StringValue] `hcl:"headers_allow_list,attr"`
	// Option: string, optional
	Option terra.StringValue `hcl:"option,attr"`
}

type CacheBehaviorSettingsForwardedHeadersAttributes

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

func (CacheBehaviorSettingsForwardedHeadersAttributes) HeadersAllowList

func (CacheBehaviorSettingsForwardedHeadersAttributes) InternalRef

func (CacheBehaviorSettingsForwardedHeadersAttributes) InternalTokens

func (CacheBehaviorSettingsForwardedHeadersAttributes) InternalWithRef

func (CacheBehaviorSettingsForwardedHeadersAttributes) Option

type CacheBehaviorSettingsForwardedHeadersState

type CacheBehaviorSettingsForwardedHeadersState struct {
	HeadersAllowList []string `json:"headers_allow_list"`
	Option           string   `json:"option"`
}

type CacheBehaviorSettingsForwardedQueryStrings

type CacheBehaviorSettingsForwardedQueryStrings struct {
	// Option: bool, optional
	Option terra.BoolValue `hcl:"option,attr"`
	// QueryStringsAllowedList: set of string, optional
	QueryStringsAllowedList terra.SetValue[terra.StringValue] `hcl:"query_strings_allowed_list,attr"`
}

type CacheBehaviorSettingsForwardedQueryStringsAttributes

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

func (CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalRef

func (CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalTokens

func (CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalWithRef

func (CacheBehaviorSettingsForwardedQueryStringsAttributes) Option

func (CacheBehaviorSettingsForwardedQueryStringsAttributes) QueryStringsAllowedList

type CacheBehaviorSettingsForwardedQueryStringsState

type CacheBehaviorSettingsForwardedQueryStringsState struct {
	Option                  bool     `json:"option"`
	QueryStringsAllowedList []string `json:"query_strings_allowed_list"`
}

type CacheBehaviorSettingsState

type CacheBehaviorSettingsState struct {
	AllowedHttpMethods    string                                            `json:"allowed_http_methods"`
	CachedHttpMethods     string                                            `json:"cached_http_methods"`
	DefaultTtl            float64                                           `json:"default_ttl"`
	MaximumTtl            float64                                           `json:"maximum_ttl"`
	MinimumTtl            float64                                           `json:"minimum_ttl"`
	ForwardedCookies      []CacheBehaviorSettingsForwardedCookiesState      `json:"forwarded_cookies"`
	ForwardedHeaders      []CacheBehaviorSettingsForwardedHeadersState      `json:"forwarded_headers"`
	ForwardedQueryStrings []CacheBehaviorSettingsForwardedQueryStringsState `json:"forwarded_query_strings"`
}

type CacheBehaviorState

type CacheBehaviorState struct {
	Behavior string `json:"behavior"`
	Path     string `json:"path"`
}

type DefaultCacheBehavior

type DefaultCacheBehavior struct {
	// Behavior: string, required
	Behavior terra.StringValue `hcl:"behavior,attr" validate:"required"`
}

type DefaultCacheBehaviorAttributes

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

func (DefaultCacheBehaviorAttributes) Behavior

func (DefaultCacheBehaviorAttributes) InternalRef

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

func (DefaultCacheBehaviorAttributes) InternalTokens

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

func (DefaultCacheBehaviorAttributes) InternalWithRef

type DefaultCacheBehaviorState

type DefaultCacheBehaviorState struct {
	Behavior string `json:"behavior"`
}

type LocationAttributes

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

func (LocationAttributes) AvailabilityZone

func (l LocationAttributes) AvailabilityZone() terra.StringValue

func (LocationAttributes) InternalRef

func (l LocationAttributes) InternalRef() (terra.Reference, error)

func (LocationAttributes) InternalTokens

func (l LocationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LocationAttributes) InternalWithRef

func (l LocationAttributes) InternalWithRef(ref terra.Reference) LocationAttributes

func (LocationAttributes) RegionName

func (l LocationAttributes) RegionName() terra.StringValue

type LocationState

type LocationState struct {
	AvailabilityZone string `json:"availability_zone"`
	RegionName       string `json:"region_name"`
}

type Origin

type Origin struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ProtocolPolicy: string, optional
	ProtocolPolicy terra.StringValue `hcl:"protocol_policy,attr"`
	// RegionName: string, required
	RegionName terra.StringValue `hcl:"region_name,attr" validate:"required"`
}

type OriginAttributes

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

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) Name

func (OriginAttributes) ProtocolPolicy

func (o OriginAttributes) ProtocolPolicy() terra.StringValue

func (OriginAttributes) RegionName

func (o OriginAttributes) RegionName() terra.StringValue

func (OriginAttributes) ResourceType

func (o OriginAttributes) ResourceType() terra.StringValue

type OriginState

type OriginState struct {
	Name           string `json:"name"`
	ProtocolPolicy string `json:"protocol_policy"`
	RegionName     string `json:"region_name"`
	ResourceType   string `json:"resource_type"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ald *Resource) Attributes() awsLightsailDistributionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ald *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ald *Resource) State() (*awsLightsailDistributionState, bool)

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

func (*Resource) StateMust

func (ald *Resource) StateMust() *awsLightsailDistributionState

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

func (*Resource) Type

func (ald *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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