aws-sdk-cognitoidentityprovider 1.97.0 → 1.99.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bae5a83b6aded602a6cc01d2dcc7c0dd1a11bcb1f4f6fdb5082c7e5f78753209
4
- data.tar.gz: 41424eb6cadcdb7bbcd8eb0d8a6b6ba0e21de25fcd926525bfba484f999a49db
3
+ metadata.gz: '0448672142fc86bc27bf133f51cb3f2c8092f71e46e3bfa5e0def970431994ed'
4
+ data.tar.gz: a98d09b88ceb9812faa39cc8b0d7b547a9be39bca7693f3f0cb8a4280133bada
5
5
  SHA512:
6
- metadata.gz: 1deb3891d1dc9a55c3bebb5e27fd340cfb038bffb59b08a57bd5bcab60b7e226294c751fd4bffd2125eb133644b7d14d7a88da42152fdd571974c2acd1551d30
7
- data.tar.gz: b86b8ee77b3bde681438a6d9705a91df380d57a81a6ce6ab4fb23221ea34cefdbfebbdc3a379428b3e9e5fd87337c6098d8ee65e6be1de29871d1e396d6dae45
6
+ metadata.gz: bc1ded98828c9bf018c41552b275ec3dd536952c36642b8c315fd03406ebcad1fd60fbc28e002dfc80a284a5d1ead9665dafb59d5e7a86512484abdbe74d7008
7
+ data.tar.gz: 8bad31b166c87eae0beb13997575320162e52ba7f9b44994398a792515172026528a47f38173f04d1fe2cdc12143ad20be5ec11843c50fb80fc75d28875aff33
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.99.0 (2024-08-08)
5
+ ------------------
6
+
7
+ * Feature - Added support for threat protection for custom authentication in Amazon Cognito user pools.
8
+
9
+ 1.98.0 (2024-08-06)
10
+ ------------------
11
+
12
+ * Feature - Advanced security feature updates to include password history and log export for Cognito user pools.
13
+
4
14
  1.97.0 (2024-07-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.97.0
1
+ 1.99.0
@@ -547,18 +547,14 @@ module Aws::CognitoIdentityProvider
547
547
  req.send_request(options)
548
548
  end
549
549
 
550
- # This IAM-authenticated API operation provides a code that Amazon
551
- # Cognito sent to your user when they signed up in your user pool. After
552
- # your user enters their code, they confirm ownership of the email
553
- # address or phone number that they provided, and their user account
554
- # becomes active. Depending on your user pool configuration, your users
555
- # will receive their confirmation code in an email or SMS message.
550
+ # This IAM-authenticated API operation confirms user sign-up as an
551
+ # administrator. Unlike [ConfirmSignUp][1], your IAM credentials
552
+ # authorize user account confirmation. No confirmation code is required.
556
553
  #
557
- # Local users who signed up in your user pool are the only type of user
558
- # who can confirm sign-up with a code. Users who federate through an
559
- # external identity provider (IdP) have already been confirmed by their
560
- # IdP. Administrator-created users confirm their accounts when they
561
- # respond to their invitation email message and choose a password.
554
+ # This request sets a user account active in a user pool that [requires
555
+ # confirmation of new user accounts][2] before they can sign in. You can
556
+ # configure your user pool to not send confirmation codes to new users
557
+ # and instead confirm them with this API operation on the back end.
562
558
  #
563
559
  # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
564
560
  # in requests for this API operation. For this operation, you must use
@@ -567,16 +563,18 @@ module Aws::CognitoIdentityProvider
567
563
  #
568
564
  # **Learn more**
569
565
  #
570
- # * [Signing Amazon Web Services API Requests][1]
566
+ # * [Signing Amazon Web Services API Requests][3]
571
567
  #
572
- # * [Using the Amazon Cognito user pools API and user pool endpoints][2]
568
+ # * [Using the Amazon Cognito user pools API and user pool endpoints][4]
573
569
  #
574
570
  # </note>
575
571
  #
576
572
  #
577
573
  #
578
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
579
- # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
574
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmSignUp.html
575
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#signing-up-users-in-your-app-and-confirming-them-as-admin
576
+ # [3]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
577
+ # [4]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html
580
578
  #
581
579
  # @option params [required, String] :user_pool_id
582
580
  # The user pool ID for which you want to confirm user registration.
@@ -3084,7 +3082,7 @@ module Aws::CognitoIdentityProvider
3084
3082
  # require MFA, the user can then authenticate with user name and
3085
3083
  # password credentials alone. If your user pool requires TOTP MFA,
3086
3084
  # Amazon Cognito generates an `MFA_SETUP` or `SOFTWARE_TOKEN_SETUP`
3087
- # challenge each time your user signs. Complete setup with
3085
+ # challenge each time your user signs in. Complete setup with
3088
3086
  # `AssociateSoftwareToken` and `VerifySoftwareToken`.
3089
3087
  #
3090
3088
  # After you set up software token MFA for your user, Amazon Cognito
@@ -4636,6 +4634,7 @@ module Aws::CognitoIdentityProvider
4636
4634
  # require_lowercase: false,
4637
4635
  # require_numbers: false,
4638
4636
  # require_symbols: false,
4637
+ # password_history_size: 1,
4639
4638
  # temporary_password_validity_days: 1,
4640
4639
  # },
4641
4640
  # },
@@ -4731,6 +4730,9 @@ module Aws::CognitoIdentityProvider
4731
4730
  # ],
4732
4731
  # user_pool_add_ons: {
4733
4732
  # advanced_security_mode: "OFF", # required, accepts OFF, AUDIT, ENFORCED
4733
+ # advanced_security_additional_flows: {
4734
+ # custom_auth_mode: "AUDIT", # accepts AUDIT, ENFORCED
4735
+ # },
4734
4736
  # },
4735
4737
  # username_configuration: {
4736
4738
  # case_sensitive: false, # required
@@ -4754,6 +4756,7 @@ module Aws::CognitoIdentityProvider
4754
4756
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
4755
4757
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
4756
4758
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
4759
+ # resp.user_pool.policies.password_policy.password_history_size #=> Integer
4757
4760
  # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
4758
4761
  # resp.user_pool.deletion_protection #=> String, one of "ACTIVE", "INACTIVE"
4759
4762
  # resp.user_pool.lambda_config.pre_sign_up #=> String
@@ -4828,6 +4831,7 @@ module Aws::CognitoIdentityProvider
4828
4831
  # resp.user_pool.admin_create_user_config.invite_message_template.email_message #=> String
4829
4832
  # resp.user_pool.admin_create_user_config.invite_message_template.email_subject #=> String
4830
4833
  # resp.user_pool.user_pool_add_ons.advanced_security_mode #=> String, one of "OFF", "AUDIT", "ENFORCED"
4834
+ # resp.user_pool.user_pool_add_ons.advanced_security_additional_flows.custom_auth_mode #=> String, one of "AUDIT", "ENFORCED"
4831
4835
  # resp.user_pool.username_configuration.case_sensitive #=> Boolean
4832
4836
  # resp.user_pool.arn #=> String
4833
4837
  # resp.user_pool.account_recovery_setting.recovery_mechanisms #=> Array
@@ -5163,6 +5167,8 @@ module Aws::CognitoIdentityProvider
5163
5167
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
5164
5168
  # where user existence related errors aren't prevented.
5165
5169
  #
5170
+ # Defaults to `LEGACY` when you don't provide a value.
5171
+ #
5166
5172
  # @option params [Boolean] :enable_token_revocation
5167
5173
  # Activates or deactivates token revocation. For more information about
5168
5174
  # revoking tokens, see [RevokeToken][1].
@@ -5959,6 +5965,7 @@ module Aws::CognitoIdentityProvider
5959
5965
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
5960
5966
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
5961
5967
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
5968
+ # resp.user_pool.policies.password_policy.password_history_size #=> Integer
5962
5969
  # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
5963
5970
  # resp.user_pool.deletion_protection #=> String, one of "ACTIVE", "INACTIVE"
5964
5971
  # resp.user_pool.lambda_config.pre_sign_up #=> String
@@ -6033,6 +6040,7 @@ module Aws::CognitoIdentityProvider
6033
6040
  # resp.user_pool.admin_create_user_config.invite_message_template.email_message #=> String
6034
6041
  # resp.user_pool.admin_create_user_config.invite_message_template.email_subject #=> String
6035
6042
  # resp.user_pool.user_pool_add_ons.advanced_security_mode #=> String, one of "OFF", "AUDIT", "ENFORCED"
6043
+ # resp.user_pool.user_pool_add_ons.advanced_security_additional_flows.custom_auth_mode #=> String, one of "AUDIT", "ENFORCED"
6036
6044
  # resp.user_pool.username_configuration.case_sensitive #=> Boolean
6037
6045
  # resp.user_pool.arn #=> String
6038
6046
  # resp.user_pool.account_recovery_setting.recovery_mechanisms #=> Array
@@ -6548,11 +6556,11 @@ module Aws::CognitoIdentityProvider
6548
6556
  req.send_request(options)
6549
6557
  end
6550
6558
 
6551
- # Gets the detailed activity logging configuration for a user pool.
6559
+ # Gets the logging configuration of a user pool.
6552
6560
  #
6553
6561
  # @option params [required, String] :user_pool_id
6554
- # The ID of the user pool where you want to view detailed activity
6555
- # logging configuration.
6562
+ # The ID of the user pool that has the logging configuration that you
6563
+ # want to view.
6556
6564
  #
6557
6565
  # @return [Types::GetLogDeliveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6558
6566
  #
@@ -6568,9 +6576,11 @@ module Aws::CognitoIdentityProvider
6568
6576
  #
6569
6577
  # resp.log_delivery_configuration.user_pool_id #=> String
6570
6578
  # resp.log_delivery_configuration.log_configurations #=> Array
6571
- # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR"
6572
- # resp.log_delivery_configuration.log_configurations[0].event_source #=> String, one of "userNotification"
6579
+ # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR", "INFO"
6580
+ # resp.log_delivery_configuration.log_configurations[0].event_source #=> String, one of "userNotification", "userAuthEvents"
6573
6581
  # resp.log_delivery_configuration.log_configurations[0].cloud_watch_logs_configuration.log_group_arn #=> String
6582
+ # resp.log_delivery_configuration.log_configurations[0].s3_configuration.bucket_arn #=> String
6583
+ # resp.log_delivery_configuration.log_configurations[0].firehose_configuration.stream_arn #=> String
6574
6584
  #
6575
6585
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfiguration AWS API Documentation
6576
6586
  #
@@ -8466,16 +8476,15 @@ module Aws::CognitoIdentityProvider
8466
8476
  req.send_request(options)
8467
8477
  end
8468
8478
 
8469
- # Sets up or modifies the detailed activity logging configuration of a
8470
- # user pool.
8479
+ # Sets up or modifies the logging configuration of a user pool. User
8480
+ # pools can export user notification logs and advanced security features
8481
+ # user activity logs.
8471
8482
  #
8472
8483
  # @option params [required, String] :user_pool_id
8473
- # The ID of the user pool where you want to configure detailed activity
8474
- # logging .
8484
+ # The ID of the user pool where you want to configure logging.
8475
8485
  #
8476
8486
  # @option params [required, Array<Types::LogConfigurationType>] :log_configurations
8477
- # A collection of all of the detailed activity logging configurations
8478
- # for a user pool.
8487
+ # A collection of the logging configurations for a user pool.
8479
8488
  #
8480
8489
  # @return [Types::SetLogDeliveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8481
8490
  #
@@ -8487,11 +8496,17 @@ module Aws::CognitoIdentityProvider
8487
8496
  # user_pool_id: "UserPoolIdType", # required
8488
8497
  # log_configurations: [ # required
8489
8498
  # {
8490
- # log_level: "ERROR", # required, accepts ERROR
8491
- # event_source: "userNotification", # required, accepts userNotification
8499
+ # log_level: "ERROR", # required, accepts ERROR, INFO
8500
+ # event_source: "userNotification", # required, accepts userNotification, userAuthEvents
8492
8501
  # cloud_watch_logs_configuration: {
8493
8502
  # log_group_arn: "ArnType",
8494
8503
  # },
8504
+ # s3_configuration: {
8505
+ # bucket_arn: "S3ArnType",
8506
+ # },
8507
+ # firehose_configuration: {
8508
+ # stream_arn: "ArnType",
8509
+ # },
8495
8510
  # },
8496
8511
  # ],
8497
8512
  # })
@@ -8500,9 +8515,11 @@ module Aws::CognitoIdentityProvider
8500
8515
  #
8501
8516
  # resp.log_delivery_configuration.user_pool_id #=> String
8502
8517
  # resp.log_delivery_configuration.log_configurations #=> Array
8503
- # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR"
8504
- # resp.log_delivery_configuration.log_configurations[0].event_source #=> String, one of "userNotification"
8518
+ # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR", "INFO"
8519
+ # resp.log_delivery_configuration.log_configurations[0].event_source #=> String, one of "userNotification", "userAuthEvents"
8505
8520
  # resp.log_delivery_configuration.log_configurations[0].cloud_watch_logs_configuration.log_group_arn #=> String
8521
+ # resp.log_delivery_configuration.log_configurations[0].s3_configuration.bucket_arn #=> String
8522
+ # resp.log_delivery_configuration.log_configurations[0].firehose_configuration.stream_arn #=> String
8506
8523
  #
8507
8524
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetLogDeliveryConfiguration AWS API Documentation
8508
8525
  #
@@ -10050,6 +10067,7 @@ module Aws::CognitoIdentityProvider
10050
10067
  # require_lowercase: false,
10051
10068
  # require_numbers: false,
10052
10069
  # require_symbols: false,
10070
+ # password_history_size: 1,
10053
10071
  # temporary_password_validity_days: 1,
10054
10072
  # },
10055
10073
  # },
@@ -10126,6 +10144,9 @@ module Aws::CognitoIdentityProvider
10126
10144
  # },
10127
10145
  # user_pool_add_ons: {
10128
10146
  # advanced_security_mode: "OFF", # required, accepts OFF, AUDIT, ENFORCED
10147
+ # advanced_security_additional_flows: {
10148
+ # custom_auth_mode: "AUDIT", # accepts AUDIT, ENFORCED
10149
+ # },
10129
10150
  # },
10130
10151
  # account_recovery_setting: {
10131
10152
  # recovery_mechanisms: [
@@ -10463,6 +10484,8 @@ module Aws::CognitoIdentityProvider
10463
10484
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
10464
10485
  # where user existence related errors aren't prevented.
10465
10486
  #
10487
+ # Defaults to `LEGACY` when you don't provide a value.
10488
+ #
10466
10489
  # @option params [Boolean] :enable_token_revocation
10467
10490
  # Activates or deactivates token revocation. For more information about
10468
10491
  # revoking tokens, see [RevokeToken][1].
@@ -10808,7 +10831,7 @@ module Aws::CognitoIdentityProvider
10808
10831
  params: params,
10809
10832
  config: config)
