From 45ec0ef7b027e20fc0bff206fc71a35f4998efe8 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Mon, 29 Jan 2024 19:19:15 +0000 Subject: [PATCH] Regenerated Clients --- .../2a69f37867c24bb0a8e7d5766b38e2b2.json | 8 ++ .../b0f7630ad1974b01bc740aca53d9dfbc.json | 8 ++ .../c5cf003aa27b45a99af36e3bfccee50d.json | 8 ++ .../e783b3f00d6d49e29293d76442754816.json | 8 ++ .../fb3e1251686a45f1b5ef868cf31602ff.json | 8 ++ .../fc6670148d7b4271b548145536d7e97d.json | 8 ++ .../api_op_DescribeInstanceRefreshes.go | 3 +- service/autoscaling/deserializers.go | 17 +++ service/autoscaling/serializers.go | 5 + service/autoscaling/types/types.go | 85 ++++++++---- .../comprehend/api_op_ContainsPiiEntities.go | 3 +- .../comprehend/api_op_DetectPiiEntities.go | 4 +- .../api_op_StartPiiEntitiesDetectionJob.go | 4 +- service/comprehend/types/types.go | 2 +- .../datasync/internal/endpoints/endpoints.go | 18 +++ service/ec2/deserializers.go | 17 +++ service/ec2/serializers.go | 10 ++ service/ec2/types/types.go | 129 ++++++++++++------ service/mwaa/types/enums.go | 2 + service/mwaa/types/types.go | 16 ++- .../qconnect/internal/endpoints/endpoints.go | 18 +++ .../internal/endpoints/endpoints.go | 5 + service/rds/deserializers.go | 6 + service/snowball/api_op_CreateAddress.go | 4 +- service/snowball/endpoints.go | 2 +- .../wisdom/internal/endpoints/endpoints.go | 18 +++ 26 files changed, 333 insertions(+), 83 deletions(-) create mode 100644 .changelog/2a69f37867c24bb0a8e7d5766b38e2b2.json create mode 100644 .changelog/b0f7630ad1974b01bc740aca53d9dfbc.json create mode 100644 .changelog/c5cf003aa27b45a99af36e3bfccee50d.json create mode 100644 .changelog/e783b3f00d6d49e29293d76442754816.json create mode 100644 .changelog/fb3e1251686a45f1b5ef868cf31602ff.json create mode 100644 .changelog/fc6670148d7b4271b548145536d7e97d.json diff --git a/.changelog/2a69f37867c24bb0a8e7d5766b38e2b2.json b/.changelog/2a69f37867c24bb0a8e7d5766b38e2b2.json new file mode 100644 index 00000000000..cd1961eba33 --- /dev/null +++ b/.changelog/2a69f37867c24bb0a8e7d5766b38e2b2.json @@ -0,0 +1,8 @@ +{ + "id": "2a69f378-67c2-4bb0-a8e7-d5766b38e2b2", + "type": "feature", + "description": "EC2 Auto Scaling customers who use attribute based instance-type selection can now intuitively define their Spot instances price protection limit as a percentage of the lowest priced On-Demand instance type.", + "modules": [ + "service/autoscaling" + ] +} \ No newline at end of file diff --git a/.changelog/b0f7630ad1974b01bc740aca53d9dfbc.json b/.changelog/b0f7630ad1974b01bc740aca53d9dfbc.json new file mode 100644 index 00000000000..2e021d19a56 --- /dev/null +++ b/.changelog/b0f7630ad1974b01bc740aca53d9dfbc.json @@ -0,0 +1,8 @@ +{ + "id": "b0f7630a-d197-4b01-bc74-0aca53d9dfbc", + "type": "documentation", + "description": "Modified description of createaddress to include direction to add path when providing a JSON file.", + "modules": [ + "service/snowball" + ] +} \ No newline at end of file diff --git a/.changelog/c5cf003aa27b45a99af36e3bfccee50d.json b/.changelog/c5cf003aa27b45a99af36e3bfccee50d.json new file mode 100644 index 00000000000..a11c029e02e --- /dev/null +++ b/.changelog/c5cf003aa27b45a99af36e3bfccee50d.json @@ -0,0 +1,8 @@ +{ + "id": "c5cf003a-a27b-45a9-9af3-6e3bfccee50d", + "type": "documentation", + "description": "Comprehend PII analysis now supports Spanish input documents.", + "modules": [ + "service/comprehend" + ] +} \ No newline at end of file diff --git a/.changelog/e783b3f00d6d49e29293d76442754816.json b/.changelog/e783b3f00d6d49e29293d76442754816.json new file mode 100644 index 00000000000..525724ce004 --- /dev/null +++ b/.changelog/e783b3f00d6d49e29293d76442754816.json @@ -0,0 +1,8 @@ +{ + "id": "e783b3f0-0d6d-49e2-9293-d76442754816", + "type": "feature", + "description": "EC2 Fleet customers who use attribute based instance-type selection can now intuitively define their Spot instances price protection limit as a percentage of the lowest priced On-Demand instance type.", + "modules": [ + "service/ec2" + ] +} \ No newline at end of file diff --git a/.changelog/fb3e1251686a45f1b5ef868cf31602ff.json b/.changelog/fb3e1251686a45f1b5ef868cf31602ff.json new file mode 100644 index 00000000000..a79c7808222 --- /dev/null +++ b/.changelog/fb3e1251686a45f1b5ef868cf31602ff.json @@ -0,0 +1,8 @@ +{ + "id": "fb3e1251-686a-45f1-b5ef-868cf31602ff", + "type": "feature", + "description": "Introduced support for the InsufficientDBInstanceCapacityFault error in the RDS RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime API methods. This provides enhanced error handling, ensuring a more robust experience.", + "modules": [ + "service/rds" + ] +} \ No newline at end of file diff --git a/.changelog/fc6670148d7b4271b548145536d7e97d.json b/.changelog/fc6670148d7b4271b548145536d7e97d.json new file mode 100644 index 00000000000..7a60d05cd6e --- /dev/null +++ b/.changelog/fc6670148d7b4271b548145536d7e97d.json @@ -0,0 +1,8 @@ +{ + "id": "fc667014-8d7b-4271-b548-145536d7e97d", + "type": "feature", + "description": "This release adds MAINTENANCE environment status for Amazon MWAA environments.", + "modules": [ + "service/mwaa" + ] +} \ No newline at end of file diff --git a/service/autoscaling/api_op_DescribeInstanceRefreshes.go b/service/autoscaling/api_op_DescribeInstanceRefreshes.go index 9fd2a4d295d..bffdb52fbb0 100644 --- a/service/autoscaling/api_op_DescribeInstanceRefreshes.go +++ b/service/autoscaling/api_op_DescribeInstanceRefreshes.go @@ -13,7 +13,8 @@ import ( ) // Gets information about the instance refreshes for the specified Auto Scaling -// group. This operation is part of the instance refresh feature (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html) +// group from the previous six weeks. This operation is part of the instance +// refresh feature (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html) // in Amazon EC2 Auto Scaling, which helps you update instances in your Auto // Scaling group after you make configuration changes. To help you determine the // status of an instance refresh, Amazon EC2 Auto Scaling returns information about diff --git a/service/autoscaling/deserializers.go b/service/autoscaling/deserializers.go index e4cd1a2f62d..9aa3cf2d792 100644 --- a/service/autoscaling/deserializers.go +++ b/service/autoscaling/deserializers.go @@ -11273,6 +11273,23 @@ func awsAwsquery_deserializeDocumentInstanceRequirements(v **types.InstanceRequi return err } + case strings.EqualFold("MaxSpotPriceAsPercentageOfOptimalOnDemandPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = ptr.Int32(int32(i64)) + } + case strings.EqualFold("MemoryGiBPerVCpu", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentMemoryGiBPerVCpuRequest(&sv.MemoryGiBPerVCpu, nodeDecoder); err != nil { diff --git a/service/autoscaling/serializers.go b/service/autoscaling/serializers.go index adabd79c8d6..53c84ab7230 100644 --- a/service/autoscaling/serializers.go +++ b/service/autoscaling/serializers.go @@ -4696,6 +4696,11 @@ func awsAwsquery_serializeDocumentInstanceRequirements(v *types.InstanceRequirem } } + if v.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice != nil { + objectKey := object.Key("MaxSpotPriceAsPercentageOfOptimalOnDemandPrice") + objectKey.Integer(*v.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice) + } + if v.MemoryGiBPerVCpu != nil { objectKey := object.Key("MemoryGiBPerVCpu") if err := awsAwsquery_serializeDocumentMemoryGiBPerVCpuRequest(v.MemoryGiBPerVCpu, objectKey); err != nil { diff --git a/service/autoscaling/types/types.go b/service/autoscaling/types/types.go index fa0488c342e..475148362c1 100644 --- a/service/autoscaling/types/types.go +++ b/service/autoscaling/types/types.go @@ -660,18 +660,17 @@ type InstanceMaintenancePolicy struct { // Specifies the upper threshold as a percentage of the desired capacity of the // Auto Scaling group. It represents the maximum percentage of the group that can // be in service and healthy, or pending, to support your workload when replacing - // instances. Value range is 100 to 200. After it's set, a value of -1 will clear - // the previously set value. Both MinHealthyPercentage and MaxHealthyPercentage - // must be specified, and the difference between them cannot be greater than 100. A - // large range increases the number of instances that can be replaced at the same - // time. + // instances. Value range is 100 to 200. To clear a previously set value, specify a + // value of -1 . Both MinHealthyPercentage and MaxHealthyPercentage must be + // specified, and the difference between them cannot be greater than 100. A large + // range increases the number of instances that can be replaced at the same time. MaxHealthyPercentage *int32 // Specifies the lower threshold as a percentage of the desired capacity of the // Auto Scaling group. It represents the minimum percentage of the group to keep in // service, healthy, and ready to use to support your workload when replacing - // instances. Value range is 0 to 100. After it's set, a value of -1 will clear - // the previously set value. + // instances. Value range is 0 to 100. To clear a previously set value, specify a + // value of -1 . MinHealthyPercentage *int32 noSmithyDocumentSerde @@ -963,6 +962,25 @@ type InstanceRequirements struct { // Default: Any local storage type LocalStorageTypes []LocalStorageType + // [Price protection] The price protection threshold for Spot Instances, as a + // percentage of an identified On-Demand price. The identified On-Demand price is + // the price of the lowest priced current generation C, M, or R instance type with + // your specified attributes. If no current generation C, M, or R instance type + // matches your attributes, then the identified price is from either the lowest + // priced current generation instance types or, failing that, the lowest priced + // previous generation instance types that match your attributes. When Amazon EC2 + // Auto Scaling selects instance types with your attributes, we will exclude + // instance types whose price exceeds your specified threshold. The parameter + // accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To + // indicate no price protection threshold, specify a high value, such as 999999 . + // If you set DesiredCapacityType to vcpu or memory-mib , the price protection + // threshold is based on the per-vCPU or per-memory price instead of the per + // instance price. Only one of SpotMaxPricePercentageOverLowestPrice or + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't + // specify either, then SpotMaxPricePercentageOverLowestPrice is used and the + // value for that parameter defaults to 100 . + MaxSpotPriceAsPercentageOfOptimalOnDemandPrice *int32 + // The minimum and maximum amount of memory per vCPU for an instance type, in GiB. // Default: No minimum or maximum limits MemoryGiBPerVCpu *MemoryGiBPerVCpuRequest @@ -975,32 +993,41 @@ type InstanceRequirements struct { // Default: No minimum or maximum limits NetworkInterfaceCount *NetworkInterfaceCountRequest - // The price protection threshold for On-Demand Instances. This is the maximum - // you’ll pay for an On-Demand Instance, expressed as a percentage higher than the - // least expensive current generation M, C, or R instance type with your specified - // attributes. When Amazon EC2 Auto Scaling selects instance types with your - // attributes, we will exclude instance types whose price is higher than your - // threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling - // interprets as a percentage. To turn off price protection, specify a high value, - // such as 999999 . If you set DesiredCapacityType to vcpu or memory-mib , the - // price protection threshold is applied based on the per vCPU or per memory price - // instead of the per instance price. Default: 20 + // [Price protection] The price protection threshold for On-Demand Instances, as a + // percentage higher than an identified On-Demand price. The identified On-Demand + // price is the price of the lowest priced current generation C, M, or R instance + // type with your specified attributes. If no current generation C, M, or R + // instance type matches your attributes, then the identified price is from either + // the lowest priced current generation instance types or, failing that, the lowest + // priced previous generation instance types that match your attributes. When + // Amazon EC2 Auto Scaling selects instance types with your attributes, we will + // exclude instance types whose price exceeds your specified threshold. The + // parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a + // percentage. To turn off price protection, specify a high value, such as 999999 . + // If you set DesiredCapacityType to vcpu or memory-mib , the price protection + // threshold is applied based on the per-vCPU or per-memory price instead of the + // per instance price. Default: 20 OnDemandMaxPricePercentageOverLowestPrice *int32 // Indicates whether instance types must provide On-Demand Instance hibernation // support. Default: false RequireHibernateSupport *bool - // The price protection threshold for Spot Instances. This is the maximum you’ll - // pay for a Spot Instance, expressed as a percentage higher than the least - // expensive current generation M, C, or R instance type with your specified - // attributes. When Amazon EC2 Auto Scaling selects instance types with your - // attributes, we will exclude instance types whose price is higher than your - // threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling - // interprets as a percentage. To turn off price protection, specify a high value, - // such as 999999 . If you set DesiredCapacityType to vcpu or memory-mib , the - // price protection threshold is applied based on the per vCPU or per memory price - // instead of the per instance price. Default: 100 + // [Price protection] The price protection threshold for Spot Instances, as a + // percentage higher than an identified Spot price. The identified Spot price is + // the price of the lowest priced current generation C, M, or R instance type with + // your specified attributes. If no current generation C, M, or R instance type + // matches your attributes, then the identified price is from either the lowest + // priced current generation instance types or, failing that, the lowest priced + // previous generation instance types that match your attributes. When Amazon EC2 + // Auto Scaling selects instance types with your attributes, we will exclude + // instance types whose price exceeds your specified threshold. The parameter + // accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To + // turn off price protection, specify a high value, such as 999999 . If you set + // DesiredCapacityType to vcpu or memory-mib , the price protection threshold is + // based on the per-vCPU or per-memory price instead of the per instance price. + // Only one of SpotMaxPricePercentageOverLowestPrice or + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. Default: 100 SpotMaxPricePercentageOverLowestPrice *int32 // The minimum and maximum total local storage size for an instance type, in GB. @@ -1645,8 +1672,8 @@ type MetricGranularityType struct { } // This structure defines the CloudWatch metric to return, along with the -// statistic, period, and unit. For more information about the CloudWatch -// terminology below, see Amazon CloudWatch concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html) +// statistic and unit. For more information about the CloudWatch terminology below, +// see Amazon CloudWatch concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html) // in the Amazon CloudWatch User Guide. type MetricStat struct { diff --git a/service/comprehend/api_op_ContainsPiiEntities.go b/service/comprehend/api_op_ContainsPiiEntities.go index 029b71cd523..ac230152219 100644 --- a/service/comprehend/api_op_ContainsPiiEntities.go +++ b/service/comprehend/api_op_ContainsPiiEntities.go @@ -32,8 +32,7 @@ func (c *Client) ContainsPiiEntities(ctx context.Context, params *ContainsPiiEnt type ContainsPiiEntitiesInput struct { - // The language of the input documents. Currently, English is the only valid - // language. + // The language of the input documents. // // This member is required. LanguageCode types.LanguageCode diff --git a/service/comprehend/api_op_DetectPiiEntities.go b/service/comprehend/api_op_DetectPiiEntities.go index 0595dcea4bf..8e3295a9156 100644 --- a/service/comprehend/api_op_DetectPiiEntities.go +++ b/service/comprehend/api_op_DetectPiiEntities.go @@ -31,8 +31,8 @@ func (c *Client) DetectPiiEntities(ctx context.Context, params *DetectPiiEntitie type DetectPiiEntitiesInput struct { - // The language of the input documents. Currently, English is the only valid - // language. + // The language of the input text. Enter the language code for English (en) or + // Spanish (es). // // This member is required. LanguageCode types.LanguageCode diff --git a/service/comprehend/api_op_StartPiiEntitiesDetectionJob.go b/service/comprehend/api_op_StartPiiEntitiesDetectionJob.go index fe395b34c1a..283f96840d9 100644 --- a/service/comprehend/api_op_StartPiiEntitiesDetectionJob.go +++ b/service/comprehend/api_op_StartPiiEntitiesDetectionJob.go @@ -41,8 +41,8 @@ type StartPiiEntitiesDetectionJobInput struct { // This member is required. InputDataConfig *types.InputDataConfig - // The language of the input documents. Currently, English is the only valid - // language. + // The language of the input documents. Enter the language code for English (en) + // or Spanish (es). // // This member is required. LanguageCode types.LanguageCode diff --git a/service/comprehend/types/types.go b/service/comprehend/types/types.go index d50666f2541..e931f5fba3d 100644 --- a/service/comprehend/types/types.go +++ b/service/comprehend/types/types.go @@ -2253,7 +2253,7 @@ type PiiEntitiesDetectionJobProperties struct { // the Message field shows the reason for the failure. JobStatus JobStatus - // The language code of the input documents + // The language code of the input documents. LanguageCode LanguageCode // A description of the status of a job. diff --git a/service/datasync/internal/endpoints/endpoints.go b/service/datasync/internal/endpoints/endpoints.go index 084ff761c73..d723a4cb2bd 100644 --- a/service/datasync/internal/endpoints/endpoints.go +++ b/service/datasync/internal/endpoints/endpoints.go @@ -382,6 +382,15 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "fips-us-iso-east-1", + }: endpoints.Endpoint{ + Hostname: "datasync-fips.us-iso-east-1.c2s.ic.gov", + CredentialScope: endpoints.CredentialScope{ + Region: "us-iso-east-1", + }, + Deprecated: aws.TrueTernary, + }, endpoints.EndpointKey{ Region: "fips-us-iso-west-1", }: endpoints.Endpoint{ @@ -391,6 +400,15 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "us-iso-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-iso-east-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datasync-fips.us-iso-east-1.c2s.ic.gov", + }, endpoints.EndpointKey{ Region: "us-iso-west-1", }: endpoints.Endpoint{}, diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index 509accbb62a..af45acc39e6 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -85471,6 +85471,23 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi return err } + case strings.EqualFold("maxSpotPriceAsPercentageOfOptimalOnDemandPrice", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = ptr.Int32(int32(i64)) + } + case strings.EqualFold("memoryGiBPerVCpu", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentMemoryGiBPerVCpu(&sv.MemoryGiBPerVCpu, nodeDecoder); err != nil { diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 892ed1d9a5e..928f284216b 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -42331,6 +42331,11 @@ func awsEc2query_serializeDocumentInstanceRequirements(v *types.InstanceRequirem } } + if v.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice != nil { + objectKey := object.Key("MaxSpotPriceAsPercentageOfOptimalOnDemandPrice") + objectKey.Integer(*v.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice) + } + if v.MemoryGiBPerVCpu != nil { objectKey := object.Key("MemoryGiBPerVCpu") if err := awsEc2query_serializeDocumentMemoryGiBPerVCpu(v.MemoryGiBPerVCpu, objectKey); err != nil { @@ -42487,6 +42492,11 @@ func awsEc2query_serializeDocumentInstanceRequirementsRequest(v *types.InstanceR } } + if v.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice != nil { + objectKey := object.Key("MaxSpotPriceAsPercentageOfOptimalOnDemandPrice") + objectKey.Integer(*v.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice) + } + if v.MemoryGiBPerVCpu != nil { objectKey := object.Key("MemoryGiBPerVCpu") if err := awsEc2query_serializeDocumentMemoryGiBPerVCpuRequest(v.MemoryGiBPerVCpu, objectKey); err != nil { diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index 37933670ad4..86bab2984e3 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -6765,6 +6765,25 @@ type InstanceRequirements struct { // Default: hdd and ssd LocalStorageTypes []LocalStorageType + // [Price protection] The price protection threshold for Spot Instances, as a + // percentage of an identified On-Demand price. The identified On-Demand price is + // the price of the lowest priced current generation C, M, or R instance type with + // your specified attributes. If no current generation C, M, or R instance type + // matches your attributes, then the identified price is from the lowest priced + // current generation instance types, and failing that, from the lowest priced + // previous generation instance types that match your attributes. When Amazon EC2 + // selects instance types with your attributes, it will exclude instance types + // whose price exceeds your specified threshold. The parameter accepts an integer, + // which Amazon EC2 interprets as a percentage. To indicate no price protection + // threshold, specify a high value, such as 999999 . If you set DesiredCapacityType + // to vcpu or memory-mib , the price protection threshold is based on the per vCPU + // or per memory price instead of the per instance price. Only one of + // SpotMaxPricePercentageOverLowestPrice or + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't + // specify either, then SpotMaxPricePercentageOverLowestPrice is used and the + // value for that parameter defaults to 100 . + MaxSpotPriceAsPercentageOfOptimalOnDemandPrice *int32 + // The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum // or maximum limits MemoryGiBPerVCpu *MemoryGiBPerVCpu @@ -6780,14 +6799,14 @@ type InstanceRequirements struct { // maximum limits NetworkInterfaceCount *NetworkInterfaceCount - // The price protection threshold for On-Demand Instances. This is the maximum - // you’ll pay for an On-Demand Instance, expressed as a percentage above the least - // expensive current generation M, C, or R instance type with your specified - // attributes. When Amazon EC2 selects instance types with your attributes, it - // excludes instance types priced above your threshold. The parameter accepts an - // integer, which Amazon EC2 interprets as a percentage. To turn off price - // protection, specify a high value, such as 999999 . This parameter is not - // supported for GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + // [Price protection] The price protection threshold for On-Demand Instances, as a + // percentage higher than an identified On-Demand price. The identified On-Demand + // price is the price of the lowest priced current generation C, M, or R instance + // type with your specified attributes. When Amazon EC2 selects instance types with + // your attributes, it will exclude instance types whose price exceeds your + // specified threshold. The parameter accepts an integer, which Amazon EC2 + // interprets as a percentage. To turn off price protection, specify a high value, + // such as 999999 . This parameter is not supported for GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) // and GetInstanceTypesFromInstanceRequirements (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) // . If you set TargetCapacityUnitType to vcpu or memory-mib , the price protection // threshold is applied based on the per-vCPU or per-memory price instead of the @@ -6799,18 +6818,25 @@ type InstanceRequirements struct { // . Default: false RequireHibernateSupport *bool - // The price protection threshold for Spot Instances. This is the maximum you’ll - // pay for a Spot Instance, expressed as a percentage above the least expensive - // current generation M, C, or R instance type with your specified attributes. When - // Amazon EC2 selects instance types with your attributes, it excludes instance - // types priced above your threshold. The parameter accepts an integer, which - // Amazon EC2 interprets as a percentage. To turn off price protection, specify a - // high value, such as 999999 . This parameter is not supported for - // GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + // [Price protection] The price protection threshold for Spot Instances, as a + // percentage higher than an identified Spot price. The identified Spot price is + // the Spot price of the lowest priced current generation C, M, or R instance type + // with your specified attributes. If no current generation C, M, or R instance + // type matches your attributes, then the identified Spot price is from the lowest + // priced current generation instance types, and failing that, from the lowest + // priced previous generation instance types that match your attributes. When + // Amazon EC2 selects instance types with your attributes, it will exclude instance + // types whose Spot price exceeds your specified threshold. The parameter accepts + // an integer, which Amazon EC2 interprets as a percentage. To indicate no price + // protection threshold, specify a high value, such as 999999 . If you set + // TargetCapacityUnitType to vcpu or memory-mib , the price protection threshold is + // applied based on the per-vCPU or per-memory price instead of the per-instance + // price. This parameter is not supported for GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) // and GetInstanceTypesFromInstanceRequirements (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) - // . If you set TargetCapacityUnitType to vcpu or memory-mib , the price protection - // threshold is applied based on the per-vCPU or per-memory price instead of the - // per-instance price. Default: 100 + // . Only one of SpotMaxPricePercentageOverLowestPrice or + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't + // specify either, then SpotMaxPricePercentageOverLowestPrice is used and the + // value for that parameter defaults to 100 . Default: 100 SpotMaxPricePercentageOverLowestPrice *int32 // The minimum and maximum amount of total local storage, in GB. Default: No @@ -6984,6 +7010,25 @@ type InstanceRequirementsRequest struct { // Default: hdd and ssd LocalStorageTypes []LocalStorageType + // [Price protection] The price protection threshold for Spot Instances, as a + // percentage of an identified On-Demand price. The identified On-Demand price is + // the price of the lowest priced current generation C, M, or R instance type with + // your specified attributes. If no current generation C, M, or R instance type + // matches your attributes, then the identified price is from the lowest priced + // current generation instance types, and failing that, from the lowest priced + // previous generation instance types that match your attributes. When Amazon EC2 + // selects instance types with your attributes, it will exclude instance types + // whose price exceeds your specified threshold. The parameter accepts an integer, + // which Amazon EC2 interprets as a percentage. To indicate no price protection + // threshold, specify a high value, such as 999999 . If you set DesiredCapacityType + // to vcpu or memory-mib , the price protection threshold is based on the per vCPU + // or per memory price instead of the per instance price. Only one of + // SpotMaxPricePercentageOverLowestPrice or + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't + // specify either, then SpotMaxPricePercentageOverLowestPrice is used and the + // value for that parameter defaults to 100 . + MaxSpotPriceAsPercentageOfOptimalOnDemandPrice *int32 + // The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum // or maximum limits MemoryGiBPerVCpu *MemoryGiBPerVCpuRequest @@ -6997,14 +7042,15 @@ type InstanceRequirementsRequest struct { // maximum limits NetworkInterfaceCount *NetworkInterfaceCountRequest - // The price protection threshold for On-Demand Instances. This is the maximum - // you’ll pay for an On-Demand Instance, expressed as a percentage above the least - // expensive current generation M, C, or R instance type with your specified - // attributes. When Amazon EC2 selects instance types with your attributes, it - // excludes instance types priced above your threshold. The parameter accepts an - // integer, which Amazon EC2 interprets as a percentage. To turn off price - // protection, specify a high value, such as 999999 . This parameter is not - // supported for GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + // [Price protection] The price protection threshold for On-Demand Instances, as a + // percentage higher than an identified On-Demand price. The identified On-Demand + // price is the price of the lowest priced current generation C, M, or R instance + // type with your specified attributes. When Amazon EC2 selects instance types with + // your attributes, it will exclude instance types whose price exceeds your + // specified threshold. The parameter accepts an integer, which Amazon EC2 + // interprets as a percentage. To indicate no price protection threshold, specify a + // high value, such as 999999 . This parameter is not supported for + // GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) // and GetInstanceTypesFromInstanceRequirements (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) // . If you set TargetCapacityUnitType to vcpu or memory-mib , the price protection // threshold is applied based on the per-vCPU or per-memory price instead of the @@ -7016,18 +7062,25 @@ type InstanceRequirementsRequest struct { // . Default: false RequireHibernateSupport *bool - // The price protection threshold for Spot Instance. This is the maximum you’ll - // pay for an Spot Instance, expressed as a percentage above the least expensive - // current generation M, C, or R instance type with your specified attributes. When - // Amazon EC2 selects instance types with your attributes, it excludes instance - // types priced above your threshold. The parameter accepts an integer, which - // Amazon EC2 interprets as a percentage. To turn off price protection, specify a - // high value, such as 999999 . This parameter is not supported for - // GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) + // [Price protection] The price protection threshold for Spot Instances, as a + // percentage higher than an identified Spot price. The identified Spot price is + // the Spot price of the lowest priced current generation C, M, or R instance type + // with your specified attributes. If no current generation C, M, or R instance + // type matches your attributes, then the identified Spot price is from the lowest + // priced current generation instance types, and failing that, from the lowest + // priced previous generation instance types that match your attributes. When + // Amazon EC2 selects instance types with your attributes, it will exclude instance + // types whose Spot price exceeds your specified threshold. The parameter accepts + // an integer, which Amazon EC2 interprets as a percentage. To indicate no price + // protection threshold, specify a high value, such as 999999 . If you set + // TargetCapacityUnitType to vcpu or memory-mib , the price protection threshold is + // applied based on the per-vCPU or per-memory price instead of the per-instance + // price. This parameter is not supported for GetSpotPlacementScores (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) // and GetInstanceTypesFromInstanceRequirements (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) - // . If you set TargetCapacityUnitType to vcpu or memory-mib , the price protection - // threshold is applied based on the per-vCPU or per-memory price instead of the - // per-instance price. Default: 100 + // . Only one of SpotMaxPricePercentageOverLowestPrice or + // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice can be specified. If you don't + // specify either, then SpotMaxPricePercentageOverLowestPrice is used and the + // value for that parameter defaults to 100 . Default: 100 SpotMaxPricePercentageOverLowestPrice *int32 // The minimum and maximum amount of total local storage, in GB. Default: No diff --git a/service/mwaa/types/enums.go b/service/mwaa/types/enums.go index 74b45ffddc6..d4b1f4fa761 100644 --- a/service/mwaa/types/enums.go +++ b/service/mwaa/types/enums.go @@ -35,6 +35,7 @@ const ( EnvironmentStatusRollingBack EnvironmentStatus = "ROLLING_BACK" EnvironmentStatusCreatingSnapshot EnvironmentStatus = "CREATING_SNAPSHOT" EnvironmentStatusPending EnvironmentStatus = "PENDING" + EnvironmentStatusMaintenance EnvironmentStatus = "MAINTENANCE" ) // Values returns all known values for EnvironmentStatus. Note that this can be @@ -53,6 +54,7 @@ func (EnvironmentStatus) Values() []EnvironmentStatus { "ROLLING_BACK", "CREATING_SNAPSHOT", "PENDING", + "MAINTENANCE", } } diff --git a/service/mwaa/types/types.go b/service/mwaa/types/types.go index a46e4abe665..7f39e234833 100644 --- a/service/mwaa/types/types.go +++ b/service/mwaa/types/types.go @@ -77,8 +77,7 @@ type Environment struct { // . ExecutionRoleArn *string - // The Amazon Web Services Key Management Service (KMS) encryption key used to - // encrypt the data in your environment. + // The KMS encryption key used to encrypt the data in your environment. KmsKey *string // The status of the last update on the environment. @@ -188,10 +187,15 @@ type Environment struct { // - DELETING - Indicates the request to delete the environment is in progress. // - DELETED - Indicates the request to delete the environment is complete, and // the environment has been deleted. - // - UNAVAILABLE - Indicates the request failed, but the environment was unable - // to rollback and is not in a stable state. + // - UNAVAILABLE - Indicates the request failed, but the environment did not + // return to its previous state and is not stable. // - UPDATE_FAILED - Indicates the request to update the environment failed, and - // the environment has rolled back successfully and is ready to use. + // the environment was restored to its previous state successfully and is ready to + // use. + // - MAINTENANCE - Indicates that the environment is undergoing maintenance. + // Depending on the type of work Amazon MWAA is performing, your environment might + // become unavailable during this process. After all operations are done, your + // environment will return to its status prior to mainteneace operations. // We recommend reviewing our troubleshooting guide for a list of common errors // and their solutions. For more information, see Amazon MWAA troubleshooting (https://docs.aws.amazon.com/mwaa/latest/userguide/troubleshooting.html) // . @@ -208,7 +212,7 @@ type Environment struct { // . WebserverAccessMode WebserverAccessMode - // The Apache Airflow Web server host name for the Amazon MWAA environment. For + // The Apache Airflow web server host name for the Amazon MWAA environment. For // more information, see Accessing the Apache Airflow UI (https://docs.aws.amazon.com/mwaa/latest/userguide/access-airflow-ui.html) // . WebserverUrl *string diff --git a/service/qconnect/internal/endpoints/endpoints.go b/service/qconnect/internal/endpoints/endpoints.go index 2ab58304c52..12e44569225 100644 --- a/service/qconnect/internal/endpoints/endpoints.go +++ b/service/qconnect/internal/endpoints/endpoints.go @@ -142,9 +142,18 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-northeast-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ca-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, @@ -164,9 +173,18 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ui-ap-northeast-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ui-ap-northeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ui-ap-southeast-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ui-ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ui-ca-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ui-eu-central-1", }: endpoints.Endpoint{}, diff --git a/service/quicksight/internal/endpoints/endpoints.go b/service/quicksight/internal/endpoints/endpoints.go index a47443c0cb1..cd6ec308417 100644 --- a/service/quicksight/internal/endpoints/endpoints.go +++ b/service/quicksight/internal/endpoints/endpoints.go @@ -220,6 +220,11 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "cn-north-1", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-iso", diff --git a/service/rds/deserializers.go b/service/rds/deserializers.go index 849ff7913ff..204a02e549a 100644 --- a/service/rds/deserializers.go +++ b/service/rds/deserializers.go @@ -16218,6 +16218,9 @@ func awsAwsquery_deserializeOpErrorRestoreDBClusterFromSnapshot(response *smithy case strings.EqualFold("InsufficientDBClusterCapacityFault", errorCode): return awsAwsquery_deserializeErrorInsufficientDBClusterCapacityFault(response, errorBody) + case strings.EqualFold("InsufficientDBInstanceCapacity", errorCode): + return awsAwsquery_deserializeErrorInsufficientDBInstanceCapacityFault(response, errorBody) + case strings.EqualFold("InsufficientStorageClusterCapacity", errorCode): return awsAwsquery_deserializeErrorInsufficientStorageClusterCapacityFault(response, errorBody) @@ -16380,6 +16383,9 @@ func awsAwsquery_deserializeOpErrorRestoreDBClusterToPointInTime(response *smith case strings.EqualFold("InsufficientDBClusterCapacityFault", errorCode): return awsAwsquery_deserializeErrorInsufficientDBClusterCapacityFault(response, errorBody) + case strings.EqualFold("InsufficientDBInstanceCapacity", errorCode): + return awsAwsquery_deserializeErrorInsufficientDBInstanceCapacityFault(response, errorBody) + case strings.EqualFold("InsufficientStorageClusterCapacity", errorCode): return awsAwsquery_deserializeErrorInsufficientStorageClusterCapacityFault(response, errorBody) diff --git a/service/snowball/api_op_CreateAddress.go b/service/snowball/api_op_CreateAddress.go index 5b76e050f09..3f8b828409c 100644 --- a/service/snowball/api_op_CreateAddress.go +++ b/service/snowball/api_op_CreateAddress.go @@ -15,7 +15,9 @@ import ( // Creates an address for a Snow device to be shipped to. In most regions, // addresses are validated at the time of creation. The address you provide must be // located within the serviceable area of your region. If the address is invalid or -// unsupported, then an exception is thrown. +// unsupported, then an exception is thrown. If providing an address as a JSON file +// through the cli-input-json option, include the full file path. For example, +// --cli-input-json file://create-address.json . func (c *Client) CreateAddress(ctx context.Context, params *CreateAddressInput, optFns ...func(*Options)) (*CreateAddressOutput, error) { if params == nil { params = &CreateAddressInput{} diff --git a/service/snowball/endpoints.go b/service/snowball/endpoints.go index a16be2260d3..88416e35ee3 100644 --- a/service/snowball/endpoints.go +++ b/service/snowball/endpoints.go @@ -366,7 +366,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://snowball-fips.") diff --git a/service/wisdom/internal/endpoints/endpoints.go b/service/wisdom/internal/endpoints/endpoints.go index da8bcfaad1c..f65ddf51f69 100644 --- a/service/wisdom/internal/endpoints/endpoints.go +++ b/service/wisdom/internal/endpoints/endpoints.go @@ -142,9 +142,18 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-northeast-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ca-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, @@ -164,9 +173,18 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ui-ap-northeast-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ui-ap-northeast-2", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ui-ap-southeast-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ui-ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ui-ca-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ui-eu-central-1", }: endpoints.Endpoint{},