Skip to content

Commit e8da451

Browse files
Update generated code (#1852)
* update generated code * fix psalm --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 4718c47 commit e8da451

File tree

58 files changed

+606
-606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

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

psalm.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@
315315
<code><![CDATA[list<ChallengeNameType::*>]]></code>
316316
</MoreSpecificReturnType>
317317
</file>
318+
<file src="src/Service/CognitoIdentityProvider/src/Result/AdminInitiateAuthResponse.php">
319+
<LessSpecificReturnStatement>
320+
<code><![CDATA[$items]]></code>
321+
</LessSpecificReturnStatement>
322+
<MoreSpecificReturnType>
323+
<code><![CDATA[list<ChallengeNameType::*>]]></code>
324+
</MoreSpecificReturnType>
325+
</file>
318326
<file src="src/Service/Kms/src/Result/GetPublicKeyResponse.php">
319327
<LessSpecificReturnStatement>
320328
<code><![CDATA[$items]]></code>

src/Service/CognitoIdentityProvider/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: Added the capacity to return available challenges in admin authentication and to set version 3 of the pre token generation event for M2M ATC.
8+
59
## 1.11.0
610

711
### Added

src/Service/CognitoIdentityProvider/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.11-dev"
31+
"dev-master": "1.12-dev"
3232
}
3333
}
3434
}

src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php

Lines changed: 98 additions & 136 deletions
Large diffs are not rendered by default.

src/Service/CognitoIdentityProvider/src/Input/AdminAddUserToGroupRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ final class AdminAddUserToGroupRequest extends Input
1919
private $userPoolId;
2020

2121
/**
22-
* The username of the user that you want to query or modify. The value of this parameter is typically your user's
23-
* username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this
24-
* value must be the `sub` of a local user or the username of a user from a third-party IdP.
22+
* The name of the user that you want to query or modify. The value of this parameter is typically your user's username,
23+
* but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value
24+
* must be the `sub` of a local user or the username of a user from a third-party IdP.
2525
*
2626
* @required
2727
*

src/Service/CognitoIdentityProvider/src/Input/AdminConfirmSignUpRequest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ final class AdminConfirmSignUpRequest extends Input
2222
private $userPoolId;
2323

2424
/**
25-
* The username of the user that you want to query or modify. The value of this parameter is typically your user's
26-
* username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this
27-
* value must be the `sub` of a local user or the username of a user from a third-party IdP.
25+
* The name of the user that you want to query or modify. The value of this parameter is typically your user's username,
26+
* but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value
27+
* must be the `sub` of a local user or the username of a user from a third-party IdP.
2828
*
2929
* @required
3030
*
@@ -41,8 +41,7 @@ final class AdminConfirmSignUpRequest extends Input
4141
* you assigned to the ClientMetadata parameter in your AdminConfirmSignUp request. In your function code in Lambda, you
4242
* can process the ClientMetadata value to enhance your workflow for your specific needs.
4343
*
44-
* For more information, see Customizing user pool Workflows with Lambda Triggers [^1] in the *Amazon Cognito Developer
45-
* Guide*.
44+
* For more information, see Using Lambda triggers [^1] in the *Amazon Cognito Developer Guide*.
4645
*
4746
* > When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
4847
* >

src/Service/CognitoIdentityProvider/src/Input/AdminCreateUserRequest.php

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,19 @@ final class AdminCreateUserRequest extends Input
5959
* email or SMS OTP. These attributes must be provided when passwordless options are the only available, or when you
6060
* don't submit a `TemporaryPassword`.
6161
*
62-
* In your call to `AdminCreateUser`, you can set the `email_verified` attribute to `True`, and you can set the
63-
* `phone_number_verified` attribute to `True`. You can also do this by calling AdminUpdateUserAttributes [^1].
62+
* In your `AdminCreateUser` request, you can set the `email_verified` and `phone_number_verified` attributes to `true`.
63+
* The following conditions apply:
6464
*
65-
* - **email**: The email address of the user to whom the message that contains the code and username will be sent.
66-
* Required if the `email_verified` attribute is set to `True`, or if `"EMAIL"` is specified in the
67-
* `DesiredDeliveryMediums` parameter.
68-
* - **phone_number**: The phone number of the user to whom the message that contains the code and username will be
69-
* sent. Required if the `phone_number_verified` attribute is set to `True`, or if `"SMS"` is specified in the
65+
* - `email`:
66+
*
67+
* The email address where you want the user to receive their confirmation code and username. You must provide a value
68+
* for the `email` when you want to set `email_verified` to `true`, or if you set `EMAIL` in the
7069
* `DesiredDeliveryMediums` parameter.
70+
* - `phone_number`:
7171
*
72-
* [^1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html
72+
* The phone number where you want the user to receive their confirmation code and username. You must provide a value
73+
* for the `email` when you want to set `phone_number` to `true`, or if you set `SMS` in the `DesiredDeliveryMediums`
74+
* parameter.
7375
*
7476
* @var AttributeType[]|null
7577
*/
@@ -79,10 +81,9 @@ final class AdminCreateUserRequest extends Input
7981
* Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value
8082
* pairs are for custom validation of information that you collect from your users but don't need to retain.
8183
*
82-
* Your Lambda function can analyze this additional data and act on it. Your function might perform external API
83-
* operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also
84-
* affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign
85-
* up from within your network.
84+
* Your Lambda function can analyze this additional data and act on it. Your function can automatically confirm and
85+
* verify select users or perform external API operations like logging user attributes and validation data to Amazon
86+
* CloudWatch Logs.
8687
*
8788
* For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger [^1].
8889
*
@@ -98,8 +99,7 @@ final class AdminCreateUserRequest extends Input
9899
*
99100
* The exception to the requirement for a password is when your user pool supports passwordless sign-in with email or
100101
* SMS OTPs. To create a user with no password, omit this parameter or submit a blank value. You can only create a
101-
* passwordless user when passwordless sign-in is available. See the SignInPolicyType [^1] property of CreateUserPool
102-
* [^2] and UpdateUserPool [^3].
102+
* passwordless user when passwordless sign-in is available.
103103
*
104104
* The temporary password is valid only once. To complete the Admin Create User flow, the user must enter the temporary
105105
* password in the sign-in page, along with a new password to be used in all future sign-ins.
@@ -111,10 +111,6 @@ final class AdminCreateUserRequest extends Input
111111
* reset the account after that time limit, you must call `AdminCreateUser` again and specify `RESEND` for the
112112
* `MessageAction` parameter.
113113
*
114-
* [^1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignInPolicyType.html
115-
* [^2]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html
116-
* [^3]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserPool.html
117-
*
118114
* @var string|null
119115
*/
120116
private $temporaryPassword;
@@ -161,8 +157,7 @@ final class AdminCreateUserRequest extends Input
161157
* AdminCreateUser request. In your function code in Lambda, you can process the `clientMetadata` value to enhance your
162158
* workflow for your specific needs.
163159
*
164-
* For more information, see Customizing user pool Workflows with Lambda Triggers [^1] in the *Amazon Cognito Developer
165-
* Guide*.
160+
* For more information, see Using Lambda triggers [^1] in the *Amazon Cognito Developer Guide*.
166161
*
167162
* > When you use the `ClientMetadata` parameter, note that Amazon Cognito won't do the following:
168163
* >

src/Service/CognitoIdentityProvider/src/Input/AdminDeleteUserRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ final class AdminDeleteUserRequest extends Input
2222
private $userPoolId;
2323

2424
/**
25-
* The username of the user that you want to query or modify. The value of this parameter is typically your user's
26-
* username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this
27-
* value must be the `sub` of a local user or the username of a user from a third-party IdP.
25+
* The name of the user that you want to query or modify. The value of this parameter is typically your user's username,
26+
* but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value
27+
* must be the `sub` of a local user or the username of a user from a third-party IdP.
2828
*
2929
* @required
3030
*

src/Service/CognitoIdentityProvider/src/Input/AdminDisableUserRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ final class AdminDisableUserRequest extends Input
2222
private $userPoolId;
2323

2424
/**
25-
* The username of the user that you want to query or modify. The value of this parameter is typically your user's
26-
* username, but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this
27-
* value must be the `sub` of a local user or the username of a user from a third-party IdP.
25+
* The name of the user that you want to query or modify. The value of this parameter is typically your user's username,
26+
* but it can be any of their alias attributes. If `username` isn't an alias attribute in your user pool, this value
27+
* must be the `sub` of a local user or the username of a user from a third-party IdP.
2828
*
2929
* @required
3030
*

0 commit comments

Comments
 (0)