10810
10833
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
10811
- context[:gem_version] = '1.97.0'
10834
+ context[:gem_version] = '1.99.0'
10812
10835
  Seahorse::Client::Request.new(handlers, context)
10813
10836
  end
10814
10837
 
@@ -73,6 +73,8 @@ module Aws::CognitoIdentityProvider
73
73
  AdminUpdateUserAttributesResponse = Shapes::StructureShape.new(name: 'AdminUpdateUserAttributesResponse')
74
74
  AdminUserGlobalSignOutRequest = Shapes::StructureShape.new(name: 'AdminUserGlobalSignOutRequest')
75
75
  AdminUserGlobalSignOutResponse = Shapes::StructureShape.new(name: 'AdminUserGlobalSignOutResponse')
76
+ AdvancedSecurityAdditionalFlowsType = Shapes::StructureShape.new(name: 'AdvancedSecurityAdditionalFlowsType')
77
+ AdvancedSecurityEnabledModeType = Shapes::StringShape.new(name: 'AdvancedSecurityEnabledModeType')
76
78
  AdvancedSecurityModeType = Shapes::StringShape.new(name: 'AdvancedSecurityModeType')
77
79
  AliasAttributeType = Shapes::StringShape.new(name: 'AliasAttributeType')
78
80
  AliasAttributesListType = Shapes::ListShape.new(name: 'AliasAttributesListType')
