aws_sagemaker_endpoint

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 {
	// EndpointConfigName: string, required
	EndpointConfigName terra.StringValue `hcl:"endpoint_config_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,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"`
	// DeploymentConfig: optional
	DeploymentConfig *DeploymentConfig `hcl:"deployment_config,block"`
}

Args contains the configurations for aws_sagemaker_endpoint.

type DeploymentConfig

type DeploymentConfig struct {
	// DeploymentConfigAutoRollbackConfiguration: optional
	AutoRollbackConfiguration *DeploymentConfigAutoRollbackConfiguration `hcl:"auto_rollback_configuration,block"`
	// DeploymentConfigBlueGreenUpdatePolicy: optional
	BlueGreenUpdatePolicy *DeploymentConfigBlueGreenUpdatePolicy `hcl:"blue_green_update_policy,block"`
	// DeploymentConfigRollingUpdatePolicy: optional
	RollingUpdatePolicy *DeploymentConfigRollingUpdatePolicy `hcl:"rolling_update_policy,block"`
}

type DeploymentConfigAttributes

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

func (DeploymentConfigAttributes) AutoRollbackConfiguration

func (DeploymentConfigAttributes) BlueGreenUpdatePolicy

func (DeploymentConfigAttributes) InternalRef

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

func (DeploymentConfigAttributes) InternalTokens

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

func (DeploymentConfigAttributes) InternalWithRef

func (DeploymentConfigAttributes) RollingUpdatePolicy

type DeploymentConfigAutoRollbackConfiguration

type DeploymentConfigAutoRollbackConfiguration struct {
	// DeploymentConfigAutoRollbackConfigurationAlarms: min=0,max=10
	Alarms []DeploymentConfigAutoRollbackConfigurationAlarms `hcl:"alarms,block" validate:"min=0,max=10"`
}

type DeploymentConfigAutoRollbackConfigurationAlarms

type DeploymentConfigAutoRollbackConfigurationAlarms struct {
	// AlarmName: string, required
	AlarmName terra.StringValue `hcl:"alarm_name,attr" validate:"required"`
}

type DeploymentConfigAutoRollbackConfigurationAlarmsAttributes

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

func (DeploymentConfigAutoRollbackConfigurationAlarmsAttributes) AlarmName

func (DeploymentConfigAutoRollbackConfigurationAlarmsAttributes) InternalRef

func (DeploymentConfigAutoRollbackConfigurationAlarmsAttributes) InternalTokens

func (DeploymentConfigAutoRollbackConfigurationAlarmsAttributes) InternalWithRef

type DeploymentConfigAutoRollbackConfigurationAlarmsState

type DeploymentConfigAutoRollbackConfigurationAlarmsState struct {
	AlarmName string `json:"alarm_name"`
}

type DeploymentConfigAutoRollbackConfigurationAttributes

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

func (DeploymentConfigAutoRollbackConfigurationAttributes) Alarms

func (DeploymentConfigAutoRollbackConfigurationAttributes) InternalRef

func (DeploymentConfigAutoRollbackConfigurationAttributes) InternalTokens

func (DeploymentConfigAutoRollbackConfigurationAttributes) InternalWithRef

type DeploymentConfigAutoRollbackConfigurationState

type DeploymentConfigAutoRollbackConfigurationState struct {
	Alarms []DeploymentConfigAutoRollbackConfigurationAlarmsState `json:"alarms"`
}

type DeploymentConfigBlueGreenUpdatePolicy

type DeploymentConfigBlueGreenUpdatePolicy struct {
	// MaximumExecutionTimeoutInSeconds: number, optional
	MaximumExecutionTimeoutInSeconds terra.NumberValue `hcl:"maximum_execution_timeout_in_seconds,attr"`
	// TerminationWaitInSeconds: number, optional
	TerminationWaitInSeconds terra.NumberValue `hcl:"termination_wait_in_seconds,attr"`
	// DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration: required
	TrafficRoutingConfiguration *DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration `hcl:"traffic_routing_configuration,block" validate:"required"`
}

type DeploymentConfigBlueGreenUpdatePolicyAttributes

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

func (DeploymentConfigBlueGreenUpdatePolicyAttributes) InternalRef

func (DeploymentConfigBlueGreenUpdatePolicyAttributes) InternalTokens

func (DeploymentConfigBlueGreenUpdatePolicyAttributes) InternalWithRef

func (DeploymentConfigBlueGreenUpdatePolicyAttributes) MaximumExecutionTimeoutInSeconds

func (bgup DeploymentConfigBlueGreenUpdatePolicyAttributes) MaximumExecutionTimeoutInSeconds() terra.NumberValue

func (DeploymentConfigBlueGreenUpdatePolicyAttributes) TerminationWaitInSeconds

func (bgup DeploymentConfigBlueGreenUpdatePolicyAttributes) TerminationWaitInSeconds() terra.NumberValue

type DeploymentConfigBlueGreenUpdatePolicyState

