aws-sdk-cognitoidentityprovider 1.97.0 → 1.98.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: 44de345428766dd1042a0a6d9ca385d70ba2ec48ae00895d13c712a6d0e7dcf3
4
+ data.tar.gz: ec43a9dbc42fd4c650168be2a275f08c2b9b31361c5ba39dd1a8c59ad8493f83
5
5
  SHA512:
6
- metadata.gz: 1deb3891d1dc9a55c3bebb5e27fd340cfb038bffb59b08a57bd5bcab60b7e226294c751fd4bffd2125eb133644b7d14d7a88da42152fdd571974c2acd1551d30
7
- data.tar.gz: b86b8ee77b3bde681438a6d9705a91df380d57a81a6ce6ab4fb23221ea34cefdbfebbdc3a379428b3e9e5fd87337c6098d8ee65e6be1de29871d1e396d6dae45
6
+ metadata.gz: 949a8d9b796c9a508fd400668239b2a7a90881f6a5b24aa3164ffe221d7095d959af8483e81b558bb18e4b14c3882de17a053c911ec017e5032325dd46e621d8
7
+ data.tar.gz: 33daa5b016d8cd8e0ed38686dc8ca43780ee3e757f2d107f455a07efc04dc6187606f5a82f436f06fcdd94248e020bfc3c0dac5eee1178ce72db7c64a5eca213
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.98.0 (2024-08-06)
5
+ ------------------
6
+
7
+ * Feature - Advanced security feature updates to include password history and log export for Cognito user pools.
8
+
4
9
  1.97.0 (2024-07-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.97.0
1
+ 1.98.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
  # },
@@ -4754,6 +4753,7 @@ module Aws::CognitoIdentityProvider
4754
4753
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
4755
4754
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
4756
4755
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
4756
+ # resp.user_pool.policies.password_policy.password_history_size #=> Integer
4757
4757
  # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
4758
4758
  # resp.user_pool.deletion_protection #=> String, one of "ACTIVE", "INACTIVE"
4759
4759
  # resp.user_pool.lambda_config.pre_sign_up #=> String
@@ -5163,6 +5163,8 @@ module Aws::CognitoIdentityProvider
5163
5163
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
5164
5164
  # where user existence related errors aren't prevented.
5165
5165
  #
5166
+ # Defaults to `LEGACY` when you don't provide a value.
5167
+ #
5166
5168
  # @option params [Boolean] :enable_token_revocation
5167
5169
  # Activates or deactivates token revocation. For more information about
5168
5170
  # revoking tokens, see [RevokeToken][1].
@@ -5959,6 +5961,7 @@ module Aws::CognitoIdentityProvider
5959
5961
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
5960
5962
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
5961
5963
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
5964
+ # resp.user_pool.policies.password_policy.password_history_size #=> Integer
5962
5965
  # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
5963
5966
  # resp.user_pool.deletion_protection #=> String, one of "ACTIVE", "INACTIVE"
5964
5967
  # resp.user_pool.lambda_config.pre_sign_up #=> String
@@ -6548,11 +6551,11 @@ module Aws::CognitoIdentityProvider
6548
6551
  req.send_request(options)
6549
6552
  end
6550
6553
 
6551
- # Gets the detailed activity logging configuration for a user pool.
6554
+ # Gets the logging configuration of a user pool.
6552
6555
  #
6553
6556
  # @option params [required, String] :user_pool_id
6554
- # The ID of the user pool where you want to view detailed activity
6555
- # logging configuration.
6557
+ # The ID of the user pool that has the logging configuration that you
6558
+ # want to view.
6556
6559
  #
6557
6560
  # @return [Types::GetLogDeliveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6558
6561
  #
@@ -6568,9 +6571,11 @@ module Aws::CognitoIdentityProvider
6568
6571
  #
6569
6572
  # resp.log_delivery_configuration.user_pool_id #=> String
6570
6573
  # 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"
6574
+ # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR", "INFO"
6575
+ # resp.log_delivery_configuration.log_configurations[0].event_source #=> String, one of "userNotification", "userAuthEvents"
6573
6576
  # resp.log_delivery_configuration.log_configurations[0].cloud_watch_logs_configuration.log_group_arn #=> String
6577
+ # resp.log_delivery_configuration.log_configurations[0].s3_configuration.bucket_arn #=> String
6578
+ # resp.log_delivery_configuration.log_configurations[0].firehose_configuration.stream_arn #=> String
6574
6579
  #
6575
6580
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfiguration AWS API Documentation
6576
6581
  #
@@ -8466,16 +8471,15 @@ module Aws::CognitoIdentityProvider
8466
8471
  req.send_request(options)
8467
8472
  end
8468
8473
 
8469
- # Sets up or modifies the detailed activity logging configuration of a
8470
- # user pool.
8474
+ # Sets up or modifies the logging configuration of a user pool. User
8475
+ # pools can export user notification logs and advanced security features
8476
+ # user activity logs.
8471
8477
  #
8472
8478
  # @option params [required, String] :user_pool_id
8473
- # The ID of the user pool where you want to configure detailed activity
8474
- # logging .
8479
+ # The ID of the user pool where you want to configure logging.
8475
8480
  #
8476
8481
  # @option params [required, Array<Types::LogConfigurationType>] :log_configurations
8477
- # A collection of all of the detailed activity logging configurations
8478
- # for a user pool.
8482
+ # A collection of the logging configurations for a user pool.
8479
8483
  #
8480
8484
  # @return [Types::SetLogDeliveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8481
8485
  #
@@ -8487,11 +8491,17 @@ module Aws::CognitoIdentityProvider
8487
8491
  # user_pool_id: "UserPoolIdType", # required
8488
8492
  # log_configurations: [ # required
8489
8493
  # {
8490
- # log_level: "ERROR", # required, accepts ERROR
8491
- # event_source: "userNotification", # required, accepts userNotification
8494
+ # log_level: "ERROR", # required, accepts ERROR, INFO
8495
+ # event_source: "userNotification", # required, accepts userNotification, userAuthEvents
8492
8496
  # cloud_watch_logs_configuration: {
8493
8497
  # log_group_arn: "ArnType",
8494
8498
  # },
8499
+ # s3_configuration: {
8500
+ # bucket_arn: "S3ArnType",
8501
+ # },
8502
+ # firehose_configuration: {
8503
+ # stream_arn: "ArnType",
8504
+ # },
8495
8505
  # },
8496
8506
  # ],
8497
8507
  # })
@@ -8500,9 +8510,11 @@ module Aws::CognitoIdentityProvider
8500
8510
  #
8501
8511
  # resp.log_delivery_configuration.user_pool_id #=> String
8502
8512
  # 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"
8513
+ # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR", "INFO"
8514
+ # resp.log_delivery_configuration.log_configurations[0].event_source #=> String, one of "userNotification", "userAuthEvents"
8505
8515
  # resp.log_delivery_configuration.log_configurations[0].cloud_watch_logs_configuration.log_group_arn #=> String
8516
+ # resp.log_delivery_configuration.log_configurations[0].s3_configuration.bucket_arn #=> String
8517
+ # resp.log_delivery_configuration.log_configurations[0].firehose_configuration.stream_arn #=> String
8506
8518
  #
8507
8519
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetLogDeliveryConfiguration AWS API Documentation
8508
8520
  #
@@ -10050,6 +10062,7 @@ module Aws::CognitoIdentityProvider
10050
10062
  # require_lowercase: false,
10051
10063
  # require_numbers: false,
10052
10064
  # require_symbols: false,
10065
+ # password_history_size: 1,
10053
10066
  # temporary_password_validity_days: 1,
10054
10067
  # },
10055
10068
  # },
@@ -10463,6 +10476,8 @@ module Aws::CognitoIdentityProvider
10463
10476
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
10464
10477
  # where user existence related errors aren't prevented.
10465
10478
  #
10479
+ # Defaults to `LEGACY` when you don't provide a value.
10480
+ #
10466
10481
  # @option params [Boolean] :enable_token_revocation
10467
10482
  # Activates or deactivates token revocation. For more information about
10468
10483
  # revoking tokens, see [RevokeToken][1].
@@ -10808,7 +10823,7 @@ module Aws::CognitoIdentityProvider
10808
10823
  params: params,
10809
10824
  config: config)