@@ -221,6 +223,7 @@ module Aws::CognitoIdentityProvider
221
223
  ExplicitAuthFlowsListType = Shapes::ListShape.new(name: 'ExplicitAuthFlowsListType')
222
224
  ExplicitAuthFlowsType = Shapes::StringShape.new(name: 'ExplicitAuthFlowsType')
223
225
  FeedbackValueType = Shapes::StringShape.new(name: 'FeedbackValueType')
226
+ FirehoseConfigurationType = Shapes::StructureShape.new(name: 'FirehoseConfigurationType')
224
227
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
225
228
  ForceAliasCreation = Shapes::BooleanShape.new(name: 'ForceAliasCreation')
226
229
  ForgetDeviceRequest = Shapes::StructureShape.new(name: 'ForgetDeviceRequest')
@@ -321,6 +324,8 @@ module Aws::CognitoIdentityProvider
321
324
  OAuthFlowsType = Shapes::ListShape.new(name: 'OAuthFlowsType')
322
325
  PaginationKey = Shapes::StringShape.new(name: 'PaginationKey')
323
326
  PaginationKeyType = Shapes::StringShape.new(name: 'PaginationKeyType')
327
+ PasswordHistoryPolicyViolationException = Shapes::StructureShape.new(name: 'PasswordHistoryPolicyViolationException')
328
+ PasswordHistorySizeType = Shapes::IntegerShape.new(name: 'PasswordHistorySizeType')
324
329
  PasswordPolicyMinLengthType = Shapes::IntegerShape.new(name: 'PasswordPolicyMinLengthType')
325
330
  PasswordPolicyType = Shapes::StructureShape.new(name: 'PasswordPolicyType')
326
331
  PasswordResetRequiredException = Shapes::StructureShape.new(name: 'PasswordResetRequiredException')
@@ -366,7 +371,9 @@ module Aws::CognitoIdentityProvider
366
371
  RiskDecisionType = Shapes::StringShape.new(name: 'RiskDecisionType')
367
372
  RiskExceptionConfigurationType = Shapes::StructureShape.new(name: 'RiskExceptionConfigurationType')
