aws_appsync_datasource

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"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ServiceRoleArn: string, optional
	ServiceRoleArn terra.StringValue `hcl:"service_role_arn,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// DynamodbConfig: optional
	DynamodbConfig *DynamodbConfig `hcl:"dynamodb_config,block"`
	// ElasticsearchConfig: optional
	ElasticsearchConfig *ElasticsearchConfig `hcl:"elasticsearch_config,block"`
	// HttpConfig: optional
	HttpConfig *HttpConfig `hcl:"http_config,block"`
	// LambdaConfig: optional
	LambdaConfig *LambdaConfig `hcl:"lambda_config,block"`
	// RelationalDatabaseConfig: optional
	RelationalDatabaseConfig *RelationalDatabaseConfig `hcl:"relational_database_config,block"`
}

Args contains the configurations for aws_appsync_datasource.

type DynamodbConfig

type DynamodbConfig struct {
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// TableName: string, required
	TableName terra.StringValue `hcl:"table_name,attr" validate:"required"`
	// UseCallerCredentials: bool, optional
	UseCallerCredentials terra.BoolValue `hcl:"use_caller_credentials,attr"`
	// Versioned: bool, optional
	Versioned terra.BoolValue `hcl:"versioned,attr"`
	// DynamodbConfigDeltaSyncConfig: optional
	DeltaSyncConfig *DynamodbConfigDeltaSyncConfig `hcl:"delta_sync_config,block"`
}

type DynamodbConfigAttributes

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

func (DynamodbConfigAttributes) DeltaSyncConfig

func (DynamodbConfigAttributes) InternalRef

func (dc DynamodbConfigAttributes) InternalRef() (terra.Reference, error)

func (DynamodbConfigAttributes) InternalTokens

func (dc DynamodbConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DynamodbConfigAttributes) InternalWithRef

func (DynamodbConfigAttributes) Region

func (DynamodbConfigAttributes) TableName

func (DynamodbConfigAttributes) UseCallerCredentials

func (dc DynamodbConfigAttributes) UseCallerCredentials() terra.BoolValue

func (DynamodbConfigAttributes) Versioned

func (dc DynamodbConfigAttributes) Versioned() terra.BoolValue

type DynamodbConfigDeltaSyncConfig

type DynamodbConfigDeltaSyncConfig struct {
	// BaseTableTtl: number, optional
	BaseTableTtl terra.NumberValue `hcl:"base_table_ttl,attr"`
	// DeltaSyncTableName: string, required
	DeltaSyncTableName terra.StringValue `hcl:"delta_sync_table_name,attr" validate:"required"`
	// DeltaSyncTableTtl: number, optional
	DeltaSyncTableTtl terra.NumberValue `hcl:"delta_sync_table_ttl,attr"`
}

type DynamodbConfigDeltaSyncConfigAttributes

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

func (DynamodbConfigDeltaSyncConfigAttributes) BaseTableTtl

func (DynamodbConfigDeltaSyncConfigAttributes) DeltaSyncTableName

func (DynamodbConfigDeltaSyncConfigAttributes) DeltaSyncTableTtl

func (DynamodbConfigDeltaSyncConfigAttributes) InternalRef

func (DynamodbConfigDeltaSyncConfigAttributes) InternalTokens

func (DynamodbConfigDeltaSyncConfigAttributes) InternalWithRef

type DynamodbConfigDeltaSyncConfigState

type DynamodbConfigDeltaSyncConfigState struct {
	BaseTableTtl       float64 `json:"base_table_ttl"`
	DeltaSyncTableName string  `json:"delta_sync_table_name"`
	DeltaSyncTableTtl  float64 `json:"delta_sync_table_ttl"`
}

type DynamodbConfigState

type DynamodbConfigState struct {
	Region               string                               `json:"region"`
	TableName            string                               `json:"table_name"`
	UseCallerCredentials bool                                 `json:"use_caller_credentials"`
	Versioned            bool                                 `json:"versioned"`
	DeltaSyncConfig      []DynamodbConfigDeltaSyncConfigState `json:"delta_sync_config"`
}

type ElasticsearchConfig

type ElasticsearchConfig struct {
	// Endpoint: string, required
	Endpoint terra.StringValue `hcl:"endpoint,attr" validate:"required"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
}

