Documentation ¶
Index ¶
- type Args
- type CacheBehavior
- type CacheBehaviorAttributes
- func (cb CacheBehaviorAttributes) Behavior() terra.StringValue
- func (cb CacheBehaviorAttributes) InternalRef() (terra.Reference, error)
- func (cb CacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cb CacheBehaviorAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorAttributes
- func (cb CacheBehaviorAttributes) Path() terra.StringValue
- type CacheBehaviorSettings
- type CacheBehaviorSettingsAttributes
- func (cbs CacheBehaviorSettingsAttributes) AllowedHttpMethods() terra.StringValue
- func (cbs CacheBehaviorSettingsAttributes) CachedHttpMethods() terra.StringValue
- func (cbs CacheBehaviorSettingsAttributes) DefaultTtl() terra.NumberValue
- func (cbs CacheBehaviorSettingsAttributes) ForwardedCookies() terra.ListValue[CacheBehaviorSettingsForwardedCookiesAttributes]
- func (cbs CacheBehaviorSettingsAttributes) ForwardedHeaders() terra.ListValue[CacheBehaviorSettingsForwardedHeadersAttributes]
- func (cbs CacheBehaviorSettingsAttributes) ForwardedQueryStrings() terra.ListValue[CacheBehaviorSettingsForwardedQueryStringsAttributes]
- func (cbs CacheBehaviorSettingsAttributes) InternalRef() (terra.Reference, error)
- func (cbs CacheBehaviorSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cbs CacheBehaviorSettingsAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsAttributes
- func (cbs CacheBehaviorSettingsAttributes) MaximumTtl() terra.NumberValue
- func (cbs CacheBehaviorSettingsAttributes) MinimumTtl() terra.NumberValue
- type CacheBehaviorSettingsForwardedCookies
- type CacheBehaviorSettingsForwardedCookiesAttributes
- func (fc CacheBehaviorSettingsForwardedCookiesAttributes) CookiesAllowList() terra.SetValue[terra.StringValue]
- func (fc CacheBehaviorSettingsForwardedCookiesAttributes) InternalRef() (terra.Reference, error)
- func (fc CacheBehaviorSettingsForwardedCookiesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fc CacheBehaviorSettingsForwardedCookiesAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsForwardedCookiesAttributes
- func (fc CacheBehaviorSettingsForwardedCookiesAttributes) Option() terra.StringValue
- type CacheBehaviorSettingsForwardedCookiesState
- type CacheBehaviorSettingsForwardedHeaders
- type CacheBehaviorSettingsForwardedHeadersAttributes
- func (fh CacheBehaviorSettingsForwardedHeadersAttributes) HeadersAllowList() terra.SetValue[terra.StringValue]
- func (fh CacheBehaviorSettingsForwardedHeadersAttributes) InternalRef() (terra.Reference, error)
- func (fh CacheBehaviorSettingsForwardedHeadersAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fh CacheBehaviorSettingsForwardedHeadersAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsForwardedHeadersAttributes
- func (fh CacheBehaviorSettingsForwardedHeadersAttributes) Option() terra.StringValue
- type CacheBehaviorSettingsForwardedHeadersState
- type CacheBehaviorSettingsForwardedQueryStrings
- type CacheBehaviorSettingsForwardedQueryStringsAttributes
- func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalRef() (terra.Reference, error)
- func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsForwardedQueryStringsAttributes
- func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) Option() terra.BoolValue
- func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) QueryStringsAllowedList() terra.SetValue[terra.StringValue]
- type CacheBehaviorSettingsForwardedQueryStringsState
- type CacheBehaviorSettingsState
- type CacheBehaviorState
- type DefaultCacheBehavior
- type DefaultCacheBehaviorAttributes
- func (dcb DefaultCacheBehaviorAttributes) Behavior() terra.StringValue
- func (dcb DefaultCacheBehaviorAttributes) InternalRef() (terra.Reference, error)
- func (dcb DefaultCacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (dcb DefaultCacheBehaviorAttributes) InternalWithRef(ref terra.Reference) DefaultCacheBehaviorAttributes
- type DefaultCacheBehaviorState
- type LocationAttributes
- func (l LocationAttributes) AvailabilityZone() terra.StringValue
- func (l LocationAttributes) InternalRef() (terra.Reference, error)
- func (l LocationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (l LocationAttributes) InternalWithRef(ref terra.Reference) LocationAttributes
- func (l LocationAttributes) RegionName() terra.StringValue
- type LocationState
- type Origin
- type OriginAttributes
- func (o OriginAttributes) InternalRef() (terra.Reference, error)
- func (o OriginAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (o OriginAttributes) InternalWithRef(ref terra.Reference) OriginAttributes
- func (o OriginAttributes) Name() terra.StringValue
- func (o OriginAttributes) ProtocolPolicy() terra.StringValue
- func (o OriginAttributes) RegionName() terra.StringValue
- func (o OriginAttributes) ResourceType() terra.StringValue
- type OriginState
- type Resource
- func (ald *Resource) Attributes() awsLightsailDistributionAttributes
- func (ald *Resource) Configuration() interface{}
- func (ald *Resource) DependOn() terra.Reference
- func (ald *Resource) Dependencies() terra.Dependencies
- func (ald *Resource) ImportState(state io.Reader) error
- func (ald *Resource) LifecycleManagement() *terra.Lifecycle
- func (ald *Resource) LocalName() string
- func (ald *Resource) State() (*awsLightsailDistributionState, bool)
- func (ald *Resource) StateMust() *awsLightsailDistributionState
- func (ald *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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 (cb CacheBehaviorAttributes) Behavior() terra.StringValue
func (CacheBehaviorAttributes) InternalRef ¶
func (cb CacheBehaviorAttributes) InternalRef() (terra.Reference, error)
func (CacheBehaviorAttributes) InternalTokens ¶
func (cb CacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CacheBehaviorAttributes) InternalWithRef ¶
func (cb CacheBehaviorAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorAttributes
func (CacheBehaviorAttributes) Path ¶
func (cb CacheBehaviorAttributes) Path() terra.StringValue
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 (cbs CacheBehaviorSettingsAttributes) DefaultTtl() terra.NumberValue
func (CacheBehaviorSettingsAttributes) ForwardedCookies ¶
func (cbs CacheBehaviorSettingsAttributes) ForwardedCookies() terra.ListValue[CacheBehaviorSettingsForwardedCookiesAttributes]
func (CacheBehaviorSettingsAttributes) ForwardedHeaders ¶
func (cbs CacheBehaviorSettingsAttributes) ForwardedHeaders() terra.ListValue[CacheBehaviorSettingsForwardedHeadersAttributes]
func (CacheBehaviorSettingsAttributes) ForwardedQueryStrings ¶
func (cbs CacheBehaviorSettingsAttributes) ForwardedQueryStrings() terra.ListValue[CacheBehaviorSettingsForwardedQueryStringsAttributes]
func (CacheBehaviorSettingsAttributes) InternalRef ¶
func (cbs CacheBehaviorSettingsAttributes) InternalRef() (terra.Reference, error)
func (CacheBehaviorSettingsAttributes) InternalTokens ¶
func (cbs CacheBehaviorSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CacheBehaviorSettingsAttributes) InternalWithRef ¶
func (cbs CacheBehaviorSettingsAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsAttributes
func (CacheBehaviorSettingsAttributes) MaximumTtl ¶
func (cbs CacheBehaviorSettingsAttributes) MaximumTtl() terra.NumberValue
func (CacheBehaviorSettingsAttributes) MinimumTtl ¶
func (cbs CacheBehaviorSettingsAttributes) MinimumTtl() terra.NumberValue
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 (fc CacheBehaviorSettingsForwardedCookiesAttributes) CookiesAllowList() terra.SetValue[terra.StringValue]
func (CacheBehaviorSettingsForwardedCookiesAttributes) InternalRef ¶
func (fc CacheBehaviorSettingsForwardedCookiesAttributes) InternalRef() (terra.Reference, error)
func (CacheBehaviorSettingsForwardedCookiesAttributes) InternalTokens ¶
func (fc CacheBehaviorSettingsForwardedCookiesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CacheBehaviorSettingsForwardedCookiesAttributes) InternalWithRef ¶
func (fc CacheBehaviorSettingsForwardedCookiesAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsForwardedCookiesAttributes
func (CacheBehaviorSettingsForwardedCookiesAttributes) Option ¶
func (fc CacheBehaviorSettingsForwardedCookiesAttributes) Option() terra.StringValue
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 (fh CacheBehaviorSettingsForwardedHeadersAttributes) HeadersAllowList() terra.SetValue[terra.StringValue]
func (CacheBehaviorSettingsForwardedHeadersAttributes) InternalRef ¶
func (fh CacheBehaviorSettingsForwardedHeadersAttributes) InternalRef() (terra.Reference, error)
func (CacheBehaviorSettingsForwardedHeadersAttributes) InternalTokens ¶
func (fh CacheBehaviorSettingsForwardedHeadersAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CacheBehaviorSettingsForwardedHeadersAttributes) InternalWithRef ¶
func (fh CacheBehaviorSettingsForwardedHeadersAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsForwardedHeadersAttributes
func (CacheBehaviorSettingsForwardedHeadersAttributes) Option ¶
func (fh CacheBehaviorSettingsForwardedHeadersAttributes) Option() terra.StringValue
type CacheBehaviorSettingsForwardedQueryStringsAttributes ¶
type CacheBehaviorSettingsForwardedQueryStringsAttributes struct {
// contains filtered or unexported fields
}
func (CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalRef ¶
func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalRef() (terra.Reference, error)
func (CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalTokens ¶
func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalWithRef ¶
func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) InternalWithRef(ref terra.Reference) CacheBehaviorSettingsForwardedQueryStringsAttributes
func (CacheBehaviorSettingsForwardedQueryStringsAttributes) Option ¶
func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) Option() terra.BoolValue
func (CacheBehaviorSettingsForwardedQueryStringsAttributes) QueryStringsAllowedList ¶
func (fqs CacheBehaviorSettingsForwardedQueryStringsAttributes) QueryStringsAllowedList() terra.SetValue[terra.StringValue]
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 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 (dcb DefaultCacheBehaviorAttributes) Behavior() terra.StringValue
func (DefaultCacheBehaviorAttributes) InternalRef ¶
func (dcb DefaultCacheBehaviorAttributes) InternalRef() (terra.Reference, error)
func (DefaultCacheBehaviorAttributes) InternalTokens ¶
func (dcb DefaultCacheBehaviorAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DefaultCacheBehaviorAttributes) InternalWithRef ¶
func (dcb DefaultCacheBehaviorAttributes) InternalWithRef(ref terra.Reference) DefaultCacheBehaviorAttributes
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 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 (o OriginAttributes) Name() terra.StringValue
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 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 (*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) Dependencies ¶
func (ald *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
func (t TimeoutsAttributes) Update() terra.StringValue
type TimeoutsState ¶
Click to show internal directories.
Click to hide internal directories.