AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ResourceConfig

import "github.com/aws/aws-sdk-go/service/sagemaker"

type ResourceConfig struct { InstanceCount *int64 `min:"1" type:"integer" required:"true"` InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"` VolumeKmsKeyId *string `type:"string"` VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` }

Describes the resources, including ML compute instances and ML storage volumes, to use for model training.

InstanceCount

Type: *int64

The number of ML compute instances to use. For distributed training, provide a value greater than 1.

InstanceCount is a required field

InstanceType

Type: *string

The ML compute instance type.

InstanceType is a required field

VolumeKmsKeyId

Type: *string

The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job. The VolumeKmsKeyId can be any of the following formats:

  • // KMS Key ID

"1234abcd-12ab-34cd-56ef-1234567890ab"

  • // Amazon Resource Name (ARN) of a KMS Key

"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

VolumeSizeInGB

Type: *int64

The size of the ML storage volume that you want to provision.

ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

You must specify sufficient ML storage for your scenario.

Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.

VolumeSizeInGB is a required field

Method

GoString

func (s ResourceConfig) GoString() string

GoString returns the string representation

SetInstanceCount

func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig

SetInstanceCount sets the InstanceCount field's value.

SetInstanceType

func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig

SetInstanceType sets the InstanceType field's value.

SetVolumeKmsKeyId

func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig

SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value.

SetVolumeSizeInGB

func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig

SetVolumeSizeInGB sets the VolumeSizeInGB field's value.

String

func (s ResourceConfig) String() string

String returns the string representation

Validate

func (s *ResourceConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: