From 4e9c6cc4a2244d41dbecbcc07d3f03abef65c411 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Fri, 19 Mar 2021 11:12:30 -0700 Subject: [PATCH] Release v1.38.1 (2021-03-19) (#3829) Release v1.38.1 (2021-03-19) === ### Service Client Updates * `service/ec2`: Updates service API * X2gd instances are the next generation of memory-optimized instances powered by AWS-designed, Arm-based AWS Graviton2 processors. * `service/sagemaker`: Updates service API and documentation * Adding authentication support for pulling images stored in private Docker registries to build containers for real-time inference. --- CHANGELOG.md | 9 +++ aws/version.go | 2 +- models/apis/ec2/2016-11-15/api-2.json | 11 ++- models/apis/sagemaker/2017-07-24/api-2.json | 16 ++++- models/apis/sagemaker/2017-07-24/docs-2.json | 14 +++- service/ec2/api.go | 36 ++++++++++ service/sagemaker/api.go | 74 ++++++++++++++++++++ 7 files changed, 158 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e32e7d0a0a..8881a4302c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +Release v1.38.1 (2021-03-19) +=== + +### Service Client Updates +* `service/ec2`: Updates service API + * X2gd instances are the next generation of memory-optimized instances powered by AWS-designed, Arm-based AWS Graviton2 processors. +* `service/sagemaker`: Updates service API and documentation + * Adding authentication support for pulling images stored in private Docker registries to build containers for real-time inference. + Release v1.38.0 (2021-03-18) === diff --git a/aws/version.go b/aws/version.go index 937f765df1b..3f67c7cb7cf 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.38.0" +const SDKVersion = "1.38.1" diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 1847a995e70..dc916b83ed5 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -20176,7 +20176,16 @@ "m6gd.8xlarge", "m6gd.12xlarge", "m6gd.16xlarge", - "mac1.metal" + "mac1.metal", + "x2gd.medium", + "x2gd.large", + "x2gd.xlarge", + "x2gd.2xlarge", + "x2gd.4xlarge", + "x2gd.8xlarge", + "x2gd.12xlarge", + "x2gd.16xlarge", + "x2gd.metal" ] }, "InstanceTypeHypervisor":{ diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 5ed329b3d98..4b8e1f3deab 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -8430,7 +8430,8 @@ "type":"structure", "required":["RepositoryAccessMode"], "members":{ - "RepositoryAccessMode":{"shape":"RepositoryAccessMode"} + "RepositoryAccessMode":{"shape":"RepositoryAccessMode"}, + "RepositoryAuthConfig":{"shape":"RepositoryAuthConfig"} } }, "ImageContainerImage":{ @@ -12488,6 +12489,19 @@ "Vpc" ] }, + "RepositoryAuthConfig":{ + "type":"structure", + "required":["RepositoryCredentialsProviderArn"], + "members":{ + "RepositoryCredentialsProviderArn":{"shape":"RepositoryCredentialsProviderArn"} + } + }, + "RepositoryCredentialsProviderArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":".*" + }, "ResolvedAttributes":{ "type":"structure", "members":{ diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json index 9c7191546c6..ee4ec78f5c6 100644 --- a/models/apis/sagemaker/2017-07-24/docs-2.json +++ b/models/apis/sagemaker/2017-07-24/docs-2.json @@ -1394,7 +1394,7 @@ "CompilerOptions": { "base": null, "refs": { - "OutputConfig$CompilerOptions": "

Specifies additional parameters for compiler options in JSON format. The compiler options are TargetPlatform specific. It is required for NVIDIA accelerators and highly recommended for CPU compilations. For any other cases, it is optional to specify CompilerOptions.

" + "OutputConfig$CompilerOptions": "

Specifies additional parameters for compiler options in JSON format. The compiler options are TargetPlatform specific. It is required for NVIDIA accelerators and highly recommended for CPU compilations. For any other cases, it is optional to specify CompilerOptions.

" } }, "CompressionType": { @@ -7946,6 +7946,18 @@ "ImageConfig$RepositoryAccessMode": "

Set this to one of the following values:

" } }, + "RepositoryAuthConfig": { + "base": "

Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field of the ImageConfig object that you passed to a call to CreateModel and the private Docker registry where the model image is hosted requires authentication.

", + "refs": { + "ImageConfig$RepositoryAuthConfig": "

(Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication.

" + } + }, + "RepositoryCredentialsProviderArn": { + "base": null, + "refs": { + "RepositoryAuthConfig$RepositoryCredentialsProviderArn": "

The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide.

" + } + }, "ResolvedAttributes": { "base": "

The resolved attributes.

", "refs": { diff --git a/service/ec2/api.go b/service/ec2/api.go index c9525219cd9..541f544da7f 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -125162,6 +125162,33 @@ const ( // InstanceTypeMac1Metal is a InstanceType enum value InstanceTypeMac1Metal = "mac1.metal" + + // InstanceTypeX2gdMedium is a InstanceType enum value + InstanceTypeX2gdMedium = "x2gd.medium" + + // InstanceTypeX2gdLarge is a InstanceType enum value + InstanceTypeX2gdLarge = "x2gd.large" + + // InstanceTypeX2gdXlarge is a InstanceType enum value + InstanceTypeX2gdXlarge = "x2gd.xlarge" + + // InstanceTypeX2gd2xlarge is a InstanceType enum value + InstanceTypeX2gd2xlarge = "x2gd.2xlarge" + + // InstanceTypeX2gd4xlarge is a InstanceType enum value + InstanceTypeX2gd4xlarge = "x2gd.4xlarge" + + // InstanceTypeX2gd8xlarge is a InstanceType enum value + InstanceTypeX2gd8xlarge = "x2gd.8xlarge" + + // InstanceTypeX2gd12xlarge is a InstanceType enum value + InstanceTypeX2gd12xlarge = "x2gd.12xlarge" + + // InstanceTypeX2gd16xlarge is a InstanceType enum value + InstanceTypeX2gd16xlarge = "x2gd.16xlarge" + + // InstanceTypeX2gdMetal is a InstanceType enum value + InstanceTypeX2gdMetal = "x2gd.metal" ) // InstanceType_Values returns all elements of the InstanceType enum @@ -125556,6 +125583,15 @@ func InstanceType_Values() []string { InstanceTypeM6gd12xlarge, InstanceTypeM6gd16xlarge, InstanceTypeMac1Metal, + InstanceTypeX2gdMedium, + InstanceTypeX2gdLarge, + InstanceTypeX2gdXlarge, + InstanceTypeX2gd2xlarge, + InstanceTypeX2gd4xlarge, + InstanceTypeX2gd8xlarge, + InstanceTypeX2gd12xlarge, + InstanceTypeX2gd16xlarge, + InstanceTypeX2gdMetal, } } diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 0216e7ebd6b..43848467e78 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -51052,6 +51052,13 @@ type ImageConfig struct { // // RepositoryAccessMode is a required field RepositoryAccessMode *string `type:"string" required:"true" enum:"RepositoryAccessMode"` + + // (Optional) Specifies an authentication configuration for the private docker + // registry where your model image is hosted. Specify a value for this property + // only if you specified Vpc as the value for the RepositoryAccessMode field, + // and the private Docker registry where the model image is hosted requires + // authentication. + RepositoryAuthConfig *RepositoryAuthConfig `type:"structure"` } // String returns the string representation @@ -51070,6 +51077,11 @@ func (s *ImageConfig) Validate() error { if s.RepositoryAccessMode == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryAccessMode")) } + if s.RepositoryAuthConfig != nil { + if err := s.RepositoryAuthConfig.Validate(); err != nil { + invalidParams.AddNested("RepositoryAuthConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -51083,6 +51095,12 @@ func (s *ImageConfig) SetRepositoryAccessMode(v string) *ImageConfig { return s } +// SetRepositoryAuthConfig sets the RepositoryAuthConfig field's value. +func (s *ImageConfig) SetRepositoryAuthConfig(v *RepositoryAuthConfig) *ImageConfig { + s.RepositoryAuthConfig = v + return s +} + // A version of a SageMaker Image. A version represents an existing container // image. type ImageVersion struct { @@ -64274,6 +64292,12 @@ type OutputConfig struct { // and highly recommended for CPU compilations. For any other cases, it is optional // to specify CompilerOptions. // + // * DTYPE: Specifies the data type for the input. When compiling for ml_* + // (except for ml_inf) instances using PyTorch framework, provide the data + // type (dtype) of the model's input. "float32" is used if "DTYPE" is not + // specified. Options for data type are: float32: Use either "float" or "float32". + // int64: Use either "int64" or "long". For example, {"dtype" : "float32"}. + // // * CPU: Compilation for CPU supports the following compiler options. mcpu: // CPU micro-architecture. For example, {'mcpu': 'skylake-avx512'} mattr: // CPU flags. For example, {'mattr': ['+neon', '+vfpv4']} @@ -67864,6 +67888,56 @@ func (s *RenderingError) SetMessage(v string) *RenderingError { return s } +// Specifies an authentication configuration for the private docker registry +// where your model image is hosted. Specify a value for this property only +// if you specified Vpc as the value for the RepositoryAccessMode field of the +// ImageConfig object that you passed to a call to CreateModel and the private +// Docker registry where the model image is hosted requires authentication. +type RepositoryAuthConfig struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an AWS Lambda function that provides credentials + // to authenticate to the private Docker registry where your model image is + // hosted. For information about how to create an AWS Lambda function, see Create + // a Lambda function with the console (https://docs.aws.amazon.com/lambda/latest/dg/getting-started-create-function.html) + // in the AWS Lambda Developer Guide. + // + // RepositoryCredentialsProviderArn is a required field + RepositoryCredentialsProviderArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RepositoryAuthConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RepositoryAuthConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RepositoryAuthConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RepositoryAuthConfig"} + if s.RepositoryCredentialsProviderArn == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryCredentialsProviderArn")) + } + if s.RepositoryCredentialsProviderArn != nil && len(*s.RepositoryCredentialsProviderArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryCredentialsProviderArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRepositoryCredentialsProviderArn sets the RepositoryCredentialsProviderArn field's value. +func (s *RepositoryAuthConfig) SetRepositoryCredentialsProviderArn(v string) *RepositoryAuthConfig { + s.RepositoryCredentialsProviderArn = &v + return s +} + // The resolved attributes. type ResolvedAttributes struct { _ struct{} `type:"structure"`