diff --git a/CHANGELOG.md b/CHANGELOG.md index e5f3f8f1ba7..44faf1b983c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +Release v1.15.52 (2018-10-10) +=== + +### Service Client Updates +* `service/comprehend`: Updates service API +* `service/es`: Updates service API and documentation + * Amazon Elasticsearch Service now supports customer-scheduled service software updates. When new service software becomes available, you can request an update to your domain and benefit from new features more quickly. If you take no action, we update the service software automatically after a certain time frame. +* `service/transcribe`: Updates service API and documentation + Release v1.15.51 (2018-10-09) === diff --git a/aws/version.go b/aws/version.go index e32367f4c81..29112cbbd96 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.15.51" +const SDKVersion = "1.15.52" diff --git a/models/apis/comprehend/2017-11-27/api-2.json b/models/apis/comprehend/2017-11-27/api-2.json index e7923878af3..591f57ebb03 100644 --- a/models/apis/comprehend/2017-11-27/api-2.json +++ b/models/apis/comprehend/2017-11-27/api-2.json @@ -958,7 +958,11 @@ "type":"string", "enum":[ "en", - "es" + "es", + "fr", + "de", + "it", + "pt" ] }, "ListDominantLanguageDetectionJobsRequest":{ @@ -1367,7 +1371,14 @@ }, "SyntaxLanguageCode":{ "type":"string", - "enum":["en"] + "enum":[ + "en", + "es", + "fr", + "de", + "it", + "pt" + ] }, "SyntaxToken":{ "type":"structure", diff --git a/models/apis/es/2015-01-01/api-2.json b/models/apis/es/2015-01-01/api-2.json index 23148a8ece4..42a181d7362 100644 --- a/models/apis/es/2015-01-01/api-2.json +++ b/models/apis/es/2015-01-01/api-2.json @@ -24,6 +24,21 @@ {"shape":"InternalException"} ] }, + "CancelElasticsearchServiceSoftwareUpdate":{ + "name":"CancelElasticsearchServiceSoftwareUpdate", + "http":{ + "method":"POST", + "requestUri":"/2015-01-01/es/serviceSoftwareUpdate/cancel" + }, + "input":{"shape":"CancelElasticsearchServiceSoftwareUpdateRequest"}, + "output":{"shape":"CancelElasticsearchServiceSoftwareUpdateResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "CreateElasticsearchDomain":{ "name":"CreateElasticsearchDomain", "http":{ @@ -295,6 +310,21 @@ {"shape":"InternalException"} ] }, + "StartElasticsearchServiceSoftwareUpdate":{ + "name":"StartElasticsearchServiceSoftwareUpdate", + "http":{ + "method":"POST", + "requestUri":"/2015-01-01/es/serviceSoftwareUpdate/start" + }, + "input":{"shape":"StartElasticsearchServiceSoftwareUpdateRequest"}, + "output":{"shape":"StartElasticsearchServiceSoftwareUpdateResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "UpdateElasticsearchDomainConfig":{ "name":"UpdateElasticsearchDomainConfig", "http":{ @@ -389,6 +419,19 @@ "exception":true }, "Boolean":{"type":"boolean"}, + "CancelElasticsearchServiceSoftwareUpdateRequest":{ + "type":"structure", + "required":["DomainName"], + "members":{ + "DomainName":{"shape":"DomainName"} + } + }, + "CancelElasticsearchServiceSoftwareUpdateResponse":{ + "type":"structure", + "members":{ + "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"} + } + }, "CloudWatchLogsLogGroupArn":{"type":"string"}, "CognitoOptions":{ "type":"structure", @@ -462,6 +505,17 @@ "DomainStatus":{"shape":"ElasticsearchDomainStatus"} } }, + "DeploymentCloseDateTimeStamp":{"type":"timestamp"}, + "DeploymentStatus":{ + "type":"string", + "enum":[ + "PENDING_UPDATE", + "IN_PROGRESS", + "COMPLETED", + "NOT_ELIGIBLE", + "ELIGIBLE" + ] + }, "DescribeElasticsearchDomainConfigRequest":{ "type":"structure", "required":["DomainName"], @@ -760,7 +814,8 @@ "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptions"}, "NodeToNodeEncryptionOptions":{"shape":"NodeToNodeEncryptionOptions"}, "AdvancedOptions":{"shape":"AdvancedOptions"}, - "LogPublishingOptions":{"shape":"LogPublishingOptions"} + "LogPublishingOptions":{"shape":"LogPublishingOptions"}, + "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"} } }, "ElasticsearchDomainStatusList":{ @@ -1219,6 +1274,18 @@ "max":2048, "min":20 }, + "ServiceSoftwareOptions":{ + "type":"structure", + "members":{ + "CurrentVersion":{"shape":"String"}, + "NewVersion":{"shape":"String"}, + "UpdateAvailable":{"shape":"Boolean"}, + "Cancellable":{"shape":"Boolean"}, + "UpdateStatus":{"shape":"DeploymentStatus"}, + "Description":{"shape":"String"}, + "AutomatedUpdateDate":{"shape":"DeploymentCloseDateTimeStamp"} + } + }, "ServiceUrl":{"type":"string"}, "SnapshotOptions":{ "type":"structure", @@ -1237,6 +1304,19 @@ "Status":{"shape":"OptionStatus"} } }, + "StartElasticsearchServiceSoftwareUpdateRequest":{ + "type":"structure", + "required":["DomainName"], + "members":{ + "DomainName":{"shape":"DomainName"} + } + }, + "StartElasticsearchServiceSoftwareUpdateResponse":{ + "type":"structure", + "members":{ + "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"} + } + }, "StartTimestamp":{"type":"timestamp"}, "StorageSubTypeName":{"type":"string"}, "StorageType":{ diff --git a/models/apis/es/2015-01-01/docs-2.json b/models/apis/es/2015-01-01/docs-2.json index 996c73770e6..3b49591948f 100644 --- a/models/apis/es/2015-01-01/docs-2.json +++ b/models/apis/es/2015-01-01/docs-2.json @@ -3,6 +3,7 @@ "service": "Amazon Elasticsearch Configuration Service

Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.

