aws_appsync_resolver

package
v0.0.0-...-4deecce 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"`
	// Code: string, optional
	Code terra.StringValue `hcl:"code,attr"`
	// DataSource: string, optional
	DataSource terra.StringValue `hcl:"data_source,attr"`
	// Field: string, required
	Field terra.StringValue `hcl:"field,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Kind: string, optional
	Kind terra.StringValue `hcl:"kind,attr"`
	// MaxBatchSize: number, optional
	MaxBatchSize terra.NumberValue `hcl:"max_batch_size,attr"`
	// RequestTemplate: string, optional
	RequestTemplate terra.StringValue `hcl:"request_template,attr"`
	// ResponseTemplate: string, optional
	ResponseTemplate terra.StringValue `hcl:"response_template,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// CachingConfig: optional
	CachingConfig *CachingConfig `hcl:"caching_config,block"`
	// PipelineConfig: optional
	PipelineConfig *PipelineConfig `hcl:"pipeline_config,block"`
	// Runtime: optional
	Runtime *Runtime `hcl:"runtime,block"`
	// SyncConfig: optional
	SyncConfig *SyncConfig `hcl:"sync_config,block"`
}

Args contains the configurations for aws_appsync_resolver.

type CachingConfig

type CachingConfig struct {
	// CachingKeys: set of string, optional
	CachingKeys terra.SetValue[terra.StringValue] `hcl:"caching_keys,attr"`
	// Ttl: number, optional
	Ttl terra.NumberValue `hcl:"ttl,attr"`
}

type CachingConfigAttributes

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

func (CachingConfigAttributes) CachingKeys

func (CachingConfigAttributes) InternalRef

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

func (CachingConfigAttributes) InternalTokens

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

func (CachingConfigAttributes) InternalWithRef

func (CachingConfigAttributes) Ttl

type CachingConfigState

type CachingConfigState struct {
	CachingKeys []string `json:"caching_keys"`
	Ttl         float64  `json:"ttl"`
}

type PipelineConfig

type PipelineConfig struct {
	// Functions: list of string, optional
	Functions terra.ListValue[terra.StringValue] `hcl:"functions,attr"`
}

type PipelineConfigAttributes

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

func (PipelineConfigAttributes) Functions

func (PipelineConfigAttributes) InternalRef

func (pc PipelineConfigAttributes) InternalRef() (terra.Reference, error)

func (PipelineConfigAttributes) InternalTokens

func (pc PipelineConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PipelineConfigAttributes) InternalWithRef

type PipelineConfigState

type PipelineConfigState struct {
	Functions []string `json:"functions"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aar *Resource) Attributes() awsAppsyncResolverAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aar *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aar *Resource) State() (*awsAppsyncResolverState, bool)

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

func (*Resource) StateMust

func (aar *Resource) StateMust() *awsAppsyncResolverState

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

func (*Resource) Type

func (aar *Resource) Type() string

Type returns the Terraform object type for Resource.

type Runtime

type Runtime struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RuntimeVersion: string, required
	RuntimeVersion terra.StringValue `hcl:"runtime_version,attr" validate:"required"`
}

type RuntimeAttributes

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

func (RuntimeAttributes) InternalRef

func (r RuntimeAttributes) InternalRef() (terra.Reference, error)

func (RuntimeAttributes) InternalTokens

func (r RuntimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuntimeAttributes) InternalWithRef

func (r RuntimeAttributes) InternalWithRef(ref terra.Reference) RuntimeAttributes

func (RuntimeAttributes) Name

func (RuntimeAttributes) RuntimeVersion

func (r RuntimeAttributes) RuntimeVersion() terra.StringValue

type RuntimeState

type RuntimeState struct {
	Name           string `json:"name"`
	RuntimeVersion string `json:"runtime_version"`
}

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