aws_appsync_function

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 {
	// ApiId: string, required
	ApiId terra.StringValue `hcl:"api_id,attr" validate:"required"`
	// DataSource: string, required
	DataSource terra.StringValue `hcl:"data_source,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// FunctionVersion: string, optional
	FunctionVersion terra.StringValue `hcl:"function_version,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxBatchSize: number, optional
	MaxBatchSize terra.NumberValue `hcl:"max_batch_size,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RequestMappingTemplate: string, required
	RequestMappingTemplate terra.StringValue `hcl:"request_mapping_template,attr" validate:"required"`
	// ResponseMappingTemplate: string, required
	ResponseMappingTemplate terra.StringValue `hcl:"response_mapping_template,attr" validate:"required"`
	// SyncConfig: optional
	SyncConfig *SyncConfig `hcl:"sync_config,block"`
}

Args contains the configurations for aws_appsync_function.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aaf *Resource) Attributes() awsAppsyncFunctionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aaf *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aaf *Resource) State() (*awsAppsyncFunctionState, bool)

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

func (*Resource) StateMust

func (aaf *Resource) StateMust() *awsAppsyncFunctionState

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

func (*Resource) Type

func (aaf *Resource) Type() string

Type returns the Terraform object type for Resource.

type SyncConfig

type SyncConfig struct {
	// ConflictDetection: string, optional
	ConflictDetection terra.StringValue `hcl:"conflict_detection,attr"`
	// ConflictHandler: string, optional
	ConflictHandler terra.StringValue `hcl:"conflict_handler,attr"`
	// SyncConfigLambdaConflictHandlerConfig: optional
	LambdaConflictHandlerConfig *SyncConfigLambdaConflictHandlerConfig `hcl:"lambda_conflict_handler_config,block"`
}

type SyncConfigAttributes

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

func (SyncConfigAttributes) ConflictDetection

func (sc SyncConfigAttributes) ConflictDetection() terra.StringValue

func (SyncConfigAttributes) ConflictHandler

func (sc SyncConfigAttributes) ConflictHandler() terra.StringValue

func (SyncConfigAttributes) InternalRef

func (sc SyncConfigAttributes) InternalRef() (terra.Reference, error)

func (SyncConfigAttributes) InternalTokens

func (sc SyncConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SyncConfigAttributes) InternalWithRef

func (sc SyncConfigAttributes) InternalWithRef(ref terra.Reference) SyncConfigAttributes

func (SyncConfigAttributes) LambdaConflictHandlerConfig

type SyncConfigLambdaConflictHandlerConfig

type SyncConfigLambdaConflictHandlerConfig struct {
	// LambdaConflictHandlerArn: string, optional
	LambdaConflictHandlerArn terra.StringValue `hcl:"lambda_conflict_handler_arn,attr"`
}

type SyncConfigLambdaConflictHandlerConfigAttributes

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

func (SyncConfigLambdaConflictHandlerConfigAttributes) InternalRef

func (SyncConfigLambdaConflictHandlerConfigAttributes) InternalTokens

func (SyncConfigLambdaConflictHandlerConfigAttributes) InternalWithRef

func (SyncConfigLambdaConflictHandlerConfigAttributes) LambdaConflictHandlerArn

func (lchc SyncConfigLambdaConflictHandlerConfigAttributes) LambdaConflictHandlerArn() terra.StringValue

type SyncConfigLambdaConflictHandlerConfigState

type SyncConfigLambdaConflictHandlerConfigState struct {
	LambdaConflictHandlerArn string `json:"lambda_conflict_handler_arn"`
}

type SyncConfigState

type SyncConfigState struct {
	ConflictDetection           string                                       `json:"conflict_detection"`
	ConflictHandler             string                                       `json:"conflict_handler"`
	LambdaConflictHandlerConfig []SyncConfigLambdaConflictHandlerConfigState `json:"lambda_conflict_handler_config"`
}

Jump to

Keyboard shortcuts

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