10810
10825
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
10811
- context[:gem_version] = '1.97.0'
10826
+ context[:gem_version] = '1.98.0'
10812
10827
  Seahorse::Client::Request.new(handlers, context)
10813
10828
  end
10814
10829
 
@@ -221,6 +221,7 @@ module Aws::CognitoIdentityProvider
221
221
  ExplicitAuthFlowsListType = Shapes::ListShape.new(name: 'ExplicitAuthFlowsListType')
222
222
  ExplicitAuthFlowsType = Shapes::StringShape.new(name: 'ExplicitAuthFlowsType')
223
223
  FeedbackValueType = Shapes::StringShape.new(name: 'FeedbackValueType')
224
+ FirehoseConfigurationType = Shapes::StructureShape.new(name: 'FirehoseConfigurationType')
224
225
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
225
226
  ForceAliasCreation = Shapes::BooleanShape.new(name: 'ForceAliasCreation')
226
227
  ForgetDeviceRequest = Shapes::StructureShape.new(name: 'ForgetDeviceRequest')
@@ -321,6 +322,8 @@ module Aws::CognitoIdentityProvider
321
322
  OAuthFlowsType = Shapes::ListShape.new(name: 'OAuthFlowsType')
322
323
  PaginationKey = Shapes::StringShape.new(name: 'PaginationKey')
