Skip to content

Commit bce2927

Browse files
Update generated code (#1727)
update generated code
1 parent 5239940 commit bce2927

File tree

9 files changed

+67
-5
lines changed

9 files changed

+67
-5
lines changed

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.311.1"
3+
"${LATEST}": "3.314.0"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/SecretsManager/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Introducing RotationToken parameter for PutSecretValue API
8+
59
### Changed
610

711
- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers

src/Service/SecretsManager/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.2-dev"
32+
"dev-master": "2.3-dev"
3333
}
3434
}
3535
}

src/Service/SecretsManager/src/Input/CreateSecretRequest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ final class CreateSecretRequest extends Input
9191
*
9292
* This parameter is not available in the Secrets Manager console.
9393
*
94+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
95+
* If you create your own log entries, you must also avoid logging the information in this field.
96+
*
9497
* @var string|null
9598
*/
9699
private $secretBinary;
@@ -105,6 +108,9 @@ final class CreateSecretRequest extends Input
105108
* only the `SecretString` parameter. The Secrets Manager console stores the information as a JSON structure of
106109
* key/value pairs that a Lambda rotation function can parse.
107110
*
111+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
112+
* If you create your own log entries, you must also avoid logging the information in this field.
113+
*
108114
* @var string|null
109115
*/
110116
private $secretString;

src/Service/SecretsManager/src/Input/GetSecretValueRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
final class GetSecretValueRequest extends Input
1111
{
1212
/**
13-
* The ARN or name of the secret to retrieve.
13+
* The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN.
1414
*
1515
* For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a
1616
* partial ARN [^1].

src/Service/SecretsManager/src/Input/PutSecretValueRequest.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ final class PutSecretValueRequest extends Input
6363
*
6464
* You can't access this value from the Secrets Manager console.
6565
*
66+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
67+
* If you create your own log entries, you must also avoid logging the information in this field.
68+
*
6669
* @var string|null
6770
*/
6871
private $secretBinary;
@@ -74,6 +77,9 @@ final class PutSecretValueRequest extends Input
7477
*
7578
* We recommend you create the secret string as JSON key/value pairs, as shown in the example.
7679
*
80+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
81+
* If you create your own log entries, you must also avoid logging the information in this field.
82+
*
7783
* @var string|null
7884
*/
7985
private $secretString;
@@ -94,13 +100,29 @@ final class PutSecretValueRequest extends Input
94100
*/
95101
private $versionStages;
96102

103+
/**
104+
* A unique identifier that indicates the source of the request. For cross-account rotation (when you rotate a secret in
105+
* one account by using a Lambda rotation function in another account) and the Lambda rotation function assumes an IAM
106+
* role to call Secrets Manager, Secrets Manager validates the identity with the rotation token. For more information,
107+
* see How rotation works [^1].
108+
*
109+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
110+
* If you create your own log entries, you must also avoid logging the information in this field.
111+
*
112+
* [^1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html
113+
*
114+
* @var string|null
115+
*/
116+
private $rotationToken;
117+
97118
/**
98119
* @param array{
99120
* SecretId?: string,
100121
* ClientRequestToken?: null|string,
101122
* SecretBinary?: null|string,
102123
* SecretString?: null|string,
103124
* VersionStages?: null|string[],
125+
* RotationToken?: null|string,
104126
* '@region'?: string|null,
105127
* } $input
106128
*/
@@ -111,6 +133,7 @@ public function __construct(array $input = [])
111133
$this->secretBinary = $input['SecretBinary'] ?? null;
112134
$this->secretString = $input['SecretString'] ?? null;
113135
$this->versionStages = $input['VersionStages'] ?? null;
136+
$this->rotationToken = $input['RotationToken'] ?? null;
114137
parent::__construct($input);
115138
}
116139