368
373
  RiskLevelType = Shapes::StringShape.new(name: 'RiskLevelType')
374
+ S3ArnType = Shapes::StringShape.new(name: 'S3ArnType')
369
375
  S3BucketType = Shapes::StringShape.new(name: 'S3BucketType')
376
+ S3ConfigurationType = Shapes::StructureShape.new(name: 'S3ConfigurationType')
370
377
  SESConfigurationSet = Shapes::StringShape.new(name: 'SESConfigurationSet')
371
378
  SMSMfaSettingsType = Shapes::StructureShape.new(name: 'SMSMfaSettingsType')
372
379
  SchemaAttributeType = Shapes::StructureShape.new(name: 'SchemaAttributeType')
@@ -735,6 +742,9 @@ module Aws::CognitoIdentityProvider
735
742
 
736
743
  AdminUserGlobalSignOutResponse.struct_class = Types::AdminUserGlobalSignOutResponse
737
744
 
745
+ AdvancedSecurityAdditionalFlowsType.add_member(:custom_auth_mode, Shapes::ShapeRef.new(shape: AdvancedSecurityEnabledModeType, location_name: "CustomAuthMode"))
746
+ AdvancedSecurityAdditionalFlowsType.struct_class = Types::AdvancedSecurityAdditionalFlowsType
747
+
738
748
  AliasAttributesListType.member = Shapes::ShapeRef.new(shape: AliasAttributeType)
739
749
 
740
750
  AliasExistsException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
@@ -1149,6 +1159,9 @@ module Aws::CognitoIdentityProvider
1149
1159
 
1150
1160
  ExplicitAuthFlowsListType.member = Shapes::ShapeRef.new(shape: ExplicitAuthFlowsType)
1151
1161
 
1162
+ FirehoseConfigurationType.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "StreamArn"))
1163
+ FirehoseConfigurationType.struct_class = Types::FirehoseConfigurationType
1164
+
1152
1165
  ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1153
1166
  ForbiddenException.struct_class = Types::ForbiddenException
1154
1167
 
@@ -1433,6 +1446,8 @@ module Aws::CognitoIdentityProvider
1433
1446
  LogConfigurationType.add_member(:log_level, Shapes::ShapeRef.new(shape: LogLevel, required: true, location_name: "LogLevel"))
1434
1447
  LogConfigurationType.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSourceName, required: true, location_name: "EventSource"))
1435
1448
  LogConfigurationType.add_member(:cloud_watch_logs_configuration, Shapes::ShapeRef.new(shape: CloudWatchLogsConfigurationType, location_name: "CloudWatchLogsConfiguration"))
1449
+ LogConfigurationType.add_member(:s3_configuration, Shapes::ShapeRef.new(shape: S3ConfigurationType, location_name: "S3Configuration"))
1450
+ LogConfigurationType.add_member(:firehose_configuration, Shapes::ShapeRef.new(shape: FirehoseConfigurationType, location_name: "FirehoseConfiguration"))
1436
1451
  LogConfigurationType.struct_class = Types::LogConfigurationType
1437
1452
 
1438
1453
  LogDeliveryConfigurationType.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
@@ -1481,11 +1496,15 @@ module Aws::CognitoIdentityProvider
1481
1496
 
1482
1497
  OAuthFlowsType.member = Shapes::ShapeRef.new(shape: OAuthFlowType)
1483
1498
 
1499
+ PasswordHistoryPolicyViolationException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1500
+ PasswordHistoryPolicyViolationException.struct_class = Types::PasswordHistoryPolicyViolationException
1501
+
1484
1502
  PasswordPolicyType.add_member(:minimum_length, Shapes::ShapeRef.new(shape: PasswordPolicyMinLengthType, location_name: "MinimumLength"))
1485
1503
  PasswordPolicyType.add_member(:require_uppercase, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireUppercase"))
1486
1504
  PasswordPolicyType.add_member(:require_lowercase, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireLowercase"))
1487
1505
  PasswordPolicyType.add_member(:require_numbers, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireNumbers"))
1488
1506
  PasswordPolicyType.add_member(:require_symbols, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireSymbols"))
1507
+ PasswordPolicyType.add_member(:password_history_size, Shapes::ShapeRef.new(shape: PasswordHistorySizeType, location_name: "PasswordHistorySize"))
1489
1508
  PasswordPolicyType.add_member(:temporary_password_validity_days, Shapes::ShapeRef.new(shape: TemporaryPasswordValidityDaysType, location_name: "TemporaryPasswordValidityDays"))
1490
1509
  PasswordPolicyType.struct_class = Types::PasswordPolicyType
1491
1510
 
@@ -1583,6 +1602,9 @@ module Aws::CognitoIdentityProvider
1583
1602
  RiskExceptionConfigurationType.add_member(:skipped_ip_range_list, Shapes::ShapeRef.new(shape: SkippedIPRangeListType, location_name: "SkippedIPRangeList"))
1584
1603
  RiskExceptionConfigurationType.struct_class = Types::RiskExceptionConfigurationType
1585
1604
 
1605
+ S3ConfigurationType.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: S3ArnType, location_name: "BucketArn"))
1606
+ S3ConfigurationType.struct_class = Types::S3ConfigurationType
1607
+
1586
1608
  SMSMfaSettingsType.add_member(:enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Enabled"))
1587
1609
  SMSMfaSettingsType.add_member(:preferred_mfa, Shapes::ShapeRef.new(shape: BooleanType, location_name: "PreferredMfa"))
1588
1610
  SMSMfaSettingsType.struct_class = Types::SMSMfaSettingsType
@@ -1915,6 +1937,7 @@ module Aws::CognitoIdentityProvider
1915
1937
  UserPoolAddOnNotEnabledException.struct_class = Types::UserPoolAddOnNotEnabledException
1916
1938
 
1917
1939
  UserPoolAddOnsType.add_member(:advanced_security_mode, Shapes::ShapeRef.new(shape: AdvancedSecurityModeType, required: true, location_name: "AdvancedSecurityMode"))
1940
+ UserPoolAddOnsType.add_member(:advanced_security_additional_flows, Shapes::ShapeRef.new(shape: AdvancedSecurityAdditionalFlowsType, location_name: "AdvancedSecurityAdditionalFlows"))
1918
1941
  UserPoolAddOnsType.struct_class = Types::UserPoolAddOnsType
1919
1942
 
1920
1943
  UserPoolClientDescription.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, location_name: "ClientId"))
@@ -2400,6 +2423,7 @@ module Aws::CognitoIdentityProvider
2400
2423
  o.errors << Shapes::ShapeRef.new(shape: ExpiredCodeException)
2401
2424
  o.errors << Shapes::ShapeRef.new(shape: UnexpectedLambdaException)
2402
2425
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2426
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2403
2427
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
2404
2428
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaResponseException)
2405
2429
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
@@ -2443,6 +2467,7 @@ module Aws::CognitoIdentityProvider
2443
2467
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2444
2468
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2445
2469
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2470
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2446
2471
  end)
