Documentation ¶
Index ¶
- type Args
- type Cors
- type CorsAttributes
- func (c CorsAttributes) AllowCredentials() terra.BoolValue
- func (c CorsAttributes) AllowHeaders() terra.SetValue[terra.StringValue]
- func (c CorsAttributes) AllowMethods() terra.SetValue[terra.StringValue]
- func (c CorsAttributes) AllowOrigins() terra.SetValue[terra.StringValue]
- func (c CorsAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
- func (c CorsAttributes) InternalRef() (terra.Reference, error)
- func (c CorsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c CorsAttributes) InternalWithRef(ref terra.Reference) CorsAttributes
- func (c CorsAttributes) MaxAge() terra.NumberValue
- type CorsState
- type DataArgs
- type DataCorsAttributes
- func (c DataCorsAttributes) AllowCredentials() terra.BoolValue
- func (c DataCorsAttributes) AllowHeaders() terra.ListValue[terra.StringValue]
- func (c DataCorsAttributes) AllowMethods() terra.ListValue[terra.StringValue]
- func (c DataCorsAttributes) AllowOrigins() terra.ListValue[terra.StringValue]
- func (c DataCorsAttributes) ExposeHeaders() terra.ListValue[terra.StringValue]
- func (c DataCorsAttributes) InternalRef() (terra.Reference, error)
- func (c DataCorsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c DataCorsAttributes) InternalWithRef(ref terra.Reference) DataCorsAttributes
- func (c DataCorsAttributes) MaxAge() terra.NumberValue
- type DataCorsState
- type DataSource
- type Resource
- func (alfu *Resource) Attributes() awsLambdaFunctionUrlAttributes
- func (alfu *Resource) Configuration() interface{}
- func (alfu *Resource) DependOn() terra.Reference
- func (alfu *Resource) Dependencies() terra.Dependencies
- func (alfu *Resource) ImportState(state io.Reader) error
- func (alfu *Resource) LifecycleManagement() *terra.Lifecycle
- func (alfu *Resource) LocalName() string
- func (alfu *Resource) State() (*awsLambdaFunctionUrlState, bool)
- func (alfu *Resource) StateMust() *awsLambdaFunctionUrlState
- func (alfu *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- type TimeoutsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // AuthorizationType: string, required AuthorizationType terra.StringValue `hcl:"authorization_type,attr" validate:"required"` // FunctionName: string, required FunctionName terra.StringValue `hcl:"function_name,attr" validate:"required"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Qualifier: string, optional Qualifier terra.StringValue `hcl:"qualifier,attr"` // Cors: optional Cors *Cors `hcl:"cors,block"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for aws_lambda_function_url.
type Cors ¶
type Cors struct { // AllowCredentials: bool, optional AllowCredentials terra.BoolValue `hcl:"allow_credentials,attr"` // AllowHeaders: set of string, optional AllowHeaders terra.SetValue[terra.StringValue] `hcl:"allow_headers,attr"` // AllowMethods: set of string, optional AllowMethods terra.SetValue[terra.StringValue] `hcl:"allow_methods,attr"` // AllowOrigins: set of string, optional AllowOrigins terra.SetValue[terra.StringValue] `hcl:"allow_origins,attr"` // ExposeHeaders: set of string, optional ExposeHeaders terra.SetValue[terra.StringValue] `hcl:"expose_headers,attr"` // MaxAge: number, optional MaxAge terra.NumberValue `hcl:"max_age,attr"` }
type CorsAttributes ¶
type CorsAttributes struct {
// contains filtered or unexported fields
}
func (CorsAttributes) AllowCredentials ¶
func (c CorsAttributes) AllowCredentials() terra.BoolValue
func (CorsAttributes) AllowHeaders ¶
func (c CorsAttributes) AllowHeaders() terra.SetValue[terra.StringValue]
func (CorsAttributes) AllowMethods ¶
func (c CorsAttributes) AllowMethods() terra.SetValue[terra.StringValue]
func (CorsAttributes) AllowOrigins ¶
func (c CorsAttributes) AllowOrigins() terra.SetValue[terra.StringValue]
func (CorsAttributes) ExposeHeaders ¶
func (c CorsAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
func (CorsAttributes) InternalRef ¶
func (c CorsAttributes) InternalRef() (terra.Reference, error)
func (CorsAttributes) InternalTokens ¶
func (c CorsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CorsAttributes) InternalWithRef ¶
func (c CorsAttributes) InternalWithRef(ref terra.Reference) CorsAttributes
func (CorsAttributes) MaxAge ¶
func (c CorsAttributes) MaxAge() terra.NumberValue
type DataArgs ¶
type DataArgs struct { // FunctionName: string, required FunctionName terra.StringValue `hcl:"function_name,attr" validate:"required"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Qualifier: string, optional Qualifier terra.StringValue `hcl:"qualifier,attr"` }
DataArgs contains the configurations for aws_lambda_function_url.
type DataCorsAttributes ¶
type DataCorsAttributes struct {
// contains filtered or unexported fields
}
func (DataCorsAttributes) AllowCredentials ¶
func (c DataCorsAttributes) AllowCredentials() terra.BoolValue
func (DataCorsAttributes) AllowHeaders ¶
func (c DataCorsAttributes) AllowHeaders() terra.ListValue[terra.StringValue]
func (DataCorsAttributes) AllowMethods ¶
func (c DataCorsAttributes) AllowMethods() terra.ListValue[terra.StringValue]
func (DataCorsAttributes) AllowOrigins ¶
func (c DataCorsAttributes) AllowOrigins() terra.ListValue[terra.StringValue]
func (DataCorsAttributes) ExposeHeaders ¶
func (c DataCorsAttributes) ExposeHeaders() terra.ListValue[terra.StringValue]
func (DataCorsAttributes) InternalRef ¶
func (c DataCorsAttributes) InternalRef() (terra.Reference, error)
func (DataCorsAttributes) InternalTokens ¶
func (c DataCorsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataCorsAttributes) InternalWithRef ¶
func (c DataCorsAttributes) InternalWithRef(ref terra.Reference) DataCorsAttributes
func (DataCorsAttributes) MaxAge ¶
func (c DataCorsAttributes) MaxAge() terra.NumberValue
type DataCorsState ¶
type DataSource ¶
DataSource represents the Terraform data resource aws_lambda_function_url.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (alfu *DataSource) Attributes() dataAwsLambdaFunctionUrlAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (alfu *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (alfu *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (alfu *DataSource) LocalName() string
LocalName returns the local name for DataSource.
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_lambda_function_url.
func (*Resource) Attributes ¶
func (alfu *Resource) Attributes() awsLambdaFunctionUrlAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (alfu *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (alfu *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"` }
type TimeoutsAttributes ¶
type TimeoutsAttributes struct {
// contains filtered or unexported fields
}
func (TimeoutsAttributes) Create ¶
func (t TimeoutsAttributes) Create() 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
type TimeoutsState ¶
type TimeoutsState struct {
Create string `json:"create"`
}