323
324
  PaginationKeyType = Shapes::StringShape.new(name: 'PaginationKeyType')
325
+ PasswordHistoryPolicyViolationException = Shapes::StructureShape.new(name: 'PasswordHistoryPolicyViolationException')
326
+ PasswordHistorySizeType = Shapes::IntegerShape.new(name: 'PasswordHistorySizeType')
324
327
  PasswordPolicyMinLengthType = Shapes::IntegerShape.new(name: 'PasswordPolicyMinLengthType')
325
328
  PasswordPolicyType = Shapes::StructureShape.new(name: 'PasswordPolicyType')
326
329
  PasswordResetRequiredException = Shapes::StructureShape.new(name: 'PasswordResetRequiredException')
@@ -366,7 +369,9 @@ module Aws::CognitoIdentityProvider
366
369
  RiskDecisionType = Shapes::StringShape.new(name: 'RiskDecisionType')
367
370
  RiskExceptionConfigurationType = Shapes::StructureShape.new(name: 'RiskExceptionConfigurationType')
368
371
  RiskLevelType = Shapes::StringShape.new(name: 'RiskLevelType')
372
+ S3ArnType = Shapes::StringShape.new(name: 'S3ArnType')
369
373
  S3BucketType = Shapes::StringShape.new(name: 'S3BucketType')
374
+ S3ConfigurationType = Shapes::StructureShape.new(name: 'S3ConfigurationType')
370
375
  SESConfigurationSet = Shapes::StringShape.new(name: 'SESConfigurationSet')
371
376
  SMSMfaSettingsType = Shapes::StructureShape.new(name: 'SMSMfaSettingsType')
372
377
  SchemaAttributeType = Shapes::StructureShape.new(name: 'SchemaAttributeType')
@@ -1149,6 +1154,9 @@ module Aws::CognitoIdentityProvider
1149
1154
 
1150
1155
  ExplicitAuthFlowsListType.member = Shapes::ShapeRef.new(shape: ExplicitAuthFlowsType)
1151
1156
 
1157
+ FirehoseConfigurationType.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "StreamArn"))
1158
+ FirehoseConfigurationType.struct_class = Types::FirehoseConfigurationType
1159
+
1152
1160
  ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1153
1161
  ForbiddenException.struct_class = Types::ForbiddenException
1154
1162
 
@@ -1433,6 +1441,8 @@ module Aws::CognitoIdentityProvider
1433
1441
  LogConfigurationType.add_member(:log_level, Shapes::ShapeRef.new(shape: LogLevel, required: true, location_name: "LogLevel"))
1434
1442
  LogConfigurationType.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSourceName, required: true, location_name: "EventSource"))
1435
1443
  LogConfigurationType.add_member(:cloud_watch_logs_configuration, Shapes::ShapeRef.new(shape: CloudWatchLogsConfigurationType, location_name: "CloudWatchLogsConfiguration"))