2447
2472
 
2448
2473
  api.add_operation(:admin_set_user_settings, Seahorse::Model::Operation.new.tap do |o|
@@ -2551,6 +2576,7 @@ module Aws::CognitoIdentityProvider
2551
2576
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2552
2577
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2553
2578
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2579
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2554
2580
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2555
2581
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2556
2582
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
@@ -2597,6 +2623,7 @@ module Aws::CognitoIdentityProvider
2597
2623
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
2598
2624
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2599
2625
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2626
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2600
2627
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2601
2628
  o.errors << Shapes::ShapeRef.new(shape: CodeMismatchException)
2602
2629
  o.errors << Shapes::ShapeRef.new(shape: ExpiredCodeException)
@@ -3413,6 +3440,7 @@ module Aws::CognitoIdentityProvider
3413
3440
  o.errors << Shapes::ShapeRef.new(shape: UnexpectedLambdaException)
3414
3441
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
3415
3442
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
3443
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
3416
3444
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaResponseException)
3417
3445
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3418
3446
  o.errors << Shapes::ShapeRef.new(shape: InvalidUserPoolConfigurationException)
@@ -48,6 +48,7 @@ module Aws::CognitoIdentityProvider
48
48
  # * {LimitExceededException}
49
49
  # * {MFAMethodNotFoundException}
50
50
  # * {NotAuthorizedException}
51
+ # * {PasswordHistoryPolicyViolationException}
51
52
  # * {PasswordResetRequiredException}
52
53
  # * {PreconditionNotMetException}
53
54
  # * {ResourceNotFoundException}
@@ -390,6 +391,21 @@ module Aws::CognitoIdentityProvider
390
391
  end
391
392
  end
392
393
 
394
+ class PasswordHistoryPolicyViolationException < ServiceError
395
+
396
+ # @param [Seahorse::Client::RequestContext] context
397
+ # @param [String] message
398
+ # @param [Aws::CognitoIdentityProvider::Types::PasswordHistoryPolicyViolationException] data
399
+ def initialize(context, message, data = Aws::EmptyStructure.new)
400
+ super(context, message, data)
401
+ end
402
+
403
+ # @return [String]
404
+ def message
405
+ @message || @data[:message]
406
+ end
407
+ end
408
+
393
409
  class PasswordResetRequiredException < ServiceError
394
410
 
395
411
  # @param [Seahorse::Client::RequestContext] context
@@ -1961,6 +1961,28 @@ module Aws::CognitoIdentityProvider
1961
1961
  #
1962
1962
  class AdminUserGlobalSignOutResponse < Aws::EmptyStructure; end
1963
1963
 
1964
+ # Advanced security configuration options for additional authentication
1965
+ # types in your user pool, including custom authentication and
1966
+ # refresh-token authentication.
1967
+ #
1968
+ # @!attribute [rw] custom_auth_mode
1969
+ # The operating mode of advanced security features in custom
1970
+ # authentication with [ Custom authentication challenge Lambda
1971
+ # triggers][1].
1972
+ #
1973
+ #
1974
+ #
1975
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html
1976
+ # @return [String]
1977
+ #
1978
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdvancedSecurityAdditionalFlowsType AWS API Documentation
1979
+ #
1980
+ class AdvancedSecurityAdditionalFlowsType < Struct.new(
1981
+ :custom_auth_mode)
1982
+ SENSITIVE = []
1983
+ include Aws::Structure
1984
+ end
1985
+
1964
1986
  # This exception is thrown when a user tries to confirm the account with
1965
1987
  # an email address or phone number that has already been supplied as an
1966
1988
  # alias for a different user profile. This exception indicates that an
@@ -2257,8 +2279,9 @@ module Aws::CognitoIdentityProvider
2257
2279
  #
2258
2280
  class ChangePasswordResponse < Aws::EmptyStructure; end
2259
2281
 
2260
- # The CloudWatch logging destination of a user pool detailed activity
2261
- # logging configuration.
2282
+ # Configuration for the CloudWatch log group destination of user pool
2283
+ # detailed activity logging, or of user activity log export with
2284
+ # advanced security features.
2262
2285
  #
2263
2286
  # @!attribute [rw] log_group_arn
2264
2287
  # The Amazon Resource Name (arn) of a CloudWatch Logs log group where
@@ -3329,6 +3352,8 @@ module Aws::CognitoIdentityProvider
3329
3352
  #
3330
3353
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
3331
3354
  # where user existence related errors aren't prevented.
3355
+ #
3356
+ # Defaults to `LEGACY` when you don't provide a value.
3332
3357
  # @return [String]
3333
3358
  #
3334
3359
  # @!attribute [rw] enable_token_revocation
@@ -4598,6 +4623,22 @@ module Aws::CognitoIdentityProvider
4598
4623
  include Aws::Structure
4599
4624
  end
4600
4625
 
4626
+ # Configuration for the Amazon Data Firehose stream destination of user
4627
+ # activity log export with advanced security features.
4628
+ #
4629
+ # @!attribute [rw] stream_arn
4630
+ # The ARN of an Amazon Data Firehose stream that's the destination
4631
+ # for advanced security features log export.
4632
+ # @return [String]
4633
+ #
4634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/FirehoseConfigurationType AWS API Documentation
4635
+ #
4636
+ class FirehoseConfigurationType < Struct.new(
4637
+ :stream_arn)
4638
+ SENSITIVE = []
4639
+ include Aws::Structure
4640
+ end
4641
+
4601
4642
  # This exception is thrown when WAF doesn't allow your request based on
