From 64c99482708d9bab0281216769f110ae046049fc Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Mon, 19 Apr 2021 11:17:47 -0700 Subject: [PATCH] Release v1.38.22 (2021-04-19) (#3868) Release v1.38.22 (2021-04-19) === ### Service Client Updates * `service/ce`: Updates service API * `service/savingsplans`: Updates service API --- CHANGELOG.md | 7 ++++++ aws/endpoints/defaults.go | 25 ++++++++++++++++--- aws/version.go | 2 +- models/apis/ce/2017-10-25/api-2.json | 5 +++- .../apis/savingsplans/2019-06-28/api-2.json | 10 +++++--- models/endpoints/endpoints.json | 19 +++++++++++++- service/costexplorer/api.go | 18 +++++++++++-- service/savingsplans/api.go | 16 ++++++++++++ 8 files changed, 90 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a45c0cbe3d..5644fd9087 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Release v1.38.22 (2021-04-19) +=== + +### Service Client Updates +* `service/ce`: Updates service API +* `service/savingsplans`: Updates service API + Release v1.38.21 (2021-04-15) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 5ac5691aa5..a4336faf36 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -1314,7 +1314,10 @@ var awsPartition = partition{ "ap-southeast-2": endpoint{}, "eu-central-1": endpoint{}, "eu-north-1": endpoint{}, + "eu-south-1": endpoint{}, "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "eu-west-3": endpoint{}, "us-east-1": endpoint{}, "us-east-2": endpoint{}, "us-west-2": endpoint{}, @@ -6428,10 +6431,12 @@ var awsPartition = partition{ }, "me-south-1": endpoint{}, "sa-east-1": endpoint{}, - "us-east-1": endpoint{}, - "us-east-2": endpoint{}, - "us-west-1": endpoint{}, - "us-west-2": endpoint{}, + "us-east-1": endpoint{ + SSLCommonName: "queue.{dnsSuffix}", + }, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, }, }, "ssm": service{ @@ -8463,6 +8468,18 @@ var awsusgovPartition = partition{ "batch": service{ Endpoints: endpoints{ + "fips-us-gov-east-1": endpoint{ + Hostname: "batch.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, + "fips-us-gov-west-1": endpoint{ + Hostname: "batch.us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, diff --git a/aws/version.go b/aws/version.go index ed871584e6..59a2e337ff 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.21" +const SDKVersion = "1.38.22" diff --git a/models/apis/ce/2017-10-25/api-2.json b/models/apis/ce/2017-10-25/api-2.json index 98ad3a4c17..c03951a779 100644 --- a/models/apis/ce/2017-10-25/api-2.json +++ b/models/apis/ce/2017-10-25/api-2.json @@ -1105,6 +1105,7 @@ "type":"structure", "required":[ "TimePeriod", + "Granularity", "Metrics" ], "members":{ @@ -1129,6 +1130,7 @@ "type":"structure", "required":[ "TimePeriod", + "Granularity", "Filter" ], "members":{ @@ -2222,7 +2224,8 @@ "type":"string", "enum":[ "COMPUTE_SP", - "EC2_INSTANCE_SP" + "EC2_INSTANCE_SP", + "SAGEMAKER_SP" ] }, "TagKey":{ diff --git a/models/apis/savingsplans/2019-06-28/api-2.json b/models/apis/savingsplans/2019-06-28/api-2.json index 3705311715..04e49cacf2 100644 --- a/models/apis/savingsplans/2019-06-28/api-2.json +++ b/models/apis/savingsplans/2019-06-28/api-2.json @@ -530,7 +530,8 @@ "enum":[ "EC2", "Fargate", - "Lambda" + "Lambda", + "SageMaker" ] }, "SavingsPlanProductTypeList":{ @@ -625,7 +626,9 @@ "enum":[ "AmazonEC2", "AmazonECS", - "AWSLambda" + "AmazonEKS", + "AWSLambda", + "AmazonSageMaker" ] }, "SavingsPlanRateServiceCodeList":{ @@ -677,7 +680,8 @@ "type":"string", "enum":[ "Compute", - "EC2Instance" + "EC2Instance", + "SageMaker" ] }, "SavingsPlanTypeList":{ diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 2d9edc98cf..6950d8f0a2 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -1186,7 +1186,10 @@ "ap-southeast-2" : { }, "eu-central-1" : { }, "eu-north-1" : { }, + "eu-south-1" : { }, "eu-west-1" : { }, + "eu-west-2" : { }, + "eu-west-3" : { }, "us-east-1" : { }, "us-east-2" : { }, "us-west-2" : { } @@ -6201,7 +6204,9 @@ }, "me-south-1" : { }, "sa-east-1" : { }, - "us-east-1" : { }, + "us-east-1" : { + "sslCommonName" : "queue.{dnsSuffix}" + }, "us-east-2" : { }, "us-west-1" : { }, "us-west-2" : { } @@ -8104,6 +8109,18 @@ }, "batch" : { "endpoints" : { + "fips-us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "batch.us-gov-east-1.amazonaws.com" + }, + "fips-us-gov-west-1" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "hostname" : "batch.us-gov-west-1.amazonaws.com" + }, "us-gov-east-1" : { }, "us-gov-west-1" : { } } diff --git a/service/costexplorer/api.go b/service/costexplorer/api.go index e25cb16121..d5f2b476ad 100644 --- a/service/costexplorer/api.go +++ b/service/costexplorer/api.go @@ -5806,7 +5806,9 @@ type GetCostAndUsageInput struct { // Sets the AWS cost granularity to MONTHLY or DAILY, or HOURLY. If Granularity // isn't set, the response object doesn't include the Granularity, either MONTHLY // or DAILY, or HOURLY. - Granularity *string `type:"string" enum:"Granularity"` + // + // Granularity is a required field + Granularity *string `type:"string" required:"true" enum:"Granularity"` // You can group AWS costs using up to two different groups, either dimensions, // tag keys, cost categories, or any two group by types. @@ -5863,6 +5865,9 @@ func (s GetCostAndUsageInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *GetCostAndUsageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetCostAndUsageInput"} + if s.Granularity == nil { + invalidParams.Add(request.NewErrParamRequired("Granularity")) + } if s.Metrics == nil { invalidParams.Add(request.NewErrParamRequired("Metrics")) } @@ -5995,7 +6000,9 @@ type GetCostAndUsageWithResourcesInput struct { // Sets the AWS cost granularity to MONTHLY, DAILY, or HOURLY. If Granularity // isn't set, the response object doesn't include the Granularity, MONTHLY, // DAILY, or HOURLY. - Granularity *string `type:"string" enum:"Granularity"` + // + // Granularity is a required field + Granularity *string `type:"string" required:"true" enum:"Granularity"` // You can group Amazon Web Services costs using up to two different groups: // DIMENSION, TAG, COST_CATEGORY. @@ -6050,6 +6057,9 @@ func (s *GetCostAndUsageWithResourcesInput) Validate() error { if s.Filter == nil { invalidParams.Add(request.NewErrParamRequired("Filter")) } + if s.Granularity == nil { + invalidParams.Add(request.NewErrParamRequired("Granularity")) + } if s.TimePeriod == nil { invalidParams.Add(request.NewErrParamRequired("TimePeriod")) } @@ -13292,6 +13302,9 @@ const ( // SupportedSavingsPlansTypeEc2InstanceSp is a SupportedSavingsPlansType enum value SupportedSavingsPlansTypeEc2InstanceSp = "EC2_INSTANCE_SP" + + // SupportedSavingsPlansTypeSagemakerSp is a SupportedSavingsPlansType enum value + SupportedSavingsPlansTypeSagemakerSp = "SAGEMAKER_SP" ) // SupportedSavingsPlansType_Values returns all elements of the SupportedSavingsPlansType enum @@ -13299,6 +13312,7 @@ func SupportedSavingsPlansType_Values() []string { return []string{ SupportedSavingsPlansTypeComputeSp, SupportedSavingsPlansTypeEc2InstanceSp, + SupportedSavingsPlansTypeSagemakerSp, } } diff --git a/service/savingsplans/api.go b/service/savingsplans/api.go index 0fe7fea719..f7faf17401 100644 --- a/service/savingsplans/api.go +++ b/service/savingsplans/api.go @@ -2734,6 +2734,9 @@ const ( // SavingsPlanProductTypeLambda is a SavingsPlanProductType enum value SavingsPlanProductTypeLambda = "Lambda" + + // SavingsPlanProductTypeSageMaker is a SavingsPlanProductType enum value + SavingsPlanProductTypeSageMaker = "SageMaker" ) // SavingsPlanProductType_Values returns all elements of the SavingsPlanProductType enum @@ -2742,6 +2745,7 @@ func SavingsPlanProductType_Values() []string { SavingsPlanProductTypeEc2, SavingsPlanProductTypeFargate, SavingsPlanProductTypeLambda, + SavingsPlanProductTypeSageMaker, } } @@ -2852,8 +2856,14 @@ const ( // SavingsPlanRateServiceCodeAmazonEcs is a SavingsPlanRateServiceCode enum value SavingsPlanRateServiceCodeAmazonEcs = "AmazonECS" + // SavingsPlanRateServiceCodeAmazonEks is a SavingsPlanRateServiceCode enum value + SavingsPlanRateServiceCodeAmazonEks = "AmazonEKS" + // SavingsPlanRateServiceCodeAwslambda is a SavingsPlanRateServiceCode enum value SavingsPlanRateServiceCodeAwslambda = "AWSLambda" + + // SavingsPlanRateServiceCodeAmazonSageMaker is a SavingsPlanRateServiceCode enum value + SavingsPlanRateServiceCodeAmazonSageMaker = "AmazonSageMaker" ) // SavingsPlanRateServiceCode_Values returns all elements of the SavingsPlanRateServiceCode enum @@ -2861,7 +2871,9 @@ func SavingsPlanRateServiceCode_Values() []string { return []string{ SavingsPlanRateServiceCodeAmazonEc2, SavingsPlanRateServiceCodeAmazonEcs, + SavingsPlanRateServiceCodeAmazonEks, SavingsPlanRateServiceCodeAwslambda, + SavingsPlanRateServiceCodeAmazonSageMaker, } } @@ -2923,6 +2935,9 @@ const ( // SavingsPlanTypeEc2instance is a SavingsPlanType enum value SavingsPlanTypeEc2instance = "EC2Instance" + + // SavingsPlanTypeSageMaker is a SavingsPlanType enum value + SavingsPlanTypeSageMaker = "SageMaker" ) // SavingsPlanType_Values returns all elements of the SavingsPlanType enum @@ -2930,6 +2945,7 @@ func SavingsPlanType_Values() []string { return []string{ SavingsPlanTypeCompute, SavingsPlanTypeEc2instance, + SavingsPlanTypeSageMaker, } }