File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "variables" : {
3- "${LATEST}" : " 3.238.2 "
3+ "${LATEST}" : " 3.238.4 "
44 },
55 "endpoints" : " https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json" ,
66 "services" : {
Original file line number Diff line number Diff line change 66
77- Added region ` me-central-1-fips `
88- Added ` me-central-1 ` region
9+ - Added ` eu-south-2-fips ` region
910
1011## 0.1.1
1112
Original file line number Diff line number Diff line change @@ -453,6 +453,13 @@ protected function getEndpointMetadata(?string $region): array
453453 'signService ' => 'kms ' ,
454454 'signVersions ' => ['v4 ' ],
455455 ];
456+ case 'eu-south-2-fips ' :
457+ return [
458+ 'endpoint ' => 'https://kms-fips.eu-south-2.amazonaws.com ' ,
459+ 'signRegion ' => 'eu-south-2 ' ,
460+ 'signService ' => 'kms ' ,
461+ 'signVersions ' => ['v4 ' ],
462+ ];
456463 case 'eu-west-1-fips ' :
457464 return [
458465 'endpoint ' => 'https://kms-fips.eu-west-1.amazonaws.com ' ,
Original file line number Diff line number Diff line change 33namespace AsyncAws \Translate \Enum ;
44
55/**
6- * You can optionally specify the desired level of formality for real-time translations to supported target languages.
7- * The formality setting controls the level of formal language usage (also known as register) in the translation output.
8- * You can set the value to informal or formal. If you don't specify a value for formality, or if the target language
6+ * You can optionally specify the desired level of formality for translations to supported target languages. The
7+ * formality setting controls the level of formal language usage (also known as register) in the translation output. You
8+ * can set the value to informal or formal. If you don't specify a value for formality, or if the target language
99 * doesn't support formality, the translation will ignore the formality setting.
10- * Note that asynchronous translation jobs don't support formality. If you provide a value for formality, the
11- * `StartTextTranslationJob` API throws an exception (InvalidRequestException).
12- * For target languages that support formality, see Supported Languages and Language Codes in the Amazon Translate
13- * Developer Guide.
10+ * If you specify multiple target languages for the job, translate ignores the formality setting for any unsupported
11+ * target language.
12+ * For a list of target languages that support formality, see Setting Formality in the Amazon Translate Developer Guide.
1413 *
1514 * @see https://en.wikipedia.org/wiki/Register_(sociolinguistics)
16- * @see https://docs.aws.amazon.com/translate/latest/dg/what-is .html
15+ * @see https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality .html
1716 */
1817final class Formality
1918{
Original file line number Diff line number Diff line change 88 * To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This
99 * 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.
1010 * Amazon Translate doesn't detect profanity in all of its supported languages. For languages that support profanity
11- * detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
11+ * detection, see Masking profanity in the Amazon Translate Developer Guide.
12+ * If you specify multiple target languages for the job, all the target languages must support profanity masking. If any
13+ * of the target languages don't support profanity masking, the translation job won't mask profanity for any target
14+ * language.
1215 *
13- * @see https://docs.aws.amazon.com/translate/latest/dg/what-is .html
16+ * @see https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity .html
1417 */
1518final class Profanity
1619{
Original file line number Diff line number Diff line change 77
88/**
99 * Amazon Translate does not support translation from the language of the source text into the requested target
10- * language. For more information, see how-to-error-msg.
10+ * language. For more information, see Error messages.
11+ *
12+ * @see https://docs.aws.amazon.com/translate/latest/dg/how-to-error-msg.html
1113 */
1214final class UnsupportedLanguagePairException extends ClientException
1315{
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ final class TranslateTextRequest extends Input
3131
3232 /**
3333 * The language code for the language of the source text. The language must be a language supported by Amazon Translate.
34- * For a list of language codes, see what-is- languages.
34+ * For a list of language codes, see Supported languages.
3535 *
36+ * @see https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
3637 * @required
3738 *
3839 * @var string|null
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ class TranslateClient extends AbstractApi
2323{
2424 /**
2525 * Translates input text from the source language to the target language. For a list of available languages and language
26- * codes, see what-is- languages.
26+ * codes, see Supported languages.
2727 *
28+ * @see https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html
2829 * @see https://docs.aws.amazon.com/translate/latest/dg/API_TranslateText.html
2930 * @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-translate-2017-07-01.html#translatetext
3031 *
Original file line number Diff line number Diff line change 1313final class TranslationSettings
1414{
1515 /**
16- * You can optionally specify the desired level of formality for real-time translations to supported target languages.
17- * The formality setting controls the level of formal language usage (also known as register) in the translation output.
18- * You can set the value to informal or formal. If you don't specify a value for formality, or if the target language
16+ * You can optionally specify the desired level of formality for translations to supported target languages. The
17+ * formality setting controls the level of formal language usage (also known as register) in the translation output. You
18+ * can set the value to informal or formal. If you don't specify a value for formality, or if the target language
1919 * doesn't support formality, the translation will ignore the formality setting.
2020 *
2121 * @see https://en.wikipedia.org/wiki/Register_(sociolinguistics)
You can’t perform that action at this time.
0 commit comments