aws_sagemaker_endpoint_configuration

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// 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"`
	// AsyncInferenceConfig: optional
	AsyncInferenceConfig *AsyncInferenceConfig `hcl:"async_inference_config,block"`
	// DataCaptureConfig: optional
	DataCaptureConfig *DataCaptureConfig `hcl:"data_capture_config,block"`
	// ProductionVariants: min=1,max=10
	ProductionVariants []ProductionVariants `hcl:"production_variants,block" validate:"min=1,max=10"`
}

Args contains the configurations for aws_sagemaker_endpoint_configuration.

type AsyncInferenceConfig

type AsyncInferenceConfig struct {
	// AsyncInferenceConfigClientConfig: optional
	ClientConfig *AsyncInferenceConfigClientConfig `hcl:"client_config,block"`
	// AsyncInferenceConfigOutputConfig: required
	OutputConfig *AsyncInferenceConfigOutputConfig `hcl:"output_config,block" validate:"required"`
}

type AsyncInferenceConfigAttributes

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

func (AsyncInferenceConfigAttributes) ClientConfig

func (AsyncInferenceConfigAttributes) InternalRef

func (aic AsyncInferenceConfigAttributes) InternalRef() (terra.Reference, error)

func (AsyncInferenceConfigAttributes) InternalTokens

func (aic AsyncInferenceConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AsyncInferenceConfigAttributes) InternalWithRef

func (AsyncInferenceConfigAttributes) OutputConfig

type AsyncInferenceConfigClientConfig

type AsyncInferenceConfigClientConfig struct {
	// MaxConcurrentInvocationsPerInstance: number, optional
	MaxConcurrentInvocationsPerInstance terra.NumberValue `hcl:"max_concurrent_invocations_per_instance,attr"`
}

type AsyncInferenceConfigClientConfigAttributes

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

func (AsyncInferenceConfigClientConfigAttributes) InternalRef

func (AsyncInferenceConfigClientConfigAttributes) InternalTokens

func (AsyncInferenceConfigClientConfigAttributes) InternalWithRef

func (AsyncInferenceConfigClientConfigAttributes) MaxConcurrentInvocationsPerInstance

func (cc AsyncInferenceConfigClientConfigAttributes) MaxConcurrentInvocationsPerInstance() terra.NumberValue

type AsyncInferenceConfigClientConfigState

type AsyncInferenceConfigClientConfigState struct {
	MaxConcurrentInvocationsPerInstance float64 `json:"max_concurrent_invocations_per_instance"`
}

type AsyncInferenceConfigOutputConfig

type AsyncInferenceConfigOutputConfig struct {
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// S3OutputPath: string, required
	S3OutputPath terra.StringValue `hcl:"s3_output_path,attr" validate:"required"`
	// AsyncInferenceConfigOutputConfigNotificationConfig: optional
	NotificationConfig *AsyncInferenceConfigOutputConfigNotificationConfig `hcl:"notification_config,block"`
}

type AsyncInferenceConfigOutputConfigAttributes

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

func (AsyncInferenceConfigOutputConfigAttributes) InternalRef

func (AsyncInferenceConfigOutputConfigAttributes) InternalTokens

func (AsyncInferenceConfigOutputConfigAttributes) InternalWithRef

func (AsyncInferenceConfigOutputConfigAttributes) KmsKeyId

func (AsyncInferenceConfigOutputConfigAttributes) S3OutputPath

type AsyncInferenceConfigOutputConfigNotificationConfig

type AsyncInferenceConfigOutputConfigNotificationConfig struct {
	// ErrorTopic: string, optional
	ErrorTopic terra.StringValue `hcl:"error_topic,attr"`
	// SuccessTopic: string, optional
	SuccessTopic terra.StringValue `hcl:"success_topic,attr"`
}

type AsyncInferenceConfigOutputConfigNotificationConfigAttributes

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

func (AsyncInferenceConfigOutputConfigNotificationConfigAttributes) ErrorTopic

func (AsyncInferenceConfigOutputConfigNotificationConfigAttributes) InternalRef

func (AsyncInferenceConfigOutputConfigNotificationConfigAttributes) InternalTokens

func (AsyncInferenceConfigOutputConfigNotificationConfigAttributes) InternalWithRef

func (AsyncInferenceConfigOutputConfigNotificationConfigAttributes) SuccessTopic

type AsyncInferenceConfigOutputConfigNotificationConfigState

type AsyncInferenceConfigOutputConfigNotificationConfigState struct {
	ErrorTopic   string `json:"error_topic"`
	SuccessTopic string `json:"success_topic"`
}