1444
+ LogConfigurationType.add_member(:s3_configuration, Shapes::ShapeRef.new(shape: S3ConfigurationType, location_name: "S3Configuration"))
1445
+ LogConfigurationType.add_member(:firehose_configuration, Shapes::ShapeRef.new(shape: FirehoseConfigurationType, location_name: "FirehoseConfiguration"))
1436
1446
  LogConfigurationType.struct_class = Types::LogConfigurationType
1437
1447
 
1438
1448
  LogDeliveryConfigurationType.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
@@ -1481,11 +1491,15 @@ module Aws::CognitoIdentityProvider
1481
1491
 
1482
1492
  OAuthFlowsType.member = Shapes::ShapeRef.new(shape: OAuthFlowType)
1483
1493
 
1494
+ PasswordHistoryPolicyViolationException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1495
+ PasswordHistoryPolicyViolationException.struct_class = Types::PasswordHistoryPolicyViolationException
1496
+
1484
1497
  PasswordPolicyType.add_member(:minimum_length, Shapes::ShapeRef.new(shape: PasswordPolicyMinLengthType, location_name: "MinimumLength"))
1485
1498
  PasswordPolicyType.add_member(:require_uppercase, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireUppercase"))
1486
1499
  PasswordPolicyType.add_member(:require_lowercase, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireLowercase"))
1487
1500
  PasswordPolicyType.add_member(:require_numbers, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireNumbers"))
1488
1501
  PasswordPolicyType.add_member(:require_symbols, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireSymbols"))
1502
+ PasswordPolicyType.add_member(:password_history_size, Shapes::ShapeRef.new(shape: PasswordHistorySizeType, location_name: "PasswordHistorySize"))
1489
1503
  PasswordPolicyType.add_member(:temporary_password_validity_days, Shapes::ShapeRef.new(shape: TemporaryPasswordValidityDaysType, location_name: "TemporaryPasswordValidityDays"))
1490
1504
  PasswordPolicyType.struct_class = Types::PasswordPolicyType
1491
1505
 
@@ -1583,6 +1597,9 @@ module Aws::CognitoIdentityProvider
1583
1597
  RiskExceptionConfigurationType.add_member(:skipped_ip_range_list, Shapes::ShapeRef.new(shape: SkippedIPRangeListType, location_name: "SkippedIPRangeList"))
1584
1598
  RiskExceptionConfigurationType.struct_class = Types::RiskExceptionConfigurationType
1585
1599
 
1600
+ S3ConfigurationType.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: S3ArnType, location_name: "BucketArn"))
1601
+ S3ConfigurationType.struct_class = Types::S3ConfigurationType
1602
+
1586
1603
  SMSMfaSettingsType.add_member(:enabled, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Enabled"))
1587
1604
  SMSMfaSettingsType.add_member(:preferred_mfa, Shapes::ShapeRef.new(shape: BooleanType, location_name: "PreferredMfa"))
1588
1605
  SMSMfaSettingsType.struct_class = Types::SMSMfaSettingsType
@@ -2400,6 +2417,7 @@ module Aws::CognitoIdentityProvider
2400
2417
  o.errors << Shapes::ShapeRef.new(shape: ExpiredCodeException)
2401
2418
  o.errors << Shapes::ShapeRef.new(shape: UnexpectedLambdaException)
2402
2419
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2420
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2403
2421
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
2404
2422
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaResponseException)
2405
2423
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
@@ -2443,6 +2461,7 @@ module Aws::CognitoIdentityProvider
2443
2461
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2444
2462
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2445
2463
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2464
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2446
2465
  end)
2447
2466
 
2448
2467
  api.add_operation(:admin_set_user_settings, Seahorse::Model::Operation.new.tap do |o|
@@ -2551,6 +2570,7 @@ module Aws::CognitoIdentityProvider
2551
2570
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2552
2571
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2553
2572
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2573
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2554
2574
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2555
2575
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2556
2576
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
@@ -2597,6 +2617,7 @@ module Aws::CognitoIdentityProvider
2597
2617
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
2598
2618
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2599
2619
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2620
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2600
2621
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2601
2622
  o.errors << Shapes::ShapeRef.new(shape: CodeMismatchException)
2602
2623
  o.errors << Shapes::ShapeRef.new(shape: ExpiredCodeException)
@@ -3413,6 +3434,7 @@ module Aws::CognitoIdentityProvider
3413
3434
  o.errors << Shapes::ShapeRef.new(shape: UnexpectedLambdaException)
3414
3435
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
3415
3436
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
3437
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
3416
3438
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaResponseException)
3417
3439
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3418
3440
  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
@@ -2257,8 +2257,9 @@ module Aws::CognitoIdentityProvider
2257
2257
  #
2258
2258
  class ChangePasswordResponse < Aws::EmptyStructure; end
2259
2259
 
2260
- # The CloudWatch logging destination of a user pool detailed activity
2261
- # logging configuration.
2260
+ # Configuration for the CloudWatch log group destination of user pool
2261
+ # detailed activity logging, or of user activity log export with
2262
+ # advanced security features.
2262
2263
  #
2263
2264
  # @!attribute [rw] log_group_arn
2264
2265
  # The Amazon Resource Name (arn) of a CloudWatch Logs log group where
@@ -3329,6 +3330,8 @@ module Aws::CognitoIdentityProvider
3329
3330
  #
3330
3331
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
3331
3332
  # where user existence related errors aren't prevented.
3333
+ #
3334
+ # Defaults to `LEGACY` when you don't provide a value.
3332
3335
  # @return [String]
3333
3336
  #
3334
3337
  # @!attribute [rw] enable_token_revocation
@@ -4598,6 +4601,22 @@ module Aws::CognitoIdentityProvider
4598
4601
  include Aws::Structure
4599
4602
  end
4600
4603
 
4604
+ # Configuration for the Amazon Data Firehose stream destination of user
4605
+ # activity log export with advanced security features.
4606
+ #
4607
+ # @!attribute [rw] stream_arn
4608
+ # The ARN of an Amazon Data Firehose stream that's the destination
4609
+ # for advanced security features log export.
4610
+ # @return [String]
4611
+ #
4612
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/FirehoseConfigurationType AWS API Documentation
4613
+ #
4614
+ class FirehoseConfigurationType < Struct.new(
4615
+ :stream_arn)
4616
+ SENSITIVE = []
4617
+ include Aws::Structure
4618
+ end
4619
+
4601
4620
  # This exception is thrown when WAF doesn't allow your request based on
4602
4621
  # a web ACL that's associated with your user pool.
4603
4622
  #
@@ -4864,8 +4883,8 @@ module Aws::CognitoIdentityProvider
4864
4883
  end
4865
4884
 
4866
4885
  # @!attribute [rw] user_pool_id
4867
- # The ID of the user pool where you want to view detailed activity
4868
- # logging configuration.
4886
+ # The ID of the user pool that has the logging configuration that you
4887
+ # want to view.
4869
4888
  # @return [String]
4870
4889
  #
4871
4890
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfigurationRequest AWS API Documentation
@@ -4877,8 +4896,7 @@ module Aws::CognitoIdentityProvider
4877
4896
  end
4878
4897
 
4879
4898
  # @!attribute [rw] log_delivery_configuration
4880
- # The detailed activity logging configuration of the requested user
4881
- # pool.
4899
+ # The logging configuration of the requested user pool.
4882
4900
  # @return [Types::LogDeliveryConfigurationType]
4883
4901
  #
4884
4902
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfigurationResponse AWS API Documentation
@@ -6487,37 +6505,73 @@ module Aws::CognitoIdentityProvider
6487
6505
  #
6488
6506
  # @!attribute [rw] log_level
6489
6507
  # The `errorlevel` selection of logs that a user pool sends for
6490
- # detailed activity logging.
6508
+ # detailed activity logging. To send `userNotification` activity with
6509
+ # [information about message delivery][1], choose `ERROR` with
6510
+ # `CloudWatchLogsConfiguration`. To send `userAuthEvents` activity
6511
+ # with user logs from advanced security features, choose `INFO` with
6512
+ # one of `CloudWatchLogsConfiguration`, `FirehoseConfiguration`, or
6513
+ # `S3Configuration`.
6514
+ #
6515
+ #
6516
+ #
6517
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/tracking-quotas-and-usage-in-cloud-watch-logs.html
6491
6518
  # @return [String]
6492
6519
  #
6493
6520
  # @!attribute [rw] event_source
6494
- # The source of events that your user pool sends for detailed activity
6495
- # logging.
6521
+ # The source of events that your user pool sends for logging. To send
6522
+ # error-level logs about user notification activity, set to
6523
+ # `userNotification`. To send info-level logs about advanced security
6524
+ # features user activity, set to `userAuthEvents`.
6496
6525
  # @return [String]
6497
6526
  #
6498
6527
  # @!attribute [rw] cloud_watch_logs_configuration
6499
- # The CloudWatch logging destination of a user pool.
6528
+ # The CloudWatch log group destination of user pool detailed activity
6529
+ # logs, or of user activity log export with advanced security
6530
+ # features.
6500
6531
  # @return [Types::CloudWatchLogsConfigurationType]
6501
6532
  #
6533
+ # @!attribute [rw] s3_configuration
6534
+ # The Amazon S3 bucket destination of user activity log export with
6535
+ # advanced security features. To activate this setting, [ advanced
6536
+ # security features][1] must be active in your user pool.
6537
+ #
6538
+ #
6539
+ #
6540
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
6541
+ # @return [Types::S3ConfigurationType]
6542
+ #
6543
+ # @!attribute [rw] firehose_configuration
6544
+ # The Amazon Data Firehose stream destination of user activity log
6545
+ # export with advanced security features. To activate this setting, [
6546
+ # advanced security features][1] must be active in your user pool.
6547
+ #
6548
+ #
6549
+ #
6550
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
6551
+ # @return [Types::FirehoseConfigurationType]
6552
+ #
6502
6553
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LogConfigurationType AWS API Documentation
6503
6554
  #
6504
6555
  class LogConfigurationType < Struct.new(
6505
6556
  :log_level,
6506
6557
  :event_source,
6507
- :cloud_watch_logs_configuration)
6558
+ :cloud_watch_logs_configuration,
6559
+ :s3_configuration,
6560
+ :firehose_configuration)
6508
6561
  SENSITIVE = []