type DeploymentConfigBlueGreenUpdatePolicyState struct {
	MaximumExecutionTimeoutInSeconds float64                                                                 `json:"maximum_execution_timeout_in_seconds"`
	TerminationWaitInSeconds         float64                                                                 `json:"termination_wait_in_seconds"`
	TrafficRoutingConfiguration      []DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationState `json:"traffic_routing_configuration"`
}

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfiguration struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// WaitIntervalInSeconds: number, required
	WaitIntervalInSeconds terra.NumberValue `hcl:"wait_interval_in_seconds,attr" validate:"required"`
	// DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize: optional
	CanarySize *DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize `hcl:"canary_size,block"`
	// DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize: optional
	LinearStepSize *DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize `hcl:"linear_step_size,block"`
}

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationAttributes

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

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationAttributes) InternalRef

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationAttributes) InternalTokens

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationAttributes) InternalWithRef

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationAttributes) Type

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationAttributes) WaitIntervalInSeconds

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySize struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeAttributes

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

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeAttributes) InternalRef

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeAttributes) InternalTokens

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeAttributes) Type

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeAttributes) Value

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeState

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeState struct {
	Type  string  `json:"type"`
	Value float64 `json:"value"`
}

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSize struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeAttributes

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

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeAttributes) InternalRef

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeAttributes) InternalTokens

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeAttributes) Type

func (DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeAttributes) Value

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeState

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeState struct {
	Type  string  `json:"type"`
	Value float64 `json:"value"`
}

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationState

type DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationState struct {
	Type                  string                                                                                `json:"type"`
	WaitIntervalInSeconds float64                                                                               `json:"wait_interval_in_seconds"`
	CanarySize            []DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationCanarySizeState     `json:"canary_size"`
	LinearStepSize        []DeploymentConfigBlueGreenUpdatePolicyTrafficRoutingConfigurationLinearStepSizeState `json:"linear_step_size"`
}

type DeploymentConfigRollingUpdatePolicy

type DeploymentConfigRollingUpdatePolicy struct {
	// MaximumExecutionTimeoutInSeconds: number, optional
	MaximumExecutionTimeoutInSeconds terra.NumberValue `hcl:"maximum_execution_timeout_in_seconds,attr"`
	// WaitIntervalInSeconds: number, required
	WaitIntervalInSeconds terra.NumberValue `hcl:"wait_interval_in_seconds,attr" validate:"required"`
	// DeploymentConfigRollingUpdatePolicyMaximumBatchSize: required
	MaximumBatchSize *DeploymentConfigRollingUpdatePolicyMaximumBatchSize `hcl:"maximum_batch_size,block" validate:"required"`
	// DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSize: optional
	RollbackMaximumBatchSize *DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSize `hcl:"rollback_maximum_batch_size,block"`
}

type DeploymentConfigRollingUpdatePolicyAttributes

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

func (DeploymentConfigRollingUpdatePolicyAttributes) InternalRef

func (DeploymentConfigRollingUpdatePolicyAttributes) InternalTokens

func (DeploymentConfigRollingUpdatePolicyAttributes) InternalWithRef

func (DeploymentConfigRollingUpdatePolicyAttributes) MaximumExecutionTimeoutInSeconds

func (rup DeploymentConfigRollingUpdatePolicyAttributes) MaximumExecutionTimeoutInSeconds() terra.NumberValue

func (DeploymentConfigRollingUpdatePolicyAttributes) WaitIntervalInSeconds

type DeploymentConfigRollingUpdatePolicyMaximumBatchSize

type DeploymentConfigRollingUpdatePolicyMaximumBatchSize struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type DeploymentConfigRollingUpdatePolicyMaximumBatchSizeAttributes

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

func (DeploymentConfigRollingUpdatePolicyMaximumBatchSizeAttributes) InternalRef

func (DeploymentConfigRollingUpdatePolicyMaximumBatchSizeAttributes) InternalTokens

func (DeploymentConfigRollingUpdatePolicyMaximumBatchSizeAttributes) InternalWithRef

func (DeploymentConfigRollingUpdatePolicyMaximumBatchSizeAttributes) Type

func (DeploymentConfigRollingUpdatePolicyMaximumBatchSizeAttributes) Value

type DeploymentConfigRollingUpdatePolicyMaximumBatchSizeState

type DeploymentConfigRollingUpdatePolicyMaximumBatchSizeState struct {
	Type  string  `json:"type"`
	Value float64 `json:"value"`
}

type DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSize

type DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSize struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeAttributes

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

func (DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeAttributes) InternalRef

func (DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeAttributes) InternalTokens

func (DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeAttributes) InternalWithRef

func (DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeAttributes) Type

func (DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeAttributes) Value

type DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeState

type DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeState struct {
	Type  string  `json:"type"`
	Value float64 `json:"value"`
}

type DeploymentConfigRollingUpdatePolicyState

type DeploymentConfigRollingUpdatePolicyState struct {
	MaximumExecutionTimeoutInSeconds float64                                                            `json:"maximum_execution_timeout_in_seconds"`
	WaitIntervalInSeconds            float64                                                            `json:"wait_interval_in_seconds"`
	MaximumBatchSize                 []DeploymentConfigRollingUpdatePolicyMaximumBatchSizeState         `json:"maximum_batch_size"`
	RollbackMaximumBatchSize         []DeploymentConfigRollingUpdatePolicyRollbackMaximumBatchSizeState `json:"rollback_maximum_batch_size"`
}

type DeploymentConfigState

type DeploymentConfigState struct {
	AutoRollbackConfiguration []DeploymentConfigAutoRollbackConfigurationState `json:"auto_rollback_configuration"`
	BlueGreenUpdatePolicy     []DeploymentConfigBlueGreenUpdatePolicyState     `json:"blue_green_update_policy"`
	RollingUpdatePolicy       []DeploymentConfigRollingUpdatePolicyState       `json:"rolling_update_policy"`
}

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.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ase *Resource) Attributes() awsSagemakerEndpointAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ase *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ase *Resource) State() (*awsSagemakerEndpointState, bool)

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

func (*Resource) StateMust

func (ase *Resource) StateMust() *awsSagemakerEndpointState

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

func (*Resource) Type

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