@@ -121,6 +144,7 @@ public function __construct(array $input = [])
121144
* SecretBinary?: null|string,
122145
* SecretString?: null|string,
123146
* VersionStages?: null|string[],
147+
* RotationToken?: null|string,
124148
* '@region'?: string|null,
125149
* }|PutSecretValueRequest $input
126150
*/
@@ -134,6 +158,11 @@ public function getClientRequestToken(): ?string
134158
return $this->clientRequestToken;
135159
}
136160

161+
public function getRotationToken(): ?string
162+
{
163+
return $this->rotationToken;
164+
}
165+
137166
public function getSecretBinary(): ?string
138167
{
139168
return $this->secretBinary;
@@ -190,6 +219,13 @@ public function setClientRequestToken(?string $value): self
190219
return $this;
191220
}
192221

222+
public function setRotationToken(?string $value): self
223+
{
224+
$this->rotationToken = $value;
225+
226+
return $this;
227+
}
228+
193229
public function setSecretBinary(?string $value): self
194230
{
195231
$this->secretBinary = $value;
@@ -246,6 +282,9 @@ private function requestBody(): array
246282
$payload['VersionStages'][$index] = $listValue;
247283
}
248284
}
285+
if (null !== $v = $this->rotationToken) {
286+
$payload['RotationToken'] = $v;
287+
}
249288

250289
return $payload;
251290
}

src/Service/SecretsManager/src/Input/UpdateSecretRequest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ final class UpdateSecretRequest extends Input
8585
*
8686
* You can't access this parameter in the Secrets Manager console.
8787
*
88+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
89+
* If you create your own log entries, you must also avoid logging the information in this field.
90+
*
8891
* @var string|null
8992
*/
9093
private $secretBinary;
@@ -95,6 +98,9 @@ final class UpdateSecretRequest extends Input
9598
*
9699
* Either `SecretBinary` or `SecretString` must have a value, but not both.
97100
*
101+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
102+
* If you create your own log entries, you must also avoid logging the information in this field.
103+
*
98104
* @var string|null
99105
*/
100106
private $secretString;

src/Service/SecretsManager/src/Result/GetSecretValueResponse.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class GetSecretValueResponse extends Result
3636
* If the secret was created by using the Secrets Manager console, or if the secret value was originally provided as a
3737
* string, then this field is omitted. The secret value appears in `SecretString` instead.
3838
*
39+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
40+
* If you create your own log entries, you must also avoid logging the information in this field.
41+
*
3942
* @var string|null
4043
*/
4144
private $secretBinary;
@@ -47,6 +50,9 @@ class GetSecretValueResponse extends Result
4750
* If this secret was created by using the console, then Secrets Manager stores the information as a JSON structure of
4851
* key/value pairs.
4952
*
53+
* Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries.
54+
* If you create your own log entries, you must also avoid logging the information in this field.
55+
*
5056
* @var string|null
5157
*/
5258
private $secretString;

src/Service/SecretsManager/src/SecretsManagerClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ public function listSecrets($input = []): ListSecretsResponse
331331
* new ones.
332332
*
333333
* Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in
334-
* request parameters except `SecretBinary` or `SecretString` because it might be logged. For more information, see
335-
* Logging Secrets Manager events with CloudTrail [^1].
334+
* request parameters except `SecretBinary`, `SecretString`, or `RotationToken` because it might be logged. For more
335+
* information, see Logging Secrets Manager events with CloudTrail [^1].
336336
*
337337
* **Required permissions: **`secretsmanager:PutSecretValue`. For more information, see IAM policy actions for Secrets
338338
* Manager [^2] and Authentication and access control in Secrets Manager [^3].
@@ -350,6 +350,7 @@ public function listSecrets($input = []): ListSecretsResponse
350350
* SecretBinary?: null|string,
351351
* SecretString?: null|string,
352352
* VersionStages?: null|string[],
353+
* RotationToken?: null|string,
353354
* '@region'?: string|null,
354355
* }|PutSecretValueRequest $input
355356
*

0 commit comments

Comments
 (0)