Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b9d978

Browse files
Update generated code (async-aws#1314)
* update generated code * Update src/Service/Kms/CHANGELOG.md Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 9c40e05 commit 5b9d978

9 files changed

Lines changed: 31 additions & 17 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

src/Service/Kms/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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

src/Service/Kms/src/KmsClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

src/Service/Translate/src/Enum/Formality.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
namespace 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
*/
1817
final class Formality
1918
{

src/Service/Translate/src/Enum/Profanity.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
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
*/
1518
final class Profanity
1619
{

src/Service/Translate/src/Exception/UnsupportedLanguagePairException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
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
*/
1214
final class UnsupportedLanguagePairException extends ClientException
1315
{

src/Service/Translate/src/Input/TranslateTextRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/Service/Translate/src/TranslateClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*

src/Service/Translate/src/ValueObject/TranslationSettings.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
final 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)

0 commit comments

Comments
 (0)