aws-sdk 2.93.0 → 2.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.changes/2.94.0.json +32 -0
  2. package/.changes/2.95.0.json +17 -0
  3. package/.changes/2.96.0.json +12 -0
  4. package/.changes/2.97.0.json +22 -0
  5. package/CHANGELOG.md +24 -1
  6. package/README.md +1 -1
  7. package/apis/clouddirectory-2016-05-10.min.json +51 -32
  8. package/apis/codedeploy-2014-10-06.min.json +82 -29
  9. package/apis/cognito-idp-2016-04-18.min.json +477 -185
  10. package/apis/config-2014-11-12.min.json +43 -5
  11. package/apis/ec2-2016-11-15.min.json +1 -0
  12. package/apis/ec2-2016-11-15.waiters2.json +5 -0
  13. package/apis/elasticbeanstalk-2010-12-01.min.json +69 -63
  14. package/apis/elasticloadbalancingv2-2015-12-01.waiters2.json +36 -0
  15. package/apis/email-2010-12-01.examples.json +2 -0
  16. package/apis/email-2010-12-01.min.json +54 -45
  17. package/apis/email-2010-12-01.paginators.json +2 -2
  18. package/apis/pinpoint-2016-12-01.min.json +287 -142
  19. package/clients/clouddirectory.d.ts +20 -0
  20. package/clients/cloudsearchdomain.d.ts +2 -1
  21. package/clients/codebuild.d.ts +2 -2
  22. package/clients/codedeploy.d.ts +62 -8
  23. package/clients/cognitoidentityserviceprovider.d.ts +376 -12
  24. package/clients/configservice.d.ts +54 -6
  25. package/clients/ec2.d.ts +12 -8
  26. package/clients/elasticbeanstalk.d.ts +27 -10
  27. package/clients/elbv2.d.ts +16 -0
  28. package/clients/glacier.d.ts +2 -1
  29. package/clients/lambda.d.ts +2 -1
  30. package/clients/lexruntime.d.ts +2 -1
  31. package/clients/pinpoint.d.ts +154 -15
  32. package/clients/polly.d.ts +2 -1
  33. package/clients/rds.d.ts +68 -68
  34. package/clients/s3.d.ts +2 -1
  35. package/clients/ses.d.ts +25 -15
  36. package/dist/aws-sdk-core-react-native.js +868 -574
  37. package/dist/aws-sdk-react-native.js +887 -586
  38. package/dist/aws-sdk.js +798 -333
  39. package/dist/aws-sdk.min.js +43 -43
  40. package/lib/core.js +1 -1
  41. package/lib/credentials/credential_provider_chain.d.ts +4 -0
  42. package/lib/protocol/rest_json.js +8 -0
  43. package/lib/services/s3.js +8 -1
  44. package/lib/util.js +14 -1
  45. package/package.json +1 -1
  46. package/scripts/lib/ts-generator.js +51 -2
@@ -59,6 +59,14 @@ declare class CognitoIdentityServiceProvider extends Service {
59
59
  * Deletes the user attributes in a user pool as an administrator. Works on any user. Requires developer credentials.
60
60
  */
61
61
  adminDeleteUserAttributes(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.AdminDeleteUserAttributesResponse) => void): Request<CognitoIdentityServiceProvider.Types.AdminDeleteUserAttributesResponse, AWSError>;
62
+ /**
63
+ * Disables the user from signing in with the specified external (SAML or social) identity provider. If the user to disable is a Cognito User Pools native username + password user, they are not permitted to use their password to sign-in. If the user to disable is a linked external IdP user, any link between that user and an existing user is removed. The next time the external user (no longer attached to the previously linked DestinationUser) signs in, they must create a new user account. See AdminLinkProviderForUser. This action is enabled only for admin access and requires developer credentials. The ProviderName must match the value specified when creating an IdP for the pool. To disable a native username + password user, the ProviderName value must be Cognito and the ProviderAttributeName must be Cognito_Subject, with the ProviderAttributeValue being the name that is used in the user pool for the user. The ProviderAttributeName must always be Cognito_Subject for social identity providers. The ProviderAttributeValue must always be the exact subject that was used when the user was originally linked as a source user. For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign-in, the ProviderAttributeName and ProviderAttributeValue must be the same values that were used for the SourceUser when the identities were originally linked in the AdminLinkProviderForUser call. (If the linking was done with ProviderAttributeName set to Cognito_Subject, the same applies here). However, if the user has already signed in, the ProviderAttributeName must be Cognito_Subject and ProviderAttributeValue must be the subject of the SAML assertion.
64
+ */
65
+ adminDisableProviderForUser(params: CognitoIdentityServiceProvider.Types.AdminDisableProviderForUserRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.AdminDisableProviderForUserResponse) => void): Request<CognitoIdentityServiceProvider.Types.AdminDisableProviderForUserResponse, AWSError>;
66
+ /**
67
+ * Disables the user from signing in with the specified external (SAML or social) identity provider. If the user to disable is a Cognito User Pools native username + password user, they are not permitted to use their password to sign-in. If the user to disable is a linked external IdP user, any link between that user and an existing user is removed. The next time the external user (no longer attached to the previously linked DestinationUser) signs in, they must create a new user account. See AdminLinkProviderForUser. This action is enabled only for admin access and requires developer credentials. The ProviderName must match the value specified when creating an IdP for the pool. To disable a native username + password user, the ProviderName value must be Cognito and the ProviderAttributeName must be Cognito_Subject, with the ProviderAttributeValue being the name that is used in the user pool for the user. The ProviderAttributeName must always be Cognito_Subject for social identity providers. The ProviderAttributeValue must always be the exact subject that was used when the user was originally linked as a source user. For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign-in, the ProviderAttributeName and ProviderAttributeValue must be the same values that were used for the SourceUser when the identities were originally linked in the AdminLinkProviderForUser call. (If the linking was done with ProviderAttributeName set to Cognito_Subject, the same applies here). However, if the user has already signed in, the ProviderAttributeName must be Cognito_Subject and ProviderAttributeValue must be the subject of the SAML assertion.
68
+ */
69
+ adminDisableProviderForUser(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.AdminDisableProviderForUserResponse) => void): Request<CognitoIdentityServiceProvider.Types.AdminDisableProviderForUserResponse, AWSError>;
62
70
  /**
63
71
  * Disables the specified user as an administrator. Works on any user. Requires developer credentials.
64
72
  */
@@ -107,6 +115,14 @@ declare class CognitoIdentityServiceProvider extends Service {
107
115
  * Initiates the authentication flow, as an administrator. Requires developer credentials.
108
116
  */
109
117
  adminInitiateAuth(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.AdminInitiateAuthResponse) => void): Request<CognitoIdentityServiceProvider.Types.AdminInitiateAuthResponse, AWSError>;
118
+ /**
119
+ * Links an existing user account in a user pool (DestinationUser) to an identity from an external identity provider (SourceUser) based on a specified attribute name and value from the external identity provider. This allows you to create a link from the existing user account to an external federated user identity that has not yet been used to sign in, so that the federated user identity can be used to sign in as the existing user account. For example, if there is an existing user with a username and password, this API links that user to a federated user identity, so that when the federated user identity is used, the user signs in as the existing user account. Because this API allows a user with an external federated identity to sign in as an existing user in the user pool, it is critical that it only be used with external identity providers and provider attributes that have been trusted by the application owner. See also AdminDisableProviderForUser. This action is enabled only for admin access and requires developer credentials.
120
+ */
121
+ adminLinkProviderForUser(params: CognitoIdentityServiceProvider.Types.AdminLinkProviderForUserRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.AdminLinkProviderForUserResponse) => void): Request<CognitoIdentityServiceProvider.Types.AdminLinkProviderForUserResponse, AWSError>;
122
+ /**
123
+ * Links an existing user account in a user pool (DestinationUser) to an identity from an external identity provider (SourceUser) based on a specified attribute name and value from the external identity provider. This allows you to create a link from the existing user account to an external federated user identity that has not yet been used to sign in, so that the federated user identity can be used to sign in as the existing user account. For example, if there is an existing user with a username and password, this API links that user to a federated user identity, so that when the federated user identity is used, the user signs in as the existing user account. Because this API allows a user with an external federated identity to sign in as an existing user in the user pool, it is critical that it only be used with external identity providers and provider attributes that have been trusted by the application owner. See also AdminDisableProviderForUser. This action is enabled only for admin access and requires developer credentials.
124
+ */
125
+ adminLinkProviderForUser(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.AdminLinkProviderForUserResponse) => void): Request<CognitoIdentityServiceProvider.Types.AdminLinkProviderForUserResponse, AWSError>;
110
126
  /**
111
127
  * Lists devices, as an administrator. Requires developer credentials.
112
128
  */
@@ -227,6 +243,14 @@ declare class CognitoIdentityServiceProvider extends Service {
227
243
  * Creates an identity provider for a user pool.
228
244
  */
229
245
  createIdentityProvider(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.CreateIdentityProviderResponse) => void): Request<CognitoIdentityServiceProvider.Types.CreateIdentityProviderResponse, AWSError>;
246
+ /**
247
+ * Creates a new OAuth2.0 resource server and defines custom scopes in it.
248
+ */
249
+ createResourceServer(params: CognitoIdentityServiceProvider.Types.CreateResourceServerRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.CreateResourceServerResponse) => void): Request<CognitoIdentityServiceProvider.Types.CreateResourceServerResponse, AWSError>;
250
+ /**
251
+ * Creates a new OAuth2.0 resource server and defines custom scopes in it.
252
+ */
253
+ createResourceServer(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.CreateResourceServerResponse) => void): Request<CognitoIdentityServiceProvider.Types.CreateResourceServerResponse, AWSError>;
230
254
  /**
231
255
  * Creates the user import job.
232
256
  */
@@ -276,11 +300,19 @@ declare class CognitoIdentityServiceProvider extends Service {
276
300
  */
277
301
  deleteIdentityProvider(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
278
302
  /**
279
- * Allows a user to delete one's self.
303
+ * Deletes a resource server.
304
+ */
305
+ deleteResourceServer(params: CognitoIdentityServiceProvider.Types.DeleteResourceServerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
306
+ /**
307
+ * Deletes a resource server.
308
+ */
309
+ deleteResourceServer(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
310
+ /**
311
+ * Allows a user to delete himself or herself.
280
312
  */
281
313
  deleteUser(params: CognitoIdentityServiceProvider.Types.DeleteUserRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
282
314
  /**
283
- * Allows a user to delete one's self.
315
+ * Allows a user to delete himself or herself.
284
316
  */
285
317
  deleteUser(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
286
318
  /**
@@ -323,6 +355,14 @@ declare class CognitoIdentityServiceProvider extends Service {
323
355
  * Gets information about a specific identity provider.
324
356
  */
325
357
  describeIdentityProvider(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.DescribeIdentityProviderResponse) => void): Request<CognitoIdentityServiceProvider.Types.DescribeIdentityProviderResponse, AWSError>;
358
+ /**
359
+ * Describes a resource server.
360
+ */
361
+ describeResourceServer(params: CognitoIdentityServiceProvider.Types.DescribeResourceServerRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.DescribeResourceServerResponse) => void): Request<CognitoIdentityServiceProvider.Types.DescribeResourceServerResponse, AWSError>;
362
+ /**
363
+ * Describes a resource server.
364
+ */
365
+ describeResourceServer(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.DescribeResourceServerResponse) => void): Request<CognitoIdentityServiceProvider.Types.DescribeResourceServerResponse, AWSError>;
326
366
  /**
327
367
  * Describes the user import job.
328
368
  */
@@ -403,6 +443,14 @@ declare class CognitoIdentityServiceProvider extends Service {
403
443
  * Gets the specified identity provider.
404
444
  */
405
445
  getIdentityProviderByIdentifier(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.GetIdentityProviderByIdentifierResponse) => void): Request<CognitoIdentityServiceProvider.Types.GetIdentityProviderByIdentifierResponse, AWSError>;
446
+ /**
447
+ * Gets the UI Customization information for a particular app client's app UI, if there is something set. If nothing is set for the particular client, but there is an existing pool level customization (app clientId will be ALL), then that is returned. If nothing is present, then an empty shape is returned.
448
+ */
449
+ getUICustomization(params: CognitoIdentityServiceProvider.Types.GetUICustomizationRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.GetUICustomizationResponse) => void): Request<CognitoIdentityServiceProvider.Types.GetUICustomizationResponse, AWSError>;
450
+ /**
451
+ * Gets the UI Customization information for a particular app client's app UI, if there is something set. If nothing is set for the particular client, but there is an existing pool level customization (app clientId will be ALL), then that is returned. If nothing is present, then an empty shape is returned.
452
+ */
453
+ getUICustomization(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.GetUICustomizationResponse) => void): Request<CognitoIdentityServiceProvider.Types.GetUICustomizationResponse, AWSError>;
406
454
  /**
407
455
  * Gets the user attributes and metadata for a user.
408
456
  */
@@ -459,6 +507,14 @@ declare class CognitoIdentityServiceProvider extends Service {
459
507
  * Lists information about all identity providers for a user pool.
460
508
  */
461
509
  listIdentityProviders(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.ListIdentityProvidersResponse) => void): Request<CognitoIdentityServiceProvider.Types.ListIdentityProvidersResponse, AWSError>;
510
+ /**
511
+ * Lists the resource servers for a user pool.
512
+ */
513
+ listResourceServers(params: CognitoIdentityServiceProvider.Types.ListResourceServersRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.ListResourceServersResponse) => void): Request<CognitoIdentityServiceProvider.Types.ListResourceServersResponse, AWSError>;
514
+ /**
515
+ * Lists the resource servers for a user pool.
516
+ */
517
+ listResourceServers(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.ListResourceServersResponse) => void): Request<CognitoIdentityServiceProvider.Types.ListResourceServersResponse, AWSError>;
462
518
  /**
463
519
  * Lists the user import jobs.
464
520
  */
@@ -515,6 +571,14 @@ declare class CognitoIdentityServiceProvider extends Service {
515
571
  * Responds to the authentication challenge.
516
572
  */
517
573
  respondToAuthChallenge(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.RespondToAuthChallengeResponse) => void): Request<CognitoIdentityServiceProvider.Types.RespondToAuthChallengeResponse, AWSError>;
574
+ /**
575
+ * Sets the UI customization information for a user pool's built-in app UI. You can specify app UI customization settings for a single client (with a specific clientId) or for all clients (by setting the clientId to ALL). If you specify ALL, the default configuration will be used for every client that has no UI customization set previously. If you specify UI customization settings for a particular client, it will no longer fall back to the ALL configuration. To use this API, your user pool must have a domain associated with it. Otherwise, there is no place to host the app's pages, and the service will throw an error.
576
+ */
577
+ setUICustomization(params: CognitoIdentityServiceProvider.Types.SetUICustomizationRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.SetUICustomizationResponse) => void): Request<CognitoIdentityServiceProvider.Types.SetUICustomizationResponse, AWSError>;
578
+ /**
579
+ * Sets the UI customization information for a user pool's built-in app UI. You can specify app UI customization settings for a single client (with a specific clientId) or for all clients (by setting the clientId to ALL). If you specify ALL, the default configuration will be used for every client that has no UI customization set previously. If you specify UI customization settings for a particular client, it will no longer fall back to the ALL configuration. To use this API, your user pool must have a domain associated with it. Otherwise, there is no place to host the app's pages, and the service will throw an error.
580
+ */
581
+ setUICustomization(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.SetUICustomizationResponse) => void): Request<CognitoIdentityServiceProvider.Types.SetUICustomizationResponse, AWSError>;
518
582
  /**
519
583
  * Sets the user settings like multi-factor authentication (MFA). If MFA is to be removed for a particular attribute pass the attribute with code delivery as null. If null list is passed, all MFA options are removed.
520
584
  */
@@ -571,6 +635,14 @@ declare class CognitoIdentityServiceProvider extends Service {
571
635
  * Updates identity provider information for a user pool.
572
636
  */
573
637
  updateIdentityProvider(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.UpdateIdentityProviderResponse) => void): Request<CognitoIdentityServiceProvider.Types.UpdateIdentityProviderResponse, AWSError>;
638
+ /**
639
+ * Updates the name and scopes of resource server. All other fields are read-only.
640
+ */
641
+ updateResourceServer(params: CognitoIdentityServiceProvider.Types.UpdateResourceServerRequest, callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.UpdateResourceServerResponse) => void): Request<CognitoIdentityServiceProvider.Types.UpdateResourceServerResponse, AWSError>;
642
+ /**
643
+ * Updates the name and scopes of resource server. All other fields are read-only.
644
+ */
645
+ updateResourceServer(callback?: (err: AWSError, data: CognitoIdentityServiceProvider.Types.UpdateResourceServerResponse) => void): Request<CognitoIdentityServiceProvider.Types.UpdateResourceServerResponse, AWSError>;
574
646
  /**
575
647
  * Allows a user to update a specific attribute (one at a time).
576
648
  */
@@ -694,7 +766,7 @@ declare namespace CognitoIdentityServiceProvider {
694
766
  }
695
767
  export interface AdminCreateUserResponse {
696
768
  /**
697
- * The user returned in the request to create a new user.
769
+ * The newly created user.
698
770
  */
699
771
  User?: UserType;
700
772
  }
@@ -725,6 +797,18 @@ declare namespace CognitoIdentityServiceProvider {
725
797
  */
726
798
  Username: UsernameType;
727
799
  }
800
+ export interface AdminDisableProviderForUserRequest {
801
+ /**
802
+ * The user pool ID for the user pool.
803
+ */
804
+ UserPoolId: StringType;
805
+ /**
806
+ * The user to be disabled.
807
+ */
808
+ User: ProviderUserIdentifierType;
809
+ }
810
+ export interface AdminDisableProviderForUserResponse {
811
+ }
728
812
  export interface AdminDisableUserRequest {
729
813
  /**
730
814
  * The user pool ID for the user pool where you want to disable the user.
@@ -863,6 +947,22 @@ declare namespace CognitoIdentityServiceProvider {
863
947
  */
864
948
  AuthenticationResult?: AuthenticationResultType;
865
949
  }
950
+ export interface AdminLinkProviderForUserRequest {
951
+ /**
952
+ * The user pool ID for the user pool.
953
+ */
954
+ UserPoolId: StringType;
955
+ /**
956
+ * The existing user in the user pool to be linked to the external identity provider user account. Can be a native (Username + Password) Cognito User Pools user or a federated user (for example, a SAML or Facebook user). If the user doesn't exist, an exception is thrown. This is the user that is returned when the new user (with the linked identity provider attribute) signs in. The ProviderAttributeValue for the DestinationUser must match the username for the user in the user pool. The ProviderAttributeName will always be ignored.
957
+ */
958
+ DestinationUser: ProviderUserIdentifierType;
959
+ /**
960
+ * An external identity provider account for a user who does not currently exist yet in the user pool. This user must be a federated user (for example, a SAML or Facebook user), not another native user. If the SourceUser is a federated social identity provider user (Facebook, Google, or Login with Amazon), you must set the ProviderAttributeName to Cognito_Subject. For social identity providers, the ProviderName will be Facebook, Google, or LoginWithAmazon, and Cognito will automatically parse the Facebook, Google, and Login with Amazon tokens for id, sub, and user_id, respectively. The ProviderAttributeValue for the user must be the same value as the id, sub, or user_id value found in the social identity provider token. For SAML, the ProviderAttributeName can be any value that matches a claim in the SAML assertion. If you wish to link SAML users based on the subject of the SAML assertion, you should map the subject to a claim through the SAML identity provider and submit that claim name as the ProviderAttributeName. If you set ProviderAttributeName to Cognito_Subject, Cognito will automatically parse the default unique identifier found in the subject from the SAML token.
961
+ */
962
+ SourceUser: ProviderUserIdentifierType;
963
+ }
964
+ export interface AdminLinkProviderForUserResponse {
965
+ }
866
966
  export interface AdminListDevicesRequest {
867
967
  /**
868
968
  * The user pool ID.
@@ -1054,6 +1154,7 @@ declare namespace CognitoIdentityServiceProvider {
1054
1154
  export type ArnType = string;
1055
1155
  export type AttributeDataType = "String"|"Number"|"DateTime"|"Boolean"|string;
1056
1156
  export type AttributeListType = AttributeType[];
1157
+ export type AttributeMappingKeyType = string;
1057
1158
  export type AttributeMappingType = {[key: string]: StringType};
1058
1159
  export type AttributeNameListType = AttributeNameType[];
1059
1160
  export type AttributeNameType = string;
@@ -1097,6 +1198,8 @@ declare namespace CognitoIdentityServiceProvider {
1097
1198
  NewDeviceMetadata?: NewDeviceMetadataType;
1098
1199
  }
1099
1200
  export type BooleanType = boolean;
1201
+ export type CSSType = string;
1202
+ export type CSSVersionType = string;
1100
1203
  export type CallbackURLsListType = RedirectUrlType[];
1101
1204
  export type ChallengeNameType = "SMS_MFA"|"PASSWORD_VERIFIER"|"CUSTOM_CHALLENGE"|"DEVICE_SRP_AUTH"|"DEVICE_PASSWORD_VERIFIER"|"ADMIN_NO_SRP_AUTH"|"NEW_PASSWORD_REQUIRED"|string;
1102
1205
  export type ChallengeParametersType = {[key: string]: StringType};
@@ -1165,7 +1268,7 @@ declare namespace CognitoIdentityServiceProvider {
1165
1268
  }
1166
1269
  export interface ConfirmForgotPasswordRequest {
1167
1270
  /**
1168
- * The ID of the client associated with the user pool.
1271
+ * The app client ID of the app associated with the user pool.
1169
1272
  */
1170
1273
  ClientId: ClientIdType;
1171
1274
  /**
@@ -1189,7 +1292,7 @@ declare namespace CognitoIdentityServiceProvider {
1189
1292
  }
1190
1293
  export interface ConfirmSignUpRequest {
1191
1294
  /**
1192
- * The ID of the client associated with the user pool.
1295
+ * The ID of the app client associated with the user pool.
1193
1296
  */
1194
1297
  ClientId: ClientIdType;
1195
1298
  /**
@@ -1248,7 +1351,7 @@ declare namespace CognitoIdentityServiceProvider {
1248
1351
  /**
1249
1352
  * The identity provider name.
1250
1353
  */
1251
- ProviderName: ProviderNameType;
1354
+ ProviderName: ProviderNameTypeV1;
1252
1355
  /**
1253
1356
  * The identity provider type.
1254
1357
  */
@@ -1272,6 +1375,30 @@ declare namespace CognitoIdentityServiceProvider {
1272
1375
  */
1273
1376
  IdentityProvider: IdentityProviderType;
1274
1377
  }
1378
+ export interface CreateResourceServerRequest {
1379
+ /**
1380
+ * The user pool ID for the user pool.
1381
+ */
1382
+ UserPoolId: UserPoolIdType;
1383
+ /**
1384
+ * A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located. For example, https://my-weather-api.example.com.
1385
+ */
1386
+ Identifier: ResourceServerIdentifierType;
1387
+ /**
1388
+ * A friendly name for the resource server.
1389
+ */
1390
+ Name: ResourceServerNameType;
1391
+ /**
1392
+ * A list of scopes. Each scope is map, where the keys are name and description.
1393
+ */
1394
+ Scopes?: ResourceServerScopeListType;
1395
+ }
1396
+ export interface CreateResourceServerResponse {
1397
+ /**
1398
+ * The newly created resource server.
1399
+ */
1400
+ ResourceServer: ResourceServerType;
1401
+ }
1275
1402
  export interface CreateUserImportJobRequest {
1276
1403
  /**
1277
1404
  * The job name for the user import job.
@@ -1405,6 +1532,10 @@ declare namespace CognitoIdentityServiceProvider {
1405
1532
  * A string representing the email verification subject.
1406
1533
  */
1407
1534
  EmailVerificationSubject?: EmailVerificationSubjectType;
1535
+ /**
1536
+ * The template for the verification message that the user sees when the app requests permission to access the user's information.
1537
+ */
1538
+ VerificationMessageTemplate?: VerificationMessageTemplateType;
1408
1539
  /**
1409
1540
  * A string representing the SMS authentication message.
1410
1541
  */
@@ -1447,6 +1578,7 @@ declare namespace CognitoIdentityServiceProvider {
1447
1578
  export type CustomAttributeNameType = string;
1448
1579
  export type CustomAttributesListType = SchemaAttributeType[];
1449
1580
  export type DateType = Date;
1581
+ export type DefaultEmailOptionType = "CONFIRM_WITH_LINK"|"CONFIRM_WITH_CODE"|string;
1450
1582
  export interface DeleteGroupRequest {
1451
1583
  /**
1452
1584
  * The name of the group.
@@ -1467,6 +1599,16 @@ declare namespace CognitoIdentityServiceProvider {
1467
1599
  */
1468
1600
  ProviderName: ProviderNameType;
1469
1601
  }
1602
+ export interface DeleteResourceServerRequest {
1603
+ /**
1604
+ * The user pool ID for the user pool that hosts the resource server.
1605
+ */
1606
+ UserPoolId: UserPoolIdType;
1607
+ /**
1608
+ * The identifier for the resource server.
1609
+ */
1610
+ Identifier: ResourceServerIdentifierType;
1611
+ }
1470
1612
  export interface DeleteUserAttributesRequest {
1471
1613
  /**
1472
1614
  * An array of strings representing the user attribute names you wish to delete. For custom attributes, you must prepend the custom: prefix to the attribute name.
@@ -1485,7 +1627,7 @@ declare namespace CognitoIdentityServiceProvider {
1485
1627
  */
1486
1628
  UserPoolId: UserPoolIdType;
1487
1629
  /**
1488
- * The ID of the client associated with the user pool.
1630
+ * The app client ID of the app associated with the user pool.
1489
1631
  */
1490
1632
  ClientId: ClientIdType;
1491
1633
  }
@@ -1531,6 +1673,22 @@ declare namespace CognitoIdentityServiceProvider {
1531
1673
  */
1532
1674
  IdentityProvider: IdentityProviderType;
1533
1675
  }
1676
+ export interface DescribeResourceServerRequest {
1677
+ /**
1678
+ * The user pool ID for the user pool that hosts the resource server.
1679
+ */
1680
+ UserPoolId: UserPoolIdType;
1681
+ /**
1682
+ * The identifier for the resource server
1683
+ */
1684
+ Identifier: ResourceServerIdentifierType;
1685
+ }
1686
+ export interface DescribeResourceServerResponse {
1687
+ /**
1688
+ * The resource server.
1689
+ */
1690
+ ResourceServer: ResourceServerType;
1691
+ }
1534
1692
  export interface DescribeUserImportJobRequest {
1535
1693
  /**
1536
1694
  * The user pool ID for the user pool that the users are being imported into.
@@ -1553,7 +1711,7 @@ declare namespace CognitoIdentityServiceProvider {
1553
1711
  */
1554
1712
  UserPoolId: UserPoolIdType;
1555
1713
  /**
1556
- * The ID of the client associated with the user pool.
1714
+ * The app client ID of the app associated with the user pool.
1557
1715
  */
1558
1716
  ClientId: ClientIdType;
1559
1717
  }
@@ -1664,7 +1822,7 @@ declare namespace CognitoIdentityServiceProvider {
1664
1822
  */
1665
1823
  Status?: DomainStatusType;
1666
1824
  }
1667
- export type DomainStatusType = "CREATING"|"DELETING"|"UPDATING"|"ACTIVE"|string;
1825
+ export type DomainStatusType = "CREATING"|"DELETING"|"UPDATING"|"ACTIVE"|"FAILED"|string;
1668
1826
  export type DomainType = string;
1669
1827
  export type DomainVersionType = string;
1670
1828
  export type EmailAddressType = string;
@@ -1678,7 +1836,9 @@ declare namespace CognitoIdentityServiceProvider {
1678
1836
  */
1679
1837
  ReplyToEmailAddress?: EmailAddressType;
1680
1838
  }
1839
+ export type EmailVerificationMessageByLinkType = string;
1681
1840
  export type EmailVerificationMessageType = string;
1841
+ export type EmailVerificationSubjectByLinkType = string;
1682
1842
  export type EmailVerificationSubjectType = string;
1683
1843
  export type ExplicitAuthFlowsListType = ExplicitAuthFlowsType[];
1684
1844
  export type ExplicitAuthFlowsType = "ADMIN_NO_SRP_AUTH"|"CUSTOM_AUTH_FLOW_ONLY"|string;
@@ -1778,6 +1938,22 @@ declare namespace CognitoIdentityServiceProvider {
1778
1938
  */
1779
1939
  IdentityProvider: IdentityProviderType;
1780
1940
  }
1941
+ export interface GetUICustomizationRequest {
1942
+ /**
1943
+ * The user pool ID for the user pool.
1944
+ */
1945
+ UserPoolId: UserPoolIdType;
1946
+ /**
1947
+ * The client ID for the client app.
1948
+ */
1949
+ ClientId?: ClientIdType;
1950
+ }
1951
+ export interface GetUICustomizationResponse {
1952
+ /**
1953
+ * The UI customization information.
1954
+ */
1955
+ UICustomization: UICustomizationType;
1956
+ }
1781
1957
  export interface GetUserAttributeVerificationCodeRequest {
1782
1958
  /**
1783
1959
  * The access token returned by the server response to get the user attribute verification code.
@@ -1888,9 +2064,11 @@ declare namespace CognitoIdentityServiceProvider {
1888
2064
  */
1889
2065
  CreationDate?: DateType;
1890
2066
  }
1891
- export type IdentityProviderTypeType = "SAML"|string;
2067
+ export type IdentityProviderTypeType = "SAML"|"Facebook"|"Google"|"LoginWithAmazon"|string;
1892
2068
  export type IdpIdentifierType = string;
1893
2069
  export type IdpIdentifiersListType = IdpIdentifierType[];
2070
+ export type ImageFileType = Buffer|Uint8Array|Blob|string;
2071
+ export type ImageUrlType = string;
1894
2072
  export interface InitiateAuthRequest {
1895
2073
  /**
1896
2074
  * The authentication flow for this call to execute. The API action will depend on this value. For example: REFRESH_TOKEN_AUTH will take in a valid refresh token and return new tokens. USER_SRP_AUTH will take in USERNAME and SRP_A and return the SRP variables to be used for next challenge execution. Valid values include: USER_SRP_AUTH: Authentication flow for the Secure Remote Password (SRP) protocol. REFRESH_TOKEN_AUTH/REFRESH_TOKEN: Authentication flow for refreshing the access token and ID token by supplying a valid refresh token. CUSTOM_AUTH: Custom authentication flow. ADMIN_NO_SRP_AUTH is not a valid value.
@@ -2036,6 +2214,31 @@ declare namespace CognitoIdentityServiceProvider {
2036
2214
  }
2037
2215
  export type ListOfStringTypes = StringType[];
2038
2216
  export type ListProvidersLimitType = number;
2217
+ export type ListResourceServersLimitType = number;
2218
+ export interface ListResourceServersRequest {
2219
+ /**
2220
+ * The user pool ID for the user pool.
2221
+ */
2222
+ UserPoolId: UserPoolIdType;
2223
+ /**
2224
+ * The maximum number of resource servers to return.
2225
+ */
2226
+ MaxResults?: ListResourceServersLimitType;
2227
+ /**
2228
+ * A pagination token.
2229
+ */
2230
+ NextToken?: PaginationKeyType;
2231
+ }
2232
+ export interface ListResourceServersResponse {
2233
+ /**
2234
+ * The resource servers.
2235
+ */
2236
+ ResourceServers: ResourceServersListType;
2237
+ /**
2238
+ * A pagination token.
2239
+ */
2240
+ NextToken?: PaginationKeyType;
2241
+ }
2039
2242
  export interface ListUserImportJobsRequest {
2040
2243
  /**
2041
2244
  * The user pool ID for the user pool that the users are being imported into.
@@ -2264,6 +2467,21 @@ declare namespace CognitoIdentityServiceProvider {
2264
2467
  }
2265
2468
  export type ProviderDetailsType = {[key: string]: StringType};
2266
2469
  export type ProviderNameType = string;
2470
+ export type ProviderNameTypeV1 = string;
2471
+ export interface ProviderUserIdentifierType {
2472
+ /**
2473
+ * The name of the provider, for example, Facebook, Google, or Login with Amazon.
2474
+ */
2475
+ ProviderName?: ProviderNameType;
2476
+ /**
2477
+ * The name of the provider attribute to link to, for example, NameID.
2478
+ */
2479
+ ProviderAttributeName?: StringType;
2480
+ /**
2481
+ * The value of the provider attribute to link to, for example, xxxxx_account.
2482
+ */
2483
+ ProviderAttributeValue?: StringType;
2484
+ }
2267
2485
  export type ProvidersListType = ProviderDescription[];
2268
2486
  export type QueryLimit = number;
2269
2487
  export type QueryLimitType = number;
@@ -2289,6 +2507,40 @@ declare namespace CognitoIdentityServiceProvider {
2289
2507
  */
2290
2508
  CodeDeliveryDetails?: CodeDeliveryDetailsType;
2291
2509
  }
2510
+ export type ResourceServerIdentifierType = string;
2511
+ export type ResourceServerNameType = string;
2512
+ export type ResourceServerScopeDescriptionType = string;
2513
+ export type ResourceServerScopeListType = ResourceServerScopeType[];
2514
+ export type ResourceServerScopeNameType = string;
2515
+ export interface ResourceServerScopeType {
2516
+ /**
2517
+ * The name of the scope.
2518
+ */
2519
+ ScopeName: ResourceServerScopeNameType;
2520
+ /**
2521
+ * A description of the scope.
2522
+ */
2523
+ ScopeDescription: ResourceServerScopeDescriptionType;
2524
+ }
2525
+ export interface ResourceServerType {
2526
+ /**
2527
+ * The user pool ID for the user pool that hosts the resource server.
2528
+ */
2529
+ UserPoolId?: UserPoolIdType;
2530
+ /**
2531
+ * The identifier for the resource server.
2532
+ */
2533
+ Identifier?: ResourceServerIdentifierType;
2534
+ /**
2535
+ * The name of the resource server.
2536
+ */
2537
+ Name?: ResourceServerNameType;
2538
+ /**
2539
+ * A list of scopes that are defined for the resource server.
2540
+ */
2541
+ Scopes?: ResourceServerScopeListType;
2542
+ }
2543
+ export type ResourceServersListType = ResourceServerType[];
2292
2544
  export interface RespondToAuthChallengeRequest {
2293
2545
  /**
2294
2546
  * The app client ID.
@@ -2363,6 +2615,30 @@ declare namespace CognitoIdentityServiceProvider {
2363
2615
  export type SearchedAttributeNamesListType = AttributeNameType[];
2364
2616
  export type SecretHashType = string;
2365
2617
  export type SessionType = string;
2618
+ export interface SetUICustomizationRequest {
2619
+ /**
2620
+ * The user pool ID for the user pool.
2621
+ */
2622
+ UserPoolId: UserPoolIdType;
2623
+ /**
2624
+ * The client ID for the client app.
2625
+ */
2626
+ ClientId?: ClientIdType;
2627
+ /**
2628
+ * The CSS values in the UI customization.
2629
+ */
2630
+ CSS?: CSSType;
2631
+ /**
2632
+ * The uploaded logo image for the UI customization.
2633
+ */
2634
+ ImageFile?: ImageFileType;
2635
+ }
2636
+ export interface SetUICustomizationResponse {
2637
+ /**
2638
+ * The UI customization information.
2639
+ */
2640
+ UICustomization: UICustomizationType;
2641
+ }
2366
2642
  export interface SetUserSettingsRequest {
2367
2643
  /**
2368
2644
  * The access token for the set user settings request.
@@ -2472,6 +2748,36 @@ declare namespace CognitoIdentityServiceProvider {
2472
2748
  export type StringType = string;
2473
2749
  export type SupportedIdentityProvidersListType = ProviderNameType[];
2474
2750
  export type TokenModelType = string;
2751
+ export interface UICustomizationType {
2752
+ /**
2753
+ * The user pool ID for the user pool.
2754
+ */
2755
+ UserPoolId?: UserPoolIdType;
2756
+ /**
2757
+ * The client ID for the client app.
2758
+ */
2759
+ ClientId?: ClientIdType;
2760
+ /**
2761
+ * The logo image for the UI customization.
2762
+ */
2763
+ ImageUrl?: ImageUrlType;
2764
+ /**
2765
+ * The CSS values in the UI customization.
2766
+ */
2767
+ CSS?: CSSType;
2768
+ /**
2769
+ * The CSS version number.
2770
+ */
2771
+ CSSVersion?: CSSVersionType;
2772
+ /**
2773
+ * The last-modified date for the UI customization.
2774
+ */
2775
+ LastModifiedDate?: DateType;
2776
+ /**
2777
+ * The creation date for the UI customization.
2778
+ */
2779
+ CreationDate?: DateType;
2780
+ }
2475
2781
  export interface UpdateDeviceStatusRequest {
2476
2782
  /**
2477
2783
  * The access token.
@@ -2544,6 +2850,30 @@ declare namespace CognitoIdentityServiceProvider {
2544
2850
  */
2545
2851
  IdentityProvider: IdentityProviderType;
2546
2852
  }
2853
+ export interface UpdateResourceServerRequest {
2854
+ /**
2855
+ * The user pool ID for the user pool.
2856
+ */
2857
+ UserPoolId: UserPoolIdType;
2858
+ /**
2859
+ * The identifier for the resource server.
2860
+ */
2861
+ Identifier: ResourceServerIdentifierType;
2862
+ /**
2863
+ * The name of the resource server.
2864
+ */
2865
+ Name: ResourceServerNameType;
2866
+ /**
2867
+ * The scope values to be set for the resource server.
2868
+ */
2869
+ Scopes?: ResourceServerScopeListType;
2870
+ }
2871
+ export interface UpdateResourceServerResponse {
2872
+ /**
2873
+ * The resource server.
2874
+ */
2875
+ ResourceServer: ResourceServerType;
2876
+ }
2547
2877
  export interface UpdateUserAttributesRequest {
2548
2878
  /**
2549
2879
  * An array of name-value pairs representing user attributes. For custom attributes, you must prepend the custom: prefix to the attribute name.
@@ -2598,7 +2928,7 @@ declare namespace CognitoIdentityServiceProvider {
2598
2928
  */
2599
2929
  CallbackURLs?: CallbackURLsListType;
2600
2930
  /**
2601
- * A list ofallowed logout URLs for the identity providers.
2931
+ * A list of allowed logout URLs for the identity providers.
2602
2932
  */
2603
2933
  LogoutURLs?: LogoutURLsListType;
2604
2934
  /**
@@ -2653,6 +2983,10 @@ declare namespace CognitoIdentityServiceProvider {
2653
2983
  * The subject of the email verification message.
2654
2984
  */
2655
2985
  EmailVerificationSubject?: EmailVerificationSubjectType;
2986
+ /**
2987
+ * The template for verification messages.
2988
+ */
2989
+ VerificationMessageTemplate?: VerificationMessageTemplateType;
2656
2990
  /**
2657
2991
  * The contents of the SMS authentication message.
2658
2992
  */
@@ -2808,7 +3142,7 @@ declare namespace CognitoIdentityServiceProvider {
2808
3142
  */
2809
3143
  CallbackURLs?: CallbackURLsListType;
2810
3144
  /**
2811
- * A list ofallowed logout URLs for the identity providers.
3145
+ * A list of allowed logout URLs for the identity providers.
2812
3146
  */
2813
3147
  LogoutURLs?: LogoutURLsListType;
2814
3148
  /**
@@ -2922,6 +3256,10 @@ declare namespace CognitoIdentityServiceProvider {
2922
3256
  * The subject of the email verification message.
2923
3257
  */
2924
3258
  EmailVerificationSubject?: EmailVerificationSubjectType;
3259
+ /**
3260
+ * The template for verification messages.
3261
+ */
3262
+ VerificationMessageTemplate?: VerificationMessageTemplateType;
2925
3263
  /**
2926
3264
  * The contents of the SMS authentication message.
2927
3265
  */
@@ -2998,6 +3336,32 @@ declare namespace CognitoIdentityServiceProvider {
2998
3336
  export type UsernameAttributesListType = UsernameAttributeType[];
2999
3337
  export type UsernameType = string;
3000
3338
  export type UsersListType = UserType[];
3339
+ export interface VerificationMessageTemplateType {
3340
+ /**
3341
+ * The SMS message template.
3342
+ */
3343
+ SmsMessage?: SmsVerificationMessageType;
3344
+ /**
3345
+ * The email message template.
3346
+ */
3347
+ EmailMessage?: EmailVerificationMessageType;
3348
+ /**
3349
+ * The subject line for the email message template.
3350
+ */
3351
+ EmailSubject?: EmailVerificationSubjectType;
3352
+ /**
3353
+ * The email message template for sending a confirmation link to the user.
3354
+ */
3355
+ EmailMessageByLink?: EmailVerificationMessageByLinkType;
3356
+ /**
3357
+ * The subject line for the email message template for sending a confirmation link to the user.
3358
+ */
3359
+ EmailSubjectByLink?: EmailVerificationSubjectByLinkType;
3360
+ /**
3361
+ * The default email option.
3362
+ */
3363
+ DefaultEmailOption?: DefaultEmailOptionType;
3364
+ }
3001
3365
  export type VerifiedAttributeType = "phone_number"|"email"|string;
3002
3366
  export type VerifiedAttributesListType = VerifiedAttributeType[];
3003
3367
  export interface VerifyUserAttributeRequest {