6509
6562
  include Aws::Structure
6510
6563
  end
6511
6564
 
6512
- # The logging parameters of a user pool.
6565
+ # The logging parameters of a user pool returned in response to
6566
+ # `GetLogDeliveryConfiguration`.
6513
6567
  #
6514
6568
  # @!attribute [rw] user_pool_id
6515
- # The ID of the user pool where you configured detailed activity
6516
- # logging.
6569
+ # The ID of the user pool where you configured logging.
6517
6570
  # @return [String]
6518
6571
  #
6519
6572
  # @!attribute [rw] log_configurations
6520
- # The detailed activity logging destination of a user pool.
6573
+ # A logging destination of a user pool. User pools can have multiple
6574
+ # logging destinations for message-delivery and user-activity logs.
6521
6575
  # @return [Array<Types::LogConfigurationType>]
6522
6576
  #
6523
6577
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LogDeliveryConfigurationType AWS API Documentation
@@ -6727,6 +6781,20 @@ module Aws::CognitoIdentityProvider
6727
6781
  include Aws::Structure
6728
6782
  end
6729
6783
 
6784
+ # The message returned when a user's new password matches a previous
6785
+ # password and doesn't comply with the password-history policy.
6786
+ #
6787
+ # @!attribute [rw] message
6788
+ # @return [String]
6789
+ #
6790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/PasswordHistoryPolicyViolationException AWS API Documentation
6791
+ #
6792
+ class PasswordHistoryPolicyViolationException < Struct.new(
6793
+ :message)
6794
+ SENSITIVE = []
6795
+ include Aws::Structure
6796
+ end
6797
+
6730
6798
  # The password policy type.
