From e7eb765a43f994d96621f10749d7fe9fafa331b3 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:08:56 -0700 Subject: [PATCH] Release v1.34.31 (2020-09-24) (#3559) Release v1.34.31 (2020-09-24) === ### Service Client Updates * `service/amplify`: Updates service API and documentation * `service/eks`: Updates service API and documentation * `service/savingsplans`: Updates service API and documentation * `service/synthetics`: Updates service API and documentation * `service/textract`: Updates service API and documentation * `service/transcribe`: Updates service API and documentation --- CHANGELOG.md | 11 ++ aws/endpoints/defaults.go | 1 + aws/version.go | 2 +- models/apis/amplify/2017-07-25/api-2.json | 2 +- models/apis/amplify/2017-07-25/docs-2.json | 2 +- models/apis/eks/2017-11-01/api-2.json | 14 ++ models/apis/eks/2017-11-01/docs-2.json | 24 ++- .../apis/savingsplans/2019-06-28/api-2.json | 34 +++- .../apis/savingsplans/2019-06-28/docs-2.json | 18 ++ models/apis/synthetics/2017-10-11/api-2.json | 52 ++++-- models/apis/synthetics/2017-10-11/docs-2.json | 60 ++++--- models/apis/textract/2018-06-27/api-2.json | 23 ++- models/apis/textract/2018-06-27/docs-2.json | 27 ++- models/apis/transcribe/2017-10-26/api-2.json | 13 +- models/apis/transcribe/2017-10-26/docs-2.json | 9 +- models/endpoints/endpoints.json | 1 + service/amplify/api.go | 21 +++ service/eks/api.go | 100 ++++++++++- service/savingsplans/api.go | 163 ++++++++++++++++- .../savingsplansiface/interface.go | 4 + service/synthetics/api.go | 129 +++++++++----- service/textract/api.go | 165 +++++++++++++++--- service/textract/errors.go | 9 +- service/transcribeservice/api.go | 73 +++++++- 24 files changed, 813 insertions(+), 144 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fcee8f4a10..7e6633e9092 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.34.31 (2020-09-24) +=== + +### Service Client Updates +* `service/amplify`: Updates service API and documentation +* `service/eks`: Updates service API and documentation +* `service/savingsplans`: Updates service API and documentation +* `service/synthetics`: Updates service API and documentation +* `service/textract`: Updates service API and documentation +* `service/transcribe`: Updates service API and documentation + Release v1.34.30 (2020-09-23) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index a184239a48c..1fcb2b72b8a 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -3019,6 +3019,7 @@ var awsPartition = partition{ "groundstation": service{ Endpoints: endpoints{ + "af-south-1": endpoint{}, "ap-southeast-2": endpoint{}, "eu-north-1": endpoint{}, "eu-west-1": endpoint{}, diff --git a/aws/version.go b/aws/version.go index d516fe574bd..8b73c4b5733 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.34.30" +const SDKVersion = "1.34.31" diff --git a/models/apis/amplify/2017-07-25/api-2.json b/models/apis/amplify/2017-07-25/api-2.json index fa9e3b4d8dc..60e28309fb8 100644 --- a/models/apis/amplify/2017-07-25/api-2.json +++ b/models/apis/amplify/2017-07-25/api-2.json @@ -1888,7 +1888,7 @@ }, "OauthToken":{ "type":"string", - "max":100, + "max":1000, "sensitive":true }, "Platform":{ diff --git a/models/apis/amplify/2017-07-25/docs-2.json b/models/apis/amplify/2017-07-25/docs-2.json index 7b9ed53e40c..54267204e25 100644 --- a/models/apis/amplify/2017-07-25/docs-2.json +++ b/models/apis/amplify/2017-07-25/docs-2.json @@ -1166,7 +1166,7 @@ "Status": { "base": null, "refs": { - "CustomRule$status": "

The status code for a URL rewrite or redirect rule.

", + "CustomRule$status": "

The status code for a URL rewrite or redirect rule.

200

Represents a 200 rewrite rule.

301

Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.

302

Represents a 302 temporary redirect rule.

404

Represents a 404 redirect rule.

404-200

Represents a 404 rewrite rule.

", "ProductionBranch$status": "

The status of the production branch.

" } }, diff --git a/models/apis/eks/2017-11-01/api-2.json b/models/apis/eks/2017-11-01/api-2.json index 5efa209326e..ccef3fcd762 100644 --- a/models/apis/eks/2017-11-01/api-2.json +++ b/models/apis/eks/2017-11-01/api-2.json @@ -411,6 +411,7 @@ "endpoint":{"shape":"String"}, "roleArn":{"shape":"String"}, "resourcesVpcConfig":{"shape":"VpcConfigResponse"}, + "kubernetesNetworkConfig":{"shape":"KubernetesNetworkConfigResponse"}, "logging":{"shape":"Logging"}, "identity":{"shape":"Identity"}, "status":{"shape":"ClusterStatus"}, @@ -449,6 +450,7 @@ "version":{"shape":"String"}, "roleArn":{"shape":"String"}, "resourcesVpcConfig":{"shape":"VpcConfigRequest"}, + "kubernetesNetworkConfig":{"shape":"KubernetesNetworkConfigRequest"}, "logging":{"shape":"Logging"}, "clientRequestToken":{ "shape":"String", @@ -822,6 +824,18 @@ "type":"list", "member":{"shape":"Issue"} }, + "KubernetesNetworkConfigRequest":{ + "type":"structure", + "members":{ + "serviceIpv4Cidr":{"shape":"String"} + } + }, + "KubernetesNetworkConfigResponse":{ + "type":"structure", + "members":{ + "serviceIpv4Cidr":{"shape":"String"} + } + }, "LaunchTemplateSpecification":{ "type":"structure", "members":{ diff --git a/models/apis/eks/2017-11-01/docs-2.json b/models/apis/eks/2017-11-01/docs-2.json index 557c1a36f73..f975a127809 100644 --- a/models/apis/eks/2017-11-01/docs-2.json +++ b/models/apis/eks/2017-11-01/docs-2.json @@ -28,7 +28,7 @@ "AMITypes": { "base": null, "refs": { - "CreateNodegroupRequest$amiType": "

The AMI type for your node group. GPU instance types should use the AL2_x86_64_GPU AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support. Non-GPU instances should use the AL2_x86_64 AMI type, which uses the Amazon EKS-optimized Linux AMI. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify amiType, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

", + "CreateNodegroupRequest$amiType": "

The AMI type for your node group. GPU instance types should use the AL2_x86_64_GPU AMI type. Non-GPU instances should use the AL2_x86_64 AMI type. Arm instances should use the AL2_ARM_64 AMI type. All types use the Amazon EKS-optimized Amazon Linux 2 AMI. If you specify launchTemplate, and your launch template uses a custom AMI, then don't specify amiType, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

", "Nodegroup$amiType": "

If the node group was deployed using a launch template with a custom AMI, then this is CUSTOM. For node groups that weren't deployed using a launch template, this is the AMI type that was specified in the node group configuration.

" } }, @@ -69,7 +69,7 @@ "base": null, "refs": { "CreateNodegroupRequest$diskSize": "

The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB. If you specify launchTemplate, then don't specify diskSize, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

", - "Nodegroup$diskSize": "

If the node group wasn't deployed with a launch template, then this is the disk size in the node group configuration. If the node group was deployed with a launch template, then diskSize is null.

" + "Nodegroup$diskSize": "

If the node group wasn't deployed with a launch template, then this is the disk size in the node group configuration. If the node group was deployed with a launch template, then this is null.

" } }, "Capacity": { @@ -309,10 +309,22 @@ "NodegroupHealth$issues": "

Any issues that are associated with the node group.

" } }, + "KubernetesNetworkConfigRequest": { + "base": "

The Kubernetes network configuration for the cluster.

", + "refs": { + "CreateClusterRequest$kubernetesNetworkConfig": "

The Kubernetes network configuration for the cluster.

" + } + }, + "KubernetesNetworkConfigResponse": { + "base": "

The Kubernetes network configuration for the cluster.

", + "refs": { + "Cluster$kubernetesNetworkConfig": "

Network configuration settings for your cluster.

" + } + }, "LaunchTemplateSpecification": { "base": "

An object representing a node group launch template specification. The launch template cannot include SubnetId , IamInstanceProfile , RequestSpotInstances , HibernationOptions , or TerminateInstances , or the node group deployment or update will fail. For more information about launch templates, see CreateLaunchTemplate in the Amazon EC2 API Reference. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

Specify either name or id, but not both.

", "refs": { - "CreateNodegroupRequest$launchTemplate": "

An object representing a node group's launch template specification. If specified, then do not specify instanceTypes, diskSize, or remoteAccess. If specified, make sure that the launch template meets the requirements in launchTemplateSpecification.

", + "CreateNodegroupRequest$launchTemplate": "

An object representing a node group's launch template specification. If specified, then do not specify instanceTypes, diskSize, or remoteAccess and make sure that the launch template meets the requirements in launchTemplateSpecification.

", "Nodegroup$launchTemplate": "

If a launch template was used to create the node group, then this is the launch template that was used.

", "UpdateNodegroupVersionRequest$launchTemplate": "

An object representing a node group's launch template specification. You can only update a node group using a launch template if the node group was originally deployed with a launch template.

" } @@ -478,7 +490,7 @@ "base": "

An object representing the remote access configuration for the managed node group.

", "refs": { "CreateNodegroupRequest$remoteAccess": "

The remote access (SSH) configuration to use with your node group. If you specify launchTemplate, then don't specify remoteAccess, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.

", - "Nodegroup$remoteAccess": "

If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group. If the node group was deployed with a launch template, then remoteAccess is null.

" + "Nodegroup$remoteAccess": "

If the node group wasn't deployed with a launch template, then this is the remote access configuration that is associated with the node group. If the node group was deployed with a launch template, then this is null.

" } }, "ResourceInUseException": { @@ -564,6 +576,8 @@ "InvalidRequestException$nodegroupName": "

The Amazon EKS managed node group associated with the exception.

", "InvalidRequestException$message": null, "Issue$message": "

The error message associated with the issue.

", + "KubernetesNetworkConfigRequest$serviceIpv4Cidr": "

The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. The block must meet the following requirements:

You can only specify a custom CIDR block when you create a cluster and can't change this value once the cluster is created.

", + "KubernetesNetworkConfigResponse$serviceIpv4Cidr": "

The CIDR block that Kubernetes service IP addresses are assigned from. If you didn't specify a CIDR block, then Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. If this was specified, then it was specified when the cluster was created and it cannot be changed.

", "LaunchTemplateSpecification$name": "

The name of the launch template.

", "LaunchTemplateSpecification$version": "

The version of the launch template to use. If no version is specified, then the template's default version is used.

", "LaunchTemplateSpecification$id": "

The ID of the launch template.

", @@ -645,7 +659,7 @@ "ListFargateProfilesResponse$fargateProfileNames": "

A list of all of the Fargate profiles associated with the specified cluster.

", "ListNodegroupsResponse$nodegroups": "

A list of all of the node groups associated with the specified cluster.

", "ListUpdatesResponse$updateIds": "

A list of all the updates for the specified cluster and Region.

", - "Nodegroup$instanceTypes": "

If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group. If the node group was deployed with a launch template, then instanceTypes is null.

", + "Nodegroup$instanceTypes": "

If the node group wasn't deployed with a launch template, then this is the instance type that is associated with the node group. If the node group was deployed with a launch template, then this is null.

", "Nodegroup$subnets": "

The subnets that were specified for the Auto Scaling group that is associated with your node group.

", "RemoteAccessConfig$sourceSecurityGroups": "

The security groups that are allowed SSH access (port 22) to the worker nodes. If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the worker nodes is opened to the internet (0.0.0.0/0). For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

", "UnsupportedAvailabilityZoneException$validZones": "

The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster.

", diff --git a/models/apis/savingsplans/2019-06-28/api-2.json b/models/apis/savingsplans/2019-06-28/api-2.json index d78753328d2..37053117155 100644 --- a/models/apis/savingsplans/2019-06-28/api-2.json +++ b/models/apis/savingsplans/2019-06-28/api-2.json @@ -28,6 +28,21 @@ {"shape":"ServiceQuotaExceededException"} ] }, + "DeleteQueuedSavingsPlan":{ + "name":"DeleteQueuedSavingsPlan", + "http":{ + "method":"POST", + "requestUri":"/DeleteQueuedSavingsPlan" + }, + "input":{"shape":"DeleteQueuedSavingsPlanRequest"}, + "output":{"shape":"DeleteQueuedSavingsPlanResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, "DescribeSavingsPlanRates":{ "name":"DescribeSavingsPlanRates", "http":{ @@ -137,6 +152,7 @@ "savingsPlanOfferingId":{"shape":"SavingsPlanOfferingId"}, "commitment":{"shape":"Amount"}, "upfrontPaymentAmount":{"shape":"Amount"}, + "purchaseTime":{"shape":"DateTime"}, "clientToken":{ "shape":"ClientToken", "idempotencyToken":true @@ -161,6 +177,19 @@ "type":"list", "member":{"shape":"CurrencyCode"} }, + "DateTime":{"type":"timestamp"}, + "DeleteQueuedSavingsPlanRequest":{ + "type":"structure", + "required":["savingsPlanId"], + "members":{ + "savingsPlanId":{"shape":"SavingsPlanId"} + } + }, + "DeleteQueuedSavingsPlanResponse":{ + "type":"structure", + "members":{ + } + }, "DescribeSavingsPlanRatesRequest":{ "type":"structure", "required":["savingsPlanId"], @@ -596,7 +625,6 @@ "enum":[ "AmazonEC2", "AmazonECS", - "AmazonEKS", "AWSLambda" ] }, @@ -636,7 +664,9 @@ "payment-pending", "payment-failed", "active", - "retired" + "retired", + "queued", + "queued-deleted" ] }, "SavingsPlanStateList":{ diff --git a/models/apis/savingsplans/2019-06-28/docs-2.json b/models/apis/savingsplans/2019-06-28/docs-2.json index 4d297250e1a..371b3e51752 100644 --- a/models/apis/savingsplans/2019-06-28/docs-2.json +++ b/models/apis/savingsplans/2019-06-28/docs-2.json @@ -3,6 +3,7 @@ "service": "

Savings Plans are a pricing model that offer significant savings on AWS usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For more information, see the AWS Savings Plans User Guide.

", "operations": { "CreateSavingsPlan": "

Creates a Savings Plan.

", + "DeleteQueuedSavingsPlan": "

Deletes the queued purchase for the specified Savings Plan.

", "DescribeSavingsPlanRates": "

Describes the specified Savings Plans rates.

", "DescribeSavingsPlans": "

Describes the specified Savings Plans.

", "DescribeSavingsPlansOfferingRates": "

Describes the specified Savings Plans offering rates.

", @@ -55,6 +56,22 @@ "DescribeSavingsPlansOfferingsRequest$currencies": "

The currencies.

" } }, + "DateTime": { + "base": null, + "refs": { + "CreateSavingsPlanRequest$purchaseTime": "

The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).

" + } + }, + "DeleteQueuedSavingsPlanRequest": { + "base": null, + "refs": { + } + }, + "DeleteQueuedSavingsPlanResponse": { + "base": null, + "refs": { + } + }, "DescribeSavingsPlanRatesRequest": { "base": null, "refs": { @@ -242,6 +259,7 @@ "base": null, "refs": { "CreateSavingsPlanResponse$savingsPlanId": "

The ID of the Savings Plan.

", + "DeleteQueuedSavingsPlanRequest$savingsPlanId": "

The ID of the Savings Plan.

", "DescribeSavingsPlanRatesRequest$savingsPlanId": "

The ID of the Savings Plan.

", "DescribeSavingsPlanRatesResponse$savingsPlanId": "

The ID of the Savings Plan.

", "SavingsPlan$savingsPlanId": "

The ID of the Savings Plan.

", diff --git a/models/apis/synthetics/2017-10-11/api-2.json b/models/apis/synthetics/2017-10-11/api-2.json index 1480d801a2f..d285fc3d533 100644 --- a/models/apis/synthetics/2017-10-11/api-2.json +++ b/models/apis/synthetics/2017-10-11/api-2.json @@ -196,10 +196,6 @@ } }, "shapes":{ - "Arn":{ - "type":"string", - "pattern":"^arn:(aws|aws-cn|aws-us-gov|aws-iso-{0,1}[a-z]{0,1}):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$" - }, "Blob":{ "type":"blob", "max":10000000, @@ -219,7 +215,7 @@ "Id":{"shape":"UUID"}, "Name":{"shape":"CanaryName"}, "Code":{"shape":"CanaryCodeOutput"}, - "ExecutionRoleArn":{"shape":"Arn"}, + "ExecutionRoleArn":{"shape":"RoleArn"}, "Schedule":{"shape":"CanaryScheduleOutput"}, "RunConfig":{"shape":"CanaryRunConfigOutput"}, "SuccessRetentionPeriodInDays":{"shape":"MaxSize1024"}, @@ -227,12 +223,18 @@ "Status":{"shape":"CanaryStatus"}, "Timeline":{"shape":"CanaryTimeline"}, "ArtifactS3Location":{"shape":"String"}, - "EngineArn":{"shape":"Arn"}, + "EngineArn":{"shape":"FunctionArn"}, "RuntimeVersion":{"shape":"String"}, "VpcConfig":{"shape":"VpcConfigOutput"}, "Tags":{"shape":"TagMap"} } }, + "CanaryArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:(aws[a-zA-Z-]*)?:synthetics:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:canary:[0-9a-z_\\-]{1,21}" + }, "CanaryCodeInput":{ "type":"structure", "required":["Handler"], @@ -267,6 +269,7 @@ "CanaryRun":{ "type":"structure", "members":{ + "Id":{"shape":"UUID"}, "Name":{"shape":"CanaryName"}, "Status":{"shape":"CanaryRunStatus"}, "Timeline":{"shape":"CanaryRunTimeline"}, @@ -275,17 +278,18 @@ }, "CanaryRunConfigInput":{ "type":"structure", - "required":["TimeoutInSeconds"], "members":{ "TimeoutInSeconds":{"shape":"MaxFifteenMinutesInSeconds"}, - "MemoryInMB":{"shape":"MaxSize3008"} + "MemoryInMB":{"shape":"MaxSize3008"}, + "ActiveTracing":{"shape":"NullableBoolean"} } }, "CanaryRunConfigOutput":{ "type":"structure", "members":{ "TimeoutInSeconds":{"shape":"MaxFifteenMinutesInSeconds"}, - "MemoryInMB":{"shape":"MaxSize3008"} + "MemoryInMB":{"shape":"MaxSize3008"}, + "ActiveTracing":{"shape":"NullableBoolean"} } }, "CanaryRunState":{ @@ -394,7 +398,7 @@ "Name":{"shape":"CanaryName"}, "Code":{"shape":"CanaryCodeInput"}, "ArtifactS3Location":{"shape":"String"}, - "ExecutionRoleArn":{"shape":"Arn"}, + "ExecutionRoleArn":{"shape":"RoleArn"}, "Schedule":{"shape":"CanaryScheduleInput"}, "RunConfig":{"shape":"CanaryRunConfigInput"}, "SuccessRetentionPeriodInDays":{"shape":"MaxSize1024"}, @@ -469,6 +473,12 @@ } }, "ErrorMessage":{"type":"string"}, + "FunctionArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" + }, "GetCanaryRequest":{ "type":"structure", "required":["Name"], @@ -519,7 +529,7 @@ "required":["ResourceArn"], "members":{ "ResourceArn":{ - "shape":"Arn", + "shape":"CanaryArn", "location":"uri", "locationName":"resourceArn" } @@ -538,8 +548,8 @@ }, "MaxFifteenMinutesInSeconds":{ "type":"integer", - "max":900, - "min":60 + "max":840, + "min":3 }, "MaxOneYearInSeconds":{ "type":"long", @@ -561,6 +571,7 @@ "max":3008, "min":960 }, + "NullableBoolean":{"type":"boolean"}, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -569,6 +580,12 @@ "error":{"httpStatusCode":404}, "exception":true }, + "RoleArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" + }, "RuntimeVersion":{ "type":"structure", "members":{ @@ -660,7 +677,7 @@ ], "members":{ "ResourceArn":{ - "shape":"Arn", + "shape":"CanaryArn", "location":"uri", "locationName":"resourceArn" }, @@ -679,7 +696,8 @@ "Timestamp":{"type":"timestamp"}, "Token":{ "type":"string", - "pattern":"^[a-zA-Z0-9=/+_.-]{4,252}$" + "max":252, + "min":4 }, "UUID":{ "type":"string", @@ -693,7 +711,7 @@ ], "members":{ "ResourceArn":{ - "shape":"Arn", + "shape":"CanaryArn", "location":"uri", "locationName":"resourceArn" }, @@ -719,7 +737,7 @@ "locationName":"name" }, "Code":{"shape":"CanaryCodeInput"}, - "ExecutionRoleArn":{"shape":"Arn"}, + "ExecutionRoleArn":{"shape":"RoleArn"}, "RuntimeVersion":{"shape":"String"}, "Schedule":{"shape":"CanaryScheduleInput"}, "RunConfig":{"shape":"CanaryRunConfigInput"}, diff --git a/models/apis/synthetics/2017-10-11/docs-2.json b/models/apis/synthetics/2017-10-11/docs-2.json index 929c7a51bc2..601617d6c86 100644 --- a/models/apis/synthetics/2017-10-11/docs-2.json +++ b/models/apis/synthetics/2017-10-11/docs-2.json @@ -17,18 +17,6 @@ "UpdateCanary": "

Use this operation to change the settings of a canary that has already been created.

You can't use this operation to update the tags of an existing canary. To change the tags of an existing canary, use TagResource.

" }, "shapes": { - "Arn": { - "base": null, - "refs": { - "Canary$ExecutionRoleArn": "

The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com as a principal in the trust policy.

", - "Canary$EngineArn": "

The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions.

", - "CreateCanaryRequest$ExecutionRoleArn": "

The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:

", - "ListTagsForResourceRequest$ResourceArn": "

The ARN of the canary that you want to view tags for.

The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name .

", - "TagResourceRequest$ResourceArn": "

The ARN of the canary that you're adding tags to.

The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name .

", - "UntagResourceRequest$ResourceArn": "

The ARN of the canary that you're removing tags from.

The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name .

", - "UpdateCanaryRequest$ExecutionRoleArn": "

The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:

" - } - }, "Blob": { "base": null, "refs": { @@ -55,6 +43,14 @@ "GetCanaryResponse$Canary": "

A strucure that contains the full information about the canary.

" } }, + "CanaryArn": { + "base": null, + "refs": { + "ListTagsForResourceRequest$ResourceArn": "

The ARN of the canary that you want to view tags for.

The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name .

", + "TagResourceRequest$ResourceArn": "

The ARN of the canary that you're adding tags to.

The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name .

", + "UntagResourceRequest$ResourceArn": "

The ARN of the canary that you're removing tags from.

The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name .

" + } + }, "CanaryCodeInput": { "base": "

Use this structure to input your script code for the canary. This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script was passed into the canary directly, the script code is contained in the value of Zipfile.

", "refs": { @@ -104,7 +100,7 @@ } }, "CanaryRunConfigOutput": { - "base": "

A structure that contains information for a canary run.

", + "base": "

A structure that contains information about a canary run.

", "refs": { "Canary$RunConfig": null } @@ -240,6 +236,12 @@ "ValidationException$Message": null } }, + "FunctionArn": { + "base": null, + "refs": { + "Canary$EngineArn": "

The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions.

" + } + }, "GetCanaryRequest": { "base": null, "refs": { @@ -284,7 +286,7 @@ "MaxFifteenMinutesInSeconds": { "base": null, "refs": { - "CanaryRunConfigInput$TimeoutInSeconds": "

How long the canary is allowed to run before it must stop. If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.

", + "CanaryRunConfigInput$TimeoutInSeconds": "

How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.

If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.

", "CanaryRunConfigOutput$TimeoutInSeconds": "

How long the canary is allowed to run before it must stop.

" } }, @@ -317,8 +319,15 @@ "MaxSize3008": { "base": null, "refs": { - "CanaryRunConfigInput$MemoryInMB": "

The maximum amount of memory available to the canary while it is running, in MB. The value you specify must be a multiple of 64.

", - "CanaryRunConfigOutput$MemoryInMB": "

The maximum amount of memory available to the canary while it is running, in MB. The value you must be a multiple of 64.

" + "CanaryRunConfigInput$MemoryInMB": "

The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.

", + "CanaryRunConfigOutput$MemoryInMB": "

The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.

" + } + }, + "NullableBoolean": { + "base": null, + "refs": { + "CanaryRunConfigInput$ActiveTracing": "

Specifies whether this canary is to use active AWS X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.

You can enable active tracing only for canaries that use version syn-nodejs-2.0 or later for their canary runtime.

", + "CanaryRunConfigOutput$ActiveTracing": "

Displays whether this canary run used active AWS X-Ray tracing.

" } }, "ResourceNotFoundException": { @@ -326,6 +335,14 @@ "refs": { } }, + "RoleArn": { + "base": null, + "refs": { + "Canary$ExecutionRoleArn": "

The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com as a principal in the trust policy.

", + "CreateCanaryRequest$ExecutionRoleArn": "

The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:

", + "UpdateCanaryRequest$ExecutionRoleArn": "

The ARN of the IAM role to be used to run the canary. This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:

" + } + }, "RuntimeVersion": { "base": "

This structure contains information about one canary runtime version. For more information about runtime versions, see Canary Runtime Versions.

", "refs": { @@ -375,7 +392,7 @@ "base": null, "refs": { "Canary$ArtifactS3Location": "

The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.

", - "Canary$RuntimeVersion": "

Specifies the runtime version to use for the canary. Currently, the only valid value is syn-1.0. For more information about runtime versions, see Canary Runtime Versions.

", + "Canary$RuntimeVersion": "

Specifies the runtime version to use for the canary. Currently, the only valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0. For more information about runtime versions, see Canary Runtime Versions.

", "CanaryCodeInput$S3Bucket": "

If your canary script is located in S3, specify the full bucket name here. The bucket must already exist. Specify the full bucket name, including s3:// as the start of the bucket name.

", "CanaryCodeInput$S3Key": "

The S3 key of your script. For more information, see Working with Amazon S3 Objects.

", "CanaryCodeInput$S3Version": "

The S3 version ID of your script.

", @@ -388,10 +405,10 @@ "CanaryScheduleOutput$Expression": "

A rate expression that defines how often the canary is to run. The syntax is rate(number unit). unit can be minute, minutes, or hour.

For example, rate(1 minute) runs the canary once a minute, rate(10 minutes) runs it once every 10 minutes, and rate(1 hour) runs it once every hour.

Specifying rate(0 minute) or rate(0 hour) is a special value that causes the canary to run only once when it is started.

", "CanaryStatus$StateReason": "

If the canary has insufficient permissions to run, this field provides more details.

", "CreateCanaryRequest$ArtifactS3Location": "

The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files.

", - "CreateCanaryRequest$RuntimeVersion": "

Specifies the runtime version to use for the canary. Currently, the only valid value is syn-1.0. For more information about runtime versions, see Canary Runtime Versions.

", - "RuntimeVersion$VersionName": "

The name of the runtime version. Currently, the only valid value is syn-1.0.

Specifies the runtime version to use for the canary. Currently, the only valid value is syn-1.0.

", + "CreateCanaryRequest$RuntimeVersion": "

Specifies the runtime version to use for the canary. Currently, the only valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0. For more information about runtime versions, see Canary Runtime Versions.

", + "RuntimeVersion$VersionName": "

The name of the runtime version. Currently, the only valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0.

", "RuntimeVersion$Description": "

A description of the runtime version, created by Amazon.

", - "UpdateCanaryRequest$RuntimeVersion": "

Specifies the runtime version to use for the canary. Currently, the only valid value is syn-1.0. For more information about runtime versions, see Canary Runtime Versions.

" + "UpdateCanaryRequest$RuntimeVersion": "

Specifies the runtime version to use for the canary. Currently, the only valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0. For more information about runtime versions, see Canary Runtime Versions.

" } }, "SubnetId": { @@ -474,7 +491,8 @@ "UUID": { "base": null, "refs": { - "Canary$Id": "

The unique ID of this canary.

" + "Canary$Id": "

The unique ID of this canary.

", + "CanaryRun$Id": "

A unique ID that identifies this canary run.

" } }, "UntagResourceRequest": { diff --git a/models/apis/textract/2018-06-27/api-2.json b/models/apis/textract/2018-06-27/api-2.json index 90f3253ec78..58972b2eb01 100644 --- a/models/apis/textract/2018-06-27/api-2.json +++ b/models/apis/textract/2018-06-27/api-2.json @@ -67,7 +67,8 @@ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"InvalidJobIdException"}, {"shape":"InternalServerError"}, - {"shape":"ThrottlingException"} + {"shape":"ThrottlingException"}, + {"shape":"InvalidS3ObjectException"} ] }, "GetDocumentTextDetection":{ @@ -84,7 +85,8 @@ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"InvalidJobIdException"}, {"shape":"InternalServerError"}, - {"shape":"ThrottlingException"} + {"shape":"ThrottlingException"}, + {"shape":"InvalidS3ObjectException"} ] }, "StartDocumentAnalysis":{ @@ -488,6 +490,14 @@ "RoleArn":{"shape":"RoleArn"} } }, + "OutputConfig":{ + "type":"structure", + "required":["S3Bucket"], + "members":{ + "S3Bucket":{"shape":"S3Bucket"}, + "S3Prefix":{"shape":"S3ObjectName"} + } + }, "Pages":{ "type":"list", "member":{"shape":"UInteger"} @@ -535,7 +545,8 @@ "type":"string", "enum":[ "VALUE", - "CHILD" + "CHILD", + "COMPLEX_FEATURES" ] }, "RoleArn":{ @@ -594,7 +605,8 @@ "FeatureTypes":{"shape":"FeatureTypes"}, "ClientRequestToken":{"shape":"ClientRequestToken"}, "JobTag":{"shape":"JobTag"}, - "NotificationChannel":{"shape":"NotificationChannel"} + "NotificationChannel":{"shape":"NotificationChannel"}, + "OutputConfig":{"shape":"OutputConfig"} } }, "StartDocumentAnalysisResponse":{ @@ -610,7 +622,8 @@ "DocumentLocation":{"shape":"DocumentLocation"}, "ClientRequestToken":{"shape":"ClientRequestToken"}, "JobTag":{"shape":"JobTag"}, - "NotificationChannel":{"shape":"NotificationChannel"} + "NotificationChannel":{"shape":"NotificationChannel"}, + "OutputConfig":{"shape":"OutputConfig"} } }, "StartDocumentTextDetectionResponse":{ diff --git a/models/apis/textract/2018-06-27/docs-2.json b/models/apis/textract/2018-06-27/docs-2.json index 8520910e33f..342a017144e 100644 --- a/models/apis/textract/2018-06-27/docs-2.json +++ b/models/apis/textract/2018-06-27/docs-2.json @@ -11,7 +11,7 @@ }, "shapes": { "AccessDeniedException": { - "base": "

You aren't authorized to perform the action.

", + "base": "

You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation.

", "refs": { } }, @@ -26,7 +26,7 @@ } }, "BadDocumentException": { - "base": "

Amazon Textract isn't able to read the document.

", + "base": "

Amazon Textract isn't able to read the document. For more information on the document limits in Amazon Textract, see limits.

", "refs": { } }, @@ -274,7 +274,7 @@ } }, "InvalidS3ObjectException": { - "base": "

Amazon Textract is unable to access the S3 object that's specified in the request.

", + "base": "

Amazon Textract is unable to access the S3 object that's specified in the request. for more information, Configure Access to Amazon S3 For troubleshooting information, see Troubleshooting Amazon S3

", "refs": { } }, @@ -327,6 +327,13 @@ "StartDocumentTextDetectionRequest$NotificationChannel": "

The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.

" } }, + "OutputConfig": { + "base": "

Sets whether or not your output will go to a user created bucket. Used to set the name of the bucket, and the prefix on the output file.

", + "refs": { + "StartDocumentAnalysisRequest$OutputConfig": "

Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetDocumentAnalysis operation.

", + "StartDocumentTextDetectionRequest$OutputConfig": "

Sets if the output will go to a customer defined bucket. By default Amazon Textract will save the results internally to be accessed with the GetDocumentTextDetection operation.

" + } + }, "Pages": { "base": null, "refs": { @@ -380,7 +387,7 @@ "RelationshipType": { "base": null, "refs": { - "Relationship$Type": "

The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks.

" + "Relationship$Type": "

The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.

" } }, "RoleArn": { @@ -392,6 +399,7 @@ "S3Bucket": { "base": null, "refs": { + "OutputConfig$S3Bucket": "

The name of the bucket your output will go to.

", "S3Object$Bucket": "

The name of the S3 bucket.

" } }, @@ -405,6 +413,7 @@ "S3ObjectName": { "base": null, "refs": { + "OutputConfig$S3Prefix": "

The prefix of the object key that the output will be saved to. When not enabled, the prefix will be “textract_output\".

", "S3Object$Name": "

The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF format files.

" } }, @@ -449,8 +458,8 @@ "StatusMessage": { "base": null, "refs": { - "GetDocumentAnalysisResponse$StatusMessage": "

The current status of an asynchronous document-analysis operation.

", - "GetDocumentTextDetectionResponse$StatusMessage": "

The current status of an asynchronous text-detection operation for the document.

" + "GetDocumentAnalysisResponse$StatusMessage": "

Returns if the detection job could not be completed. Contains explanation for what error occured.

", + "GetDocumentTextDetectionResponse$StatusMessage": "

Returns if the detection job could not be completed. Contains explanation for what error occured.

" } }, "String": { @@ -461,9 +470,9 @@ "DetectDocumentTextResponse$DetectDocumentTextModelVersion": "

", "GetDocumentAnalysisResponse$AnalyzeDocumentModelVersion": "

", "GetDocumentTextDetectionResponse$DetectDocumentTextModelVersion": "

", - "HumanLoopQuotaExceededException$ResourceType": null, - "HumanLoopQuotaExceededException$QuotaCode": null, - "HumanLoopQuotaExceededException$ServiceCode": null + "HumanLoopQuotaExceededException$ResourceType": "

The resource type.

", + "HumanLoopQuotaExceededException$QuotaCode": "

The quota code.

", + "HumanLoopQuotaExceededException$ServiceCode": "

The service code.

" } }, "ThrottlingException": { diff --git a/models/apis/transcribe/2017-10-26/api-2.json b/models/apis/transcribe/2017-10-26/api-2.json index 33f8ed8940f..e68d2687e8c 100644 --- a/models/apis/transcribe/2017-10-26/api-2.json +++ b/models/apis/transcribe/2017-10-26/api-2.json @@ -904,7 +904,10 @@ "mp3", "mp4", "wav", - "flac" + "flac", + "ogg", + "amr", + "webm" ] }, "MediaSampleRateHertz":{ @@ -1008,6 +1011,12 @@ "max":64, "pattern":"[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]" }, + "OutputKey":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"[a-zA-Z0-9-_.!*'()/]{1,1024}$" + }, "OutputLocationType":{ "type":"string", "enum":[ @@ -1070,6 +1079,7 @@ "MediaFormat":{"shape":"MediaFormat"}, "Media":{"shape":"Media"}, "OutputBucketName":{"shape":"OutputBucketName"}, + "OutputKey":{"shape":"OutputKey"}, "OutputEncryptionKMSKeyId":{"shape":"KMSKeyId"}, "Settings":{"shape":"MedicalTranscriptionSetting"}, "Specialty":{"shape":"Specialty"}, @@ -1095,6 +1105,7 @@ "MediaFormat":{"shape":"MediaFormat"}, "Media":{"shape":"Media"}, "OutputBucketName":{"shape":"OutputBucketName"}, + "OutputKey":{"shape":"OutputKey"}, "OutputEncryptionKMSKeyId":{"shape":"KMSKeyId"}, "Settings":{"shape":"Settings"}, "ModelSettings":{"shape":"ModelSettings"}, diff --git a/models/apis/transcribe/2017-10-26/docs-2.json b/models/apis/transcribe/2017-10-26/docs-2.json index fa0cfbeb46d..86da1d7e105 100644 --- a/models/apis/transcribe/2017-10-26/docs-2.json +++ b/models/apis/transcribe/2017-10-26/docs-2.json @@ -266,7 +266,7 @@ "IdentifiedLanguageScore": { "base": null, "refs": { - "TranscriptionJob$IdentifiedLanguageScore": "

The score that Amazon Transcribe gives for the predominant language that it identified in your collection of source audio files. This score reflects the confidence that the language that Amazon Transcribe identified is the correct language.

", + "TranscriptionJob$IdentifiedLanguageScore": "

A value between zero and one that Amazon Transcribe assigned to the language that it identified in the source audio. Larger values indicate that Amazon Transcribe has higher confidence in the language it identified.

", "TranscriptionJobSummary$IdentifiedLanguageScore": "

A value between zero and one that Amazon Transcribe assigned to the language it identified in the source audio. A higher score indicates that Amazon Transcribe is more confident in the language it identified.

" } }, @@ -551,6 +551,13 @@ "StartTranscriptionJobRequest$OutputBucketName": "

The location where the transcription is stored.

If you set the OutputBucketName, Amazon Transcribe puts the transcript in the specified S3 bucket. When you call the GetTranscriptionJob operation, the operation returns this location in the TranscriptFileUri field. If you enable content redaction, the redacted transcript appears in RedactedTranscriptFileUri. If you enable content redaction and choose to output an unredacted transcript, that transcript's location still appears in the TranscriptFileUri. The S3 bucket must have permissions that allow Amazon Transcribe to put files in the bucket. For more information, see Permissions Required for IAM User Roles.

You can specify an AWS Key Management Service (KMS) key to encrypt the output of your transcription using the OutputEncryptionKMSKeyId parameter. If you don't specify a KMS key, Amazon Transcribe uses the default Amazon S3 key for server-side encryption of transcripts that are placed in your S3 bucket.

If you don't set the OutputBucketName, Amazon Transcribe generates a pre-signed URL, a shareable URL that provides secure access to your transcription, and returns it in the TranscriptFileUri field. Use this URL to download the transcription.

" } }, + "OutputKey": { + "base": null, + "refs": { + "StartMedicalTranscriptionJobRequest$OutputKey": "

You can specify a location in an Amazon S3 bucket to store the output of your medical transcription job.

If you don't specify an output key, Amazon Transcribe Medical stores the output of your transcription job in the Amazon S3 bucket you specified. By default, the object key is \"your-transcription-job-name.json\".

You can use output keys to specify the Amazon S3 prefix and file name of the transcription output. For example, specifying the Amazon S3 prefix, \"folder1/folder2/\", as an output key would lead to the output being stored as \"folder1/folder2/your-transcription-job-name.json\". If you specify \"my-other-job-name.json\" as the output key, the object key is changed to \"my-other-job-name.json\". You can use an output key to change both the prefix and the file name, for example \"folder/my-other-job-name.json\".

If you specify an output key, you must also specify an S3 bucket in the OutputBucketName parameter.

", + "StartTranscriptionJobRequest$OutputKey": "

You can specify a location in an Amazon S3 bucket to store the output of your transcription job.

If you don't specify an output key, Amazon Transcribe stores the output of your transcription job in the Amazon S3 bucket you specified. By default, the object key is \"your-transcription-job-name.json\".

You can use output keys to specify the Amazon S3 prefix and file name of the transcription output. For example, specifying the Amazon S3 prefix, \"folder1/folder2/\", as an output key would lead to the output being stored as \"folder1/folder2/your-transcription-job-name.json\". If you specify \"my-other-job-name.json\" as the output key, the object key is changed to \"my-other-job-name.json\". You can use an output key to change both the prefix and the file name, for example \"folder/my-other-job-name.json\".

If you specify an output key, you must also specify an S3 bucket in the OutputBucketName parameter.

" + } + }, "OutputLocationType": { "base": null, "refs": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 4c595a694c2..b28f49a8805 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -2873,6 +2873,7 @@ }, "groundstation" : { "endpoints" : { + "af-south-1" : { }, "ap-southeast-2" : { }, "eu-north-1" : { }, "eu-west-1" : { }, diff --git a/service/amplify/api.go b/service/amplify/api.go index b89dddfb021..c42aabdfaf0 100644 --- a/service/amplify/api.go +++ b/service/amplify/api.go @@ -5087,6 +5087,27 @@ type CustomRule struct { Source *string `locationName:"source" min:"1" type:"string" required:"true"` // The status code for a URL rewrite or redirect rule. + // + // 200 + // + // Represents a 200 rewrite rule. + // + // 301 + // + // Represents a 301 (moved pemanently) redirect rule. This and all future requests + // should be directed to the target URL. + // + // 302 + // + // Represents a 302 temporary redirect rule. + // + // 404 + // + // Represents a 404 redirect rule. + // + // 404-200 + // + // Represents a 404 rewrite rule. Status *string `locationName:"status" min:"3" type:"string"` // The target pattern for a URL rewrite or redirect rule. diff --git a/service/eks/api.go b/service/eks/api.go index 8b0d8e0e1ec..c724aef0a07 100644 --- a/service/eks/api.go +++ b/service/eks/api.go @@ -2630,6 +2630,9 @@ type Cluster struct { // The identity provider information for the cluster. Identity *Identity `locationName:"identity" type:"structure"` + // Network configuration settings for your cluster. + KubernetesNetworkConfig *KubernetesNetworkConfigResponse `locationName:"kubernetesNetworkConfig" type:"structure"` + // The logging configuration for your cluster. Logging *Logging `locationName:"logging" type:"structure"` @@ -2718,6 +2721,12 @@ func (s *Cluster) SetIdentity(v *Identity) *Cluster { return s } +// SetKubernetesNetworkConfig sets the KubernetesNetworkConfig field's value. +func (s *Cluster) SetKubernetesNetworkConfig(v *KubernetesNetworkConfigResponse) *Cluster { + s.KubernetesNetworkConfig = v + return s +} + // SetLogging sets the Logging field's value. func (s *Cluster) SetLogging(v *Logging) *Cluster { s.Logging = v @@ -2776,6 +2785,9 @@ type CreateClusterInput struct { // The encryption configuration for the cluster. EncryptionConfig []*EncryptionConfig `locationName:"encryptionConfig" type:"list"` + // The Kubernetes network configuration for the cluster. + KubernetesNetworkConfig *KubernetesNetworkConfigRequest `locationName:"kubernetesNetworkConfig" type:"structure"` + // Enable or disable exporting the Kubernetes control plane logs for your cluster // to CloudWatch Logs. By default, cluster control plane logs aren't exported // to CloudWatch Logs. For more information, see Amazon EKS Cluster Control @@ -2867,6 +2879,12 @@ func (s *CreateClusterInput) SetEncryptionConfig(v []*EncryptionConfig) *CreateC return s } +// SetKubernetesNetworkConfig sets the KubernetesNetworkConfig field's value. +func (s *CreateClusterInput) SetKubernetesNetworkConfig(v *KubernetesNetworkConfigRequest) *CreateClusterInput { + s.KubernetesNetworkConfig = v + return s +} + // SetLogging sets the Logging field's value. func (s *CreateClusterInput) SetLogging(v *Logging) *CreateClusterInput { s.Logging = v @@ -3075,9 +3093,9 @@ type CreateNodegroupInput struct { _ struct{} `type:"structure"` // The AMI type for your node group. GPU instance types should use the AL2_x86_64_GPU - // AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support. - // Non-GPU instances should use the AL2_x86_64 AMI type, which uses the Amazon - // EKS-optimized Linux AMI. If you specify launchTemplate, and your launch template + // AMI type. Non-GPU instances should use the AL2_x86_64 AMI type. Arm instances + // should use the AL2_ARM_64 AMI type. All types use the Amazon EKS-optimized + // Amazon Linux 2 AMI. If you specify launchTemplate, and your launch template // uses a custom AMI, then don't specify amiType, or the node group deployment // will fail. For more information about using launch templates with Amazon // EKS, see Launch template support (https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html) @@ -3115,8 +3133,8 @@ type CreateNodegroupInput struct { Labels map[string]*string `locationName:"labels" type:"map"` // An object representing a node group's launch template specification. If specified, - // then do not specify instanceTypes, diskSize, or remoteAccess. If specified, - // make sure that the launch template meets the requirements in launchTemplateSpecification. + // then do not specify instanceTypes, diskSize, or remoteAccess and make sure + // that the launch template meets the requirements in launchTemplateSpecification. LaunchTemplate *LaunchTemplateSpecification `locationName:"launchTemplate" type:"structure"` // The Amazon Resource Name (ARN) of the IAM role to associate with your node @@ -4377,6 +4395,72 @@ func (s *Issue) SetResourceIds(v []*string) *Issue { return s } +// The Kubernetes network configuration for the cluster. +type KubernetesNetworkConfigRequest struct { + _ struct{} `type:"structure"` + + // The CIDR block to assign Kubernetes service IP addresses from. If you don't + // specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 + // or 172.20.0.0/16 CIDR blocks. We recommend that you specify a block that + // does not overlap with resources in other networks that are peered or connected + // to your VPC. The block must meet the following requirements: + // + // * Within one of the following private IP address blocks: 10.0.0.0/8, 172.16.0.0.0/12, + // or 192.168.0.0/16. + // + // * Doesn't overlap with any CIDR block assigned to the VPC that you selected + // for VPC. + // + // * Between /24 and /12. + // + // You can only specify a custom CIDR block when you create a cluster and can't + // change this value once the cluster is created. + ServiceIpv4Cidr *string `locationName:"serviceIpv4Cidr" type:"string"` +} + +// String returns the string representation +func (s KubernetesNetworkConfigRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KubernetesNetworkConfigRequest) GoString() string { + return s.String() +} + +// SetServiceIpv4Cidr sets the ServiceIpv4Cidr field's value. +func (s *KubernetesNetworkConfigRequest) SetServiceIpv4Cidr(v string) *KubernetesNetworkConfigRequest { + s.ServiceIpv4Cidr = &v + return s +} + +// The Kubernetes network configuration for the cluster. +type KubernetesNetworkConfigResponse struct { + _ struct{} `type:"structure"` + + // The CIDR block that Kubernetes service IP addresses are assigned from. If + // you didn't specify a CIDR block, then Kubernetes assigns addresses from either + // the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks. If this was specified, then + // it was specified when the cluster was created and it cannot be changed. + ServiceIpv4Cidr *string `locationName:"serviceIpv4Cidr" type:"string"` +} + +// String returns the string representation +func (s KubernetesNetworkConfigResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KubernetesNetworkConfigResponse) GoString() string { + return s.String() +} + +// SetServiceIpv4Cidr sets the ServiceIpv4Cidr field's value. +func (s *KubernetesNetworkConfigResponse) SetServiceIpv4Cidr(v string) *KubernetesNetworkConfigResponse { + s.ServiceIpv4Cidr = &v + return s +} + // An object representing a node group launch template specification. The launch // template cannot include SubnetId (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html), // IamInstanceProfile (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IamInstanceProfile.html), @@ -4997,7 +5081,7 @@ type Nodegroup struct { // If the node group wasn't deployed with a launch template, then this is the // disk size in the node group configuration. If the node group was deployed - // with a launch template, then diskSize is null. + // with a launch template, then this is null. DiskSize *int64 `locationName:"diskSize" type:"integer"` // The health status of the node group. If there are issues with your node group's @@ -5006,7 +5090,7 @@ type Nodegroup struct { // If the node group wasn't deployed with a launch template, then this is the // instance type that is associated with the node group. If the node group was - // deployed with a launch template, then instanceTypes is null. + // deployed with a launch template, then this is null. InstanceTypes []*string `locationName:"instanceTypes" type:"list"` // The Kubernetes labels applied to the nodes in the node group. @@ -5043,7 +5127,7 @@ type Nodegroup struct { // If the node group wasn't deployed with a launch template, then this is the // remote access configuration that is associated with the node group. If the - // node group was deployed with a launch template, then remoteAccess is null. + // node group was deployed with a launch template, then this is null. RemoteAccess *RemoteAccessConfig `locationName:"remoteAccess" type:"structure"` // The resources associated with the node group, such as Auto Scaling groups diff --git a/service/savingsplans/api.go b/service/savingsplans/api.go index fead110d2a1..0fe7fea7191 100644 --- a/service/savingsplans/api.go +++ b/service/savingsplans/api.go @@ -4,6 +4,7 @@ package savingsplans import ( "fmt" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -100,6 +101,95 @@ func (c *SavingsPlans) CreateSavingsPlanWithContext(ctx aws.Context, input *Crea return out, req.Send() } +const opDeleteQueuedSavingsPlan = "DeleteQueuedSavingsPlan" + +// DeleteQueuedSavingsPlanRequest generates a "aws/request.Request" representing the +// client's request for the DeleteQueuedSavingsPlan operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteQueuedSavingsPlan for more information on using the DeleteQueuedSavingsPlan +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteQueuedSavingsPlanRequest method. +// req, resp := client.DeleteQueuedSavingsPlanRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlan +func (c *SavingsPlans) DeleteQueuedSavingsPlanRequest(input *DeleteQueuedSavingsPlanInput) (req *request.Request, output *DeleteQueuedSavingsPlanOutput) { + op := &request.Operation{ + Name: opDeleteQueuedSavingsPlan, + HTTPMethod: "POST", + HTTPPath: "/DeleteQueuedSavingsPlan", + } + + if input == nil { + input = &DeleteQueuedSavingsPlanInput{} + } + + output = &DeleteQueuedSavingsPlanOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteQueuedSavingsPlan API operation for AWS Savings Plans. +// +// Deletes the queued purchase for the specified Savings Plan. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Savings Plans's +// API operation DeleteQueuedSavingsPlan for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One of the input parameters is not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServerException +// An unexpected error occurred. +// +// * ServiceQuotaExceededException +// A service quota has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlan +func (c *SavingsPlans) DeleteQueuedSavingsPlan(input *DeleteQueuedSavingsPlanInput) (*DeleteQueuedSavingsPlanOutput, error) { + req, out := c.DeleteQueuedSavingsPlanRequest(input) + return out, req.Send() +} + +// DeleteQueuedSavingsPlanWithContext is the same as DeleteQueuedSavingsPlan with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteQueuedSavingsPlan for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SavingsPlans) DeleteQueuedSavingsPlanWithContext(ctx aws.Context, input *DeleteQueuedSavingsPlanInput, opts ...request.Option) (*DeleteQueuedSavingsPlanOutput, error) { + req, out := c.DeleteQueuedSavingsPlanRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeSavingsPlanRates = "DescribeSavingsPlanRates" // DescribeSavingsPlanRatesRequest generates a "aws/request.Request" representing the @@ -701,6 +791,9 @@ type CreateSavingsPlanInput struct { // Commitment is a required field Commitment *string `locationName:"commitment" type:"string" required:"true"` + // The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ). + PurchaseTime *time.Time `locationName:"purchaseTime" type:"timestamp"` + // The ID of the offering. // // SavingsPlanOfferingId is a required field @@ -753,6 +846,12 @@ func (s *CreateSavingsPlanInput) SetCommitment(v string) *CreateSavingsPlanInput return s } +// SetPurchaseTime sets the PurchaseTime field's value. +func (s *CreateSavingsPlanInput) SetPurchaseTime(v time.Time) *CreateSavingsPlanInput { + s.PurchaseTime = &v + return s +} + // SetSavingsPlanOfferingId sets the SavingsPlanOfferingId field's value. func (s *CreateSavingsPlanInput) SetSavingsPlanOfferingId(v string) *CreateSavingsPlanInput { s.SavingsPlanOfferingId = &v @@ -794,6 +893,58 @@ func (s *CreateSavingsPlanOutput) SetSavingsPlanId(v string) *CreateSavingsPlanO return s } +type DeleteQueuedSavingsPlanInput struct { + _ struct{} `type:"structure"` + + // The ID of the Savings Plan. + // + // SavingsPlanId is a required field + SavingsPlanId *string `locationName:"savingsPlanId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteQueuedSavingsPlanInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteQueuedSavingsPlanInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteQueuedSavingsPlanInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteQueuedSavingsPlanInput"} + if s.SavingsPlanId == nil { + invalidParams.Add(request.NewErrParamRequired("SavingsPlanId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSavingsPlanId sets the SavingsPlanId field's value. +func (s *DeleteQueuedSavingsPlanInput) SetSavingsPlanId(v string) *DeleteQueuedSavingsPlanInput { + s.SavingsPlanId = &v + return s +} + +type DeleteQueuedSavingsPlanOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteQueuedSavingsPlanOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteQueuedSavingsPlanOutput) GoString() string { + return s.String() +} + type DescribeSavingsPlanRatesInput struct { _ struct{} `type:"structure"` @@ -2701,9 +2852,6 @@ 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" ) @@ -2713,7 +2861,6 @@ func SavingsPlanRateServiceCode_Values() []string { return []string{ SavingsPlanRateServiceCodeAmazonEc2, SavingsPlanRateServiceCodeAmazonEcs, - SavingsPlanRateServiceCodeAmazonEks, SavingsPlanRateServiceCodeAwslambda, } } @@ -2750,6 +2897,12 @@ const ( // SavingsPlanStateRetired is a SavingsPlanState enum value SavingsPlanStateRetired = "retired" + + // SavingsPlanStateQueued is a SavingsPlanState enum value + SavingsPlanStateQueued = "queued" + + // SavingsPlanStateQueuedDeleted is a SavingsPlanState enum value + SavingsPlanStateQueuedDeleted = "queued-deleted" ) // SavingsPlanState_Values returns all elements of the SavingsPlanState enum @@ -2759,6 +2912,8 @@ func SavingsPlanState_Values() []string { SavingsPlanStatePaymentFailed, SavingsPlanStateActive, SavingsPlanStateRetired, + SavingsPlanStateQueued, + SavingsPlanStateQueuedDeleted, } } diff --git a/service/savingsplans/savingsplansiface/interface.go b/service/savingsplans/savingsplansiface/interface.go index 41c1b29405f..4b7b7e930b9 100644 --- a/service/savingsplans/savingsplansiface/interface.go +++ b/service/savingsplans/savingsplansiface/interface.go @@ -64,6 +64,10 @@ type SavingsPlansAPI interface { CreateSavingsPlanWithContext(aws.Context, *savingsplans.CreateSavingsPlanInput, ...request.Option) (*savingsplans.CreateSavingsPlanOutput, error) CreateSavingsPlanRequest(*savingsplans.CreateSavingsPlanInput) (*request.Request, *savingsplans.CreateSavingsPlanOutput) + DeleteQueuedSavingsPlan(*savingsplans.DeleteQueuedSavingsPlanInput) (*savingsplans.DeleteQueuedSavingsPlanOutput, error) + DeleteQueuedSavingsPlanWithContext(aws.Context, *savingsplans.DeleteQueuedSavingsPlanInput, ...request.Option) (*savingsplans.DeleteQueuedSavingsPlanOutput, error) + DeleteQueuedSavingsPlanRequest(*savingsplans.DeleteQueuedSavingsPlanInput) (*request.Request, *savingsplans.DeleteQueuedSavingsPlanOutput) + DescribeSavingsPlanRates(*savingsplans.DescribeSavingsPlanRatesInput) (*savingsplans.DescribeSavingsPlanRatesOutput, error) DescribeSavingsPlanRatesWithContext(aws.Context, *savingsplans.DescribeSavingsPlanRatesInput, ...request.Option) (*savingsplans.DescribeSavingsPlanRatesOutput, error) DescribeSavingsPlanRatesRequest(*savingsplans.DescribeSavingsPlanRatesInput) (*request.Request, *savingsplans.DescribeSavingsPlanRatesOutput) diff --git a/service/synthetics/api.go b/service/synthetics/api.go index 107217f226f..afdf37f59db 100644 --- a/service/synthetics/api.go +++ b/service/synthetics/api.go @@ -1444,11 +1444,11 @@ type Canary struct { // The ARN of the Lambda function that is used as your canary's engine. For // more information about Lambda ARN format, see Resources and Conditions for // Lambda Actions (https://docs.aws.amazon.com/lambda/latest/dg/lambda-api-permissions-ref.html). - EngineArn *string `type:"string"` + EngineArn *string `min:"1" type:"string"` // The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com // as a principal in the trust policy. - ExecutionRoleArn *string `type:"string"` + ExecutionRoleArn *string `min:"1" type:"string"` // The number of days to retain data about failed runs of this canary. FailureRetentionPeriodInDays *int64 `min:"1" type:"integer"` @@ -1459,12 +1459,12 @@ type Canary struct { // The name of the canary. Name *string `min:"1" type:"string"` - // A structure that contains information for a canary run. + // A structure that contains information about a canary run. RunConfig *CanaryRunConfigOutput `type:"structure"` // Specifies the runtime version to use for the canary. Currently, the only - // valid value is syn-1.0. For more information about runtime versions, see - // Canary Runtime Versions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html). + // valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0. For more + // information about runtime versions, see Canary Runtime Versions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html). RuntimeVersion *string `min:"1" type:"string"` // A structure that contains information about how often the canary is to run, @@ -1768,6 +1768,9 @@ type CanaryRun struct { // the log file, screenshots, and HAR files. ArtifactS3Location *string `min:"1" type:"string"` + // A unique ID that identifies this canary run. + Id *string `type:"string"` + // The name of the canary. Name *string `min:"1" type:"string"` @@ -1794,6 +1797,12 @@ func (s *CanaryRun) SetArtifactS3Location(v string) *CanaryRun { return s } +// SetId sets the Id field's value. +func (s *CanaryRun) SetId(v string) *CanaryRun { + s.Id = &v + return s +} + // SetName sets the Name field's value. func (s *CanaryRun) SetName(v string) *CanaryRun { s.Name = &v @@ -1816,16 +1825,26 @@ func (s *CanaryRun) SetTimeline(v *CanaryRunTimeline) *CanaryRun { type CanaryRunConfigInput struct { _ struct{} `type:"structure"` + // Specifies whether this canary is to use active AWS X-Ray tracing when it + // runs. Active tracing enables this canary run to be displayed in the ServiceLens + // and X-Ray service maps even if the canary does not hit an endpoint that has + // X-ray tracing enabled. Using X-Ray tracing incurs charges. For more information, + // see Canaries and X-Ray tracing (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_tracing.html). + // + // You can enable active tracing only for canaries that use version syn-nodejs-2.0 + // or later for their canary runtime. + ActiveTracing *bool `type:"boolean"` + // The maximum amount of memory available to the canary while it is running, - // in MB. The value you specify must be a multiple of 64. + // in MB. This value must be a multiple of 64. MemoryInMB *int64 `min:"960" type:"integer"` - // How long the canary is allowed to run before it must stop. If you omit this - // field, the frequency of the canary is used as this value, up to a maximum - // of 14 minutes. + // How long the canary is allowed to run before it must stop. You can't set + // this time to be longer than the frequency of the runs of this canary. // - // TimeoutInSeconds is a required field - TimeoutInSeconds *int64 `min:"60" type:"integer" required:"true"` + // If you omit this field, the frequency of the canary is used as this value, + // up to a maximum of 14 minutes. + TimeoutInSeconds *int64 `min:"3" type:"integer"` } // String returns the string representation @@ -1844,11 +1863,8 @@ func (s *CanaryRunConfigInput) Validate() error { if s.MemoryInMB != nil && *s.MemoryInMB < 960 { invalidParams.Add(request.NewErrParamMinValue("MemoryInMB", 960)) } - if s.TimeoutInSeconds == nil { - invalidParams.Add(request.NewErrParamRequired("TimeoutInSeconds")) - } - if s.TimeoutInSeconds != nil && *s.TimeoutInSeconds < 60 { - invalidParams.Add(request.NewErrParamMinValue("TimeoutInSeconds", 60)) + if s.TimeoutInSeconds != nil && *s.TimeoutInSeconds < 3 { + invalidParams.Add(request.NewErrParamMinValue("TimeoutInSeconds", 3)) } if invalidParams.Len() > 0 { @@ -1857,6 +1873,12 @@ func (s *CanaryRunConfigInput) Validate() error { return nil } +// SetActiveTracing sets the ActiveTracing field's value. +func (s *CanaryRunConfigInput) SetActiveTracing(v bool) *CanaryRunConfigInput { + s.ActiveTracing = &v + return s +} + // SetMemoryInMB sets the MemoryInMB field's value. func (s *CanaryRunConfigInput) SetMemoryInMB(v int64) *CanaryRunConfigInput { s.MemoryInMB = &v @@ -1869,16 +1891,19 @@ func (s *CanaryRunConfigInput) SetTimeoutInSeconds(v int64) *CanaryRunConfigInpu return s } -// A structure that contains information for a canary run. +// A structure that contains information about a canary run. type CanaryRunConfigOutput struct { _ struct{} `type:"structure"` + // Displays whether this canary run used active AWS X-Ray tracing. + ActiveTracing *bool `type:"boolean"` + // The maximum amount of memory available to the canary while it is running, - // in MB. The value you must be a multiple of 64. + // in MB. This value must be a multiple of 64. MemoryInMB *int64 `min:"960" type:"integer"` // How long the canary is allowed to run before it must stop. - TimeoutInSeconds *int64 `min:"60" type:"integer"` + TimeoutInSeconds *int64 `min:"3" type:"integer"` } // String returns the string representation @@ -1891,6 +1916,12 @@ func (s CanaryRunConfigOutput) GoString() string { return s.String() } +// SetActiveTracing sets the ActiveTracing field's value. +func (s *CanaryRunConfigOutput) SetActiveTracing(v bool) *CanaryRunConfigOutput { + s.ActiveTracing = &v + return s +} + // SetMemoryInMB sets the MemoryInMB field's value. func (s *CanaryRunConfigOutput) SetMemoryInMB(v int64) *CanaryRunConfigOutput { s.MemoryInMB = &v @@ -2269,10 +2300,10 @@ type CreateCanaryInput struct { // // * logs:CreateLogStream // - // * logs:CreateLogStream + // * logs:PutLogEvents // // ExecutionRoleArn is a required field - ExecutionRoleArn *string `type:"string" required:"true"` + ExecutionRoleArn *string `min:"1" type:"string" required:"true"` // The number of days to retain data about failed runs of this canary. If you // omit this field, the default of 31 days is used. The valid range is 1 to @@ -2295,8 +2326,8 @@ type CreateCanaryInput struct { RunConfig *CanaryRunConfigInput `type:"structure"` // Specifies the runtime version to use for the canary. Currently, the only - // valid value is syn-1.0. For more information about runtime versions, see - // Canary Runtime Versions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html). + // valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0. For more + // information about runtime versions, see Canary Runtime Versions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html). // // RuntimeVersion is a required field RuntimeVersion *string `min:"1" type:"string" required:"true"` @@ -2351,6 +2382,9 @@ func (s *CreateCanaryInput) Validate() error { if s.ExecutionRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn")) } + if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 1)) + } if s.FailureRetentionPeriodInDays != nil && *s.FailureRetentionPeriodInDays < 1 { invalidParams.Add(request.NewErrParamMinValue("FailureRetentionPeriodInDays", 1)) } @@ -2552,7 +2586,7 @@ type DescribeCanariesInput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent operation to retrieve the next set of results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -2571,6 +2605,9 @@ func (s *DescribeCanariesInput) Validate() error { if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } + if s.NextToken != nil && len(*s.NextToken) < 4 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2601,7 +2638,7 @@ type DescribeCanariesLastRunInput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeCanaries operation to retrieve the next set // of results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -2620,6 +2657,9 @@ func (s *DescribeCanariesLastRunInput) Validate() error { if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } + if s.NextToken != nil && len(*s.NextToken) < 4 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2648,7 +2688,7 @@ type DescribeCanariesLastRunOutput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeCanariesLastRun operation to retrieve the next // set of results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -2683,7 +2723,7 @@ type DescribeCanariesOutput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeCanaries operation to retrieve the next set // of results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -2719,7 +2759,7 @@ type DescribeRuntimeVersionsInput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeRuntimeVersions operation to retrieve the next // set of results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -2738,6 +2778,9 @@ func (s *DescribeRuntimeVersionsInput) Validate() error { if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } + if s.NextToken != nil && len(*s.NextToken) < 4 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2763,7 +2806,7 @@ type DescribeRuntimeVersionsOutput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent DescribeRuntimeVersions operation to retrieve the next // set of results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` // An array of objects that display the details about each Synthetics canary // runtime version. @@ -2872,7 +2915,7 @@ type GetCanaryRunsInput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent GetCanaryRuns operation to retrieve the next set of // results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -2897,6 +2940,9 @@ func (s *GetCanaryRunsInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.NextToken != nil && len(*s.NextToken) < 4 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 4)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2932,7 +2978,7 @@ type GetCanaryRunsOutput struct { // A token that indicates that there is more data available. You can use this // token in a subsequent GetCanaryRuns operation to retrieve the next set of // results. - NextToken *string `type:"string"` + NextToken *string `min:"4" type:"string"` } // String returns the string representation @@ -3021,7 +3067,7 @@ type ListTagsForResourceInput struct { // The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name . // // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` } // String returns the string representation @@ -3149,10 +3195,8 @@ type RuntimeVersion struct { // The date that the runtime version was released. ReleaseDate *time.Time `type:"timestamp"` - // The name of the runtime version. Currently, the only valid value is syn-1.0. - // - // Specifies the runtime version to use for the canary. Currently, the only - // valid value is syn-1.0. + // The name of the runtime version. Currently, the only valid values are syn-nodejs-2.0, + // syn-nodejs-2.0-beta, and syn-1.0. VersionName *string `min:"1" type:"string"` } @@ -3310,7 +3354,7 @@ type TagResourceInput struct { // The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name . // // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // The list of key-value pairs to associate with the canary. // @@ -3384,7 +3428,7 @@ type UntagResourceInput struct { // The ARN format of a canary is arn:aws:synthetics:Region:account-id:canary:canary-name . // // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` // The list of tag keys to remove from the resource. // @@ -3475,7 +3519,7 @@ type UpdateCanaryInput struct { // * logs:CreateLogStream // // * logs:CreateLogStream - ExecutionRoleArn *string `type:"string"` + ExecutionRoleArn *string `min:"1" type:"string"` // The number of days to retain data about failed runs of this canary. FailureRetentionPeriodInDays *int64 `min:"1" type:"integer"` @@ -3493,8 +3537,8 @@ type UpdateCanaryInput struct { RunConfig *CanaryRunConfigInput `type:"structure"` // Specifies the runtime version to use for the canary. Currently, the only - // valid value is syn-1.0. For more information about runtime versions, see - // Canary Runtime Versions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html). + // valid values are syn-nodejs-2.0, syn-nodejs-2.0-beta, and syn-1.0. For more + // information about runtime versions, see Canary Runtime Versions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html). RuntimeVersion *string `min:"1" type:"string"` // A structure that contains information about how often the canary is to run, @@ -3523,6 +3567,9 @@ func (s UpdateCanaryInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateCanaryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateCanaryInput"} + if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 1)) + } if s.FailureRetentionPeriodInDays != nil && *s.FailureRetentionPeriodInDays < 1 { invalidParams.Add(request.NewErrParamMinValue("FailureRetentionPeriodInDays", 1)) } diff --git a/service/textract/api.go b/service/textract/api.go index ea6325ac266..c15922c1a9a 100644 --- a/service/textract/api.go +++ b/service/textract/api.go @@ -103,7 +103,8 @@ func (c *Textract) AnalyzeDocumentRequest(input *AnalyzeDocumentInput) (req *req // // * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the -// request. +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) // // * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous @@ -116,10 +117,12 @@ func (c *Textract) AnalyzeDocumentRequest(input *AnalyzeDocumentInput) (req *req // operations is 500 MB for PDF files. // // * BadDocumentException -// Amazon Textract isn't able to read the document. +// Amazon Textract isn't able to read the document. For more information on +// the document limits in Amazon Textract, see limits. // // * AccessDeniedException -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase @@ -233,7 +236,8 @@ func (c *Textract) DetectDocumentTextRequest(input *DetectDocumentTextInput) (re // // * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the -// request. +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) // // * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous @@ -246,10 +250,12 @@ func (c *Textract) DetectDocumentTextRequest(input *DetectDocumentTextInput) (re // operations is 500 MB for PDF files. // // * BadDocumentException -// Amazon Textract isn't able to read the document. +// Amazon Textract isn't able to read the document. For more information on +// the document limits in Amazon Textract, see limits. // // * AccessDeniedException -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase @@ -385,7 +391,8 @@ func (c *Textract) GetDocumentAnalysisRequest(input *GetDocumentAnalysisInput) ( // your parameter before calling the API operation again. // // * AccessDeniedException -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase @@ -401,6 +408,11 @@ func (c *Textract) GetDocumentAnalysisRequest(input *GetDocumentAnalysisInput) ( // Amazon Textract is temporarily unable to process the request. Try your call // again. // +// * InvalidS3ObjectException +// Amazon Textract is unable to access the S3 object that's specified in the +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) +// // See also, https://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetDocumentAnalysis func (c *Textract) GetDocumentAnalysis(input *GetDocumentAnalysisInput) (*GetDocumentAnalysisOutput, error) { req, out := c.GetDocumentAnalysisRequest(input) @@ -511,7 +523,8 @@ func (c *Textract) GetDocumentTextDetectionRequest(input *GetDocumentTextDetecti // your parameter before calling the API operation again. // // * AccessDeniedException -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase @@ -527,6 +540,11 @@ func (c *Textract) GetDocumentTextDetectionRequest(input *GetDocumentTextDetecti // Amazon Textract is temporarily unable to process the request. Try your call // again. // +// * InvalidS3ObjectException +// Amazon Textract is unable to access the S3 object that's specified in the +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) +// // See also, https://docs.aws.amazon.com/goto/WebAPI/textract-2018-06-27/GetDocumentTextDetection func (c *Textract) GetDocumentTextDetection(input *GetDocumentTextDetectionInput) (*GetDocumentTextDetectionOutput, error) { req, out := c.GetDocumentTextDetectionRequest(input) @@ -626,7 +644,8 @@ func (c *Textract) StartDocumentAnalysisRequest(input *StartDocumentAnalysisInpu // // * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the -// request. +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) // // * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous @@ -639,10 +658,12 @@ func (c *Textract) StartDocumentAnalysisRequest(input *StartDocumentAnalysisInpu // operations is 500 MB for PDF files. // // * BadDocumentException -// Amazon Textract isn't able to read the document. +// Amazon Textract isn't able to read the document. For more information on +// the document limits in Amazon Textract, see limits. // // * AccessDeniedException -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase @@ -766,7 +787,8 @@ func (c *Textract) StartDocumentTextDetectionRequest(input *StartDocumentTextDet // // * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the -// request. +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) // // * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous @@ -779,10 +801,12 @@ func (c *Textract) StartDocumentTextDetectionRequest(input *StartDocumentTextDet // operations is 500 MB for PDF files. // // * BadDocumentException -// Amazon Textract isn't able to read the document. +// Amazon Textract isn't able to read the document. For more information on +// the document limits in Amazon Textract, see limits. // // * AccessDeniedException -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. // // * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase @@ -829,7 +853,8 @@ func (c *Textract) StartDocumentTextDetectionWithContext(ctx aws.Context, input return out, req.Send() } -// You aren't authorized to perform the action. +// You aren't authorized to perform the action. Use the Amazon Resource Name +// (ARN) of an authorized user or IAM role to perform the operation. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -1016,7 +1041,8 @@ func (s *AnalyzeDocumentOutput) SetHumanLoopActivationOutput(v *HumanLoopActivat return s } -// Amazon Textract isn't able to read the document. +// Amazon Textract isn't able to read the document. For more information on +// the document limits in Amazon Textract, see limits. type BadDocumentException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -1770,7 +1796,8 @@ type GetDocumentAnalysisOutput struct { // detection results. NextToken *string `min:"1" type:"string"` - // The current status of an asynchronous document-analysis operation. + // Returns if the detection job could not be completed. Contains explanation + // for what error occured. StatusMessage *string `type:"string"` // A list of warnings that occurred during the document-analysis operation. @@ -1920,7 +1947,8 @@ type GetDocumentTextDetectionOutput struct { // results. NextToken *string `min:"1" type:"string"` - // The current status of an asynchronous text-detection operation for the document. + // Returns if the detection job could not be completed. Contains explanation + // for what error occured. StatusMessage *string `type:"string"` // A list of warnings that occurred during the text-detection operation for @@ -2126,10 +2154,13 @@ type HumanLoopQuotaExceededException struct { Message_ *string `locationName:"message" type:"string"` + // The quota code. QuotaCode *string `type:"string"` + // The resource type. ResourceType *string `type:"string"` + // The service code. ServiceCode *string `type:"string"` } @@ -2411,7 +2442,8 @@ func (s *InvalidParameterException) RequestID() string { } // Amazon Textract is unable to access the S3 object that's specified in the -// request. +// request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) +// For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) type InvalidS3ObjectException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -2589,6 +2621,62 @@ func (s *NotificationChannel) SetSNSTopicArn(v string) *NotificationChannel { return s } +// Sets whether or not your output will go to a user created bucket. Used to +// set the name of the bucket, and the prefix on the output file. +type OutputConfig struct { + _ struct{} `type:"structure"` + + // The name of the bucket your output will go to. + // + // S3Bucket is a required field + S3Bucket *string `min:"3" type:"string" required:"true"` + + // The prefix of the object key that the output will be saved to. When not enabled, + // the prefix will be “textract_output". + S3Prefix *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s OutputConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OutputConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OutputConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OutputConfig"} + if s.S3Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("S3Bucket")) + } + if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) + } + if s.S3Prefix != nil && len(*s.S3Prefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("S3Prefix", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *OutputConfig) SetS3Bucket(v string) *OutputConfig { + s.S3Bucket = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *OutputConfig) SetS3Prefix(v string) *OutputConfig { + s.S3Prefix = &v + return s +} + // The X and Y coordinates of a point on a document page. The X and Y values // that are returned are ratios of the overall document page size. For example, // if the input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, @@ -2703,7 +2791,8 @@ type Relationship struct { // block. The relationship can be VALUE or CHILD. A relationship of type VALUE // is a list that contains the ID of the VALUE block that's associated with // the KEY of a key-value pair. A relationship of type CHILD is a list of IDs - // that identify WORD blocks. + // that identify WORD blocks in the case of lines Cell blocks in the case of + // Tables, and WORD blocks in the case of Selection Elements. Type *string `type:"string" enum:"RelationshipType"` } @@ -2832,6 +2921,11 @@ type StartDocumentAnalysisInput struct { // The Amazon SNS topic ARN that you want Amazon Textract to publish the completion // status of the operation to. NotificationChannel *NotificationChannel `type:"structure"` + + // Sets if the output will go to a customer defined bucket. By default, Amazon + // Textract will save the results internally to be accessed by the GetDocumentAnalysis + // operation. + OutputConfig *OutputConfig `type:"structure"` } // String returns the string representation @@ -2869,6 +2963,11 @@ func (s *StartDocumentAnalysisInput) Validate() error { invalidParams.AddNested("NotificationChannel", err.(request.ErrInvalidParams)) } } + if s.OutputConfig != nil { + if err := s.OutputConfig.Validate(); err != nil { + invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2906,6 +3005,12 @@ func (s *StartDocumentAnalysisInput) SetNotificationChannel(v *NotificationChann return s } +// SetOutputConfig sets the OutputConfig field's value. +func (s *StartDocumentAnalysisInput) SetOutputConfig(v *OutputConfig) *StartDocumentAnalysisInput { + s.OutputConfig = v + return s +} + type StartDocumentAnalysisOutput struct { _ struct{} `type:"structure"` @@ -2955,6 +3060,11 @@ type StartDocumentTextDetectionInput struct { // The Amazon SNS topic ARN that you want Amazon Textract to publish the completion // status of the operation to. NotificationChannel *NotificationChannel `type:"structure"` + + // Sets if the output will go to a customer defined bucket. By default Amazon + // Textract will save the results internally to be accessed with the GetDocumentTextDetection + // operation. + OutputConfig *OutputConfig `type:"structure"` } // String returns the string representation @@ -2989,6 +3099,11 @@ func (s *StartDocumentTextDetectionInput) Validate() error { invalidParams.AddNested("NotificationChannel", err.(request.ErrInvalidParams)) } } + if s.OutputConfig != nil { + if err := s.OutputConfig.Validate(); err != nil { + invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3020,6 +3135,12 @@ func (s *StartDocumentTextDetectionInput) SetNotificationChannel(v *Notification return s } +// SetOutputConfig sets the OutputConfig field's value. +func (s *StartDocumentTextDetectionInput) SetOutputConfig(v *OutputConfig) *StartDocumentTextDetectionInput { + s.OutputConfig = v + return s +} + type StartDocumentTextDetectionOutput struct { _ struct{} `type:"structure"` @@ -3308,6 +3429,9 @@ const ( // RelationshipTypeChild is a RelationshipType enum value RelationshipTypeChild = "CHILD" + + // RelationshipTypeComplexFeatures is a RelationshipType enum value + RelationshipTypeComplexFeatures = "COMPLEX_FEATURES" ) // RelationshipType_Values returns all elements of the RelationshipType enum @@ -3315,6 +3439,7 @@ func RelationshipType_Values() []string { return []string{ RelationshipTypeValue, RelationshipTypeChild, + RelationshipTypeComplexFeatures, } } diff --git a/service/textract/errors.go b/service/textract/errors.go index ef66ad02512..ea36b6a8a95 100644 --- a/service/textract/errors.go +++ b/service/textract/errors.go @@ -11,13 +11,15 @@ const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // - // You aren't authorized to perform the action. + // You aren't authorized to perform the action. Use the Amazon Resource Name + // (ARN) of an authorized user or IAM role to perform the operation. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeBadDocumentException for service response error code // "BadDocumentException". // - // Amazon Textract isn't able to read the document. + // Amazon Textract isn't able to read the document. For more information on + // the document limits in Amazon Textract, see limits. ErrCodeBadDocumentException = "BadDocumentException" // ErrCodeDocumentTooLargeException for service response error code @@ -68,7 +70,8 @@ const ( // "InvalidS3ObjectException". // // Amazon Textract is unable to access the S3 object that's specified in the - // request. + // request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) + // For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) ErrCodeInvalidS3ObjectException = "InvalidS3ObjectException" // ErrCodeLimitExceededException for service response error code diff --git a/service/transcribeservice/api.go b/service/transcribeservice/api.go index fbf285714c4..bd3bc5b4116 100644 --- a/service/transcribeservice/api.go +++ b/service/transcribeservice/api.go @@ -6334,6 +6334,24 @@ type StartMedicalTranscriptionJobInput struct { // output location in the OutputBucketName parameter. OutputEncryptionKMSKeyId *string `min:"1" type:"string"` + // You can specify a location in an Amazon S3 bucket to store the output of + // your medical transcription job. + // + // If you don't specify an output key, Amazon Transcribe Medical stores the + // output of your transcription job in the Amazon S3 bucket you specified. By + // default, the object key is "your-transcription-job-name.json". + // + // You can use output keys to specify the Amazon S3 prefix and file name of + // the transcription output. For example, specifying the Amazon S3 prefix, "folder1/folder2/", + // as an output key would lead to the output being stored as "folder1/folder2/your-transcription-job-name.json". + // If you specify "my-other-job-name.json" as the output key, the object key + // is changed to "my-other-job-name.json". You can use an output key to change + // both the prefix and the file name, for example "folder/my-other-job-name.json". + // + // If you specify an output key, you must also specify an S3 bucket in the OutputBucketName + // parameter. + OutputKey *string `min:"1" type:"string"` + // Optional settings for the medical transcription job. Settings *MedicalTranscriptionSetting `type:"structure"` @@ -6384,6 +6402,9 @@ func (s *StartMedicalTranscriptionJobInput) Validate() error { if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 { invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1)) } + if s.OutputKey != nil && len(*s.OutputKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputKey", 1)) + } if s.Specialty == nil { invalidParams.Add(request.NewErrParamRequired("Specialty")) } @@ -6449,6 +6470,12 @@ func (s *StartMedicalTranscriptionJobInput) SetOutputEncryptionKMSKeyId(v string return s } +// SetOutputKey sets the OutputKey field's value. +func (s *StartMedicalTranscriptionJobInput) SetOutputKey(v string) *StartMedicalTranscriptionJobInput { + s.OutputKey = &v + return s +} + // SetSettings sets the Settings field's value. func (s *StartMedicalTranscriptionJobInput) SetSettings(v *MedicalTranscriptionSetting) *StartMedicalTranscriptionJobInput { s.Settings = v @@ -6584,6 +6611,24 @@ type StartTranscriptionJobInput struct { // output location in the OutputBucketName parameter. OutputEncryptionKMSKeyId *string `min:"1" type:"string"` + // You can specify a location in an Amazon S3 bucket to store the output of + // your transcription job. + // + // If you don't specify an output key, Amazon Transcribe stores the output of + // your transcription job in the Amazon S3 bucket you specified. By default, + // the object key is "your-transcription-job-name.json". + // + // You can use output keys to specify the Amazon S3 prefix and file name of + // the transcription output. For example, specifying the Amazon S3 prefix, "folder1/folder2/", + // as an output key would lead to the output being stored as "folder1/folder2/your-transcription-job-name.json". + // If you specify "my-other-job-name.json" as the output key, the object key + // is changed to "my-other-job-name.json". You can use an output key to change + // both the prefix and the file name, for example "folder/my-other-job-name.json". + // + // If you specify an output key, you must also specify an S3 bucket in the OutputBucketName + // parameter. + OutputKey *string `min:"1" type:"string"` + // A Settings object that provides optional settings for a transcription job. Settings *Settings `type:"structure"` @@ -6621,6 +6666,9 @@ func (s *StartTranscriptionJobInput) Validate() error { if s.OutputEncryptionKMSKeyId != nil && len(*s.OutputEncryptionKMSKeyId) < 1 { invalidParams.Add(request.NewErrParamMinLen("OutputEncryptionKMSKeyId", 1)) } + if s.OutputKey != nil && len(*s.OutputKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputKey", 1)) + } if s.TranscriptionJobName == nil { invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName")) } @@ -6725,6 +6773,12 @@ func (s *StartTranscriptionJobInput) SetOutputEncryptionKMSKeyId(v string) *Star return s } +// SetOutputKey sets the OutputKey field's value. +func (s *StartTranscriptionJobInput) SetOutputKey(v string) *StartTranscriptionJobInput { + s.OutputKey = &v + return s +} + // SetSettings sets the Settings field's value. func (s *StartTranscriptionJobInput) SetSettings(v *Settings) *StartTranscriptionJobInput { s.Settings = v @@ -6852,10 +6906,9 @@ type TranscriptionJob struct { // in the Amazon Web Services General Reference. FailureReason *string `type:"string"` - // The score that Amazon Transcribe gives for the predominant language that - // it identified in your collection of source audio files. This score reflects - // the confidence that the language that Amazon Transcribe identified is the - // correct language. + // A value between zero and one that Amazon Transcribe assigned to the language + // that it identified in the source audio. Larger values indicate that Amazon + // Transcribe has higher confidence in the language it identified. IdentifiedLanguageScore *float64 `type:"float"` // A value that shows if automatic language identification was enabled for a @@ -7841,6 +7894,15 @@ const ( // MediaFormatFlac is a MediaFormat enum value MediaFormatFlac = "flac" + + // MediaFormatOgg is a MediaFormat enum value + MediaFormatOgg = "ogg" + + // MediaFormatAmr is a MediaFormat enum value + MediaFormatAmr = "amr" + + // MediaFormatWebm is a MediaFormat enum value + MediaFormatWebm = "webm" ) // MediaFormat_Values returns all elements of the MediaFormat enum @@ -7850,6 +7912,9 @@ func MediaFormat_Values() []string { MediaFormatMp4, MediaFormatWav, MediaFormatFlac, + MediaFormatOgg, + MediaFormatAmr, + MediaFormatWebm, } }