aws_apigatewayv2_api

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 {
	// ApiKeySelectionExpression: string, optional
	ApiKeySelectionExpression terra.StringValue `hcl:"api_key_selection_expression,attr"`
	// Body: string, optional
	Body terra.StringValue `hcl:"body,attr"`
	// CredentialsArn: string, optional
	CredentialsArn terra.StringValue `hcl:"credentials_arn,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DisableExecuteApiEndpoint: bool, optional
	DisableExecuteApiEndpoint terra.BoolValue `hcl:"disable_execute_api_endpoint,attr"`
	// FailOnWarnings: bool, optional
	FailOnWarnings terra.BoolValue `hcl:"fail_on_warnings,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ProtocolType: string, required
	ProtocolType terra.StringValue `hcl:"protocol_type,attr" validate:"required"`
	// RouteKey: string, optional
	RouteKey terra.StringValue `hcl:"route_key,attr"`
	// RouteSelectionExpression: string, optional
	RouteSelectionExpression terra.StringValue `hcl:"route_selection_expression,attr"`
	// 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"`
	// Target: string, optional
	Target terra.StringValue `hcl:"target,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// CorsConfiguration: optional
	CorsConfiguration *CorsConfiguration `hcl:"cors_configuration,block"`
}

Args contains the configurations for aws_apigatewayv2_api.

type CorsConfiguration

type CorsConfiguration 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 CorsConfigurationAttributes

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

func (CorsConfigurationAttributes) AllowCredentials

func (cc CorsConfigurationAttributes) AllowCredentials() terra.BoolValue

func (CorsConfigurationAttributes) AllowHeaders

func (CorsConfigurationAttributes) AllowMethods

func (CorsConfigurationAttributes) AllowOrigins

func (CorsConfigurationAttributes) ExposeHeaders

func (CorsConfigurationAttributes) InternalRef

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

func (CorsConfigurationAttributes) InternalTokens

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

func (CorsConfigurationAttributes) InternalWithRef

func (CorsConfigurationAttributes) MaxAge

type CorsConfigurationState

type CorsConfigurationState 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 {
	// ApiId: string, required
	ApiId terra.StringValue `hcl:"api_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_apigatewayv2_api.

type DataCorsConfigurationAttributes

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

func (DataCorsConfigurationAttributes) AllowCredentials

func (cc DataCorsConfigurationAttributes) AllowCredentials() terra.BoolValue

func (DataCorsConfigurationAttributes) AllowHeaders

func (DataCorsConfigurationAttributes) AllowMethods

func (DataCorsConfigurationAttributes) AllowOrigins

func (DataCorsConfigurationAttributes) ExposeHeaders

func (DataCorsConfigurationAttributes) InternalRef

func (DataCorsConfigurationAttributes) InternalTokens

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

func (DataCorsConfigurationAttributes) InternalWithRef

func (DataCorsConfigurationAttributes) MaxAge

type DataCorsConfigurationState

type DataCorsConfigurationState 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_apigatewayv2_api.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aaa *DataSource) Attributes() dataAwsApigatewayv2ApiAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aaa *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aaa *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_apigatewayv2_api.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aaa *Resource) Attributes() awsApigatewayv2ApiAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aaa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aaa *Resource) State() (*awsApigatewayv2ApiState, bool)

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

func (*Resource) StateMust

func (aaa *Resource) StateMust() *awsApigatewayv2ApiState

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

func (*Resource) Type

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