6731
6799
  #
6732
6800
  # @!attribute [rw] minimum_length
@@ -6756,6 +6824,23 @@ module Aws::CognitoIdentityProvider
6756
6824
  # required users to use at least one symbol in their password.
6757
6825
  # @return [Boolean]
6758
6826
  #
6827
+ # @!attribute [rw] password_history_size
6828
+ # The number of previous passwords that you want Amazon Cognito to
6829
+ # restrict each user from reusing. Users can't set a password that
6830
+ # matches any of `n` previous passwords, where `n` is the value of
6831
+ # `PasswordHistorySize`.
6832
+ #
6833
+ # Password history isn't enforced and isn't displayed in
6834
+ # [DescribeUserPool][1] responses when you set this value to `0` or
6835
+ # don't provide it. To activate this setting, [ advanced security
6836
+ # features][2] must be active in your user pool.
6837
+ #
6838
+ #
6839
+ #
6840
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html
6841
+ # [2]: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html
6842
+ # @return [Integer]
6843
+ #
6759
6844
  # @!attribute [rw] temporary_password_validity_days
6760
6845
  # The number of days a temporary password is valid in the password
6761
6846
  # policy. If the user doesn't sign in during this time, an
@@ -6778,6 +6863,7 @@ module Aws::CognitoIdentityProvider
6778
6863
  :require_lowercase,
