Skip to content

Commit 97e532b

Browse files
author
AWS
committed
Amazon Translate Update: This release enables customers to access control rights on Translate resources like Parallel Data and Custom Terminology using Tag Based Authorization.
1 parent f1579a8 commit 97e532b

File tree

2 files changed

+150
-3
lines changed

2 files changed

+150
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Translate",
4+
"contributor": "",
5+
"description": "This release enables customers to access control rights on Translate resources like Parallel Data and Custom Terminology using Tag Based Authorization."
6+
}

services/translate/src/main/resources/codegen-resources/service-2.json

Lines changed: 144 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
{"shape":"InvalidRequestException"},
2727
{"shape":"LimitExceededException"},
2828
{"shape":"TooManyRequestsException"},
29+
{"shape":"TooManyTagsException"},
2930
{"shape":"ConflictException"},
31+
{"shape":"ConcurrentModificationException"},
3032
{"shape":"InternalServerException"}
3133
],
3234
"documentation":"<p>Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples that show how you want segments of text to be translated. By adding parallel data, you can influence the style, tone, and word choice in your translation output.</p>"
@@ -121,6 +123,8 @@
121123
{"shape":"InvalidParameterValueException"},
122124
{"shape":"LimitExceededException"},
123125
{"shape":"TooManyRequestsException"},
126+
{"shape":"TooManyTagsException"},
127+
{"shape":"ConcurrentModificationException"},
124128
{"shape":"InternalServerException"}
125129
],
126130
"documentation":"<p>Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.</p> <p>If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.</p>"
@@ -156,6 +160,20 @@
156160
],
157161
"documentation":"<p>Provides a list of your parallel data resources in Amazon Translate.</p>"
158162
},
163+
"ListTagsForResource":{
164+
"name":"ListTagsForResource",
165+
"http":{
166+
"method":"POST",
167+
"requestUri":"/"
168+
},
169+
"input":{"shape":"ListTagsForResourceRequest"},
170+
"output":{"shape":"ListTagsForResourceResponse"},
171+
"errors":[
172+
{"shape":"InvalidParameterValueException"},
173+
{"shape":"ResourceNotFoundException"},
174+
{"shape":"InternalServerException"}
175+
]
176+
},
159177
"ListTerminologies":{
160178
"name":"ListTerminologies",
161179
"http":{
@@ -220,6 +238,22 @@
220238
],
221239
"documentation":"<p>Stops an asynchronous batch translation job that is in progress.</p> <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it is put into the <code>COMPLETED</code> state. Otherwise, the job is put into the <code>STOPPED</code> state.</p> <p>Asynchronous batch translation jobs are started with the <a>StartTextTranslationJob</a> operation. You can use the <a>DescribeTextTranslationJob</a> or <a>ListTextTranslationJobs</a> operations to get a batch translation job's <code>JobId</code>.</p>"
222240
},
241+
"TagResource":{
242+
"name":"TagResource",
243+
"http":{
244+
"method":"POST",
245+
"requestUri":"/"
246+
},
247+
"input":{"shape":"TagResourceRequest"},
248+
"output":{"shape":"TagResourceResponse"},
249+
"errors":[
250+
{"shape":"InvalidParameterValueException"},
251+
{"shape":"ConcurrentModificationException"},
252+
{"shape":"ResourceNotFoundException"},
253+
{"shape":"TooManyTagsException"},
254+
{"shape":"InternalServerException"}
255+
]
256+
},
223257
"TranslateText":{
224258
"name":"TranslateText",
225259
"http":{
@@ -240,6 +274,21 @@
240274
],
241275
"documentation":"<p>Translates input text from the source language to the target language. For a list of available languages and language codes, see <a>what-is-languages</a>.</p>"
242276
},
277+
"UntagResource":{
278+
"name":"UntagResource",
279+
"http":{
280+
"method":"POST",
281+
"requestUri":"/"
282+
},
283+
"input":{"shape":"UntagResourceRequest"},
284+
"output":{"shape":"UntagResourceResponse"},
285+
"errors":[
286+
{"shape":"InvalidParameterValueException"},
287+
{"shape":"ConcurrentModificationException"},
288+
{"shape":"ResourceNotFoundException"},
289+
{"shape":"InternalServerException"}
290+
]
291+
},
243292
"UpdateParallelData":{
244293
"name":"UpdateParallelData",
245294
"http":{
@@ -338,7 +387,8 @@
338387
"shape":"ClientTokenString",
339388
"documentation":"<p>A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.</p>",
340389
"idempotencyToken":true
341-
}
390+
},
391+
"Tags":{"shape":"TagList"}
342392
}
343393
},
344394
"CreateParallelDataResponse":{
@@ -575,7 +625,8 @@
575625
"EncryptionKey":{
576626
"shape":"EncryptionKey",
577627
"documentation":"<p>The encryption key for the custom terminology being imported.</p>"
578-
}
628+
},
629+
"Tags":{"shape":"TagList"}
579630
}
580631
},
581632
"ImportTerminologyResponse":{
@@ -784,6 +835,19 @@
784835
}
785836
}
786837
},
838+
"ListTagsForResourceRequest":{
839+
"type":"structure",
840+
"required":["ResourceArn"],
841+
"members":{
842+
"ResourceArn":{"shape":"ResourceArn"}
843+
}
844+
},
845+
"ListTagsForResourceResponse":{
846+
"type":"structure",
847+
"members":{
848+
"Tags":{"shape":"TagList"}
849+
}
850+
},
787851
"ListTerminologiesRequest":{
788852
"type":"structure",
789853
"members":{
@@ -1010,6 +1074,11 @@
10101074
"type":"string",
10111075
"enum":["MASK"]
10121076
},
1077+
"ResourceArn":{
1078+
"type":"string",
1079+
"max":512,
1080+
"min":1
1081+
},
10131082
"ResourceName":{
10141083
"type":"string",
10151084
"max":256,
@@ -1137,10 +1206,58 @@
11371206
"max":10000,
11381207
"pattern":"[\\P{M}\\p{M}]{0,10000}"
11391208
},
1209+
"Tag":{
1210+
"type":"structure",
1211+
"required":[
1212+
"Key",
1213+
"Value"
1214+
],
1215+
"members":{
1216+
"Key":{"shape":"TagKey"},
1217+
"Value":{"shape":"TagValue"}
1218+
}
1219+
},
1220+
"TagKey":{
1221+
"type":"string",
1222+
"max":128,
1223+
"min":1
1224+
},
1225+
"TagKeyList":{
1226+
"type":"list",
1227+
"member":{"shape":"TagKey"},
1228+
"max":200,
1229+
"min":0
1230+
},
1231+
"TagList":{
1232+
"type":"list",
1233+
"member":{"shape":"Tag"},
1234+
"max":200,
1235+
"min":0
1236+
},
1237+
"TagResourceRequest":{
1238+
"type":"structure",
1239+
"required":[
1240+
"ResourceArn",
1241+
"Tags"
1242+
],
1243+
"members":{
1244+
"ResourceArn":{"shape":"ResourceArn"},
1245+
"Tags":{"shape":"TagList"}
1246+
}
1247+
},
1248+
"TagResourceResponse":{
1249+
"type":"structure",
1250+
"members":{
1251+
}
1252+
},
1253+
"TagValue":{
1254+
"type":"string",
1255+
"max":256,
1256+
"min":0
1257+
},
11401258
"TargetLanguageCodeStringList":{
11411259
"type":"list",
11421260
"member":{"shape":"LanguageCodeString"},
1143-
"max":1,
11441261
"min":1
11451262
},
11461263
"Term":{
@@ -1394,6 +1511,14 @@
13941511
"documentation":"<p> You have made too many requests within a short period of time. Wait for a short time and then try your request again.</p>",
13951512
"exception":true
13961513
},
1514+
"TooManyTagsException":{
1515+
"type":"structure",
1516+
"members":{
1517+
"message":{"shape":"String"},
1518+
"ResourceArn":{"shape":"ResourceArn"}
1519+
},
1520+
"exception":true
1521+
},
13971522
"TranslateTextRequest":{
13981523
"type":"structure",
13991524
"required":[
@@ -1497,6 +1622,22 @@
14971622
"documentation":"<p>Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see <a>how-to-error-msg</a>. </p>",
14981623
"exception":true
14991624
},
1625+
"UntagResourceRequest":{
1626+
"type":"structure",
1627+
"required":[
1628+
"ResourceArn",
1629+
"TagKeys"
1630+
],
1631+
"members":{
1632+
"ResourceArn":{"shape":"ResourceArn"},
1633+
"TagKeys":{"shape":"TagKeyList"}
1634+
}
1635+
},
1636+
"UntagResourceResponse":{
1637+
"type":"structure",
1638+
"members":{
1639+
}
1640+
},
15001641
"UpdateParallelDataRequest":{
15011642
"type":"structure",
15021643
"required":[

0 commit comments

Comments
 (0)