aws_lambda_function_url

package
v5.45.0 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 {
	// 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 CorsState

type CorsState struct {
	AllowCredentials bool     `json:"allow_credentials"`
	AllowHeaders     []string `json:"allow_headers"`
	AllowMethods     []string `json:"allow_methods"`
	AllowOrigins     []string `json:"allow_origins"`
	ExposeHeaders    []string `json:"expose_headers"`
	MaxAge           float64  `json:"max_age"`
}

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 (DataCorsAttributes) AllowMethods

func (DataCorsAttributes) AllowOrigins

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

type DataCorsState

type DataCorsState struct {
	AllowCredentials bool     `json:"allow_credentials"`
	AllowHeaders     []string `json:"allow_headers"`
	AllowMethods     []string `json:"allow_methods"`
	AllowOrigins     []string `json:"allow_origins"`
	ExposeHeaders    []string `json:"expose_headers"`
	MaxAge           float64  `json:"max_age"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

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 New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

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

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (alfu *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (alfu *Resource) State() (*awsLambdaFunctionUrlState, bool)

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

func (*Resource) StateMust

func (alfu *Resource) StateMust() *awsLambdaFunctionUrlState

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

func (*Resource) Type

func (alfu *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"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

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"`
}

Jump to

Keyboard shortcuts

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