From 1fd9ee49f848d26bd4d4a20b50ef198bd5497751 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Fri, 26 Jan 2024 19:16:19 +0000 Subject: [PATCH] Regenerated Clients --- .../08c9be615eac4f0aa053d71a4139761a.json | 8 + .../69ff0e0ecd274c26bcb468f246693931.json | 8 + .../f08191f690f74c349aeff18b6e3837fc.json | 8 + .../inspector2/api_op_UpdateEncryptionKey.go | 4 +- service/inspector2/deserializers.go | 25 +++ service/inspector2/serializers.go | 12 ++ service/inspector2/types/enums.go | 30 +++ service/inspector2/types/types.go | 181 ++++++++++-------- service/sagemaker/api_op_CreateDomain.go | 24 +-- .../api_op_DeleteHyperParameterTuningJob.go | 135 +++++++++++++ service/sagemaker/api_op_DescribeDomain.go | 2 +- .../sagemaker/api_op_DescribeFeatureGroup.go | 21 +- .../api_op_DescribeHyperParameterTuningJob.go | 3 +- .../api_op_DescribeModelPackageGroup.go | 2 +- service/sagemaker/api_op_UpdateEndpoint.go | 15 +- service/sagemaker/deserializers.go | 86 +++++++++ service/sagemaker/generated.json | 1 + service/sagemaker/serializers.go | 67 +++++++ service/sagemaker/types/types.go | 51 +++-- service/sagemaker/validators.go | 39 ++++ 20 files changed, 588 insertions(+), 134 deletions(-) create mode 100644 .changelog/08c9be615eac4f0aa053d71a4139761a.json create mode 100644 .changelog/69ff0e0ecd274c26bcb468f246693931.json create mode 100644 .changelog/f08191f690f74c349aeff18b6e3837fc.json create mode 100644 service/sagemaker/api_op_DeleteHyperParameterTuningJob.go diff --git a/.changelog/08c9be615eac4f0aa053d71a4139761a.json b/.changelog/08c9be615eac4f0aa053d71a4139761a.json new file mode 100644 index 00000000000..0504bdb8ee7 --- /dev/null +++ b/.changelog/08c9be615eac4f0aa053d71a4139761a.json @@ -0,0 +1,8 @@ +{ + "id": "08c9be61-5eac-4f0a-a053-d71a4139761a", + "type": "feature", + "description": "This release adds ECR container image scanning based on their lastRecordedPullTime.", + "modules": [ + "service/inspector2" + ] +} \ No newline at end of file diff --git a/.changelog/69ff0e0ecd274c26bcb468f246693931.json b/.changelog/69ff0e0ecd274c26bcb468f246693931.json new file mode 100644 index 00000000000..4e3cb3ac3ea --- /dev/null +++ b/.changelog/69ff0e0ecd274c26bcb468f246693931.json @@ -0,0 +1,8 @@ +{ + "id": "69ff0e0e-cd27-4c26-bcb4-68f246693931", + "type": "feature", + "description": "Amazon SageMaker Automatic Model Tuning now provides an API to programmatically delete tuning jobs.", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/f08191f690f74c349aeff18b6e3837fc.json b/.changelog/f08191f690f74c349aeff18b6e3837fc.json new file mode 100644 index 00000000000..1a59fea061d --- /dev/null +++ b/.changelog/f08191f690f74c349aeff18b6e3837fc.json @@ -0,0 +1,8 @@ +{ + "id": "f08191f6-90f7-4c34-9aef-f18b6e3837fc", + "type": "feature", + "description": "Update list and string length limits for predefined attributes.", + "modules": [ + "service/connect" + ] +} \ No newline at end of file diff --git a/service/inspector2/api_op_UpdateEncryptionKey.go b/service/inspector2/api_op_UpdateEncryptionKey.go index 0172bda637b..40c696d57bf 100644 --- a/service/inspector2/api_op_UpdateEncryptionKey.go +++ b/service/inspector2/api_op_UpdateEncryptionKey.go @@ -12,8 +12,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates an encryption key. A ResourceNotFoundException means that an AWS owned -// key is being used for encryption. +// Updates an encryption key. A ResourceNotFoundException means that an Amazon Web +// Services owned key is being used for encryption. func (c *Client) UpdateEncryptionKey(ctx context.Context, params *UpdateEncryptionKeyInput, optFns ...func(*Options)) (*UpdateEncryptionKeyOutput, error) { if params == nil { params = &UpdateEncryptionKeyInput{} diff --git a/service/inspector2/deserializers.go b/service/inspector2/deserializers.go index 8a9fb796912..99ec2d187f0 100644 --- a/service/inspector2/deserializers.go +++ b/service/inspector2/deserializers.go @@ -13334,6 +13334,22 @@ func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrCont for key, value := range shape { switch key { + case "imagePulledAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ImagePulledAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value) + + } + } + case "tags": if err := awsRestjson1_deserializeDocumentTagList(&sv.Tags, value); err != nil { return err @@ -13419,6 +13435,15 @@ func awsRestjson1_deserializeDocumentEcrRescanDurationState(v **types.EcrRescanD for key, value := range shape { switch key { + case "pullDateRescanDuration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected EcrPullDateRescanDuration to be of type string, got %T instead", value) + } + sv.PullDateRescanDuration = types.EcrPullDateRescanDuration(jtv) + } + case "rescanDuration": if value != nil { jtv, ok := value.(string) diff --git a/service/inspector2/serializers.go b/service/inspector2/serializers.go index 96d4c621264..812512316ee 100644 --- a/service/inspector2/serializers.go +++ b/service/inspector2/serializers.go @@ -5684,6 +5684,13 @@ func awsRestjson1_serializeDocumentCoverageFilterCriteria(v *types.CoverageFilte } } + if v.ImagePulledAt != nil { + ok := object.Key("imagePulledAt") + if err := awsRestjson1_serializeDocumentCoverageDateFilterList(v.ImagePulledAt, ok); err != nil { + return err + } + } + if v.LambdaFunctionName != nil { ok := object.Key("lambdaFunctionName") if err := awsRestjson1_serializeDocumentCoverageStringFilterList(v.LambdaFunctionName, ok); err != nil { @@ -5973,6 +5980,11 @@ func awsRestjson1_serializeDocumentEcrConfiguration(v *types.EcrConfiguration, v object := value.Object() defer object.Close() + if len(v.PullDateRescanDuration) > 0 { + ok := object.Key("pullDateRescanDuration") + ok.String(string(v.PullDateRescanDuration)) + } + if len(v.RescanDuration) > 0 { ok := object.Key("rescanDuration") ok.String(string(v.RescanDuration)) diff --git a/service/inspector2/types/enums.go b/service/inspector2/types/enums.go index f98ada6ca04..d5ba7090eba 100644 --- a/service/inspector2/types/enums.go +++ b/service/inspector2/types/enums.go @@ -738,6 +738,30 @@ func (Ec2Platform) Values() []Ec2Platform { } } +type EcrPullDateRescanDuration string + +// Enum values for EcrPullDateRescanDuration +const ( + EcrPullDateRescanDurationDays14 EcrPullDateRescanDuration = "DAYS_14" + EcrPullDateRescanDurationDays30 EcrPullDateRescanDuration = "DAYS_30" + EcrPullDateRescanDurationDays60 EcrPullDateRescanDuration = "DAYS_60" + EcrPullDateRescanDurationDays90 EcrPullDateRescanDuration = "DAYS_90" + EcrPullDateRescanDurationDays180 EcrPullDateRescanDuration = "DAYS_180" +) + +// Values returns all known values for EcrPullDateRescanDuration. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (EcrPullDateRescanDuration) Values() []EcrPullDateRescanDuration { + return []EcrPullDateRescanDuration{ + "DAYS_14", + "DAYS_30", + "DAYS_60", + "DAYS_90", + "DAYS_180", + } +} + type EcrRescanDuration string // Enum values for EcrRescanDuration @@ -745,6 +769,9 @@ const ( EcrRescanDurationLifetime EcrRescanDuration = "LIFETIME" EcrRescanDurationDays30 EcrRescanDuration = "DAYS_30" EcrRescanDurationDays180 EcrRescanDuration = "DAYS_180" + EcrRescanDurationDays14 EcrRescanDuration = "DAYS_14" + EcrRescanDurationDays60 EcrRescanDuration = "DAYS_60" + EcrRescanDurationDays90 EcrRescanDuration = "DAYS_90" ) // Values returns all known values for EcrRescanDuration. Note that this can be @@ -755,6 +782,9 @@ func (EcrRescanDuration) Values() []EcrRescanDuration { "LIFETIME", "DAYS_30", "DAYS_180", + "DAYS_14", + "DAYS_60", + "DAYS_90", } } diff --git a/service/inspector2/types/types.go b/service/inspector2/types/types.go index 1dab8030df2..98505d1bac8 100644 --- a/service/inspector2/types/types.go +++ b/service/inspector2/types/types.go @@ -162,7 +162,8 @@ type AggregationRequestMemberImageLayerAggregation struct { func (*AggregationRequestMemberImageLayerAggregation) isAggregationRequest() {} -// Returns an object with findings aggregated by AWS Lambda function. +// Returns an object with findings aggregated by Amazon Web Services Lambda +// function. type AggregationRequestMemberLambdaFunctionAggregation struct { Value LambdaFunctionAggregation @@ -171,7 +172,7 @@ type AggregationRequestMemberLambdaFunctionAggregation struct { func (*AggregationRequestMemberLambdaFunctionAggregation) isAggregationRequest() {} -// Returns an object with findings aggregated by AWS Lambda layer. +// Returns an object with findings aggregated by Amazon Web Services Lambda layer. type AggregationRequestMemberLambdaLayerAggregation struct { Value LambdaLayerAggregation @@ -289,7 +290,7 @@ type AggregationResponseMemberImageLayerAggregation struct { func (*AggregationResponseMemberImageLayerAggregation) isAggregationResponse() {} -// An aggregation of findings by AWS Lambda function. +// An aggregation of findings by Amazon Web Services Lambda function. type AggregationResponseMemberLambdaFunctionAggregation struct { Value LambdaFunctionAggregationResponse @@ -298,7 +299,7 @@ type AggregationResponseMemberLambdaFunctionAggregation struct { func (*AggregationResponseMemberLambdaFunctionAggregation) isAggregationResponse() {} -// An aggregation of findings by AWS Lambda layer. +// An aggregation of findings by Amazon Web Services Lambda layer. type AggregationResponseMemberLambdaLayerAggregation struct { Value LambdaLayerAggregationResponse @@ -408,12 +409,12 @@ type AutoEnable struct { // This member is required. Ecr *bool - // Represents whether AWS Lambda standard scans are automatically enabled for new - // members of your Amazon Inspector organization. + // Represents whether Amazon Web Services Lambda standard scans are automatically + // enabled for new members of your Amazon Inspector organization. Lambda *bool - // Represents whether AWS Lambda code scans are automatically enabled for new - // members of your Amazon Inspector organization. + // Represents whether Lambda code scans are automatically enabled for new members + // of your Amazon Inspector organization. LambdaCode *bool noSmithyDocumentSerde @@ -547,43 +548,43 @@ type AwsEcrContainerImageDetails struct { noSmithyDocumentSerde } -// A summary of information about the AWS Lambda function. +// A summary of information about the Amazon Web Services Lambda function. type AwsLambdaFunctionDetails struct { - // The SHA256 hash of the AWS Lambda function's deployment package. + // The SHA256 hash of the Amazon Web Services Lambda function's deployment package. // // This member is required. CodeSha256 *string - // The AWS Lambda function's execution role. + // The Amazon Web Services Lambda function's execution role. // // This member is required. ExecutionRoleArn *string - // The name of the AWS Lambda function. + // The name of the Amazon Web Services Lambda function. // // This member is required. FunctionName *string - // The runtime environment for the AWS Lambda function. + // The runtime environment for the Amazon Web Services Lambda function. // // This member is required. Runtime Runtime - // The version of the AWS Lambda function. + // The version of the Amazon Web Services Lambda function. // // This member is required. Version *string - // The instruction set architecture that the AWS Lambda function supports. - // Architecture is a string array with one of the valid values. The default - // architecture value is x86_64 . + // The instruction set architecture that the Amazon Web Services Lambda function + // supports. Architecture is a string array with one of the valid values. The + // default architecture value is x86_64 . Architectures []Architecture // The date and time that a user last updated the configuration, in ISO 8601 format (https://www.iso.org/iso-8601-date-and-time-format.html) LastModifiedAt *time.Time - // The AWS Lambda function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) + // The Amazon Web Services Lambda function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) // . A Lambda function can have up to five layers. Layers []string @@ -591,7 +592,7 @@ type AwsLambdaFunctionDetails struct { // for .zip file archive. PackageType PackageType - // The AWS Lambda function's networking configuration. + // The Amazon Web Services Lambda function's networking configuration. VpcConfig *LambdaVpcConfig noSmithyDocumentSerde @@ -1231,13 +1232,19 @@ type CoverageFilterCriteria struct { // The Amazon ECR repository name to filter on. EcrRepositoryName []CoverageStringFilter - // Returns coverage statistics for AWS Lambda functions filtered by function names. + // The date an image was last pulled at. + ImagePulledAt []CoverageDateFilter + + // Returns coverage statistics for Amazon Web Services Lambda functions filtered + // by function names. LambdaFunctionName []CoverageStringFilter - // Returns coverage statistics for AWS Lambda functions filtered by runtime. + // Returns coverage statistics for Amazon Web Services Lambda functions filtered + // by runtime. LambdaFunctionRuntime []CoverageStringFilter - // Returns coverage statistics for AWS Lambda functions filtered by tag. + // Returns coverage statistics for Amazon Web Services Lambda functions filtered + // by tag. LambdaFunctionTags []CoverageMapFilter // Filters Amazon Web Services resources based on whether Amazon Inspector has @@ -1595,22 +1602,21 @@ type Ec2Metadata struct { // Details about the ECR automated re-scan duration setting for your environment. type EcrConfiguration struct { - // The ECR automated re-scan duration defines how long an ECR image will be - // actively scanned by Amazon Inspector. When the number of days since an image was - // last pushed exceeds the automated re-scan duration the monitoring state of that - // image becomes inactive and all associated findings are scheduled for closure. + // The rescan duration configured for image push date. // // This member is required. RescanDuration EcrRescanDuration + // The rescan duration configured for image pull date. + PullDateRescanDuration EcrPullDateRescanDuration + noSmithyDocumentSerde } // Details about the state of the ECR scans for your environment. type EcrConfigurationState struct { - // An object that contains details about the state of the ECR automated re-scan - // setting. + // An object that contains details about the state of the ECR re-scan settings. RescanDurationState *EcrRescanDurationState noSmithyDocumentSerde @@ -1619,6 +1625,9 @@ type EcrConfigurationState struct { // Information on the Amazon ECR image metadata associated with a finding. type EcrContainerImageMetadata struct { + // The date an image was last pulled at. + ImagePulledAt *time.Time + // Tags associated with the Amazon ECR image metadata. Tags []string @@ -1637,14 +1646,18 @@ type EcrRepositoryMetadata struct { noSmithyDocumentSerde } -// Details about the state of any changes to the ECR automated re-scan duration -// setting. +// Details about the state of your ECR re-scan duration settings. The ECR re-scan +// duration defines how long an ECR image will be actively scanned by Amazon +// Inspector. When the number of days since an image was last pushed exceeds the +// duration configured for image pull date, and the duration configured for image +// pull date, the monitoring state of that image becomes inactive and all +// associated findings are scheduled for closure. type EcrRescanDurationState struct { - // The ECR automated re-scan duration defines how long an ECR image will be - // actively scanned by Amazon Inspector. When the number of days since an image was - // last pushed exceeds the automated re-scan duration the monitoring state of that - // image becomes inactive and all associated findings are scheduled for closure. + // The rescan duration configured for image pull date. + PullDateRescanDuration EcrPullDateRescanDuration + + // The rescan duration configured for image push date. RescanDuration EcrRescanDuration // The status of changes to the ECR automated re-scan duration. @@ -1869,7 +1882,8 @@ type FilterCriteria struct { // The EPSS score used to filter findings. EpssScore []NumberFilter - // Filters the list of AWS Lambda findings by the availability of exploits. + // Filters the list of Amazon Web Services Lambda findings by the availability of + // exploits. ExploitAvailable []StringFilter // Details on the finding ARNs used to filter findings. @@ -1893,22 +1907,24 @@ type FilterCriteria struct { // The Amazon Inspector score to filter on. InspectorScore []NumberFilter - // Filters the list of AWS Lambda functions by execution role. + // Filters the list of Amazon Web Services Lambda functions by execution role. LambdaFunctionExecutionRoleArn []StringFilter - // Filters the list of AWS Lambda functions by the date and time that a user last - // updated the configuration, in ISO 8601 format (https://www.iso.org/iso-8601-date-and-time-format.html) + // Filters the list of Amazon Web Services Lambda functions by the date and time + // that a user last updated the configuration, in ISO 8601 format (https://www.iso.org/iso-8601-date-and-time-format.html) LambdaFunctionLastModifiedAt []DateFilter - // Filters the list of AWS Lambda functions by the function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) + // Filters the list of Amazon Web Services Lambda functions by the function's + // layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) // . A Lambda function can have up to five layers. LambdaFunctionLayers []StringFilter - // Filters the list of AWS Lambda functions by the name of the function. + // Filters the list of Amazon Web Services Lambda functions by the name of the + // function. LambdaFunctionName []StringFilter - // Filters the list of AWS Lambda functions by the runtime environment for the - // Lambda function. + // Filters the list of Amazon Web Services Lambda functions by the runtime + // environment for the Lambda function. LambdaFunctionRuntime []StringFilter // Details on the date and time a finding was last seen used to filter findings. @@ -2275,10 +2291,12 @@ type InspectorScoreDetails struct { noSmithyDocumentSerde } -// The details that define a findings aggregation based on AWS Lambda functions. +// The details that define a findings aggregation based on Amazon Web Services +// Lambda functions. type LambdaFunctionAggregation struct { - // The AWS Lambda function names to include in the aggregation results. + // The Amazon Web Services Lambda function names to include in the aggregation + // results. FunctionNames []StringFilter // The tags to include in the aggregation results. @@ -2287,7 +2305,8 @@ type LambdaFunctionAggregation struct { // The resource IDs to include in the aggregation results. ResourceIds []StringFilter - // Returns findings aggregated by AWS Lambda function runtime environments. + // Returns findings aggregated by Amazon Web Services Lambda function runtime + // environments. Runtimes []StringFilter // The finding severity to use for sorting the results. @@ -2299,8 +2318,8 @@ type LambdaFunctionAggregation struct { noSmithyDocumentSerde } -// A response that contains the results of an AWS Lambda function finding -// aggregation. +// A response that contains the results of an Amazon Web Services Lambda function +// finding aggregation. type LambdaFunctionAggregationResponse struct { // The resource IDs included in the aggregation results. @@ -2308,17 +2327,19 @@ type LambdaFunctionAggregationResponse struct { // This member is required. ResourceId *string - // The ID of the AWS account that owns the AWS Lambda function. + // The ID of the Amazon Web Services account that owns the Amazon Web Services + // Lambda function. AccountId *string - // The AWS Lambda function names included in the aggregation results. + // The Amazon Web Services Lambda function names included in the aggregation + // results. FunctionName *string // The tags included in the aggregation results. LambdaTags map[string]string - // The date that the AWS Lambda function included in the aggregation results was - // last changed. + // The date that the Amazon Web Services Lambda function included in the + // aggregation results was last changed. LastModifiedAt *time.Time // The runtimes included in the aggregation results. @@ -2330,36 +2351,37 @@ type LambdaFunctionAggregationResponse struct { noSmithyDocumentSerde } -// The AWS Lambda function metadata. +// The Amazon Web Services Lambda function metadata. type LambdaFunctionMetadata struct { // The name of a function. FunctionName *string - // The resource tags on an AWS Lambda function. + // The resource tags on an Amazon Web Services Lambda function. FunctionTags map[string]string - // The layers for an AWS Lambda function. A Lambda function can have up to five - // layers. + // The layers for an Amazon Web Services Lambda function. A Lambda function can + // have up to five layers. Layers []string - // An AWS Lambda function's runtime. + // An Amazon Web Services Lambda function's runtime. Runtime Runtime noSmithyDocumentSerde } -// The details that define a findings aggregation based on an AWS Lambda -// function's layers. +// The details that define a findings aggregation based on an Amazon Web Services +// Lambda function's layers. type LambdaLayerAggregation struct { - // The names of the AWS Lambda functions associated with the layers. + // The names of the Amazon Web Services Lambda functions associated with the + // layers. FunctionNames []StringFilter - // The Amazon Resource Name (ARN) of the AWS Lambda function layer. + // The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer. LayerArns []StringFilter - // The resource IDs for the AWS Lambda function layers. + // The resource IDs for the Amazon Web Services Lambda function layers. ResourceIds []StringFilter // The finding severity to use for sorting the results. @@ -2371,26 +2393,27 @@ type LambdaLayerAggregation struct { noSmithyDocumentSerde } -// A response that contains the results of an AWS Lambda function layer finding -// aggregation. +// A response that contains the results of an Amazon Web Services Lambda function +// layer finding aggregation. type LambdaLayerAggregationResponse struct { - // The account ID of the AWS Lambda function layer. + // The account ID of the Amazon Web Services Lambda function layer. // // This member is required. AccountId *string - // The names of the AWS Lambda functions associated with the layers. + // The names of the Amazon Web Services Lambda functions associated with the + // layers. // // This member is required. FunctionName *string - // The Amazon Resource Name (ARN) of the AWS Lambda function layer. + // The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer. // // This member is required. LayerArn *string - // The Resource ID of the AWS Lambda function layer. + // The Resource ID of the Amazon Web Services Lambda function layer. // // This member is required. ResourceId *string @@ -2401,13 +2424,13 @@ type LambdaLayerAggregationResponse struct { noSmithyDocumentSerde } -// The VPC security groups and subnets that are attached to an AWS Lambda -// function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) +// The VPC security groups and subnets that are attached to an Amazon Web Services +// Lambda function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) // . type LambdaVpcConfig struct { - // The VPC security groups and subnets that are attached to an AWS Lambda - // function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) + // The VPC security groups and subnets that are attached to an Amazon Web Services + // Lambda function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) // . SecurityGroupIds []string @@ -2854,7 +2877,8 @@ type ResourceDetails struct { // in the finding. AwsEcrContainerImage *AwsEcrContainerImageDetails - // A summary of the information about an AWS Lambda function affected by a finding. + // A summary of the information about an Amazon Web Services Lambda function + // affected by a finding. AwsLambdaFunction *AwsLambdaFunctionDetails noSmithyDocumentSerde @@ -2875,10 +2899,10 @@ type ResourceFilterCriteria struct { // The ECR repository names used as resource filter criteria. EcrRepositoryName []ResourceStringFilter - // The AWS Lambda function name used as resource filter criteria. + // The Amazon Web Services Lambda function name used as resource filter criteria. LambdaFunctionName []ResourceStringFilter - // The AWS Lambda function tags used as resource filter criteria. + // The Amazon Web Services Lambda function tags used as resource filter criteria. LambdaFunctionTags []ResourceMapFilter // The resource IDs used as resource filter criteria. @@ -2923,7 +2947,8 @@ type ResourceScanMetadata struct { // resides in. EcrRepository *EcrRepositoryMetadata - // An object that contains metadata details for an AWS Lambda function. + // An object that contains metadata details for an Amazon Web Services Lambda + // function. LambdaFunction *LambdaFunctionMetadata noSmithyDocumentSerde @@ -2968,7 +2993,7 @@ type ResourceStatus struct { // This member is required. Ecr Status - // The status of Amazon Inspector scanning for AWS Lambda function. + // The status of Amazon Inspector scanning for Amazon Web Services Lambda function. Lambda Status // The status of Amazon Inspector scanning for custom application code for Amazon @@ -3547,8 +3572,8 @@ type VulnerablePackage struct { // The code to run in your environment to update packages with a fix available. Remediation *string - // The Amazon Resource Number (ARN) of the AWS Lambda function affected by a - // finding. + // The Amazon Resource Number (ARN) of the Amazon Web Services Lambda function + // affected by a finding. SourceLambdaLayerArn *string // The source layer hash of the vulnerable package. diff --git a/service/sagemaker/api_op_CreateDomain.go b/service/sagemaker/api_op_CreateDomain.go index 8825e66a0f5..269771a838c 100644 --- a/service/sagemaker/api_op_CreateDomain.go +++ b/service/sagemaker/api_op_CreateDomain.go @@ -13,18 +13,18 @@ import ( ) // Creates a Domain . A domain consists of an associated Amazon Elastic File System -// (EFS) volume, a list of authorized users, and a variety of security, -// application, policy, and Amazon Virtual Private Cloud (VPC) configurations. -// Users within a domain can share notebook files and other artifacts with each -// other. EFS storage When a domain is created, an EFS volume is created for use by -// all of the users within the domain. Each user receives a private home directory -// within the EFS volume for notebooks, Git repositories, and data files. SageMaker -// uses the Amazon Web Services Key Management Service (Amazon Web Services KMS) to -// encrypt the EFS volume attached to the domain with an Amazon Web Services -// managed key by default. For more control, you can specify a customer managed -// key. For more information, see Protect Data at Rest Using Encryption (https://docs.aws.amazon.com/sagemaker/latest/dg/encryption-at-rest.html) -// . VPC configuration All traffic between the domain and the EFS volume is through -// the specified VPC and subnets. For other traffic, you can specify the +// volume, a list of authorized users, and a variety of security, application, +// policy, and Amazon Virtual Private Cloud (VPC) configurations. Users within a +// domain can share notebook files and other artifacts with each other. EFS storage +// When a domain is created, an EFS volume is created for use by all of the users +// within the domain. Each user receives a private home directory within the EFS +// volume for notebooks, Git repositories, and data files. SageMaker uses the +// Amazon Web Services Key Management Service (Amazon Web Services KMS) to encrypt +// the EFS volume attached to the domain with an Amazon Web Services managed key by +// default. For more control, you can specify a customer managed key. For more +// information, see Protect Data at Rest Using Encryption (https://docs.aws.amazon.com/sagemaker/latest/dg/encryption-at-rest.html) +// . VPC configuration All traffic between the domain and the Amazon EFS volume is +// through the specified VPC and subnets. For other traffic, you can specify the // AppNetworkAccessType parameter. AppNetworkAccessType corresponds to the network // access type that you choose when you onboard to the domain. The following // options are available: diff --git a/service/sagemaker/api_op_DeleteHyperParameterTuningJob.go b/service/sagemaker/api_op_DeleteHyperParameterTuningJob.go new file mode 100644 index 00000000000..8ca728a78a8 --- /dev/null +++ b/service/sagemaker/api_op_DeleteHyperParameterTuningJob.go @@ -0,0 +1,135 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package sagemaker + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a hyperparameter tuning job. The DeleteHyperParameterTuningJob API +// deletes only the tuning job entry that was created in SageMaker when you called +// the CreateHyperParameterTuningJob API. It does not delete training jobs, +// artifacts, or the IAM role that you specified when creating the model. +func (c *Client) DeleteHyperParameterTuningJob(ctx context.Context, params *DeleteHyperParameterTuningJobInput, optFns ...func(*Options)) (*DeleteHyperParameterTuningJobOutput, error) { + if params == nil { + params = &DeleteHyperParameterTuningJobInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteHyperParameterTuningJob", params, optFns, c.addOperationDeleteHyperParameterTuningJobMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteHyperParameterTuningJobOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteHyperParameterTuningJobInput struct { + + // The name of the hyperparameter tuning job that you want to delete. + // + // This member is required. + HyperParameterTuningJobName *string + + noSmithyDocumentSerde +} + +type DeleteHyperParameterTuningJobOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteHyperParameterTuningJobMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteHyperParameterTuningJob{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteHyperParameterTuningJob{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteHyperParameterTuningJob"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteHyperParameterTuningJobValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteHyperParameterTuningJob(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteHyperParameterTuningJob(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteHyperParameterTuningJob", + } +} diff --git a/service/sagemaker/api_op_DescribeDomain.go b/service/sagemaker/api_op_DescribeDomain.go index 686d38e6e10..db917eac7a7 100644 --- a/service/sagemaker/api_op_DescribeDomain.go +++ b/service/sagemaker/api_op_DescribeDomain.go @@ -82,7 +82,7 @@ type DescribeDomainOutput struct { // The failure reason. FailureReason *string - // The ID of the Amazon Elastic File System (EFS) managed by this Domain. + // The ID of the Amazon Elastic File System managed by this Domain. HomeEfsFileSystemId *string // Use KmsKeyId . diff --git a/service/sagemaker/api_op_DescribeFeatureGroup.go b/service/sagemaker/api_op_DescribeFeatureGroup.go index dba70ffb122..36d1388a070 100644 --- a/service/sagemaker/api_op_DescribeFeatureGroup.go +++ b/service/sagemaker/api_op_DescribeFeatureGroup.go @@ -129,17 +129,16 @@ type DescribeFeatureGroupOutput struct { // into the OfflineStore if an OfflineStoreConfig is provided. RoleArn *string - // Active throughput configuration of the feature group. Used to set feature group - // throughput configuration. There are two modes: ON_DEMAND and PROVISIONED . With - // on-demand mode, you are charged for data reads and writes that your application - // performs on your feature group. You do not need to specify read and write - // throughput because Feature Store accommodates your workloads as they ramp up and - // down. You can switch a feature group to on-demand only once in a 24 hour period. - // With provisioned throughput mode, you specify the read and write capacity per - // second that you expect your application to require, and you are billed based on - // those limits. Exceeding provisioned throughput will result in your requests - // being throttled. Note: PROVISIONED throughput mode is supported only for - // feature groups that are offline-only, or use the Standard (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OnlineStoreConfig.html#sagemaker-Type-OnlineStoreConfig-StorageType) + // Active throughput configuration of the feature group. There are two modes: + // ON_DEMAND and PROVISIONED . With on-demand mode, you are charged for data reads + // and writes that your application performs on your feature group. You do not need + // to specify read and write throughput because Feature Store accommodates your + // workloads as they ramp up and down. You can switch a feature group to on-demand + // only once in a 24 hour period. With provisioned throughput mode, you specify the + // read and write capacity per second that you expect your application to require, + // and you are billed based on those limits. Exceeding provisioned throughput will + // result in your requests being throttled. Note: PROVISIONED throughput mode is + // supported only for feature groups that are offline-only, or use the Standard (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OnlineStoreConfig.html#sagemaker-Type-OnlineStoreConfig-StorageType) // tier online store. ThroughputConfig *types.ThroughputConfigDescription diff --git a/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go b/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go index 990b4344fe2..606c366da2d 100644 --- a/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go +++ b/service/sagemaker/api_op_DescribeHyperParameterTuningJob.go @@ -64,8 +64,7 @@ type DescribeHyperParameterTuningJobOutput struct { // This member is required. HyperParameterTuningJobName *string - // The status of the tuning job: InProgress, Completed, Failed, Stopping, or - // Stopped. + // The status of the tuning job. // // This member is required. HyperParameterTuningJobStatus types.HyperParameterTuningJobStatus diff --git a/service/sagemaker/api_op_DescribeModelPackageGroup.go b/service/sagemaker/api_op_DescribeModelPackageGroup.go index 289609d7961..7303647b3dc 100644 --- a/service/sagemaker/api_op_DescribeModelPackageGroup.go +++ b/service/sagemaker/api_op_DescribeModelPackageGroup.go @@ -31,7 +31,7 @@ func (c *Client) DescribeModelPackageGroup(ctx context.Context, params *Describe type DescribeModelPackageGroupInput struct { - // The name of gthe model group to describe. + // The name of the model group to describe. // // This member is required. ModelPackageGroupName *string diff --git a/service/sagemaker/api_op_UpdateEndpoint.go b/service/sagemaker/api_op_UpdateEndpoint.go index 9d9b64eb88f..cf1df66474e 100644 --- a/service/sagemaker/api_op_UpdateEndpoint.go +++ b/service/sagemaker/api_op_UpdateEndpoint.go @@ -12,12 +12,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deploys the new EndpointConfig specified in the request, switches to using -// newly created endpoint, and then deletes resources provisioned for the endpoint -// using the previous EndpointConfig (there is no availability loss). When -// SageMaker receives the request, it sets the endpoint status to Updating . After -// updating the endpoint, it sets the status to InService . To check the status of -// an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeEndpoint.html) +// Deploys the EndpointConfig specified in the request to a new fleet of +// instances. SageMaker shifts endpoint traffic to the new instances with the +// updated endpoint configuration and then deletes the old instances using the +// previous EndpointConfig (there is no availability loss). For more information +// about how to control the update and traffic shifting process, see Update models +// in production (https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails.html) +// . When SageMaker receives the request, it sets the endpoint status to Updating . +// After updating the endpoint, it sets the status to InService . To check the +// status of an endpoint, use the DescribeEndpoint (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeEndpoint.html) // API. You must not delete an EndpointConfig in use by an endpoint that is live // or while the UpdateEndpoint or CreateEndpoint operations are being performed on // the endpoint. To update an endpoint, you must create a new EndpointConfig . If diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index e567df4d790..4843ba04dd0 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -8952,6 +8952,92 @@ func awsAwsjson11_deserializeOpErrorDeleteHumanTaskUi(response *smithyhttp.Respo } } +type awsAwsjson11_deserializeOpDeleteHyperParameterTuningJob struct { +} + +func (*awsAwsjson11_deserializeOpDeleteHyperParameterTuningJob) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpDeleteHyperParameterTuningJob) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteHyperParameterTuningJob(response, &metadata) + } + output := &DeleteHyperParameterTuningJobOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorDeleteHyperParameterTuningJob(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsAwsjson11_deserializeOpDeleteImage struct { } diff --git a/service/sagemaker/generated.json b/service/sagemaker/generated.json index a8ae6d4b590..9564aaf3425 100644 --- a/service/sagemaker/generated.json +++ b/service/sagemaker/generated.json @@ -93,6 +93,7 @@ "api_op_DeleteHub.go", "api_op_DeleteHubContent.go", "api_op_DeleteHumanTaskUi.go", + "api_op_DeleteHyperParameterTuningJob.go", "api_op_DeleteImage.go", "api_op_DeleteImageVersion.go", "api_op_DeleteInferenceComponent.go", diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 8f174ea7bf4..f7e9e6320cb 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -4582,6 +4582,61 @@ func (m *awsAwsjson11_serializeOpDeleteHumanTaskUi) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteHyperParameterTuningJob struct { +} + +func (*awsAwsjson11_serializeOpDeleteHyperParameterTuningJob) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteHyperParameterTuningJob) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteHyperParameterTuningJobInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("SageMaker.DeleteHyperParameterTuningJob") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteHyperParameterTuningJobInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDeleteImage struct { } @@ -31468,6 +31523,18 @@ func awsAwsjson11_serializeOpDocumentDeleteHumanTaskUiInput(v *DeleteHumanTaskUi return nil } +func awsAwsjson11_serializeOpDocumentDeleteHyperParameterTuningJobInput(v *DeleteHyperParameterTuningJobInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.HyperParameterTuningJobName != nil { + ok := object.Key("HyperParameterTuningJobName") + ok.String(*v.HyperParameterTuningJobName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteImageInput(v *DeleteImageInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index e1f33c948ef..32d040433ab 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -8575,10 +8575,15 @@ type Model struct { noSmithyDocumentSerde } -// The access configuration file for the ML model. You can explicitly accept the -// model end-user license agreement (EULA) within the ModelAccessConfig . For more -// information, see End-user license agreements (https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-choose.html#jumpstart-foundation-models-choose-eula) -// . +// The access configuration file to control access to the ML model. You can +// explicitly accept the model end-user license agreement (EULA) within the +// ModelAccessConfig . +// - If you are a Jumpstart user, see the End-user license agreements (https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-choose.html#jumpstart-foundation-models-choose-eula) +// section for more details on accepting the EULA. +// - If you are an AutoML user, see the Optional Parameters section of Create an +// AutoML job to fine-tune text generation models using the API for details on +// How to set the EULA acceptance when fine-tuning a model using the AutoML API (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-create-experiment-finetune-llms.html#autopilot-llms-finetuning-api-optional-params) +// . type ModelAccessConfig struct { // Specifies agreement to the model end-user license agreement (EULA). The @@ -13317,7 +13322,7 @@ type S3DataSource struct { // Depending on the value specified for the S3DataType , identifies either a key // name prefix or a manifest. For example: - // - A key name prefix might look like this: s3://bucketname/exampleprefix + // - A key name prefix might look like this: s3://bucketname/exampleprefix/ // - A manifest might look like this: s3://bucketname/example.manifest A manifest // is an S3 object which is a JSON file consisting of an array of elements. The // first element is a prefix which is followed by one or more suffixes. SageMaker @@ -14441,10 +14446,15 @@ type TextGenerationJobConfig struct { // AutoMLJobCompletionCriteria defaults to 72h (259200s). CompletionCriteria *AutoMLJobCompletionCriteria - // The access configuration file for the ML model. You can explicitly accept the - // model end-user license agreement (EULA) within the ModelAccessConfig . For more - // information, see End-user license agreements (https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-choose.html#jumpstart-foundation-models-choose-eula) - // . + // The access configuration file to control access to the ML model. You can + // explicitly accept the model end-user license agreement (EULA) within the + // ModelAccessConfig . + // - If you are a Jumpstart user, see the End-user license agreements (https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-choose.html#jumpstart-foundation-models-choose-eula) + // section for more details on accepting the EULA. + // - If you are an AutoML user, see the Optional Parameters section of Create an + // AutoML job to fine-tune text generation models using the API for details on + // How to set the EULA acceptance when fine-tuning a model using the AutoML API (https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-create-experiment-finetune-llms.html#autopilot-llms-finetuning-api-optional-params) + // . ModelAccessConfig *ModelAccessConfig // The hyperparameters used to configure and optimize the learning process of the @@ -14514,17 +14524,16 @@ type ThroughputConfig struct { noSmithyDocumentSerde } -// Active throughput configuration of the feature group. Used to set feature group -// throughput configuration. There are two modes: ON_DEMAND and PROVISIONED . With -// on-demand mode, you are charged for data reads and writes that your application -// performs on your feature group. You do not need to specify read and write -// throughput because Feature Store accommodates your workloads as they ramp up and -// down. You can switch a feature group to on-demand only once in a 24 hour period. -// With provisioned throughput mode, you specify the read and write capacity per -// second that you expect your application to require, and you are billed based on -// those limits. Exceeding provisioned throughput will result in your requests -// being throttled. Note: PROVISIONED throughput mode is supported only for -// feature groups that are offline-only, or use the Standard (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OnlineStoreConfig.html#sagemaker-Type-OnlineStoreConfig-StorageType) +// Active throughput configuration of the feature group. There are two modes: +// ON_DEMAND and PROVISIONED . With on-demand mode, you are charged for data reads +// and writes that your application performs on your feature group. You do not need +// to specify read and write throughput because Feature Store accommodates your +// workloads as they ramp up and down. You can switch a feature group to on-demand +// only once in a 24 hour period. With provisioned throughput mode, you specify the +// read and write capacity per second that you expect your application to require, +// and you are billed based on those limits. Exceeding provisioned throughput will +// result in your requests being throttled. Note: PROVISIONED throughput mode is +// supported only for feature groups that are offline-only, or use the Standard (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_OnlineStoreConfig.html#sagemaker-Type-OnlineStoreConfig-StorageType) // tier online store. type ThroughputConfigDescription struct { @@ -15548,7 +15557,7 @@ type TransformS3DataSource struct { // Depending on the value specified for the S3DataType , identifies either a key // name prefix or a manifest. For example: - // - A key name prefix might look like this: s3://bucketname/exampleprefix . + // - A key name prefix might look like this: s3://bucketname/exampleprefix/ . // - A manifest might look like this: s3://bucketname/example.manifest The // manifest is an S3 object which is a JSON file with the following format: [ // {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", diff --git a/service/sagemaker/validators.go b/service/sagemaker/validators.go index 7798c4a2c7c..f622bd9feac 100644 --- a/service/sagemaker/validators.go +++ b/service/sagemaker/validators.go @@ -1670,6 +1670,26 @@ func (m *validateOpDeleteHumanTaskUi) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpDeleteHyperParameterTuningJob struct { +} + +func (*validateOpDeleteHyperParameterTuningJob) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteHyperParameterTuningJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteHyperParameterTuningJobInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteHyperParameterTuningJobInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteImage struct { } @@ -5462,6 +5482,10 @@ func addOpDeleteHumanTaskUiValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteHumanTaskUi{}, middleware.After) } +func addOpDeleteHyperParameterTuningJobValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteHyperParameterTuningJob{}, middleware.After) +} + func addOpDeleteImageValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteImage{}, middleware.After) } @@ -14633,6 +14657,21 @@ func validateOpDeleteHumanTaskUiInput(v *DeleteHumanTaskUiInput) error { } } +func validateOpDeleteHyperParameterTuningJobInput(v *DeleteHyperParameterTuningJobInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteHyperParameterTuningJobInput"} + if v.HyperParameterTuningJobName == nil { + invalidParams.Add(smithy.NewErrParamRequired("HyperParameterTuningJobName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteImageInput(v *DeleteImageInput) error { if v == nil { return nil