4602
4643
  # a web ACL that's associated with your user pool.
4603
4644
  #
@@ -4864,8 +4905,8 @@ module Aws::CognitoIdentityProvider
4864
4905
  end
4865
4906
 
4866
4907
  # @!attribute [rw] user_pool_id
4867
- # The ID of the user pool where you want to view detailed activity
4868
- # logging configuration.
4908
+ # The ID of the user pool that has the logging configuration that you
4909
+ # want to view.
4869
4910
  # @return [String]
4870
4911
  #
4871
4912
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfigurationRequest AWS API Documentation
@@ -4877,8 +4918,7 @@ module Aws::CognitoIdentityProvider
4877
4918
  end
4878
4919
 
4879
4920
  # @!attribute [rw] log_delivery_configuration
4880
- # The detailed activity logging configuration of the requested user
4881
- # pool.
4921
+ # The logging configuration of the requested user pool.
4882
4922
  # @return [Types::LogDeliveryConfigurationType]
4883
4923
  #
4884
4924
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfigurationResponse AWS API Documentation
@@ -6487,37 +6527,73 @@ module Aws::CognitoIdentityProvider
6487
6527
  #
6488
6528
  # @!attribute [rw] log_level
6489
6529
  # The `errorlevel` selection of logs that a user pool sends for
6490
- # detailed activity logging.
6530
+ # detailed activity logging. To send `userNotification` activity with
6531
+ # [information about message delivery][1], choose `ERROR` with
6532
+ # `CloudWatchLogsConfiguration`. To send `userAuthEvents` activity
6533
+ # with user logs from advanced security features, choose `INFO` with
6534
+ # one of `CloudWatchLogsConfiguration`, `FirehoseConfiguration`, or
6535
+ # `S3Configuration`.
6536
+ #
6537
+ #
6538
+ #
6539
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html
6491
6540
  # @return [String]
6492
6541
  #
6493
6542
  # @!attribute [rw] event_source
6494
- # The source of events that your user pool sends for detailed activity
6495
- # logging.
6543
+ # The source of events that your user pool sends for logging. To send
6544
+ # error-level logs about user notification activity, set to
6545
+ # `userNotification`. To send info-level logs about advanced security
6546
+ # features user activity, set to `userAuthEvents`.
6496
6547
  # @return [String]
6497
6548
  #
6498
6549
  # @!attribute [rw] cloud_watch_logs_configuration
6499
- # The CloudWatch logging destination of a user pool.
6550
+ # The CloudWatch log group destination of user pool detailed activity
6551
+ # logs, or of user activity log export with advanced security
6552
+ # features.
6500
6553
  # @return [Types::CloudWatchLogsConfigurationType]
6501
6554
  #
6555
+ # @!attribute [rw] s3_configuration
6556
+ # The Amazon S3 bucket destination of user activity log export with
6557
+ # advanced security features. To activate this setting, [ advanced
6558
+ # security features][1] must be active in your user pool.
6559
+ #
6560
+ #
6561
+ #
6562
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
6563
+ # @return [Types::S3ConfigurationType]
6564
+ #
6565
+ # @!attribute [rw] firehose_configuration
6566
+ # The Amazon Data Firehose stream destination of user activity log
6567
+ # export with advanced security features. To activate this setting, [
6568
+ # advanced security features][1] must be active in your user pool.
6569
+ #
6570
+ #
6571
+ #
6572
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
6573
+ # @return [Types::FirehoseConfigurationType]
6574
+ #
6502
6575
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LogConfigurationType AWS API Documentation
6503
6576
  #
6504
6577
  class LogConfigurationType < Struct.new(
6505
6578
  :log_level,
6506
6579
  :event_source,
6507
- :cloud_watch_logs_configuration)
6580
+ :cloud_watch_logs_configuration,
6581
+ :s3_configuration,
6582
+ :firehose_configuration)
6508
6583
  SENSITIVE = []
6509
6584
  include Aws::Structure
6510
6585
  end
6511
6586
 
6512
- # The logging parameters of a user pool.
6587
+ # The logging parameters of a user pool returned in response to
6588
+ # `GetLogDeliveryConfiguration`.
6513
6589
  #
6514
6590
  # @!attribute [rw] user_pool_id
6515
- # The ID of the user pool where you configured detailed activity
6516
- # logging.
6591
+ # The ID of the user pool where you configured logging.
6517
6592
  # @return [String]
6518
6593
  #
6519
6594
  # @!attribute [rw] log_configurations
6520
- # The detailed activity logging destination of a user pool.
6595
+ # A logging destination of a user pool. User pools can have multiple
6596
+ # logging destinations for message-delivery and user-activity logs.
6521
6597
  # @return [Array<Types::LogConfigurationType>]
6522
6598
  #
6523
6599
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LogDeliveryConfigurationType AWS API Documentation
@@ -6727,6 +6803,20 @@ module Aws::CognitoIdentityProvider
6727
6803
  include Aws::Structure
6728
6804
  end
6729
6805
 
6806
+ # The message returned when a user's new password matches a previous
6807
+ # password and doesn't comply with the password-history policy.
6808
+ #
6809
+ # @!attribute [rw] message
6810
+ # @return [String]
6811
+ #
6812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/PasswordHistoryPolicyViolationException AWS API Documentation
6813
+ #
6814
+ class PasswordHistoryPolicyViolationException < Struct.new(
6815
+ :message)
6816
+ SENSITIVE = []
6817
+ include Aws::Structure
6818
+ end
6819
+
6730
6820
  # The password policy type.
6731
6821
  #
6732
6822
  # @!attribute [rw] minimum_length
@@ -6756,6 +6846,23 @@ module Aws::CognitoIdentityProvider
6756
6846
  # required users to use at least one symbol in their password.
6757
6847
  # @return [Boolean]
6758
6848
  #