The endpoint for configuration service requests is region-specific: es.region.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see Regions and Endpoints.

", "operations": { "AddTags": "

Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.

", + "CancelElasticsearchServiceSoftwareUpdate": "

Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before the AutomatedUpdateDate and when the UpdateStatus is in the PENDING_UPDATE state.

", "CreateElasticsearchDomain": "

Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.

", "DeleteElasticsearchDomain": "

Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.

", "DeleteElasticsearchServiceRole": "

Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.

", @@ -21,6 +22,7 @@ "ListTags": "

Returns all tags for the given Elasticsearch domain.

", "PurchaseReservedElasticsearchInstanceOffering": "

Allows you to purchase reserved Elasticsearch instances.

", "RemoveTags": "

Removes the specified set of tags from the specified Elasticsearch domain.

", + "StartElasticsearchServiceSoftwareUpdate": "

Schedules a service software update for an Amazon ES domain.

", "UpdateElasticsearchDomainConfig": "

Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.

", "UpgradeElasticsearchDomain": "

Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch version.

" }, @@ -92,10 +94,22 @@ "LogPublishingOption$Enabled": "

Specifies whether given log publishing option is enabled or not.

", "NodeToNodeEncryptionOptions$Enabled": "

Specify true to enable node-to-node encryption.

", "OptionStatus$PendingDeletion": "

Indicates whether the Elasticsearch domain is being deleted.

", + "ServiceSoftwareOptions$UpdateAvailable": "

True if you are able to update you service software version. False if you are not able to update your service software version.

", + "ServiceSoftwareOptions$Cancellable": "

True if you are able to cancel your service software version update. False if you are not able to cancel your service software version.

", "UpgradeElasticsearchDomainRequest$PerformCheckOnly": "

This flag, when set to True, indicates that an Upgrade Eligibility Check needs to be performed. This will not actually perform the Upgrade.

", "UpgradeElasticsearchDomainResponse$PerformCheckOnly": "

This flag, when set to True, indicates that an Upgrade Eligibility Check needs to be performed. This will not actually perform the Upgrade.

" } }, + "CancelElasticsearchServiceSoftwareUpdateRequest": { + "base": "

Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate operation. Specifies the name of the Elasticsearch domain that you wish to cancel a service software update on.

", + "refs": { + } + }, + "CancelElasticsearchServiceSoftwareUpdateResponse": { + "base": "

The result of a CancelElasticsearchServiceSoftwareUpdate operation. Contains the status of the update.

", + "refs": { + } + }, "CloudWatchLogsLogGroupArn": { "base": "

ARN of the Cloudwatch log group to which log needs to be published.

", "refs": { @@ -149,6 +163,18 @@ "refs": { } }, + "DeploymentCloseDateTimeStamp": { + "base": null, + "refs": { + "ServiceSoftwareOptions$AutomatedUpdateDate": "

Timestamp, in Epoch time, until which you can manually request a service software update. After this date, we automatically update your service software.

" + } + }, + "DeploymentStatus": { + "base": null, + "refs": { + "ServiceSoftwareOptions$UpdateStatus": "

The status of your service software update. This field can take the following values: ELIGIBLE, PENDING_UPDATE, IN_PROGRESS, COMPLETED, and NOT_ELIGIBLE.

" + } + }, "DescribeElasticsearchDomainConfigRequest": { "base": "

Container for the parameters to the DescribeElasticsearchDomainConfig operation. Specifies the domain name for which you want configuration information.

", "refs": { @@ -235,6 +261,7 @@ "DomainName": { "base": "

The name of an Elasticsearch domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

", "refs": { + "CancelElasticsearchServiceSoftwareUpdateRequest$DomainName": "

The name of the domain that you want to stop the latest service software update on.

", "CreateElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain that you are creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

", "DeleteElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain that you want to permanently delete.

", "DescribeElasticsearchDomainConfigRequest$DomainName": "

The Elasticsearch domain that you want to get information about.

", @@ -247,6 +274,7 @@ "GetUpgradeHistoryRequest$DomainName": null, "GetUpgradeStatusRequest$DomainName": null, "ListElasticsearchInstanceTypesRequest$DomainName": "

DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are querying for list of available Elasticsearch instance types when modifying existing domain.

", + "StartElasticsearchServiceSoftwareUpdateRequest$DomainName": "

The name of the domain that you want to update to the latest service software.

", "UpdateElasticsearchDomainConfigRequest$DomainName": "

The name of the Elasticsearch domain that you are updating.

