aws_kendra_thesaurus

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IndexId: string, required
	IndexId terra.StringValue `hcl:"index_id,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,attr" validate:"required"`
	// 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"`
	// SourceS3Path: required
	SourceS3Path *SourceS3Path `hcl:"source_s3_path,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_kendra_thesaurus.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IndexId: string, required
	IndexId terra.StringValue `hcl:"index_id,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// ThesaurusId: string, required
	ThesaurusId terra.StringValue `hcl:"thesaurus_id,attr" validate:"required"`
}

DataArgs contains the configurations for aws_kendra_thesaurus.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_kendra_thesaurus.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (akt *DataSource) Attributes() dataAwsKendraThesaurusAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (akt *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (akt *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataSourceS3PathAttributes

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

func (DataSourceS3PathAttributes) Bucket

func (DataSourceS3PathAttributes) InternalRef

func (ssp DataSourceS3PathAttributes) InternalRef() (terra.Reference, error)

func (DataSourceS3PathAttributes) InternalTokens

func (ssp DataSourceS3PathAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSourceS3PathAttributes) InternalWithRef

func (DataSourceS3PathAttributes) Key

type DataSourceS3PathState

type DataSourceS3PathState struct {
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (akt *Resource) Attributes() awsKendraThesaurusAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (akt *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (akt *Resource) State() (*awsKendraThesaurusState, bool)

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

func (*Resource) StateMust

func (akt *Resource) StateMust() *awsKendraThesaurusState

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

func (*Resource) Type

func (akt *Resource) Type() string

Type returns the Terraform object type for Resource.

type SourceS3Path

type SourceS3Path struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
}

type SourceS3PathAttributes

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

func (SourceS3PathAttributes) Bucket

func (SourceS3PathAttributes) InternalRef

func (ssp SourceS3PathAttributes) InternalRef() (terra.Reference, error)

func (SourceS3PathAttributes) InternalTokens

func (ssp SourceS3PathAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceS3PathAttributes) InternalWithRef

func (SourceS3PathAttributes) Key

type SourceS3PathState

type SourceS3PathState struct {
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

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

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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