6849
+ # @!attribute [rw] password_history_size
6850
+ # The number of previous passwords that you want Amazon Cognito to
6851
+ # restrict each user from reusing. Users can't set a password that
6852
+ # matches any of `n` previous passwords, where `n` is the value of
6853
+ # `PasswordHistorySize`.
6854
+ #
6855
+ # Password history isn't enforced and isn't displayed in
6856
+ # [DescribeUserPool][1] responses when you set this value to `0` or
6857
+ # don't provide it. To activate this setting, [ advanced security
6858
+ # features][2] must be active in your user pool.
6859
+ #
6860
+ #
6861
+ #
6862
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html
6863
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
6864
+ # @return [Integer]
6865
+ #
6759
6866
  # @!attribute [rw] temporary_password_validity_days
6760
6867
  # The number of days a temporary password is valid in the password
6761
6868
  # policy. If the user doesn't sign in during this time, an
@@ -6778,6 +6885,7 @@ module Aws::CognitoIdentityProvider
6778
6885
  :require_lowercase,
6779
6886
  :require_numbers,
6780
6887
  :require_symbols,
6888
+ :password_history_size,
6781
6889
  :temporary_password_validity_days)
6782
6890
  SENSITIVE = []
6783
6891
  include Aws::Structure
@@ -7408,6 +7516,22 @@ module Aws::CognitoIdentityProvider
7408
7516
  include Aws::Structure
7409
7517
  end
7410
7518
 
7519
+ # Configuration for the Amazon S3 bucket destination of user activity
7520
+ # log export with advanced security features.
7521
+ #
7522
+ # @!attribute [rw] bucket_arn
7523
+ # The ARN of an Amazon S3 bucket that's the destination for advanced
7524
+ # security features log export.
7525
+ # @return [String]
7526
+ #
7527
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/S3ConfigurationType AWS API Documentation
7528
+ #
7529
+ class S3ConfigurationType < Struct.new(
7530
+ :bucket_arn)
7531
+ SENSITIVE = []
7532
+ include Aws::Structure
7533
+ end
7534
+
7411
7535
  # The type used for enabling SMS multi-factor authentication (MFA) at
7412
7536
  # the user level. Phone numbers don't need to be verified to be used
7413
7537
  # for SMS MFA. If an MFA type is activated for a user, the user will be
@@ -7548,13 +7672,11 @@ module Aws::CognitoIdentityProvider
7548
7672
  end
7549
7673
 
7550
7674
  # @!attribute [rw] user_pool_id
7551
- # The ID of the user pool where you want to configure detailed
7552
- # activity logging .
7675
+ # The ID of the user pool where you want to configure logging.
7553
7676
  # @return [String]
7554
7677
  #
7555
7678
  # @!attribute [rw] log_configurations
7556
- # A collection of all of the detailed activity logging configurations
7557
- # for a user pool.
7679
+ # A collection of the logging configurations for a user pool.
7558
7680
  # @return [Array<Types::LogConfigurationType>]
7559
7681
  #
7560
7682
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetLogDeliveryConfigurationRequest AWS API Documentation
@@ -7923,7 +8045,7 @@ module Aws::CognitoIdentityProvider
7923
8045
  # @return [Types::CodeDeliveryDetailsType]
7924
8046
  #
7925
8047
  # @!attribute [rw] user_sub
7926
- # The UUID of the authenticated user. This isn't the same as
8048
+ # The 128-bit ID of the authenticated user. This isn't the same as
7927
8049
  # `username`.
7928
8050
  # @return [String]
7929
8051
  #
@@ -9156,6 +9278,8 @@ module Aws::CognitoIdentityProvider
9156
9278
  #
9157
9279
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
9158
9280
  # where user existence related errors aren't prevented.
9281
+ #
9282
+ # Defaults to `LEGACY` when you don't provide a value.
9159
9283
  # @return [String]
9160
9284
  #
9161
9285
  # @!attribute [rw] enable_token_revocation
@@ -9736,13 +9860,22 @@ module Aws::CognitoIdentityProvider
9736
9860
  # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
9737
9861
  #
9738
9862
  # @!attribute [rw] advanced_security_mode
9739
- # The operating mode of advanced security features in your user pool.
9863
+ # The operating mode of advanced security features for standard
9864
+ # authentication types in your user pool, including username-password
9865
+ # and secure remote password (SRP) authentication.
9740
9866
  # @return [String]
9741
9867
  #
9868
+ # @!attribute [rw] advanced_security_additional_flows
9869
+ # Advanced security configuration options for additional
9870
+ # authentication types in your user pool, including custom
9871
+ # authentication and refresh-token authentication.
9872
+ # @return [Types::AdvancedSecurityAdditionalFlowsType]
9873
+ #
9742
9874
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UserPoolAddOnsType AWS API Documentation
9743
9875
  #
9744
9876
  class UserPoolAddOnsType < Struct.new(
9745
- :advanced_security_mode)
9877
+ :advanced_security_mode,
9878
+ :advanced_security_additional_flows)
9746
9879
  SENSITIVE = []
9747
9880
  include Aws::Structure
9748
9881
  end
@@ -10092,8 +10225,10 @@ module Aws::CognitoIdentityProvider
10092
10225
  #
10093
10226
  # * `ENABLED` - This prevents user existence-related errors.
10094
10227
  #
10095
- # * `LEGACY` - This represents the old behavior of Amazon Cognito
10228
+ # * `LEGACY` - This represents the early behavior of Amazon Cognito
10096
10229
  # where user existence related errors aren't prevented.
10230
+ #
10231
+ # Defaults to `LEGACY` when you don't provide a value.
10097
10232
  # @return [String]
10098
10233
  #
10099
10234
  # @!attribute [rw] enable_token_revocation
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cognitoidentityprovider/customizations'
52
52
  # @!group service
53
53
  module Aws::CognitoIdentityProvider
54
54
 
55
- GEM_VERSION = '1.97.0'
55
+ GEM_VERSION = '1.99.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -634,6 +634,7 @@ module Aws
634
634
  require_lowercase: bool?,
635
635
  require_numbers: bool?,
636
636
  require_symbols: bool?,
637
+ password_history_size: ::Integer?,
637
638
  temporary_password_validity_days: ::Integer?
638
639
  }?
639
640
  },
@@ -726,7 +727,10 @@ module Aws
726
727
  },
727
728
  ],