", "UpgradeElasticsearchDomainRequest$DomainName": null, "UpgradeElasticsearchDomainResponse$DomainName": null @@ -770,6 +798,14 @@ "CognitoOptions$RoleArn": "

Specifies the role ARN that provides Elasticsearch permissions for accessing Cognito resources.

" } }, + "ServiceSoftwareOptions": { + "base": "

The current options of an Elasticsearch domain service software options.

", + "refs": { + "CancelElasticsearchServiceSoftwareUpdateResponse$ServiceSoftwareOptions": "

The current status of the Elasticsearch service software update.

", + "ElasticsearchDomainStatus$ServiceSoftwareOptions": "

The current status of the Elasticsearch domain's service software.

", + "StartElasticsearchServiceSoftwareUpdateResponse$ServiceSoftwareOptions": "

The current status of the Elasticsearch service software update.

" + } + }, "ServiceUrl": { "base": "

The endpoint to which service requests are submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.es.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.es.amazonaws.com.

", "refs": { @@ -792,6 +828,16 @@ "ElasticsearchDomainConfig$SnapshotOptions": "

Specifies the SnapshotOptions for the Elasticsearch domain.

" } }, + "StartElasticsearchServiceSoftwareUpdateRequest": { + "base": "

Container for the parameters to the StartElasticsearchServiceSoftwareUpdate operation. Specifies the name of the Elasticsearch domain that you wish to schedule a service software update on.

", + "refs": { + } + }, + "StartElasticsearchServiceSoftwareUpdateResponse": { + "base": "

The result of a StartElasticsearchServiceSoftwareUpdate operation. Contains the status of the update.

", + "refs": { + } + }, "StartTimestamp": { "base": null, "refs": { @@ -847,6 +893,9 @@ "ReservedElasticsearchInstance$CurrencyCode": "

The currency code for the reserved Elasticsearch instance offering.

", "ReservedElasticsearchInstance$State": "

The state of the reserved Elasticsearch instance.

", "ReservedElasticsearchInstanceOffering$CurrencyCode": "

The currency code for the reserved Elasticsearch instance offering.

", + "ServiceSoftwareOptions$CurrentVersion": "

The current service software version that is present on the domain.

", + "ServiceSoftwareOptions$NewVersion": "

The new service software version if one is available.

", + "ServiceSoftwareOptions$Description": "

The description of the UpdateStatus.

", "StringList$member": null, "VPCDerivedInfo$VPCId": "

The VPC Id for the Elasticsearch domain. Exists only if the domain was created with VPCOptions.

" } diff --git a/models/apis/transcribe/2017-10-26/api-2.json b/models/apis/transcribe/2017-10-26/api-2.json index 273c5f74909..531dfc6fc69 100644 --- a/models/apis/transcribe/2017-10-26/api-2.json +++ b/models/apis/transcribe/2017-10-26/api-2.json @@ -28,6 +28,19 @@ {"shape":"ConflictException"} ] }, + "DeleteTranscriptionJob":{ + "name":"DeleteTranscriptionJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTranscriptionJobRequest"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"BadRequestException"}, + {"shape":"InternalFailureException"} + ] + }, "DeleteVocabulary":{ "name":"DeleteVocabulary", "http":{ @@ -172,6 +185,13 @@ } }, "DateTime":{"type":"timestamp"}, + "DeleteTranscriptionJobRequest":{ + "type":"structure", + "required":["TranscriptionJobName"], + "members":{ + "TranscriptionJobName":{"shape":"TranscriptionJobName"} + } + }, "DeleteVocabularyRequest":{ "type":"structure", "required":["VocabularyName"], diff --git a/models/apis/transcribe/2017-10-26/docs-2.json b/models/apis/transcribe/2017-10-26/docs-2.json index c75fb568172..a9275564c87 100644 --- a/models/apis/transcribe/2017-10-26/docs-2.json +++ b/models/apis/transcribe/2017-10-26/docs-2.json @@ -3,6 +3,7 @@ "service": "

Operations and objects for transcribing speech to text.

", "operations": { "CreateVocabulary": "

Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.

", + "DeleteTranscriptionJob": "

Deletes a previously submitted transcription job as wella s any other generated results such as the transcription, models, and so on.

", "DeleteVocabulary": "

Deletes a vocabulary from Amazon Transcribe.

", "GetTranscriptionJob": "

Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished and you can find the results at the location specified in the TranscriptionFileUri field.

", "GetVocabulary": "

Gets information about a vocabulary.

", @@ -13,7 +14,7 @@ }, "shapes": { "BadRequestException": { - "base": "

Your request didn't pass one or more validation tests. For example, a name already exists when creating a resource or a name may not exist when getting a transcription job or custom vocabulary. See the exception Message field for more information.

", + "base": "

Your request didn't pass one or more validation tests. For example, a name may not exist when getting a transcription job or custom vocabulary. See the exception Message field for more information.

", "refs": { } }, @@ -52,6 +53,11 @@ "VocabularyInfo$LastModifiedTime": "

The date and time that the vocabulary was last modified.

" } }, + "DeleteTranscriptionJobRequest": { + "base": null, + "refs": { + } + }, "DeleteVocabularyRequest": { "base": null, "refs": { @@ -246,6 +252,7 @@ "TranscriptionJobName": { "base": null, "refs": { + "DeleteTranscriptionJobRequest$TranscriptionJobName": "