type ElasticsearchConfigAttributes

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

func (ElasticsearchConfigAttributes) Endpoint

func (ElasticsearchConfigAttributes) InternalRef

func (ec ElasticsearchConfigAttributes) InternalRef() (terra.Reference, error)

func (ElasticsearchConfigAttributes) InternalTokens

func (ec ElasticsearchConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ElasticsearchConfigAttributes) InternalWithRef

func (ElasticsearchConfigAttributes) Region

type ElasticsearchConfigState

type ElasticsearchConfigState struct {
	Endpoint string `json:"endpoint"`
	Region   string `json:"region"`
}

type HttpConfig

type HttpConfig struct {
	// Endpoint: string, required
	Endpoint terra.StringValue `hcl:"endpoint,attr" validate:"required"`
	// HttpConfigAuthorizationConfig: optional
	AuthorizationConfig *HttpConfigAuthorizationConfig `hcl:"authorization_config,block"`
}

type HttpConfigAttributes

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

func (HttpConfigAttributes) AuthorizationConfig

func (HttpConfigAttributes) Endpoint

func (hc HttpConfigAttributes) Endpoint() terra.StringValue

func (HttpConfigAttributes) InternalRef

func (hc HttpConfigAttributes) InternalRef() (terra.Reference, error)

func (HttpConfigAttributes) InternalTokens

func (hc HttpConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpConfigAttributes) InternalWithRef

func (hc HttpConfigAttributes) InternalWithRef(ref terra.Reference) HttpConfigAttributes

type HttpConfigAuthorizationConfig

type HttpConfigAuthorizationConfig struct {
	// AuthorizationType: string, optional
	AuthorizationType terra.StringValue `hcl:"authorization_type,attr"`
	// HttpConfigAuthorizationConfigAwsIamConfig: optional
	AwsIamConfig *HttpConfigAuthorizationConfigAwsIamConfig `hcl:"aws_iam_config,block"`
}

type HttpConfigAuthorizationConfigAttributes

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

func (HttpConfigAuthorizationConfigAttributes) AuthorizationType

func (HttpConfigAuthorizationConfigAttributes) AwsIamConfig

func (HttpConfigAuthorizationConfigAttributes) InternalRef

func (HttpConfigAuthorizationConfigAttributes) InternalTokens

func (HttpConfigAuthorizationConfigAttributes) InternalWithRef

type HttpConfigAuthorizationConfigAwsIamConfig

type HttpConfigAuthorizationConfigAwsIamConfig struct {
	// SigningRegion: string, optional
	SigningRegion terra.StringValue `hcl:"signing_region,attr"`
	// SigningServiceName: string, optional
	SigningServiceName terra.StringValue `hcl:"signing_service_name,attr"`
}

type HttpConfigAuthorizationConfigAwsIamConfigAttributes

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

func (HttpConfigAuthorizationConfigAwsIamConfigAttributes) InternalRef

func (HttpConfigAuthorizationConfigAwsIamConfigAttributes) InternalTokens

func (HttpConfigAuthorizationConfigAwsIamConfigAttributes) InternalWithRef

func (HttpConfigAuthorizationConfigAwsIamConfigAttributes) SigningRegion

func (HttpConfigAuthorizationConfigAwsIamConfigAttributes) SigningServiceName

type HttpConfigAuthorizationConfigAwsIamConfigState

type HttpConfigAuthorizationConfigAwsIamConfigState struct {
	SigningRegion      string `json:"signing_region"`
	SigningServiceName string `json:"signing_service_name"`
}

type HttpConfigAuthorizationConfigState

type HttpConfigAuthorizationConfigState struct {
	AuthorizationType string                                           `json:"authorization_type"`
	AwsIamConfig      []HttpConfigAuthorizationConfigAwsIamConfigState `json:"aws_iam_config"`
}

type HttpConfigState

type HttpConfigState struct {
	Endpoint            string                               `json:"endpoint"`
	AuthorizationConfig []HttpConfigAuthorizationConfigState `json:"authorization_config"`
}

type LambdaConfig

type LambdaConfig struct {
	// FunctionArn: string, required
	FunctionArn terra.StringValue `hcl:"function_arn,attr" validate:"required"`
}

type LambdaConfigAttributes

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

func (LambdaConfigAttributes) FunctionArn

func (lc LambdaConfigAttributes) FunctionArn() terra.StringValue

func (LambdaConfigAttributes) InternalRef

func (lc LambdaConfigAttributes) InternalRef() (terra.Reference, error)

func (LambdaConfigAttributes) InternalTokens

func (lc LambdaConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LambdaConfigAttributes) InternalWithRef

type LambdaConfigState

type LambdaConfigState struct {
	FunctionArn string `json:"function_arn"`
}

type RelationalDatabaseConfig

type RelationalDatabaseConfig struct {
	// SourceType: string, optional
	SourceType terra.StringValue `hcl:"source_type,attr"`
	// RelationalDatabaseConfigHttpEndpointConfig: optional
	HttpEndpointConfig *RelationalDatabaseConfigHttpEndpointConfig `hcl:"http_endpoint_config,block"`
}

type RelationalDatabaseConfigAttributes

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

func (RelationalDatabaseConfigAttributes) HttpEndpointConfig

func (RelationalDatabaseConfigAttributes) InternalRef

func (RelationalDatabaseConfigAttributes) InternalTokens

func (rdc RelationalDatabaseConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RelationalDatabaseConfigAttributes) InternalWithRef

func (RelationalDatabaseConfigAttributes) SourceType

type RelationalDatabaseConfigHttpEndpointConfig

type RelationalDatabaseConfigHttpEndpointConfig struct {
	// AwsSecretStoreArn: string, required
	AwsSecretStoreArn terra.StringValue `hcl:"aws_secret_store_arn,attr" validate:"required"`
	// DatabaseName: string, optional
	DatabaseName terra.StringValue `hcl:"database_name,attr"`
	// DbClusterIdentifier: string, required
	DbClusterIdentifier terra.StringValue `hcl:"db_cluster_identifier,attr" validate:"required"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// Schema: string, optional
	Schema terra.StringValue `hcl:"schema,attr"`
}

type RelationalDatabaseConfigHttpEndpointConfigAttributes

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

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) AwsSecretStoreArn

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) DatabaseName

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) DbClusterIdentifier

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) InternalRef

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) InternalTokens

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) InternalWithRef

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) Region

func (RelationalDatabaseConfigHttpEndpointConfigAttributes) Schema

type RelationalDatabaseConfigHttpEndpointConfigState

type RelationalDatabaseConfigHttpEndpointConfigState struct {
	AwsSecretStoreArn   string `json:"aws_secret_store_arn"`
	DatabaseName        string `json:"database_name"`
	DbClusterIdentifier string `json:"db_cluster_identifier"`
	Region              string `json:"region"`
	Schema              string `json:"schema"`
}

type RelationalDatabaseConfigState

type RelationalDatabaseConfigState struct {
	SourceType         string                                            `json:"source_type"`
	HttpEndpointConfig []RelationalDatabaseConfigHttpEndpointConfigState `json:"http_endpoint_config"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aad *Resource) Attributes() awsAppsyncDatasourceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aad *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aad *Resource) State() (*awsAppsyncDatasourceState, bool)

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

func (*Resource) StateMust

func (aad *Resource) StateMust() *awsAppsyncDatasourceState

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

func (*Resource) Type

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