6779
6864
  :require_numbers,
6780
6865
  :require_symbols,
6866
+ :password_history_size,
6781
6867
  :temporary_password_validity_days)
6782
6868
  SENSITIVE = []
6783
6869
  include Aws::Structure
@@ -7408,6 +7494,22 @@ module Aws::CognitoIdentityProvider
7408
7494
  include Aws::Structure
7409
7495
  end
7410
7496
 
7497
+ # Configuration for the Amazon S3 bucket destination of user activity
7498
+ # log export with advanced security features.
7499
+ #
7500
+ # @!attribute [rw] bucket_arn
7501
+ # The ARN of an Amazon S3 bucket that's the destination for advanced
7502
+ # security features log export.
7503
+ # @return [String]
7504
+ #
7505
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/S3ConfigurationType AWS API Documentation
7506
+ #
7507
+ class S3ConfigurationType < Struct.new(
7508
+ :bucket_arn)
7509
+ SENSITIVE = []
7510
+ include Aws::Structure
7511
+ end
7512
+
7411
7513
  # The type used for enabling SMS multi-factor authentication (MFA) at
7412
7514
  # the user level. Phone numbers don't need to be verified to be used
7413
7515
  # for SMS MFA. If an MFA type is activated for a user, the user will be
@@ -7548,13 +7650,11 @@ module Aws::CognitoIdentityProvider
7548
7650
  end
7549
7651
 
7550
7652
  # @!attribute [rw] user_pool_id
7551
- # The ID of the user pool where you want to configure detailed
7552
- # activity logging .
7653
+ # The ID of the user pool where you want to configure logging.
7553
7654
  # @return [String]
7554
7655
  #
7555
7656
  # @!attribute [rw] log_configurations
7556
- # A collection of all of the detailed activity logging configurations
7557
- # for a user pool.
7657
+ # A collection of the logging configurations for a user pool.
7558
7658
  # @return [Array<Types::LogConfigurationType>]
7559
7659
  #
7560
7660
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetLogDeliveryConfigurationRequest AWS API Documentation
@@ -7923,7 +8023,7 @@ module Aws::CognitoIdentityProvider
7923
8023
  # @return [Types::CodeDeliveryDetailsType]
7924
8024
  #
7925
8025
  # @!attribute [rw] user_sub
7926
- # The UUID of the authenticated user. This isn't the same as
8026
+ # The 128-bit ID of the authenticated user. This isn't the same as
7927
8027
  # `username`.
7928
8028
  # @return [String]
7929
8029
  #
@@ -9156,6 +9256,8 @@ module Aws::CognitoIdentityProvider
9156
9256
  #
9157
9257
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
9158
9258
  # where user existence related errors aren't prevented.
9259
+ #
9260
+ # Defaults to `LEGACY` when you don't provide a value.
9159
9261
  # @return [String]
9160
9262
  #
9161
9263
  # @!attribute [rw] enable_token_revocation
@@ -10092,8 +10194,10 @@ module Aws::CognitoIdentityProvider
10092
10194
  #
10093
10195
  # * `ENABLED` - This prevents user existence-related errors.
10094
10196
  #
