diff --git a/.changelog/11d2872453b04cf7bd388d33441c419d.json b/.changelog/11d2872453b04cf7bd388d33441c419d.json new file mode 100644 index 00000000000..c89507a2a72 --- /dev/null +++ b/.changelog/11d2872453b04cf7bd388d33441c419d.json @@ -0,0 +1,8 @@ +{ + "id": "11d28724-53b0-4cf7-bd38-8d33441c419d", + "type": "feature", + "description": "This change allows customers to specify FunctionRuntimeOverride in FunctionDefinitionVersion. This configuration can be used if the runtime on the device is different from the AWS Lambda runtime specified for that function.", + "modules": [ + "service/greengrass" + ] +} \ No newline at end of file diff --git a/.changelog/b0173b4863db4d399e8b6af179aa1538.json b/.changelog/b0173b4863db4d399e8b6af179aa1538.json new file mode 100644 index 00000000000..9bb10c58543 --- /dev/null +++ b/.changelog/b0173b4863db4d399e8b6af179aa1538.json @@ -0,0 +1,8 @@ +{ + "id": "b0173b48-63db-4d39-9e8b-6af179aa1538", + "type": "feature", + "description": "This release adds support for C7g, C6g, C6gd, C6gn, M6g, M6gd, R6g, and R6gn Graviton instance types in Amazon SageMaker Inference.", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/service/greengrass/deserializers.go b/service/greengrass/deserializers.go index 4ce3ae7c9c2..95717b5ce46 100644 --- a/service/greengrass/deserializers.go +++ b/service/greengrass/deserializers.go @@ -15974,6 +15974,15 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon sv.Executable = ptr.String(jtv) } + case "FunctionRuntimeOverride": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.FunctionRuntimeOverride = ptr.String(jtv) + } + case "MemorySize": if value != nil { jtv, ok := value.(json.Number) diff --git a/service/greengrass/serializers.go b/service/greengrass/serializers.go index cf607a69dc7..7d8f1830eea 100644 --- a/service/greengrass/serializers.go +++ b/service/greengrass/serializers.go @@ -6849,6 +6849,11 @@ func awsRestjson1_serializeDocumentFunctionConfiguration(v *types.FunctionConfig ok.String(*v.Executable) } + if v.FunctionRuntimeOverride != nil { + ok := object.Key("FunctionRuntimeOverride") + ok.String(*v.FunctionRuntimeOverride) + } + if v.MemorySize != 0 { ok := object.Key("MemorySize") ok.Integer(v.MemorySize) diff --git a/service/greengrass/types/types.go b/service/greengrass/types/types.go index bfa748f48c9..14a87076951 100644 --- a/service/greengrass/types/types.go +++ b/service/greengrass/types/types.go @@ -295,6 +295,10 @@ type FunctionConfiguration struct { // The name of the function executable. Executable *string + // The Lambda runtime supported by Greengrass which is to be used instead of the + // one specified in the Lambda function. + FunctionRuntimeOverride *string + // The memory size, in KB, which the function requires. This setting is not // applicable and should be cleared when you run the Lambda function without // containerization. diff --git a/service/sagemaker/api_op_CreateHyperParameterTuningJob.go b/service/sagemaker/api_op_CreateHyperParameterTuningJob.go index 40750bc93db..a330e7be8a9 100644 --- a/service/sagemaker/api_op_CreateHyperParameterTuningJob.go +++ b/service/sagemaker/api_op_CreateHyperParameterTuningJob.go @@ -15,7 +15,16 @@ import ( // version of a model by running many training jobs on your dataset using the // algorithm you choose and values for hyperparameters within ranges that you // specify. It then chooses the hyperparameter values that result in a model that -// performs the best, as measured by an objective metric that you choose. +// performs the best, as measured by an objective metric that you choose. A +// hyperparameter tuning job automatically creates Amazon SageMaker experiments, +// trials, and trial components for each training job that it runs. You can view +// these entities in Amazon SageMaker Studio. For more information, see View +// Experiments, Trials, and Trial Components +// (https://docs.aws.amazon.com/sagemaker/latest/dg/experiments-view-compare.html#experiments-view). +// Do not include any security-sensitive information including account access IDs, +// secrets or tokens in any hyperparameter field. If the use of security-sensitive +// credentials are detected, SageMaker will reject your training job request and +// return an exception error. func (c *Client) CreateHyperParameterTuningJob(ctx context.Context, params *CreateHyperParameterTuningJobInput, optFns ...func(*Options)) (*CreateHyperParameterTuningJobOutput, error) { if params == nil { params = &CreateHyperParameterTuningJobInput{} diff --git a/service/sagemaker/api_op_CreateTrainingJob.go b/service/sagemaker/api_op_CreateTrainingJob.go index 869c3407d86..8bc280868c8 100644 --- a/service/sagemaker/api_op_CreateTrainingJob.go +++ b/service/sagemaker/api_op_CreateTrainingJob.go @@ -26,27 +26,26 @@ import ( // estimation of model parameters during training. Hyperparameters can be tuned to // optimize this learning process. For a list of hyperparameters for each training // algorithm provided by SageMaker, see Algorithms -// (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). You must not -// include any security-sensitive information, such as account access IDs, secrets, -// and tokens, in the dictionary for configuring hyperparameters. SageMaker rejects -// the training job request and returns an exception error for detected -// credentials, if such user input is found. +// (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). Do not include any +// security-sensitive information including account access IDs, secrets or tokens +// in any hyperparameter field. If the use of security-sensitive credentials are +// detected, SageMaker will reject your training job request and return an +// exception error. // -// * InputDataConfig - Describes the -// training dataset and the Amazon S3, EFS, or FSx location where it is stored. +// * InputDataConfig - Describes the training dataset and the +// Amazon S3, EFS, or FSx location where it is stored. // -// * -// OutputDataConfig - Identifies the Amazon S3 bucket where you want SageMaker to -// save the results of model training. +// * OutputDataConfig - +// Identifies the Amazon S3 bucket where you want SageMaker to save the results of +// model training. // -// * ResourceConfig - Identifies the -// resources, ML compute instances, and ML storage volumes to deploy for model -// training. In distributed training, you specify more than one instance. +// * ResourceConfig - Identifies the resources, ML compute +// instances, and ML storage volumes to deploy for model training. In distributed +// training, you specify more than one instance. // -// * -// EnableManagedSpotTraining - Optimize the cost of training machine learning -// models by up to 80% by using Amazon EC2 Spot instances. For more information, -// see Managed Spot Training +// * EnableManagedSpotTraining - +// Optimize the cost of training machine learning models by up to 80% by using +// Amazon EC2 Spot instances. For more information, see Managed Spot Training // (https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html). // // * @@ -203,10 +202,10 @@ type CreateTrainingJobInput struct { // Algorithms (https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). You can // specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value // pair. Each key and value is limited to 256 characters, as specified by the - // Length Constraint. You must not include any security-sensitive information, such - // as account access IDs, secrets, and tokens, in the dictionary for configuring - // hyperparameters. SageMaker rejects the training job request and returns an - // exception error for detected credentials, if such user input is found. + // Length Constraint. Do not include any security-sensitive information including + // account access IDs, secrets or tokens in any hyperparameter field. If the use of + // security-sensitive credentials are detected, SageMaker will reject your training + // job request and return an exception error. HyperParameters map[string]string // An array of Channel objects. Each channel is a named input source. diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index 31a75dbbbbe..c21c226bd5a 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -3420,6 +3420,62 @@ const ( ProductionVariantInstanceTypeMlG524xlarge ProductionVariantInstanceType = "ml.g5.24xlarge" ProductionVariantInstanceTypeMlG548xlarge ProductionVariantInstanceType = "ml.g5.48xlarge" ProductionVariantInstanceTypeMlP4d24xlarge ProductionVariantInstanceType = "ml.p4d.24xlarge" + ProductionVariantInstanceTypeMlC7gLarge ProductionVariantInstanceType = "ml.c7g.large" + ProductionVariantInstanceTypeMlC7gXlarge ProductionVariantInstanceType = "ml.c7g.xlarge" + ProductionVariantInstanceTypeMlC7g2xlarge ProductionVariantInstanceType = "ml.c7g.2xlarge" + ProductionVariantInstanceTypeMlC7g4xlarge ProductionVariantInstanceType = "ml.c7g.4xlarge" + ProductionVariantInstanceTypeMlC7g8xlarge ProductionVariantInstanceType = "ml.c7g.8xlarge" + ProductionVariantInstanceTypeMlC7g12xlarge ProductionVariantInstanceType = "ml.c7g.12xlarge" + ProductionVariantInstanceTypeMlC7g16xlarge ProductionVariantInstanceType = "ml.c7g.16xlarge" + ProductionVariantInstanceTypeMlM6gLarge ProductionVariantInstanceType = "ml.m6g.large" + ProductionVariantInstanceTypeMlM6gXlarge ProductionVariantInstanceType = "ml.m6g.xlarge" + ProductionVariantInstanceTypeMlM6g2xlarge ProductionVariantInstanceType = "ml.m6g.2xlarge" + ProductionVariantInstanceTypeMlM6g4xlarge ProductionVariantInstanceType = "ml.m6g.4xlarge" + ProductionVariantInstanceTypeMlM6g8xlarge ProductionVariantInstanceType = "ml.m6g.8xlarge" + ProductionVariantInstanceTypeMlM6g12xlarge ProductionVariantInstanceType = "ml.m6g.12xlarge" + ProductionVariantInstanceTypeMlM6g16xlarge ProductionVariantInstanceType = "ml.m6g.16xlarge" + ProductionVariantInstanceTypeMlM6gdLarge ProductionVariantInstanceType = "ml.m6gd.large" + ProductionVariantInstanceTypeMlM6gdXlarge ProductionVariantInstanceType = "ml.m6gd.xlarge" + ProductionVariantInstanceTypeMlM6gd2xlarge ProductionVariantInstanceType = "ml.m6gd.2xlarge" + ProductionVariantInstanceTypeMlM6gd4xlarge ProductionVariantInstanceType = "ml.m6gd.4xlarge" + ProductionVariantInstanceTypeMlM6gd8xlarge ProductionVariantInstanceType = "ml.m6gd.8xlarge" + ProductionVariantInstanceTypeMlM6gd12xlarge ProductionVariantInstanceType = "ml.m6gd.12xlarge" + ProductionVariantInstanceTypeMlM6gd16xlarge ProductionVariantInstanceType = "ml.m6gd.16xlarge" + ProductionVariantInstanceTypeMlC6gLarge ProductionVariantInstanceType = "ml.c6g.large" + ProductionVariantInstanceTypeMlC6gXlarge ProductionVariantInstanceType = "ml.c6g.xlarge" + ProductionVariantInstanceTypeMlC6g2xlarge ProductionVariantInstanceType = "ml.c6g.2xlarge" + ProductionVariantInstanceTypeMlC6g4xlarge ProductionVariantInstanceType = "ml.c6g.4xlarge" + ProductionVariantInstanceTypeMlC6g8xlarge ProductionVariantInstanceType = "ml.c6g.8xlarge" + ProductionVariantInstanceTypeMlC6g12xlarge ProductionVariantInstanceType = "ml.c6g.12xlarge" + ProductionVariantInstanceTypeMlC6g16xlarge ProductionVariantInstanceType = "ml.c6g.16xlarge" + ProductionVariantInstanceTypeMlC6gdLarge ProductionVariantInstanceType = "ml.c6gd.large" + ProductionVariantInstanceTypeMlC6gdXlarge ProductionVariantInstanceType = "ml.c6gd.xlarge" + ProductionVariantInstanceTypeMlC6gd2xlarge ProductionVariantInstanceType = "ml.c6gd.2xlarge" + ProductionVariantInstanceTypeMlC6gd4xlarge ProductionVariantInstanceType = "ml.c6gd.4xlarge" + ProductionVariantInstanceTypeMlC6gd8xlarge ProductionVariantInstanceType = "ml.c6gd.8xlarge" + ProductionVariantInstanceTypeMlC6gd12xlarge ProductionVariantInstanceType = "ml.c6gd.12xlarge" + ProductionVariantInstanceTypeMlC6gd16xlarge ProductionVariantInstanceType = "ml.c6gd.16xlarge" + ProductionVariantInstanceTypeMlC6gnLarge ProductionVariantInstanceType = "ml.c6gn.large" + ProductionVariantInstanceTypeMlC6gnXlarge ProductionVariantInstanceType = "ml.c6gn.xlarge" + ProductionVariantInstanceTypeMlC6gn2xlarge ProductionVariantInstanceType = "ml.c6gn.2xlarge" + ProductionVariantInstanceTypeMlC6gn4xlarge ProductionVariantInstanceType = "ml.c6gn.4xlarge" + ProductionVariantInstanceTypeMlC6gn8xlarge ProductionVariantInstanceType = "ml.c6gn.8xlarge" + ProductionVariantInstanceTypeMlC6gn12xlarge ProductionVariantInstanceType = "ml.c6gn.12xlarge" + ProductionVariantInstanceTypeMlC6gn16xlarge ProductionVariantInstanceType = "ml.c6gn.16xlarge" + ProductionVariantInstanceTypeMlR6gLarge ProductionVariantInstanceType = "ml.r6g.large" + ProductionVariantInstanceTypeMlR6gXlarge ProductionVariantInstanceType = "ml.r6g.xlarge" + ProductionVariantInstanceTypeMlR6g2xlarge ProductionVariantInstanceType = "ml.r6g.2xlarge" + ProductionVariantInstanceTypeMlR6g4xlarge ProductionVariantInstanceType = "ml.r6g.4xlarge" + ProductionVariantInstanceTypeMlR6g8xlarge ProductionVariantInstanceType = "ml.r6g.8xlarge" + ProductionVariantInstanceTypeMlR6g12xlarge ProductionVariantInstanceType = "ml.r6g.12xlarge" + ProductionVariantInstanceTypeMlR6g16xlarge ProductionVariantInstanceType = "ml.r6g.16xlarge" + ProductionVariantInstanceTypeMlR6gdLarge ProductionVariantInstanceType = "ml.r6gd.large" + ProductionVariantInstanceTypeMlR6gdXlarge ProductionVariantInstanceType = "ml.r6gd.xlarge" + ProductionVariantInstanceTypeMlR6gd2xlarge ProductionVariantInstanceType = "ml.r6gd.2xlarge" + ProductionVariantInstanceTypeMlR6gd4xlarge ProductionVariantInstanceType = "ml.r6gd.4xlarge" + ProductionVariantInstanceTypeMlR6gd8xlarge ProductionVariantInstanceType = "ml.r6gd.8xlarge" + ProductionVariantInstanceTypeMlR6gd12xlarge ProductionVariantInstanceType = "ml.r6gd.12xlarge" + ProductionVariantInstanceTypeMlR6gd16xlarge ProductionVariantInstanceType = "ml.r6gd.16xlarge" ) // Values returns all known values for ProductionVariantInstanceType. Note that @@ -3512,6 +3568,62 @@ func (ProductionVariantInstanceType) Values() []ProductionVariantInstanceType { "ml.g5.24xlarge", "ml.g5.48xlarge", "ml.p4d.24xlarge", + "ml.c7g.large", + "ml.c7g.xlarge", + "ml.c7g.2xlarge", + "ml.c7g.4xlarge", + "ml.c7g.8xlarge", + "ml.c7g.12xlarge", + "ml.c7g.16xlarge", + "ml.m6g.large", + "ml.m6g.xlarge", + "ml.m6g.2xlarge", + "ml.m6g.4xlarge", + "ml.m6g.8xlarge", + "ml.m6g.12xlarge", + "ml.m6g.16xlarge", + "ml.m6gd.large", + "ml.m6gd.xlarge", + "ml.m6gd.2xlarge", + "ml.m6gd.4xlarge", + "ml.m6gd.8xlarge", + "ml.m6gd.12xlarge", + "ml.m6gd.16xlarge", + "ml.c6g.large", + "ml.c6g.xlarge", + "ml.c6g.2xlarge", + "ml.c6g.4xlarge", + "ml.c6g.8xlarge", + "ml.c6g.12xlarge", + "ml.c6g.16xlarge", + "ml.c6gd.large", + "ml.c6gd.xlarge", + "ml.c6gd.2xlarge", + "ml.c6gd.4xlarge", + "ml.c6gd.8xlarge", + "ml.c6gd.12xlarge", + "ml.c6gd.16xlarge", + "ml.c6gn.large", + "ml.c6gn.xlarge", + "ml.c6gn.2xlarge", + "ml.c6gn.4xlarge", + "ml.c6gn.8xlarge", + "ml.c6gn.12xlarge", + "ml.c6gn.16xlarge", + "ml.r6g.large", + "ml.r6g.xlarge", + "ml.r6g.2xlarge", + "ml.r6g.4xlarge", + "ml.r6g.8xlarge", + "ml.r6g.12xlarge", + "ml.r6g.16xlarge", + "ml.r6gd.large", + "ml.r6gd.xlarge", + "ml.r6gd.2xlarge", + "ml.r6gd.4xlarge", + "ml.r6gd.8xlarge", + "ml.r6gd.12xlarge", + "ml.r6gd.16xlarge", } } diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 7f6387c7164..70ac1ca1aea 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -2352,7 +2352,7 @@ type ClarifyExplainerConfig struct { // A JMESPath boolean expression used to filter which records to explain. // Explanations are activated by default. See EnableExplanations - // (https://docs.aws.amazon.com/sagemaker-dg/src/AWSIronmanApiDoc/build/server-root/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable)for + // (https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable)for // additional information. EnableExplanations *string @@ -2391,7 +2391,7 @@ type ClarifyInferenceConfig struct { // Provides the JMESPath expression to extract the features from a model container // input in JSON Lines format. For example, if FeaturesAttribute is the JMESPath // expression 'myfeatures', it extracts a list of features [1,2,3] from request - // data '{"myfeatures":[1,2,3}'. + // data '{"myfeatures":[1,2,3]}'. FeaturesAttribute *string // A JMESPath expression used to locate the list of label headers in the model @@ -7277,9 +7277,9 @@ type InputConfig struct { S3Uri *string // Specifies the framework version to use. This API field is only supported for the - // PyTorch and TensorFlow frameworks. For information about framework versions - // supported for cloud targets and edge devices, see Cloud Supported Instance Types - // and Frameworks + // MXNet, PyTorch, TensorFlow and TensorFlow Lite frameworks. For information about + // framework versions supported for cloud targets and edge devices, see Cloud + // Supported Instance Types and Frameworks // (https://docs.aws.amazon.com/sagemaker/latest/dg/neo-supported-cloud.html) and // Edge Supported Frameworks // (https://docs.aws.amazon.com/sagemaker/latest/dg/neo-supported-devices-edge-frameworks.html).