728
729
  ?user_pool_add_ons: {
729
- advanced_security_mode: ("OFF" | "AUDIT" | "ENFORCED")
730
+ advanced_security_mode: ("OFF" | "AUDIT" | "ENFORCED"),
731
+ advanced_security_additional_flows: {
732
+ custom_auth_mode: ("AUDIT" | "ENFORCED")?
733
+ }?
730
734
  },
731
735
  ?username_configuration: {
732
736
  case_sensitive: bool
@@ -1297,10 +1301,16 @@ module Aws
1297
1301
  user_pool_id: ::String,
1298
1302
  log_configurations: Array[
1299
1303
  {
1300
- log_level: ("ERROR"),
1301
- event_source: ("userNotification"),
1304
+ log_level: ("ERROR" | "INFO"),
1305
+ event_source: ("userNotification" | "userAuthEvents"),
1302
1306
  cloud_watch_logs_configuration: {
1303
1307
  log_group_arn: ::String?
1308
+ }?,
1309
+ s3_configuration: {
1310
+ bucket_arn: ::String?
1311
+ }?,
1312
+ firehose_configuration: {
1313
+ stream_arn: ::String?
1304
1314
  }?
1305
1315
  },
1306
1316
  ]
@@ -1610,6 +1620,7 @@ module Aws
1610
1620
  require_lowercase: bool?,
1611
1621
  require_numbers: bool?,
1612
1622
  require_symbols: bool?,
1623
+ password_history_size: ::Integer?,
1613
1624
  temporary_password_validity_days: ::Integer?
1614
1625
  }?
1615
1626
  },
@@ -1683,7 +1694,10 @@ module Aws
1683
1694
  }?
1684
1695
  },
1685
1696
  ?user_pool_add_ons: {
1686
- advanced_security_mode: ("OFF" | "AUDIT" | "ENFORCED")
1697
+ advanced_security_mode: ("OFF" | "AUDIT" | "ENFORCED"),
1698
+ advanced_security_additional_flows: {
1699
+ custom_auth_mode: ("AUDIT" | "ENFORCED")?
1700
+ }?
1687
1701
  },
1688
1702
  ?account_recovery_setting: {
1689
1703
  recovery_mechanisms: Array[
data/sig/errors.rbs CHANGED
@@ -74,6 +74,9 @@ module Aws
74
74
  class NotAuthorizedException < ::Aws::Errors::ServiceError
75
75
  def message: () -> ::String
76
76
  end
77
+ class PasswordHistoryPolicyViolationException < ::Aws::Errors::ServiceError
78
+ def message: () -> ::String
79
+ end
77
80
  class PasswordResetRequiredException < ::Aws::Errors::ServiceError
78
81
  def message: () -> ::String
79
82
  end
data/sig/types.rbs CHANGED
@@ -346,6 +346,11 @@ module Aws::CognitoIdentityProvider
346
346
  class AdminUserGlobalSignOutResponse < Aws::EmptyStructure
347
347
  end
348
348
 
349
+ class AdvancedSecurityAdditionalFlowsType
350
+ attr_accessor custom_auth_mode: ("AUDIT" | "ENFORCED")
351
+ SENSITIVE: []
352
+ end
353
+
349
354
  class AliasExistsException
350
355
  attr_accessor message: ::String
351
356
  SENSITIVE: []
@@ -864,6 +869,11 @@ module Aws::CognitoIdentityProvider
864
869
  SENSITIVE: []
865
870
  end
866
871
 
872
+ class FirehoseConfigurationType
873
+ attr_accessor stream_arn: ::String
874
+ SENSITIVE: []
875
+ end
876
+
867
877
  class ForbiddenException
868
878
  attr_accessor message: ::String
869
879
  SENSITIVE: []
@@ -1261,9 +1271,11 @@ module Aws::CognitoIdentityProvider
1261
1271
  end
1262
1272
 
1263
1273
  class LogConfigurationType
1264
- attr_accessor log_level: ("ERROR")
1265
- attr_accessor event_source: ("userNotification")
1274
+ attr_accessor log_level: ("ERROR" | "INFO")
1275
+ attr_accessor event_source: ("userNotification" | "userAuthEvents")
1266
1276
  attr_accessor cloud_watch_logs_configuration: Types::CloudWatchLogsConfigurationType
1277
+ attr_accessor s3_configuration: Types::S3ConfigurationType
1278
+ attr_accessor firehose_configuration: Types::FirehoseConfigurationType
1267
1279
  SENSITIVE: []
1268
1280
  end
1269
1281
 
@@ -1325,12 +1337,18 @@ module Aws::CognitoIdentityProvider
1325
1337
  SENSITIVE: []
1326
1338
  end
1327
1339
 
1340
+ class PasswordHistoryPolicyViolationException
1341
+ attr_accessor message: ::String
1342
+ SENSITIVE: []
1343
+ end
1344
+
1328
1345
  class PasswordPolicyType
1329
1346
  attr_accessor minimum_length: ::Integer
1330
1347
  attr_accessor require_uppercase: bool
1331
1348
  attr_accessor require_lowercase: bool
1332
1349
  attr_accessor require_numbers: bool
1333
1350
  attr_accessor require_symbols: bool
1351
+ attr_accessor password_history_size: ::Integer
1334
1352
  attr_accessor temporary_password_validity_days: ::Integer
1335
1353
  SENSITIVE: []
1336
1354
  end
@@ -1451,6 +1469,11 @@ module Aws::CognitoIdentityProvider
1451
1469
  SENSITIVE: []
1452
1470
  end
1453
1471
 
1472
+ class S3ConfigurationType
1473
+ attr_accessor bucket_arn: ::String
1474
+ SENSITIVE: []
1475
+ end
1476
+
1454
1477
  class SMSMfaSettingsType
1455
1478
  attr_accessor enabled: bool
1456
1479
  attr_accessor preferred_mfa: bool
@@ -1897,6 +1920,7 @@ module Aws::CognitoIdentityProvider
1897
1920
 
1898
1921
  class UserPoolAddOnsType
1899
1922
  attr_accessor advanced_security_mode: ("OFF" | "AUDIT" | "ENFORCED")
1923
+ attr_accessor advanced_security_additional_flows: Types::AdvancedSecurityAdditionalFlowsType
1900
1924
  SENSITIVE: []
1901
1925
  end
1902
1926
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cognitoidentityprovider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.97.0
4
+ version: 1.99.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core