10095
- # * `LEGACY` - This represents the old behavior of Amazon Cognito
10197
+ # * `LEGACY` - This represents the early behavior of Amazon Cognito
10096
10198
  # where user existence related errors aren't prevented.
10199
+ #
10200
+ # Defaults to `LEGACY` when you don't provide a value.
10097
10201
  # @return [String]
10098
10202
  #
10099
10203
  # @!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.98.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
  },
@@ -1297,10 +1298,16 @@ module Aws
1297
1298
  user_pool_id: ::String,
1298
1299
  log_configurations: Array[
1299
1300
  {
1300
- log_level: ("ERROR"),
1301
- event_source: ("userNotification"),
1301
+ log_level: ("ERROR" | "INFO"),
1302
+ event_source: ("userNotification" | "userAuthEvents"),
1302
1303
  cloud_watch_logs_configuration: {
1303
1304
  log_group_arn: ::String?
1305
+ }?,
1306
+ s3_configuration: {
1307
+ bucket_arn: ::String?
1308
+ }?,
1309
+ firehose_configuration: {
1310
+ stream_arn: ::String?
1304
1311
  }?
1305
1312
  },
1306
1313
  ]
@@ -1610,6 +1617,7 @@ module Aws
1610
1617
  require_lowercase: bool?,
1611
1618
  require_numbers: bool?,
1612
1619
  require_symbols: bool?,
1620
+ password_history_size: ::Integer?,
1613
1621
  temporary_password_validity_days: ::Integer?
1614
1622
  }?
1615
1623
  },
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
@@ -864,6 +864,11 @@ module Aws::CognitoIdentityProvider
864
864
  SENSITIVE: []
865
865
  end
866
866
 
867
+ class FirehoseConfigurationType
868
+ attr_accessor stream_arn: ::String
869
+ SENSITIVE: []
870
+ end
871
+
867
872
  class ForbiddenException
868
873
  attr_accessor message: ::String
869
874
  SENSITIVE: []
@@ -1261,9 +1266,11 @@ module Aws::CognitoIdentityProvider
1261
1266
  end
1262
1267
 
1263
1268
  class LogConfigurationType
1264
- attr_accessor log_level: ("ERROR")
1265
- attr_accessor event_source: ("userNotification")
1269
+ attr_accessor log_level: ("ERROR" | "INFO")
1270
+ attr_accessor event_source: ("userNotification" | "userAuthEvents")
1266
1271
  attr_accessor cloud_watch_logs_configuration: Types::CloudWatchLogsConfigurationType
1272
+ attr_accessor s3_configuration: Types::S3ConfigurationType
1273
+ attr_accessor firehose_configuration: Types::FirehoseConfigurationType
1267
1274
  SENSITIVE: []
1268
1275
  end
1269
1276
 
@@ -1325,12 +1332,18 @@ module Aws::CognitoIdentityProvider
1325
1332
  SENSITIVE: []
1326
1333
  end
1327
1334
 
1335
+ class PasswordHistoryPolicyViolationException
1336
+ attr_accessor message: ::String
1337
+ SENSITIVE: []
1338
+ end
1339
+
1328
1340
  class PasswordPolicyType
1329
1341
  attr_accessor minimum_length: ::Integer
1330
1342
  attr_accessor require_uppercase: bool
1331
1343
  attr_accessor require_lowercase: bool
1332
1344
  attr_accessor require_numbers: bool
1333
1345
  attr_accessor require_symbols: bool
1346
+ attr_accessor password_history_size: ::Integer
1334
1347
  attr_accessor temporary_password_validity_days: ::Integer
1335
1348
  SENSITIVE: []
1336
1349
  end
@@ -1451,6 +1464,11 @@ module Aws::CognitoIdentityProvider
1451
1464
  SENSITIVE: []
1452
1465
  end
1453
1466
 
1467
+ class S3ConfigurationType
1468
+ attr_accessor bucket_arn: ::String
1469
+ SENSITIVE: []
1470
+ end
1471
+
1454
1472
  class SMSMfaSettingsType
1455
1473
  attr_accessor enabled: bool
1456
1474
  attr_accessor preferred_mfa: bool
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.98.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-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core