type AsyncInferenceConfigOutputConfigState

type AsyncInferenceConfigOutputConfigState struct {
	KmsKeyId           string                                                    `json:"kms_key_id"`
	S3OutputPath       string                                                    `json:"s3_output_path"`
	NotificationConfig []AsyncInferenceConfigOutputConfigNotificationConfigState `json:"notification_config"`
}

type AsyncInferenceConfigState

type AsyncInferenceConfigState struct {
	ClientConfig []AsyncInferenceConfigClientConfigState `json:"client_config"`
	OutputConfig []AsyncInferenceConfigOutputConfigState `json:"output_config"`
}

type DataCaptureConfig

type DataCaptureConfig struct {
	// DestinationS3Uri: string, required
	DestinationS3Uri terra.StringValue `hcl:"destination_s3_uri,attr" validate:"required"`
	// EnableCapture: bool, optional
	EnableCapture terra.BoolValue `hcl:"enable_capture,attr"`
	// InitialSamplingPercentage: number, required
	InitialSamplingPercentage terra.NumberValue `hcl:"initial_sampling_percentage,attr" validate:"required"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// DataCaptureConfigCaptureContentTypeHeader: optional
	CaptureContentTypeHeader *DataCaptureConfigCaptureContentTypeHeader `hcl:"capture_content_type_header,block"`
	// DataCaptureConfigCaptureOptions: min=1,max=2
	CaptureOptions []DataCaptureConfigCaptureOptions `hcl:"capture_options,block" validate:"min=1,max=2"`
}

type DataCaptureConfigAttributes

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

func (DataCaptureConfigAttributes) CaptureContentTypeHeader

func (DataCaptureConfigAttributes) CaptureOptions

func (DataCaptureConfigAttributes) DestinationS3Uri

func (dcc DataCaptureConfigAttributes) DestinationS3Uri() terra.StringValue

func (DataCaptureConfigAttributes) EnableCapture

func (dcc DataCaptureConfigAttributes) EnableCapture() terra.BoolValue

func (DataCaptureConfigAttributes) InitialSamplingPercentage

func (dcc DataCaptureConfigAttributes) InitialSamplingPercentage() terra.NumberValue

func (DataCaptureConfigAttributes) InternalRef

func (dcc DataCaptureConfigAttributes) InternalRef() (terra.Reference, error)

func (DataCaptureConfigAttributes) InternalTokens

func (dcc DataCaptureConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCaptureConfigAttributes) InternalWithRef

func (DataCaptureConfigAttributes) KmsKeyId

type DataCaptureConfigCaptureContentTypeHeader

type DataCaptureConfigCaptureContentTypeHeader struct {
	// CsvContentTypes: set of string, optional
	CsvContentTypes terra.SetValue[terra.StringValue] `hcl:"csv_content_types,attr"`
	// JsonContentTypes: set of string, optional
	JsonContentTypes terra.SetValue[terra.StringValue] `hcl:"json_content_types,attr"`
}

type DataCaptureConfigCaptureContentTypeHeaderAttributes

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

func (DataCaptureConfigCaptureContentTypeHeaderAttributes) CsvContentTypes

func (DataCaptureConfigCaptureContentTypeHeaderAttributes) InternalRef

func (DataCaptureConfigCaptureContentTypeHeaderAttributes) InternalTokens

func (DataCaptureConfigCaptureContentTypeHeaderAttributes) InternalWithRef

func (DataCaptureConfigCaptureContentTypeHeaderAttributes) JsonContentTypes

type DataCaptureConfigCaptureContentTypeHeaderState

type DataCaptureConfigCaptureContentTypeHeaderState struct {
	CsvContentTypes  []string `json:"csv_content_types"`
	JsonContentTypes []string `json:"json_content_types"`
}

type DataCaptureConfigCaptureOptions

type DataCaptureConfigCaptureOptions struct {
	// CaptureMode: string, required
	CaptureMode terra.StringValue `hcl:"capture_mode,attr" validate:"required"`
}

type DataCaptureConfigCaptureOptionsAttributes

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

func (DataCaptureConfigCaptureOptionsAttributes) CaptureMode

func (DataCaptureConfigCaptureOptionsAttributes) InternalRef

func (DataCaptureConfigCaptureOptionsAttributes) InternalTokens

func (DataCaptureConfigCaptureOptionsAttributes) InternalWithRef

type DataCaptureConfigCaptureOptionsState

type DataCaptureConfigCaptureOptionsState struct {
	CaptureMode string `json:"capture_mode"`
}

type DataCaptureConfigState

type DataCaptureConfigState struct {
	DestinationS3Uri          string                                           `json:"destination_s3_uri"`
	EnableCapture             bool                                             `json:"enable_capture"`
	InitialSamplingPercentage float64                                          `json:"initial_sampling_percentage"`
	KmsKeyId                  string                                           `json:"kms_key_id"`
	CaptureContentTypeHeader  []DataCaptureConfigCaptureContentTypeHeaderState `json:"capture_content_type_header"`
	CaptureOptions            []DataCaptureConfigCaptureOptionsState           `json:"capture_options"`
}

type ProductionVariants

type ProductionVariants struct {
	// AcceleratorType: string, optional
	AcceleratorType terra.StringValue `hcl:"accelerator_type,attr"`
	// InitialInstanceCount: number, optional
	InitialInstanceCount terra.NumberValue `hcl:"initial_instance_count,attr"`
	// InitialVariantWeight: number, optional
	InitialVariantWeight terra.NumberValue `hcl:"initial_variant_weight,attr"`
	// InstanceType: string, optional
	InstanceType terra.StringValue `hcl:"instance_type,attr"`
	// ModelName: string, required
	ModelName terra.StringValue `hcl:"model_name,attr" validate:"required"`
	// VariantName: string, optional
	VariantName terra.StringValue `hcl:"variant_name,attr"`
	// ProductionVariantsServerlessConfig: optional
	ServerlessConfig *ProductionVariantsServerlessConfig `hcl:"serverless_config,block"`
}

type ProductionVariantsAttributes

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

func (ProductionVariantsAttributes) AcceleratorType

func (pv ProductionVariantsAttributes) AcceleratorType() terra.StringValue

func (ProductionVariantsAttributes) InitialInstanceCount

func (pv ProductionVariantsAttributes) InitialInstanceCount() terra.NumberValue

func (ProductionVariantsAttributes) InitialVariantWeight

func (pv ProductionVariantsAttributes) InitialVariantWeight() terra.NumberValue

func (ProductionVariantsAttributes) InstanceType

func (ProductionVariantsAttributes) InternalRef

func (pv ProductionVariantsAttributes) InternalRef() (terra.Reference, error)

func (ProductionVariantsAttributes) InternalTokens

func (pv ProductionVariantsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ProductionVariantsAttributes) InternalWithRef

func (ProductionVariantsAttributes) ModelName

func (ProductionVariantsAttributes) ServerlessConfig

func (ProductionVariantsAttributes) VariantName

type ProductionVariantsServerlessConfig

type ProductionVariantsServerlessConfig struct {
	// MaxConcurrency: number, required
	MaxConcurrency terra.NumberValue `hcl:"max_concurrency,attr" validate:"required"`
	// MemorySizeInMb: number, required
	MemorySizeInMb terra.NumberValue `hcl:"memory_size_in_mb,attr" validate:"required"`
}

type ProductionVariantsServerlessConfigAttributes

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

func (ProductionVariantsServerlessConfigAttributes) InternalRef

func (ProductionVariantsServerlessConfigAttributes) InternalTokens

func (ProductionVariantsServerlessConfigAttributes) InternalWithRef

func (ProductionVariantsServerlessConfigAttributes) MaxConcurrency

func (ProductionVariantsServerlessConfigAttributes) MemorySizeInMb

type ProductionVariantsServerlessConfigState

type ProductionVariantsServerlessConfigState struct {
	MaxConcurrency float64 `json:"max_concurrency"`
	MemorySizeInMb float64 `json:"memory_size_in_mb"`
}

type ProductionVariantsState

type ProductionVariantsState struct {
	AcceleratorType      string                                    `json:"accelerator_type"`
	InitialInstanceCount float64                                   `json:"initial_instance_count"`
	InitialVariantWeight float64                                   `json:"initial_variant_weight"`
	InstanceType         string                                    `json:"instance_type"`
	ModelName            string                                    `json:"model_name"`
	VariantName          string                                    `json:"variant_name"`
	ServerlessConfig     []ProductionVariantsServerlessConfigState `json:"serverless_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_sagemaker_endpoint_configuration.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asec *Resource) Attributes() awsSagemakerEndpointConfigurationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asec *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asec *Resource) State() (*awsSagemakerEndpointConfigurationState, bool)

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

func (*Resource) StateMust

func (asec *Resource) StateMust() *awsSagemakerEndpointConfigurationState

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

func (*Resource) Type

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