The name of the transcription job to be deleted.

", "GetTranscriptionJobRequest$TranscriptionJobName": "

The name of the job.

", "ListTranscriptionJobsRequest$JobNameContains": "

When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.

", "StartTranscriptionJobRequest$TranscriptionJobName": "

The name of the job. You can't use the strings \".\" or \"..\" in the job name. The name must be unique within an AWS account.

", diff --git a/service/comprehend/api.go b/service/comprehend/api.go index f52ab348f24..87c9c1ac0e3 100644 --- a/service/comprehend/api.go +++ b/service/comprehend/api.go @@ -7286,6 +7286,18 @@ const ( // LanguageCodeEs is a LanguageCode enum value LanguageCodeEs = "es" + + // LanguageCodeFr is a LanguageCode enum value + LanguageCodeFr = "fr" + + // LanguageCodeDe is a LanguageCode enum value + LanguageCodeDe = "de" + + // LanguageCodeIt is a LanguageCode enum value + LanguageCodeIt = "it" + + // LanguageCodePt is a LanguageCode enum value + LanguageCodePt = "pt" ) const ( @@ -7358,4 +7370,19 @@ const ( const ( // SyntaxLanguageCodeEn is a SyntaxLanguageCode enum value SyntaxLanguageCodeEn = "en" + + // SyntaxLanguageCodeEs is a SyntaxLanguageCode enum value + SyntaxLanguageCodeEs = "es" + + // SyntaxLanguageCodeFr is a SyntaxLanguageCode enum value + SyntaxLanguageCodeFr = "fr" + + // SyntaxLanguageCodeDe is a SyntaxLanguageCode enum value + SyntaxLanguageCodeDe = "de" + + // SyntaxLanguageCodeIt is a SyntaxLanguageCode enum value + SyntaxLanguageCodeIt = "it" + + // SyntaxLanguageCodePt is a SyntaxLanguageCode enum value + SyntaxLanguageCodePt = "pt" ) diff --git a/service/elasticsearchservice/api.go b/service/elasticsearchservice/api.go index aab3400a93a..c4915fbd8be 100644 --- a/service/elasticsearchservice/api.go +++ b/service/elasticsearchservice/api.go @@ -106,6 +106,97 @@ func (c *ElasticsearchService) AddTagsWithContext(ctx aws.Context, input *AddTag return out, req.Send() } +const opCancelElasticsearchServiceSoftwareUpdate = "CancelElasticsearchServiceSoftwareUpdate" + +// CancelElasticsearchServiceSoftwareUpdateRequest generates a "aws/request.Request" representing the +// client's request for the CancelElasticsearchServiceSoftwareUpdate 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 CancelElasticsearchServiceSoftwareUpdate for more information on using the CancelElasticsearchServiceSoftwareUpdate +// 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 CancelElasticsearchServiceSoftwareUpdateRequest method. +// req, resp := client.CancelElasticsearchServiceSoftwareUpdateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdateRequest(input *CancelElasticsearchServiceSoftwareUpdateInput) (req *request.Request, output *CancelElasticsearchServiceSoftwareUpdateOutput) { + op := &request.Operation{ + Name: opCancelElasticsearchServiceSoftwareUpdate, + HTTPMethod: "POST", + HTTPPath: "/2015-01-01/es/serviceSoftwareUpdate/cancel", + } + + if input == nil { + input = &CancelElasticsearchServiceSoftwareUpdateInput{} + } + + output = &CancelElasticsearchServiceSoftwareUpdateOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelElasticsearchServiceSoftwareUpdate API operation for Amazon Elasticsearch Service. +// +// Cancels a scheduled service software update for an Amazon ES domain. You +// can only perform this operation before the AutomatedUpdateDate and when the +// UpdateStatus is in the PENDING_UPDATE state. +// +// 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 Amazon Elasticsearch Service's +// API operation CancelElasticsearchServiceSoftwareUpdate for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +func (c *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdate(input *CancelElasticsearchServiceSoftwareUpdateInput) (*CancelElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.CancelElasticsearchServiceSoftwareUpdateRequest(input) + return out, req.Send() +} + +// CancelElasticsearchServiceSoftwareUpdateWithContext is the same as CancelElasticsearchServiceSoftwareUpdate with the addition of +// the ability to pass a context and additional request options. +// +// See CancelElasticsearchServiceSoftwareUpdate 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 *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdateWithContext(ctx aws.Context, input *CancelElasticsearchServiceSoftwareUpdateInput, opts ...request.Option) (*CancelElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.CancelElasticsearchServiceSoftwareUpdateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateElasticsearchDomain = "CreateElasticsearchDomain" // CreateElasticsearchDomainRequest generates a "aws/request.Request" representing the @@ -2032,6 +2123,95 @@ func (c *ElasticsearchService) RemoveTagsWithContext(ctx aws.Context, input *Rem return out, req.Send() } +const opStartElasticsearchServiceSoftwareUpdate = "StartElasticsearchServiceSoftwareUpdate" + +// StartElasticsearchServiceSoftwareUpdateRequest generates a "aws/request.Request" representing the +// client's request for the StartElasticsearchServiceSoftwareUpdate 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 StartElasticsearchServiceSoftwareUpdate for more information on using the StartElasticsearchServiceSoftwareUpdate +// 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 StartElasticsearchServiceSoftwareUpdateRequest method. +// req, resp := client.StartElasticsearchServiceSoftwareUpdateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *ElasticsearchService) StartElasticsearchServiceSoftwareUpdateRequest(input *StartElasticsearchServiceSoftwareUpdateInput) (req *request.Request, output *StartElasticsearchServiceSoftwareUpdateOutput) { + op := &request.Operation{ + Name: opStartElasticsearchServiceSoftwareUpdate, + HTTPMethod: "POST", + HTTPPath: "/2015-01-01/es/serviceSoftwareUpdate/start", + } + + if input == nil { + input = &StartElasticsearchServiceSoftwareUpdateInput{} + } + + output = &StartElasticsearchServiceSoftwareUpdateOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartElasticsearchServiceSoftwareUpdate API operation for Amazon Elasticsearch Service. +// +// Schedules a service software update for an Amazon ES domain. +// +// 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 Amazon Elasticsearch Service's +// API operation StartElasticsearchServiceSoftwareUpdate for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBaseException "BaseException" +// An error occurred while processing the request. +// +// * ErrCodeInternalException "InternalException" +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ErrCodeValidationException "ValidationException" +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +func (c *ElasticsearchService) StartElasticsearchServiceSoftwareUpdate(input *StartElasticsearchServiceSoftwareUpdateInput) (*StartElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.StartElasticsearchServiceSoftwareUpdateRequest(input) + return out, req.Send() +} + +// StartElasticsearchServiceSoftwareUpdateWithContext is the same as StartElasticsearchServiceSoftwareUpdate with the addition of +// the ability to pass a context and additional request options. +// +// See StartElasticsearchServiceSoftwareUpdate 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 *ElasticsearchService) StartElasticsearchServiceSoftwareUpdateWithContext(ctx aws.Context, input *StartElasticsearchServiceSoftwareUpdateInput, opts ...request.Option) (*StartElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.StartElasticsearchServiceSoftwareUpdateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateElasticsearchDomainConfig = "UpdateElasticsearchDomainConfig" // UpdateElasticsearchDomainConfigRequest generates a "aws/request.Request" representing the @@ -2435,6 +2615,76 @@ func (s *AdvancedOptionsStatus) SetStatus(v *OptionStatus) *AdvancedOptionsStatu return s } +// Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate +// operation. Specifies the name of the Elasticsearch domain that you wish to +// cancel a service software update on. +type CancelElasticsearchServiceSoftwareUpdateInput struct { + _ struct{} `type:"structure"` + + // The name of the domain that you want to stop the latest service software + // update on. + // + // DomainName is a required field + DomainName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelElasticsearchServiceSoftwareUpdateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelElasticsearchServiceSoftwareUpdateInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *CancelElasticsearchServiceSoftwareUpdateInput) SetDomainName(v string) *CancelElasticsearchServiceSoftwareUpdateInput { + s.DomainName = &v + return s +} + +// The result of a CancelElasticsearchServiceSoftwareUpdate operation. Contains +// the status of the update. +type CancelElasticsearchServiceSoftwareUpdateOutput struct { + _ struct{} `type:"structure"` + + // The current status of the Elasticsearch service software update. + ServiceSoftwareOptions *ServiceSoftwareOptions `type:"structure"` +} + +// String returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateOutput) GoString() string { + return s.String() +} + +// SetServiceSoftwareOptions sets the ServiceSoftwareOptions field's value. +func (s *CancelElasticsearchServiceSoftwareUpdateOutput) SetServiceSoftwareOptions(v *ServiceSoftwareOptions) *CancelElasticsearchServiceSoftwareUpdateOutput { + s.ServiceSoftwareOptions = v + return s +} + // Options to specify the Cognito user and identity pools for Kibana authentication. // For more information, see Amazon Cognito Authentication for Kibana (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html). type CognitoOptions struct { @@ -3746,6 +3996,9 @@ type ElasticsearchDomainStatus struct { // active. Processing *bool `type:"boolean"` + // The current status of the Elasticsearch domain's service software. + ServiceSoftwareOptions *ServiceSoftwareOptions `type:"structure"` + // Specifies the status of the SnapshotOptions SnapshotOptions *SnapshotOptions `type:"structure"` @@ -3870,6 +4123,12 @@ func (s *ElasticsearchDomainStatus) SetProcessing(v bool) *ElasticsearchDomainSt return s } +// SetServiceSoftwareOptions sets the ServiceSoftwareOptions field's value. +func (s *ElasticsearchDomainStatus) SetServiceSoftwareOptions(v *ServiceSoftwareOptions) *ElasticsearchDomainStatus { + s.ServiceSoftwareOptions = v + return s +} + // SetSnapshotOptions sets the SnapshotOptions field's value. func (s *ElasticsearchDomainStatus) SetSnapshotOptions(v *SnapshotOptions) *ElasticsearchDomainStatus { s.SnapshotOptions = v @@ -5303,6 +5562,88 @@ func (s *ReservedElasticsearchInstanceOffering) SetUsagePrice(v float64) *Reserv return s } +// The current options of an Elasticsearch domain service software options. +type ServiceSoftwareOptions struct { + _ struct{} `type:"structure"` + + // Timestamp, in Epoch time, until which you can manually request a service + // software update. After this date, we automatically update your service software. + AutomatedUpdateDate *time.Time `type:"timestamp"` + + // True if you are able to cancel your service software version update. False + // if you are not able to cancel your service software version. + Cancellable *bool `type:"boolean"` + + // The current service software version that is present on the domain. + CurrentVersion *string `type:"string"` + + // The description of the UpdateStatus. + Description *string `type:"string"` + + // The new service software version if one is available. + NewVersion *string `type:"string"` + + // True if you are able to update you service software version. False if you + // are not able to update your service software version. + UpdateAvailable *bool `type:"boolean"` + + // The status of your service software update. This field can take the following + // values: ELIGIBLE, PENDING_UPDATE, IN_PROGRESS, COMPLETED, and NOT_ELIGIBLE. + UpdateStatus *string `type:"string" enum:"DeploymentStatus"` +} + +// String returns the string representation +func (s ServiceSoftwareOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceSoftwareOptions) GoString() string { + return s.String() +} + +// SetAutomatedUpdateDate sets the AutomatedUpdateDate field's value. +func (s *ServiceSoftwareOptions) SetAutomatedUpdateDate(v time.Time) *ServiceSoftwareOptions { + s.AutomatedUpdateDate = &v + return s +} + +// SetCancellable sets the Cancellable field's value. +func (s *ServiceSoftwareOptions) SetCancellable(v bool) *ServiceSoftwareOptions { + s.Cancellable = &v + return s +} + +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *ServiceSoftwareOptions) SetCurrentVersion(v string) *ServiceSoftwareOptions { + s.CurrentVersion = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ServiceSoftwareOptions) SetDescription(v string) *ServiceSoftwareOptions { + s.Description = &v + return s +} + +// SetNewVersion sets the NewVersion field's value. +func (s *ServiceSoftwareOptions) SetNewVersion(v string) *ServiceSoftwareOptions { + s.NewVersion = &v + return s +} + +// SetUpdateAvailable sets the UpdateAvailable field's value. +func (s *ServiceSoftwareOptions) SetUpdateAvailable(v bool) *ServiceSoftwareOptions { + s.UpdateAvailable = &v + return s +} + +// SetUpdateStatus sets the UpdateStatus field's value. +func (s *ServiceSoftwareOptions) SetUpdateStatus(v string) *ServiceSoftwareOptions { + s.UpdateStatus = &v + return s +} + // Specifies the time, in UTC format, when the service takes a daily automated // snapshot of the specified Elasticsearch domain. Default value is 0 hours. type SnapshotOptions struct { @@ -5366,6 +5707,75 @@ func (s *SnapshotOptionsStatus) SetStatus(v *OptionStatus) *SnapshotOptionsStatu return s } +// Container for the parameters to the StartElasticsearchServiceSoftwareUpdate +// operation. Specifies the name of the Elasticsearch domain that you wish to +// schedule a service software update on. +type StartElasticsearchServiceSoftwareUpdateInput struct { + _ struct{} `type:"structure"` + + // The name of the domain that you want to update to the latest service software. + // + // DomainName is a required field + DomainName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartElasticsearchServiceSoftwareUpdateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartElasticsearchServiceSoftwareUpdateInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *StartElasticsearchServiceSoftwareUpdateInput) SetDomainName(v string) *StartElasticsearchServiceSoftwareUpdateInput { + s.DomainName = &v + return s +} + +// The result of a StartElasticsearchServiceSoftwareUpdate operation. Contains +// the status of the update. +type StartElasticsearchServiceSoftwareUpdateOutput struct { + _ struct{} `type:"structure"` + + // The current status of the Elasticsearch service software update. + ServiceSoftwareOptions *ServiceSoftwareOptions `type:"structure"` +} + +// String returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateOutput) GoString() string { + return s.String() +} + +// SetServiceSoftwareOptions sets the ServiceSoftwareOptions field's value. +func (s *StartElasticsearchServiceSoftwareUpdateOutput) SetServiceSoftwareOptions(v *ServiceSoftwareOptions) *StartElasticsearchServiceSoftwareUpdateOutput { + s.ServiceSoftwareOptions = v + return s +} + // StorageTypes represents the list of storage related types and their attributes // that are available for given InstanceType. type StorageType struct { @@ -6032,6 +6442,23 @@ func (s *VPCOptions) SetSubnetIds(v []*string) *VPCOptions { return s } +const ( + // DeploymentStatusPendingUpdate is a DeploymentStatus enum value + DeploymentStatusPendingUpdate = "PENDING_UPDATE" + + // DeploymentStatusInProgress is a DeploymentStatus enum value + DeploymentStatusInProgress = "IN_PROGRESS" + + // DeploymentStatusCompleted is a DeploymentStatus enum value + DeploymentStatusCompleted = "COMPLETED" + + // DeploymentStatusNotEligible is a DeploymentStatus enum value + DeploymentStatusNotEligible = "NOT_ELIGIBLE" + + // DeploymentStatusEligible is a DeploymentStatus enum value + DeploymentStatusEligible = "ELIGIBLE" +) + const ( // ESPartitionInstanceTypeM3MediumElasticsearch is a ESPartitionInstanceType enum value ESPartitionInstanceTypeM3MediumElasticsearch = "m3.medium.elasticsearch" diff --git a/service/elasticsearchservice/elasticsearchserviceiface/interface.go b/service/elasticsearchservice/elasticsearchserviceiface/interface.go index a30f9e10007..4d082c2867e 100644 --- a/service/elasticsearchservice/elasticsearchserviceiface/interface.go +++ b/service/elasticsearchservice/elasticsearchserviceiface/interface.go @@ -64,6 +64,10 @@ type ElasticsearchServiceAPI interface { AddTagsWithContext(aws.Context, *elasticsearchservice.AddTagsInput, ...request.Option) (*elasticsearchservice.AddTagsOutput, error) AddTagsRequest(*elasticsearchservice.AddTagsInput) (*request.Request, *elasticsearchservice.AddTagsOutput) + CancelElasticsearchServiceSoftwareUpdate(*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateInput) (*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateOutput, error) + CancelElasticsearchServiceSoftwareUpdateWithContext(aws.Context, *elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateInput, ...request.Option) (*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateOutput, error) + CancelElasticsearchServiceSoftwareUpdateRequest(*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateInput) (*request.Request, *elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateOutput) + CreateElasticsearchDomain(*elasticsearchservice.CreateElasticsearchDomainInput) (*elasticsearchservice.CreateElasticsearchDomainOutput, error) CreateElasticsearchDomainWithContext(aws.Context, *elasticsearchservice.CreateElasticsearchDomainInput, ...request.Option) (*elasticsearchservice.CreateElasticsearchDomainOutput, error) CreateElasticsearchDomainRequest(*elasticsearchservice.CreateElasticsearchDomainInput) (*request.Request, *elasticsearchservice.CreateElasticsearchDomainOutput) @@ -151,6 +155,10 @@ type ElasticsearchServiceAPI interface { RemoveTagsWithContext(aws.Context, *elasticsearchservice.RemoveTagsInput, ...request.Option) (*elasticsearchservice.RemoveTagsOutput, error) RemoveTagsRequest(*elasticsearchservice.RemoveTagsInput) (*request.Request, *elasticsearchservice.RemoveTagsOutput) + StartElasticsearchServiceSoftwareUpdate(*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateInput) (*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateOutput, error) + StartElasticsearchServiceSoftwareUpdateWithContext(aws.Context, *elasticsearchservice.StartElasticsearchServiceSoftwareUpdateInput, ...request.Option) (*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateOutput, error) + StartElasticsearchServiceSoftwareUpdateRequest(*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateInput) (*request.Request, *elasticsearchservice.StartElasticsearchServiceSoftwareUpdateOutput) + UpdateElasticsearchDomainConfig(*elasticsearchservice.UpdateElasticsearchDomainConfigInput) (*elasticsearchservice.UpdateElasticsearchDomainConfigOutput, error) UpdateElasticsearchDomainConfigWithContext(aws.Context, *elasticsearchservice.UpdateElasticsearchDomainConfigInput, ...request.Option) (*elasticsearchservice.UpdateElasticsearchDomainConfigOutput, error) UpdateElasticsearchDomainConfigRequest(*elasticsearchservice.UpdateElasticsearchDomainConfigInput) (*request.Request, *elasticsearchservice.UpdateElasticsearchDomainConfigOutput) diff --git a/service/transcribeservice/api.go b/service/transcribeservice/api.go index d1786d553f5..25a59d51166 100644 --- a/service/transcribeservice/api.go +++ b/service/transcribeservice/api.go @@ -69,9 +69,8 @@ func (c *TranscribeService) CreateVocabularyRequest(input *CreateVocabularyInput // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeLimitExceededException "LimitExceededException" // Either you have sent too many requests or your input file is too long. Wait @@ -111,6 +110,98 @@ func (c *TranscribeService) CreateVocabularyWithContext(ctx aws.Context, input * return out, req.Send() } +const opDeleteTranscriptionJob = "DeleteTranscriptionJob" + +// DeleteTranscriptionJobRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTranscriptionJob 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 DeleteTranscriptionJob for more information on using the DeleteTranscriptionJob +// 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 DeleteTranscriptionJobRequest method. +// req, resp := client.DeleteTranscriptionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob +func (c *TranscribeService) DeleteTranscriptionJobRequest(input *DeleteTranscriptionJobInput) (req *request.Request, output *DeleteTranscriptionJobOutput) { + op := &request.Operation{ + Name: opDeleteTranscriptionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTranscriptionJobInput{} + } + + output = &DeleteTranscriptionJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteTranscriptionJob API operation for Amazon Transcribe Service. +// +// Deletes a previously submitted transcription job as wella s any other generated +// results such as the transcription, models, and so on. +// +// 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 Amazon Transcribe Service's +// API operation DeleteTranscriptionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// Either you have sent too many requests or your input file is too long. Wait +// before you resend your request, or use a smaller file and resend the request. +// +// * ErrCodeBadRequestException "BadRequestException" +// Your request didn't pass one or more validation tests. For example, a name +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// There was an internal error. Check the error message and try your request +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob +func (c *TranscribeService) DeleteTranscriptionJob(input *DeleteTranscriptionJobInput) (*DeleteTranscriptionJobOutput, error) { + req, out := c.DeleteTranscriptionJobRequest(input) + return out, req.Send() +} + +// DeleteTranscriptionJobWithContext is the same as DeleteTranscriptionJob with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTranscriptionJob 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 *TranscribeService) DeleteTranscriptionJobWithContext(ctx aws.Context, input *DeleteTranscriptionJobInput, opts ...request.Option) (*DeleteTranscriptionJobOutput, error) { + req, out := c.DeleteTranscriptionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteVocabulary = "DeleteVocabulary" // DeleteVocabularyRequest generates a "aws/request.Request" representing the @@ -177,9 +268,8 @@ func (c *TranscribeService) DeleteVocabularyRequest(input *DeleteVocabularyInput // // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeInternalFailureException "InternalFailureException" // There was an internal error. Check the error message and try your request @@ -266,9 +356,8 @@ func (c *TranscribeService) GetTranscriptionJobRequest(input *GetTranscriptionJo // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeLimitExceededException "LimitExceededException" // Either you have sent too many requests or your input file is too long. Wait @@ -372,9 +461,8 @@ func (c *TranscribeService) GetVocabularyRequest(input *GetVocabularyInput) (req // // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary func (c *TranscribeService) GetVocabulary(input *GetVocabularyInput) (*GetVocabularyOutput, error) { @@ -460,9 +548,8 @@ func (c *TranscribeService) ListTranscriptionJobsRequest(input *ListTranscriptio // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeLimitExceededException "LimitExceededException" // Either you have sent too many requests or your input file is too long. Wait @@ -607,9 +694,8 @@ func (c *TranscribeService) ListVocabulariesRequest(input *ListVocabulariesInput // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeLimitExceededException "LimitExceededException" // Either you have sent too many requests or your input file is too long. Wait @@ -747,9 +833,8 @@ func (c *TranscribeService) StartTranscriptionJobRequest(input *StartTranscripti // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeLimitExceededException "LimitExceededException" // Either you have sent too many requests or your input file is too long. Wait @@ -847,9 +932,8 @@ func (c *TranscribeService) UpdateVocabularyRequest(input *UpdateVocabularyInput // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field -// for more information. +// may not exist when getting a transcription job or custom vocabulary. See +// the exception Message field for more information. // // * ErrCodeLimitExceededException "LimitExceededException" // Either you have sent too many requests or your input file is too long. Wait @@ -1024,6 +1108,61 @@ func (s *CreateVocabularyOutput) SetVocabularyState(v string) *CreateVocabularyO return s } +type DeleteTranscriptionJobInput struct { + _ struct{} `type:"structure"` + + // The name of the transcription job to be deleted. + // + // TranscriptionJobName is a required field + TranscriptionJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTranscriptionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTranscriptionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTranscriptionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTranscriptionJobInput"} + if s.TranscriptionJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName")) + } + if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTranscriptionJobName sets the TranscriptionJobName field's value. +func (s *DeleteTranscriptionJobInput) SetTranscriptionJobName(v string) *DeleteTranscriptionJobInput { + s.TranscriptionJobName = &v + return s +} + +type DeleteTranscriptionJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTranscriptionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTranscriptionJobOutput) GoString() string { + return s.String() +} + type DeleteVocabularyInput struct { _ struct{} `type:"structure"` diff --git a/service/transcribeservice/errors.go b/service/transcribeservice/errors.go index c656e360950..1b825f84fbc 100644 --- a/service/transcribeservice/errors.go +++ b/service/transcribeservice/errors.go @@ -8,9 +8,8 @@ const ( // "BadRequestException". // // Your request didn't pass one or more validation tests. For example, a name - // already exists when creating a resource or a name may not exist when getting - // a transcription job or custom vocabulary. See the exception Message field - // for more information. + // may not exist when getting a transcription job or custom vocabulary. See + // the exception Message field for more information. ErrCodeBadRequestException = "BadRequestException" // ErrCodeConflictException for service response error code diff --git a/service/transcribeservice/transcribeserviceiface/interface.go b/service/transcribeservice/transcribeserviceiface/interface.go index 320acba838f..1680394d011 100644 --- a/service/transcribeservice/transcribeserviceiface/interface.go +++ b/service/transcribeservice/transcribeserviceiface/interface.go @@ -64,6 +64,10 @@ type TranscribeServiceAPI interface { CreateVocabularyWithContext(aws.Context, *transcribeservice.CreateVocabularyInput, ...request.Option) (*transcribeservice.CreateVocabularyOutput, error) CreateVocabularyRequest(*transcribeservice.CreateVocabularyInput) (*request.Request, *transcribeservice.CreateVocabularyOutput) + DeleteTranscriptionJob(*transcribeservice.DeleteTranscriptionJobInput) (*transcribeservice.DeleteTranscriptionJobOutput, error) + DeleteTranscriptionJobWithContext(aws.Context, *transcribeservice.DeleteTranscriptionJobInput, ...request.Option) (*transcribeservice.DeleteTranscriptionJobOutput, error) + DeleteTranscriptionJobRequest(*transcribeservice.DeleteTranscriptionJobInput) (*request.Request, *transcribeservice.DeleteTranscriptionJobOutput) + DeleteVocabulary(*transcribeservice.DeleteVocabularyInput) (*transcribeservice.DeleteVocabularyOutput, error) DeleteVocabularyWithContext(aws.Context, *transcribeservice.DeleteVocabularyInput, ...request.Option) (*transcribeservice.DeleteVocabularyOutput, error) DeleteVocabularyRequest(*transcribeservice.DeleteVocabularyInput) (*request.Request, *transcribeservice.DeleteVocabularyOutput)