Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
@@ -6,6 +6,7 @@
"jsonVersion":"1.1",
"protocol":"json",
"serviceFullName":"Amazon Transcribe Service",
"serviceId":"Transcribe",
"signatureVersion":"v4",
"signingName":"transcribe",
"targetPrefix":"Transcribe",
@@ -27,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":{
@@ -37,6 +51,7 @@
"errors":[
{"shape":"NotFoundException"},
{"shape":"LimitExceededException"},
{"shape":"BadRequestException"},
{"shape":"InternalFailureException"}
]
},
@@ -125,7 +140,8 @@
{"shape":"BadRequestException"},
{"shape":"LimitExceededException"},
{"shape":"InternalFailureException"},
{"shape":"NotFoundException"}
{"shape":"NotFoundException"},
{"shape":"ConflictException"}
]
}
},
@@ -149,13 +165,13 @@
"type":"structure",
"required":[
"VocabularyName",
"LanguageCode",
"Phrases"
"LanguageCode"
],
"members":{
"VocabularyName":{"shape":"VocabularyName"},
"LanguageCode":{"shape":"LanguageCode"},
"Phrases":{"shape":"Phrases"}
"Phrases":{"shape":"Phrases"},
"VocabularyFileUri":{"shape":"Uri"}
}
},
"CreateVocabularyResponse":{
@@ -169,6 +185,13 @@
}
},
"DateTime":{"type":"timestamp"},
"DeleteTranscriptionJobRequest":{
"type":"structure",
"required":["TranscriptionJobName"],
"members":{
"TranscriptionJobName":{"shape":"TranscriptionJobName"}
}
},
"DeleteVocabularyRequest":{
"type":"structure",
"required":["VocabularyName"],
@@ -220,7 +243,19 @@
"type":"string",
"enum":[
"en-US",
"es-US"
"es-US",
"en-AU",
"fr-CA",
"en-GB",
"de-DE",
"pt-BR",
"fr-FR",
"it-IT",
"ko-KR",
"es-ES",
"en-IN",
"hi-IN",
"ar-SA"
]
},
"LimitExceededException":{
@@ -305,6 +340,17 @@
},
"exception":true
},
"OutputBucketName":{
"type":"string",
"pattern":"[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"
},
"OutputLocationType":{
"type":"string",
"enum":[
"CUSTOMER_BUCKET",
"SERVICE_BUCKET"
]
},
"Phrase":{
"type":"string",
"max":256,
@@ -319,7 +365,8 @@
"members":{
"VocabularyName":{"shape":"VocabularyName"},
"ShowSpeakerLabels":{"shape":"Boolean"},
"MaxSpeakerLabels":{"shape":"MaxSpeakers"}
"MaxSpeakerLabels":{"shape":"MaxSpeakers"},
"ChannelIdentification":{"shape":"Boolean"}
}
},
"StartTranscriptionJobRequest":{
@@ -336,6 +383,7 @@
"MediaSampleRateHertz":{"shape":"MediaSampleRateHertz"},
"MediaFormat":{"shape":"MediaFormat"},
"Media":{"shape":"Media"},
"OutputBucketName":{"shape":"OutputBucketName"},
"Settings":{"shape":"Settings"}
}
},
@@ -394,20 +442,21 @@
"CompletionTime":{"shape":"DateTime"},
"LanguageCode":{"shape":"LanguageCode"},
"TranscriptionJobStatus":{"shape":"TranscriptionJobStatus"},
"FailureReason":{"shape":"FailureReason"}
"FailureReason":{"shape":"FailureReason"},
"OutputLocationType":{"shape":"OutputLocationType"}
}
},
"UpdateVocabularyRequest":{
"type":"structure",
"required":[
"VocabularyName",
"LanguageCode",
"Phrases"
"LanguageCode"
],
"members":{
"VocabularyName":{"shape":"VocabularyName"},
"LanguageCode":{"shape":"LanguageCode"},
"Phrases":{"shape":"Phrases"}
"Phrases":{"shape":"Phrases"},
"VocabularyFileUri":{"shape":"Uri"}
}
},
"UpdateVocabularyResponse":{
@@ -2,29 +2,31 @@
"version": "2.0",
"service": "<p>Operations and objects for transcribing speech to text.</p>",
"operations": {
"CreateVocabulary": "<p>Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.</p>",
"CreateVocabulary": "<p>Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file. </p>",
"DeleteTranscriptionJob": "<p>Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.</p>",
"DeleteVocabulary": "<p>Deletes a vocabulary from Amazon Transcribe. </p>",
"GetTranscriptionJob": "<p>Returns information about a transcription job. To see the status of the job, check the <code>TranscriptionJobStatus</code> field. If the status is <code>COMPLETED</code>, the job is finished and you can find the results at the location specified in the <code>TranscriptionFileUri</code> field.</p>",
"GetVocabulary": "<p>Gets information about a vocabulary.</p>",
"GetVocabulary": "<p>Gets information about a vocabulary. </p>",
"ListTranscriptionJobs": "<p>Lists transcription jobs with the specified status.</p>",
"ListVocabularies": "<p>Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.</p>",
"StartTranscriptionJob": "<p>Starts an asynchronous job to transcribe speech to text.</p>",
"UpdateVocabulary": "<p>Updates an existing vocabulary with new values.</p>"
"StartTranscriptionJob": "<p>Starts an asynchronous job to transcribe speech to text. </p>",
"UpdateVocabulary": "<p>Updates an existing vocabulary with new values. The <code>UpdateVocabulary</code> operation overwrites all of the existing information with the values that you provide in the request. </p>"
},
"shapes": {
"BadRequestException": {
"base": "<p>Your request didn't pass one or more validation tests. For example, a name already exists when createing a resource or a name may not exist when getting a transcription job or custom vocabulary. See the exception <code>Message</code> field for more information.</p>",
"base": "<p>Your request didn't pass one or more validation tests. For example, if the transcription you're trying to delete doesn't exist or if it is in a non-terminal state (for example, it's \"in progress\"). See the exception <code>Message</code> field for more information.</p>",
"refs": {
}
},
"Boolean": {
"base": null,
"refs": {
"Settings$ShowSpeakerLabels": "<p>Determines whether the transcription job should use speaker recognition to identify different speakers in the input audio. If you set the <code>ShowSpeakerLabels</code> field to true, you must also set the maximum number of speaker labels <code>MaxSpeakerLabels</code> field.</p>"
"Settings$ShowSpeakerLabels": "<p>Determines whether the transcription job uses speaker recognition to identify different speakers in the input audio. Speaker recognition labels individual speakers in the audio file. If you set the <code>ShowSpeakerLabels</code> field to true, you must also set the maximum number of speaker labels <code>MaxSpeakerLabels</code> field.</p> <p>You can't set both <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>",
"Settings$ChannelIdentification": "<p>Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription. </p> <p>Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.</p> <p>You can't set both <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>"
}
},
"ConflictException": {
"base": "<p>The <code>JobName</code> field is a duplicate of a previously entered job name. Resend your request with a different name.</p>",
"base": "<p>When you are using the <code>StartTranscriptionJob</code> operation, the <code>JobName</code> field is a duplicate of a previously entered job name. Resend your request with a different name.</p> <p>When you are using the <code>UpdateVocabulary</code> operation, there are two jobs running at the same time. Resend the second request later.</p>",
"refs": {
}
},
@@ -43,14 +45,19 @@
"refs": {
"CreateVocabularyResponse$LastModifiedTime": "<p>The date and time that the vocabulary was created.</p>",
"GetVocabularyResponse$LastModifiedTime": "<p>The date and time that the vocabulary was last modified.</p>",
"TranscriptionJob$CreationTime": "<p>Timestamp of the date and time that the job was created.</p>",
"TranscriptionJob$CompletionTime": "<p>Timestamp of the date and time that the job completed.</p>",
"TranscriptionJobSummary$CreationTime": "<p>Timestamp of the date and time that the job was created.</p>",
"TranscriptionJobSummary$CompletionTime": "<p>Timestamp of the date and time that the job completed.</p>",
"TranscriptionJob$CreationTime": "<p>A timestamp that shows when the job was created.</p>",
"TranscriptionJob$CompletionTime": "<p>A timestamp that shows when the job was completed.</p>",
"TranscriptionJobSummary$CreationTime": "<p>A timestamp that shows when the job was created.</p>",
"TranscriptionJobSummary$CompletionTime": "<p>A timestamp that shows when the job was completed.</p>",
"UpdateVocabularyResponse$LastModifiedTime": "<p>The date and time that the vocabulary was updated.</p>",
"VocabularyInfo$LastModifiedTime": "<p>The date and time that the vocabulary was last modified.</p>"
}
},
"DeleteTranscriptionJobRequest": {
"base": null,
"refs": {
}
},
"DeleteVocabularyRequest": {
"base": null,
"refs": {
@@ -62,8 +69,8 @@
"BadRequestException$Message": null,
"CreateVocabularyResponse$FailureReason": "<p>If the <code>VocabularyState</code> field is <code>FAILED</code>, this field contains information about why the job failed.</p>",
"GetVocabularyResponse$FailureReason": "<p>If the <code>VocabularyState</code> field is <code>FAILED</code>, this field contains information about why the job failed.</p>",
"TranscriptionJob$FailureReason": "<p>If the <code>TranscriptionJobStatus</code> field is <code>FAILED</code>, this field contains information about why the job failed.</p>",
"TranscriptionJobSummary$FailureReason": "<p>If the <code>TranscriptionJobStatus</code> field is <code>FAILED</code>, this field contains a description of the error.</p>"
"TranscriptionJob$FailureReason": "<p>If the <code>TranscriptionJobStatus</code> field is <code>FAILED</code>, this field contains information about why the job failed.</p> <p>The <code>FailureReason</code> field can contain one of the following values:</p> <ul> <li> <p> <code>Unsupported media format</code> - The media format specified in the <code>MediaFormat</code> field of the request isn't valid. See the description of the <code>MediaFormat</code> field for a list of valid values.</p> </li> <li> <p> <code>The media format provided does not match the detected media format</code> - The media format of the audio file doesn't match the format specified in the <code>MediaFormat</code> field in the request. Check the media format of your media file and make sure that the two values match.</p> </li> <li> <p> <code>Invalid sample rate for audio file</code> - The sample rate specified in the <code>MediaSampleRateHertz</code> of the request isn't valid. The sample rate must be between 8000 and 48000 Hertz.</p> </li> <li> <p> <code>The sample rate provided does not match the detected sample rate</code> - The sample rate in the audio file doesn't match the sample rate specified in the <code>MediaSampleRateHertz</code> field in the request. Check the sample rate of your media file and make sure that the two values match.</p> </li> <li> <p> <code>Invalid file size: file size too large</code> - The size of your audio file is larger than Amazon Transcribe can process. For more information, see <a href=\"https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits\">Limits</a> in the <i>Amazon Transcribe Developer Guide</i>.</p> </li> <li> <p> <code>Invalid number of channels: number of channels too large</code> - Your audio contains more channels than Amazon Transcribe is configured to process. To request additional channels, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits-amazon-transcribe\">Amazon Transcribe Limits</a> in the <i>Amazon Web Services General Reference</i>.</p> </li> </ul>",
"TranscriptionJobSummary$FailureReason": "<p>If the <code>TranscriptionJobStatus</code> field is <code>FAILED</code>, a description of the error.</p>"
}
},
"GetTranscriptionJobRequest": {
@@ -147,7 +154,7 @@
"base": "<p>Describes the input media file in a transcription request.</p>",
"refs": {
"StartTranscriptionJobRequest$Media": "<p>An object that describes the input media for a transcription job.</p>",
"TranscriptionJob$Media": "<p>An object that describes the input media for a transcription job.</p>"
"TranscriptionJob$Media": "<p>An object that describes the input media for the transcription job.</p>"
}
},
"MediaFormat": {
@@ -174,10 +181,22 @@
}
},
"NotFoundException": {
"base": "<p>We can't find the requested transcription job or custom vocabulary. Check the name and try your request again.</p>",
"base": "<p>We can't find the requested resource. Check the name and try your request again.</p>",
"refs": {
}
},
"OutputBucketName": {
"base": null,
"refs": {
"StartTranscriptionJobRequest$OutputBucketName": "<p>The location where the transcription is stored.</p> <p>If you set the <code>OutputBucketName</code>, Amazon Transcribe puts the transcription in the specified S3 bucket. When you call the <a>GetTranscriptionJob</a> operation, the operation returns this location in the <code>TranscriptFileUri</code> field. The S3 bucket must have permissions that allow Amazon Transcribe to put files in the bucket. For more information, see <a href=\"https://docs.aws.amazon.com/transcribe/latest/dg/access-control-managing-permissions.html#auth-role-iam-user\">Permissions Required for IAM User Roles</a>.</p> <p>Amazon Transcribe uses the default Amazon S3 key for server-side encryption of transcripts that are placed in your S3 bucket. You can't specify your own encryption key.</p> <p>If you don't set the <code>OutputBucketName</code>, Amazon Transcribe generates a pre-signed URL, a shareable URL that provides secure access to your transcription, and returns it in the <code>TranscriptFileUri</code> field. Use this URL to download the transcription.</p>"
}
},
"OutputLocationType": {
"base": null,
"refs": {
"TranscriptionJobSummary$OutputLocationType": "<p>Indicates the location of the output of the transcription job.</p> <p>If the value is <code>CUSTOMER_BUCKET</code> then the location is the S3 bucket specified in the <code>outputBucketName</code> field when the transcription job was started with the <code>StartTranscriptionJob</code> operation.</p> <p>If the value is <code>SERVICE_BUCKET</code> then the output is stored by Amazon Transcribe and can be retrieved using the URI in the <code>GetTranscriptionJob</code> response's <code>TranscriptFileUri</code> field.</p>"
}
},
"Phrase": {
"base": null,
"refs": {
@@ -195,7 +214,7 @@
"base": "<p>Provides optional settings for the <code>StartTranscriptionJob</code> operation.</p>",
"refs": {
"StartTranscriptionJobRequest$Settings": "<p>A <code>Settings</code> object that provides optional settings for a transcription job.</p>",
"TranscriptionJob$Settings": "<p>Optional settings for the transcription job.</p>"
"TranscriptionJob$Settings": "<p>Optional settings for the transcription job. Use these settings to turn on speaker recognition, to set the maximum number of speakers that should be identified and to specify a custom vocabulary to use when processing the transcription job.</p>"
}
},
"StartTranscriptionJobRequest": {
@@ -218,13 +237,13 @@
}
},
"Transcript": {
"base": "<p>Describes the output of a transcription job.</p>",
"base": "<p>Identifies the location of a transcription.</p>",
"refs": {
"TranscriptionJob$Transcript": "<p>An object that describes the output of the transcription job.</p>"
}
},
"TranscriptionJob": {
"base": "<p>Describes an asynchronous transcription job that was created with the <code>StartTranscriptionJob</code> operation.</p>",
"base": "<p>Describes an asynchronous transcription job that was created with the <code>StartTranscriptionJob</code> operation. </p>",
"refs": {
"GetTranscriptionJobResponse$TranscriptionJob": "<p>An object that contains the results of the transcription job.</p>",
"StartTranscriptionJobResponse$TranscriptionJob": "<p>An object containing details of the asynchronous transcription job.</p>"
@@ -233,17 +252,18 @@
"TranscriptionJobName": {
"base": null,
"refs": {
"DeleteTranscriptionJobRequest$TranscriptionJobName": "<p>The name of the transcription job to be deleted.</p>",
"GetTranscriptionJobRequest$TranscriptionJobName": "<p>The name of the job.</p>",
"ListTranscriptionJobsRequest$JobNameContains": "<p>When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.</p>",
"StartTranscriptionJobRequest$TranscriptionJobName": "<p>The name of the job. The name must be unique within an AWS account.</p>",
"TranscriptionJob$TranscriptionJobName": "<p>A name to identify the transcription job.</p>",
"TranscriptionJobSummary$TranscriptionJobName": "<p>The name assigned to the transcription job when it was created.</p>"
"StartTranscriptionJobRequest$TranscriptionJobName": "<p>The name of the job. Note that you can't use the strings \".\" or \"..\" by themselves as the job name. The name must also be unique within an AWS account.</p>",
"TranscriptionJob$TranscriptionJobName": "<p>The name of the transcription job.</p>",
"TranscriptionJobSummary$TranscriptionJobName": "<p>The name of the transcription job.</p>"
}
},
"TranscriptionJobStatus": {
"base": null,
"refs": {
"ListTranscriptionJobsRequest$Status": "<p>When specified, returns only transcription jobs with the specified status.</p>",
"ListTranscriptionJobsRequest$Status": "<p>When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation date, with the newest jobs returned first. If you dont specify a status, Amazon Transcribe returns all transcription jobs ordered by creation date. </p>",
"ListTranscriptionJobsResponse$Status": "<p>The requested status of the jobs returned.</p>",
"ListVocabulariesResponse$Status": "<p>The requested vocabulary state.</p>",
"TranscriptionJob$TranscriptionJobStatus": "<p>The status of the transcription job.</p>",
@@ -257,7 +277,7 @@
}
},
"TranscriptionJobSummary": {
"base": "<p>Provides a summary of information about a transcription job.</p>",
"base": "<p>Provides a summary of information about a transcription job. .</p>",
"refs": {
"TranscriptionJobSummaries$member": null
}
@@ -275,9 +295,11 @@
"Uri": {
"base": null,
"refs": {
"CreateVocabularyRequest$VocabularyFileUri": "<p>The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is </p> <p> <code> https://s3-&lt;aws-region&gt;.amazonaws.com/&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; </code> </p> <p>For example:</p> <p> <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code> </p> <p>For more information about S3 object names, see <a href=\"http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys\">Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.</p> <p>For more information about custom vocabularies, see <a href=\"http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary\">Custom Vocabularies</a>.</p>",
"GetVocabularyResponse$DownloadUri": "<p>The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The URI is available for a limited time.</p>",
"Media$MediaFileUri": "<p>The S3 location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:</p> <p> <code> https://&lt;aws-region&gt;.amazonaws.com/&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; </code> </p> <p>For example:</p> <p> <code>https://s3-us-east-1.amazonaws.com/examplebucket/example.mp4</code> </p> <p> <code>https://s3-us-east-1.amazonaws.com/examplebucket/mediadocs/example.mp4</code> </p> <p>For more information about S3 object names, see <a href=\"http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys\">Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.</p>",
"Transcript$TranscriptFileUri": "<p>The S3 location where the transcription result is stored. Use this URI to access the results of the transcription job. </p>"
"Media$MediaFileUri": "<p>The S3 location of the input media file. The URI must be in the same region as the API endpoint that you are calling. The general form is:</p> <p> <code> https://s3-&lt;aws-region&gt;.amazonaws.com/&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; </code> </p> <p>For example:</p> <p> <code>https://s3-us-east-1.amazonaws.com/examplebucket/example.mp4</code> </p> <p> <code>https://s3-us-east-1.amazonaws.com/examplebucket/mediadocs/example.mp4</code> </p> <p>For more information about S3 object names, see <a href=\"http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys\">Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.</p>",
"Transcript$TranscriptFileUri": "<p>The location where the transcription is stored.</p> <p>Use this URI to access the transcription. If you specified an S3 bucket in the <code>OutputBucketName</code> field when you created the job, this is the URI of that bucket. If you chose to store the transcription in Amazon Transcribe, this is a shareable URL that provides secure access to that location.</p>",
"UpdateVocabularyRequest$VocabularyFileUri": "<p>The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is </p> <p> <code> https://s3-&lt;aws-region&gt;.amazonaws.com/&lt;bucket-name&gt;/&lt;keyprefix&gt;/&lt;objectkey&gt; </code> </p> <p>For example:</p> <p> <code>https://s3-us-east-1.amazonaws.com/examplebucket/vocab.txt</code> </p> <p>For more information about S3 object names, see <a href=\"http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys\">Object Keys</a> in the <i>Amazon S3 Developer Guide</i>.</p> <p>For more information about custom vocabularies, see <a href=\"http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary\">Custom Vocabularies</a>.</p>"
}
},
"Vocabularies": {
@@ -287,7 +309,7 @@
}
},
"VocabularyInfo": {
"base": "<p>Provides information about a custom vocabulary.</p>",
"base": "<p>Provides information about a custom vocabulary. </p>",
"refs": {
"Vocabularies$member": null
}