aws_comprehend_document_classifier

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 {
	// DataAccessRoleArn: string, required
	DataAccessRoleArn terra.StringValue `hcl:"data_access_role_arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LanguageCode: string, required
	LanguageCode terra.StringValue `hcl:"language_code,attr" validate:"required"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// ModelKmsKeyId: string, optional
	ModelKmsKeyId terra.StringValue `hcl:"model_kms_key_id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,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"`
	// VersionName: string, optional
	VersionName terra.StringValue `hcl:"version_name,attr"`
	// VersionNamePrefix: string, optional
	VersionNamePrefix terra.StringValue `hcl:"version_name_prefix,attr"`
	// VolumeKmsKeyId: string, optional
	VolumeKmsKeyId terra.StringValue `hcl:"volume_kms_key_id,attr"`
	// InputDataConfig: required
	InputDataConfig *InputDataConfig `hcl:"input_data_config,block" validate:"required"`
	// OutputDataConfig: optional
	OutputDataConfig *OutputDataConfig `hcl:"output_data_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VpcConfig: optional
	VpcConfig *VpcConfig `hcl:"vpc_config,block"`
}

Args contains the configurations for aws_comprehend_document_classifier.

type InputDataConfig

type InputDataConfig struct {
	// DataFormat: string, optional
	DataFormat terra.StringValue `hcl:"data_format,attr"`
	// LabelDelimiter: string, optional
	LabelDelimiter terra.StringValue `hcl:"label_delimiter,attr"`
	// S3Uri: string, optional
	S3Uri terra.StringValue `hcl:"s3_uri,attr"`
	// TestS3Uri: string, optional
	TestS3Uri terra.StringValue `hcl:"test_s3_uri,attr"`
	// InputDataConfigAugmentedManifests: min=0
	AugmentedManifests []InputDataConfigAugmentedManifests `hcl:"augmented_manifests,block" validate:"min=0"`
}

type InputDataConfigAttributes

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

func (InputDataConfigAttributes) AugmentedManifests

func (InputDataConfigAttributes) DataFormat

func (idc InputDataConfigAttributes) DataFormat() terra.StringValue

func (InputDataConfigAttributes) InternalRef

func (idc InputDataConfigAttributes) InternalRef() (terra.Reference, error)

func (InputDataConfigAttributes) InternalTokens

func (idc InputDataConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InputDataConfigAttributes) InternalWithRef

func (InputDataConfigAttributes) LabelDelimiter

func (idc InputDataConfigAttributes) LabelDelimiter() terra.StringValue

func (InputDataConfigAttributes) S3Uri

func (InputDataConfigAttributes) TestS3Uri

type InputDataConfigAugmentedManifests

type InputDataConfigAugmentedManifests struct {
	// AnnotationDataS3Uri: string, optional
	AnnotationDataS3Uri terra.StringValue `hcl:"annotation_data_s3_uri,attr"`
	// AttributeNames: list of string, required
	AttributeNames terra.ListValue[terra.StringValue] `hcl:"attribute_names,attr" validate:"required"`
	// DocumentType: string, optional
	DocumentType terra.StringValue `hcl:"document_type,attr"`
	// S3Uri: string, required
	S3Uri terra.StringValue `hcl:"s3_uri,attr" validate:"required"`
	// SourceDocumentsS3Uri: string, optional
	SourceDocumentsS3Uri terra.StringValue `hcl:"source_documents_s3_uri,attr"`
	// Split: string, optional
	Split terra.StringValue `hcl:"split,attr"`
}

type InputDataConfigAugmentedManifestsAttributes

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

func (InputDataConfigAugmentedManifestsAttributes) AnnotationDataS3Uri

func (InputDataConfigAugmentedManifestsAttributes) AttributeNames

func (InputDataConfigAugmentedManifestsAttributes) DocumentType

func (InputDataConfigAugmentedManifestsAttributes) InternalRef

func (InputDataConfigAugmentedManifestsAttributes) InternalTokens

func (InputDataConfigAugmentedManifestsAttributes) InternalWithRef

func (InputDataConfigAugmentedManifestsAttributes) S3Uri

func (InputDataConfigAugmentedManifestsAttributes) SourceDocumentsS3Uri

func (InputDataConfigAugmentedManifestsAttributes) Split

type InputDataConfigAugmentedManifestsState

type InputDataConfigAugmentedManifestsState struct {
	AnnotationDataS3Uri  string   `json:"annotation_data_s3_uri"`
	AttributeNames       []string `json:"attribute_names"`
	DocumentType         string   `json:"document_type"`
	S3Uri                string   `json:"s3_uri"`
	SourceDocumentsS3Uri string   `json:"source_documents_s3_uri"`
	Split                string   `json:"split"`
}

type InputDataConfigState

type InputDataConfigState struct {
	DataFormat         string                                   `json:"data_format"`
	LabelDelimiter     string                                   `json:"label_delimiter"`
	S3Uri              string                                   `json:"s3_uri"`
	TestS3Uri          string                                   `json:"test_s3_uri"`
	AugmentedManifests []InputDataConfigAugmentedManifestsState `json:"augmented_manifests"`
}

type OutputDataConfig

type OutputDataConfig struct {
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// S3Uri: string, required
	S3Uri terra.StringValue `hcl:"s3_uri,attr" validate:"required"`
}

type OutputDataConfigAttributes

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

func (OutputDataConfigAttributes) InternalRef

func (odc OutputDataConfigAttributes) InternalRef() (terra.Reference, error)

func (OutputDataConfigAttributes) InternalTokens

func (odc OutputDataConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OutputDataConfigAttributes) InternalWithRef

func (OutputDataConfigAttributes) KmsKeyId

func (OutputDataConfigAttributes) OutputS3Uri

func (odc OutputDataConfigAttributes) OutputS3Uri() terra.StringValue

func (OutputDataConfigAttributes) S3Uri

type OutputDataConfigState

type OutputDataConfigState struct {
	KmsKeyId    string `json:"kms_key_id"`
	OutputS3Uri string `json:"output_s3_uri"`
	S3Uri       string `json:"s3_uri"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acdc *Resource) Attributes() awsComprehendDocumentClassifierAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acdc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acdc *Resource) State() (*awsComprehendDocumentClassifierState, bool)

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

func (*Resource) StateMust

func (acdc *Resource) StateMust() *awsComprehendDocumentClassifierState

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

func (*Resource) Type

func (acdc *Resource) Type() string

Type returns the Terraform object type for Resource.

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"`
}

type VpcConfig

type VpcConfig struct {
	// SecurityGroupIds: set of string, required
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr" validate:"required"`
	// Subnets: set of string, required
	Subnets terra.SetValue[terra.StringValue] `hcl:"subnets,attr" validate:"required"`
}

type VpcConfigAttributes

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

func (VpcConfigAttributes) InternalRef

func (vc VpcConfigAttributes) InternalRef() (terra.Reference, error)

func (VpcConfigAttributes) InternalTokens

func (vc VpcConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VpcConfigAttributes) InternalWithRef

func (vc VpcConfigAttributes) InternalWithRef(ref terra.Reference) VpcConfigAttributes

func (VpcConfigAttributes) SecurityGroupIds

func (vc VpcConfigAttributes) SecurityGroupIds() terra.SetValue[terra.StringValue]

func (VpcConfigAttributes) Subnets

type VpcConfigState

type VpcConfigState struct {
	SecurityGroupIds []string `json:"security_group_ids"`
	Subnets          []string `json:"subnets"`
}

Jump to

Keyboard shortcuts

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