aws-sdk-cognitoidentityprovider 1.96.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: 215e28109dacfd450852f75ba2327bcad1282514a73daeff0ac6dcad68a28506
4
- data.tar.gz: 8b0684dbc6f7a84713fc2469c14455fcf9901797f693c0c65477898fdf062ecf
3
+ metadata.gz: 44de345428766dd1042a0a6d9ca385d70ba2ec48ae00895d13c712a6d0e7dcf3
4
+ data.tar.gz: ec43a9dbc42fd4c650168be2a275f08c2b9b31361c5ba39dd1a8c59ad8493f83
5
5
  SHA512:
6
- metadata.gz: 8df921e6306cdb2726a244cb01227fcc3b3e543d94a6fbbb4cf82adbc871acd881e21a190956162ee7d3b7917f43858866ded8bfed71e35bf3b5c28dcbff946c
7
- data.tar.gz: 3940427132c2fa248ada43d1664e3ed25bc2ddd5848a3b4ce13691edff0eb8ae2414c46626fcbe83f4ca8f1ef35701b4ab509c71632ff7903c9ae1f210dd635b
6
+ metadata.gz: 949a8d9b796c9a508fd400668239b2a7a90881f6a5b24aa3164ffe221d7095d959af8483e81b558bb18e4b14c3882de17a053c911ec017e5032325dd46e621d8
7
+ data.tar.gz: 33daa5b016d8cd8e0ed38686dc8ca43780ee3e757f2d107f455a07efc04dc6187606f5a82f436f06fcdd94248e020bfc3c0dac5eee1178ce72db7c64a5eca213
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.97.0 (2024-07-02)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.96.0 (2024-06-25)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.96.0
1
+ 1.98.0
@@ -312,6 +312,15 @@ module Aws::CognitoIdentityProvider
312
312
  #
313
313
  # @option options [String] :session_token
314
314
  #
315
+ # @option options [Array] :sigv4a_signing_region_set
316
+ # A list of regions that should be signed with SigV4a signing. When
317
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
318
+ # in the following locations:
319
+ #
320
+ # * `Aws.config[:sigv4a_signing_region_set]`
321
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
322
+ # * `~/.aws/config`
323
+ #
315
324
  # @option options [Boolean] :simple_json (false)
316
325
  # Disables request parameter conversion, validation, and formatting.
317
326
  # Also disables response data type conversions. The request parameters
@@ -538,18 +547,14 @@ module Aws::CognitoIdentityProvider
538
547
  req.send_request(options)
539
548
  end
540
549
 
541
- # This IAM-authenticated API operation provides a code that Amazon
542
- # Cognito sent to your user when they signed up in your user pool. After
543
- # your user enters their code, they confirm ownership of the email
544
- # address or phone number that they provided, and their user account
545
- # becomes active. Depending on your user pool configuration, your users
546
- # 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.
547
553
  #
548
- # Local users who signed up in your user pool are the only type of user
549
- # who can confirm sign-up with a code. Users who federate through an
550
- # external identity provider (IdP) have already been confirmed by their
551
- # IdP. Administrator-created users confirm their accounts when they
552
- # 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.
553
558
  #
554
559
  # <note markdown="1"> Amazon Cognito evaluates Identity and Access Management (IAM) policies
555
560
  # in requests for this API operation. For this operation, you must use
@@ -558,16 +563,18 @@ module Aws::CognitoIdentityProvider
558
563
  #
559
564
  # **Learn more**
560
565
  #
561
- # * [Signing Amazon Web Services API Requests][1]
566
+ # * [Signing Amazon Web Services API Requests][3]
562
567
  #
563
- # * [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]
564
569
  #
565
570
  # </note>
566
571
  #
567
572
  #
568
573
  #
569
- # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
570
- # [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
571
578
  #
572
579
  # @option params [required, String] :user_pool_id
573
580
  # The user pool ID for which you want to confirm user registration.
@@ -3075,7 +3082,7 @@ module Aws::CognitoIdentityProvider
3075
3082
  # require MFA, the user can then authenticate with user name and
3076
3083
  # password credentials alone. If your user pool requires TOTP MFA,
3077
3084
  # Amazon Cognito generates an `MFA_SETUP` or `SOFTWARE_TOKEN_SETUP`
3078
- # challenge each time your user signs. Complete setup with
3085
+ # challenge each time your user signs in. Complete setup with
3079
3086
  # `AssociateSoftwareToken` and `VerifySoftwareToken`.
3080
3087
  #
3081
3088
  # After you set up software token MFA for your user, Amazon Cognito
@@ -4627,6 +4634,7 @@ module Aws::CognitoIdentityProvider
4627
4634
  # require_lowercase: false,
4628
4635
  # require_numbers: false,
4629
4636
  # require_symbols: false,
4637
+ # password_history_size: 1,
4630
4638
  # temporary_password_validity_days: 1,
4631
4639
  # },
4632
4640
  # },
@@ -4745,6 +4753,7 @@ module Aws::CognitoIdentityProvider
4745
4753
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
4746
4754
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
4747
4755
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
4756
+ # resp.user_pool.policies.password_policy.password_history_size #=> Integer
4748
4757
  # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
4749
4758
  # resp.user_pool.deletion_protection #=> String, one of "ACTIVE", "INACTIVE"
4750
4759
  # resp.user_pool.lambda_config.pre_sign_up #=> String
@@ -5154,6 +5163,8 @@ module Aws::CognitoIdentityProvider
5154
5163
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
5155
5164
  # where user existence related errors aren't prevented.
5156
5165
  #
5166
+ # Defaults to `LEGACY` when you don't provide a value.
5167
+ #
5157
5168
  # @option params [Boolean] :enable_token_revocation
5158
5169
  # Activates or deactivates token revocation. For more information about
5159
5170
  # revoking tokens, see [RevokeToken][1].
@@ -5950,6 +5961,7 @@ module Aws::CognitoIdentityProvider
5950
5961
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
5951
5962
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
5952
5963
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
5964
+ # resp.user_pool.policies.password_policy.password_history_size #=> Integer
5953
5965
  # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
5954
5966
  # resp.user_pool.deletion_protection #=> String, one of "ACTIVE", "INACTIVE"
5955
5967
  # resp.user_pool.lambda_config.pre_sign_up #=> String
@@ -6539,11 +6551,11 @@ module Aws::CognitoIdentityProvider
6539
6551
  req.send_request(options)
6540
6552
  end
6541
6553
 
6542
- # Gets the detailed activity logging configuration for a user pool.
6554
+ # Gets the logging configuration of a user pool.
6543
6555
  #
6544
6556
  # @option params [required, String] :user_pool_id
6545
- # The ID of the user pool where you want to view detailed activity
6546
- # logging configuration.
6557
+ # The ID of the user pool that has the logging configuration that you
6558
+ # want to view.
6547
6559
  #
6548
6560
  # @return [Types::GetLogDeliveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6549
6561
  #
@@ -6559,9 +6571,11 @@ module Aws::CognitoIdentityProvider
6559
6571
  #
6560
6572
  # resp.log_delivery_configuration.user_pool_id #=> String
6561
6573
  # resp.log_delivery_configuration.log_configurations #=> Array
6562
- # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR"
6563
- # 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"
6564
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
6565
6579
  #
6566
6580
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetLogDeliveryConfiguration AWS API Documentation
6567
6581
  #
@@ -8457,16 +8471,15 @@ module Aws::CognitoIdentityProvider
8457
8471
  req.send_request(options)
8458
8472
  end
8459
8473
 
8460
- # Sets up or modifies the detailed activity logging configuration of a
8461
- # 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.
8462
8477
  #
8463
8478
  # @option params [required, String] :user_pool_id
8464
- # The ID of the user pool where you want to configure detailed activity
8465
- # logging .
8479
+ # The ID of the user pool where you want to configure logging.
8466
8480
  #
8467
8481
  # @option params [required, Array<Types::LogConfigurationType>] :log_configurations
8468
- # A collection of all of the detailed activity logging configurations
8469
- # for a user pool.
8482
+ # A collection of the logging configurations for a user pool.
8470
8483
  #
8471
8484
  # @return [Types::SetLogDeliveryConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8472
8485
  #
@@ -8478,11 +8491,17 @@ module Aws::CognitoIdentityProvider
8478
8491
  # user_pool_id: "UserPoolIdType", # required
8479
8492
  # log_configurations: [ # required
8480
8493
  # {
8481
- # log_level: "ERROR", # required, accepts ERROR
8482
- # event_source: "userNotification", # required, accepts userNotification
8494
+ # log_level: "ERROR", # required, accepts ERROR, INFO
8495
+ # event_source: "userNotification", # required, accepts userNotification, userAuthEvents
8483
8496
  # cloud_watch_logs_configuration: {
8484
8497
  # log_group_arn: "ArnType",
8485
8498
  # },
8499
+ # s3_configuration: {
8500
+ # bucket_arn: "S3ArnType",
8501
+ # },
8502
+ # firehose_configuration: {
8503
+ # stream_arn: "ArnType",
8504
+ # },
8486
8505
  # },
8487
8506
  # ],
8488
8507
  # })
@@ -8491,9 +8510,11 @@ module Aws::CognitoIdentityProvider
8491
8510
  #
8492
8511
  # resp.log_delivery_configuration.user_pool_id #=> String
8493
8512
  # resp.log_delivery_configuration.log_configurations #=> Array
8494
- # resp.log_delivery_configuration.log_configurations[0].log_level #=> String, one of "ERROR"
8495
- # 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"
8496
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
8497
8518
  #
8498
8519
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetLogDeliveryConfiguration AWS API Documentation
8499
8520
  #
@@ -10041,6 +10062,7 @@ module Aws::CognitoIdentityProvider
10041
10062
  # require_lowercase: false,
10042
10063
  # require_numbers: false,
10043
10064
  # require_symbols: false,
10065
+ # password_history_size: 1,
10044
10066
  # temporary_password_validity_days: 1,
10045
10067
  # },
10046
10068
  # },
@@ -10454,6 +10476,8 @@ module Aws::CognitoIdentityProvider
10454
10476
  # * `LEGACY` - This represents the early behavior of Amazon Cognito
10455
10477
  # where user existence related errors aren't prevented.
10456
10478
  #
10479
+ # Defaults to `LEGACY` when you don't provide a value.
10480
+ #
10457
10481
  # @option params [Boolean] :enable_token_revocation
10458
10482
  # Activates or deactivates token revocation. For more information about
10459
10483
  # revoking tokens, see [RevokeToken][1].
@@ -10799,7 +10823,7 @@ module Aws::CognitoIdentityProvider
10799
10823
  params: params,
10800
10824
  config: config)
10801
10825
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
10802
- context[:gem_version] = '1.96.0'
10826
+ context[:gem_version] = '1.98.0'
10803
10827
  Seahorse::Client::Request.new(handlers, context)
10804
10828
  end
10805
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|
@@ -2528,6 +2547,7 @@ module Aws::CognitoIdentityProvider
2528
2547
  o.http_method = "POST"
2529
2548
  o.http_request_uri = "/"
2530
2549
  o['authtype'] = "none"
2550
+ o['auth'] = ["smithy.api#noAuth"]
2531
2551
  o.input = Shapes::ShapeRef.new(shape: AssociateSoftwareTokenRequest)
2532
2552
  o.output = Shapes::ShapeRef.new(shape: AssociateSoftwareTokenResponse)
2533
2553
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
@@ -2544,11 +2564,13 @@ module Aws::CognitoIdentityProvider
2544
2564
  o.http_method = "POST"
2545
2565
  o.http_request_uri = "/"
2546
2566
  o['authtype'] = "none"
2567
+ o['auth'] = ["smithy.api#noAuth"]
2547
2568
  o.input = Shapes::ShapeRef.new(shape: ChangePasswordRequest)
2548
2569
  o.output = Shapes::ShapeRef.new(shape: ChangePasswordResponse)
2549
2570
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2550
2571
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2551
2572
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2573
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2552
2574
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2553
2575
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2554
2576
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
@@ -2564,6 +2586,7 @@ module Aws::CognitoIdentityProvider
2564
2586
  o.http_method = "POST"
2565
2587
  o.http_request_uri = "/"
2566
2588
  o['authtype'] = "none"
2589
+ o['auth'] = ["smithy.api#noAuth"]
2567
2590
  o.input = Shapes::ShapeRef.new(shape: ConfirmDeviceRequest)
2568
2591
  o.output = Shapes::ShapeRef.new(shape: ConfirmDeviceResponse)
2569
2592
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -2586,6 +2609,7 @@ module Aws::CognitoIdentityProvider
2586
2609
  o.http_method = "POST"
2587
2610
  o.http_request_uri = "/"
2588
2611
  o['authtype'] = "none"
2612
+ o['auth'] = ["smithy.api#noAuth"]
2589
2613
  o.input = Shapes::ShapeRef.new(shape: ConfirmForgotPasswordRequest)
2590
2614
  o.output = Shapes::ShapeRef.new(shape: ConfirmForgotPasswordResponse)
2591
2615
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -2593,6 +2617,7 @@ module Aws::CognitoIdentityProvider
2593
2617
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
2594
2618
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2595
2619
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2620
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
2596
2621
  o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2597
2622
  o.errors << Shapes::ShapeRef.new(shape: CodeMismatchException)
2598
2623
  o.errors << Shapes::ShapeRef.new(shape: ExpiredCodeException)
@@ -2611,6 +2636,7 @@ module Aws::CognitoIdentityProvider
2611
2636
  o.http_method = "POST"
2612
2637
  o.http_request_uri = "/"
2613
2638
  o['authtype'] = "none"
2639
+ o['auth'] = ["smithy.api#noAuth"]
2614
2640
  o.input = Shapes::ShapeRef.new(shape: ConfirmSignUpRequest)
2615
2641
  o.output = Shapes::ShapeRef.new(shape: ConfirmSignUpResponse)
2616
2642
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -2781,6 +2807,7 @@ module Aws::CognitoIdentityProvider
2781
2807
  o.http_method = "POST"
2782
2808
  o.http_request_uri = "/"
2783
2809
  o['authtype'] = "none"
2810
+ o['auth'] = ["smithy.api#noAuth"]
2784
2811
  o.input = Shapes::ShapeRef.new(shape: DeleteUserRequest)
2785
2812
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2786
2813
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -2799,6 +2826,7 @@ module Aws::CognitoIdentityProvider
2799
2826
  o.http_method = "POST"
2800
2827
  o.http_request_uri = "/"
2801
2828
  o['authtype'] = "none"
2829
+ o['auth'] = ["smithy.api#noAuth"]
2802
2830
  o.input = Shapes::ShapeRef.new(shape: DeleteUserAttributesRequest)
2803
2831
  o.output = Shapes::ShapeRef.new(shape: DeleteUserAttributesResponse)
2804
2832
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -2949,6 +2977,7 @@ module Aws::CognitoIdentityProvider
2949
2977
  o.http_method = "POST"
2950
2978
  o.http_request_uri = "/"
2951
2979
  o['authtype'] = "none"
2980
+ o['auth'] = ["smithy.api#noAuth"]
2952
2981
  o.input = Shapes::ShapeRef.new(shape: ForgetDeviceRequest)
2953
2982
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2954
2983
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -2968,6 +2997,7 @@ module Aws::CognitoIdentityProvider
2968
2997
  o.http_method = "POST"
2969
2998
  o.http_request_uri = "/"
2970
2999
  o['authtype'] = "none"
3000
+ o['auth'] = ["smithy.api#noAuth"]
2971
3001
  o.input = Shapes::ShapeRef.new(shape: ForgotPasswordRequest)
2972
3002
  o.output = Shapes::ShapeRef.new(shape: ForgotPasswordResponse)
2973
3003
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3005,6 +3035,7 @@ module Aws::CognitoIdentityProvider
3005
3035
  o.http_method = "POST"
3006
3036
  o.http_request_uri = "/"
3007
3037
  o['authtype'] = "none"
3038
+ o['auth'] = ["smithy.api#noAuth"]
3008
3039
  o.input = Shapes::ShapeRef.new(shape: GetDeviceRequest)
3009
3040
  o.output = Shapes::ShapeRef.new(shape: GetDeviceResponse)
3010
3041
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3087,6 +3118,7 @@ module Aws::CognitoIdentityProvider
3087
3118
  o.http_method = "POST"
3088
3119
  o.http_request_uri = "/"
3089
3120
  o['authtype'] = "none"
3121
+ o['auth'] = ["smithy.api#noAuth"]
3090
3122
  o.input = Shapes::ShapeRef.new(shape: GetUserRequest)
3091
3123
  o.output = Shapes::ShapeRef.new(shape: GetUserResponse)
3092
3124
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3105,6 +3137,7 @@ module Aws::CognitoIdentityProvider
3105
3137
  o.http_method = "POST"
3106
3138
  o.http_request_uri = "/"
3107
3139
  o['authtype'] = "none"
3140
+ o['auth'] = ["smithy.api#noAuth"]
3108
3141
  o.input = Shapes::ShapeRef.new(shape: GetUserAttributeVerificationCodeRequest)
3109
3142
  o.output = Shapes::ShapeRef.new(shape: GetUserAttributeVerificationCodeResponse)
3110
3143
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3144,6 +3177,7 @@ module Aws::CognitoIdentityProvider
3144
3177
  o.http_method = "POST"
3145
3178
  o.http_request_uri = "/"
3146
3179
  o['authtype'] = "none"
3180
+ o['auth'] = ["smithy.api#noAuth"]
3147
3181
  o.input = Shapes::ShapeRef.new(shape: GlobalSignOutRequest)
3148
3182
  o.output = Shapes::ShapeRef.new(shape: GlobalSignOutResponse)
3149
3183
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3161,6 +3195,7 @@ module Aws::CognitoIdentityProvider
3161
3195
  o.http_method = "POST"
3162
3196
  o.http_request_uri = "/"
3163
3197
  o['authtype'] = "none"
3198
+ o['auth'] = ["smithy.api#noAuth"]
3164
3199
  o.input = Shapes::ShapeRef.new(shape: InitiateAuthRequest)
3165
3200
  o.output = Shapes::ShapeRef.new(shape: InitiateAuthResponse)
3166
3201
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3185,6 +3220,7 @@ module Aws::CognitoIdentityProvider
3185
3220
  o.http_method = "POST"
3186
3221
  o.http_request_uri = "/"
3187
3222
  o['authtype'] = "none"
3223
+ o['auth'] = ["smithy.api#noAuth"]
3188
3224
  o.input = Shapes::ShapeRef.new(shape: ListDevicesRequest)
3189
3225
  o.output = Shapes::ShapeRef.new(shape: ListDevicesResponse)
3190
3226
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
@@ -3362,6 +3398,7 @@ module Aws::CognitoIdentityProvider
3362
3398
  o.http_method = "POST"
3363
3399
  o.http_request_uri = "/"
3364
3400
  o['authtype'] = "none"
3401
+ o['auth'] = ["smithy.api#noAuth"]
3365
3402
  o.input = Shapes::ShapeRef.new(shape: ResendConfirmationCodeRequest)
3366
3403
  o.output = Shapes::ShapeRef.new(shape: ResendConfirmationCodeResponse)
3367
3404
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3386,6 +3423,7 @@ module Aws::CognitoIdentityProvider
3386
3423
  o.http_method = "POST"
3387
3424
  o.http_request_uri = "/"
3388
3425
  o['authtype'] = "none"
3426
+ o['auth'] = ["smithy.api#noAuth"]
3389
3427
  o.input = Shapes::ShapeRef.new(shape: RespondToAuthChallengeRequest)
3390
3428
  o.output = Shapes::ShapeRef.new(shape: RespondToAuthChallengeResponse)
3391
3429
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3396,6 +3434,7 @@ module Aws::CognitoIdentityProvider
3396
3434
  o.errors << Shapes::ShapeRef.new(shape: UnexpectedLambdaException)
3397
3435
  o.errors << Shapes::ShapeRef.new(shape: UserLambdaValidationException)
3398
3436
  o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
3437
+ o.errors << Shapes::ShapeRef.new(shape: PasswordHistoryPolicyViolationException)
3399
3438
  o.errors << Shapes::ShapeRef.new(shape: InvalidLambdaResponseException)
3400
3439
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3401
3440
  o.errors << Shapes::ShapeRef.new(shape: InvalidUserPoolConfigurationException)
@@ -3416,6 +3455,7 @@ module Aws::CognitoIdentityProvider
3416
3455
  o.http_method = "POST"
3417
3456
  o.http_request_uri = "/"
3418
3457
  o['authtype'] = "none"
3458
+ o['auth'] = ["smithy.api#noAuth"]
3419
3459
  o.input = Shapes::ShapeRef.new(shape: RevokeTokenRequest)
3420
3460
  o.output = Shapes::ShapeRef.new(shape: RevokeTokenResponse)
3421
3461
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
@@ -3474,6 +3514,7 @@ module Aws::CognitoIdentityProvider
3474
3514
  o.http_method = "POST"
3475
3515
  o.http_request_uri = "/"
3476
3516
  o['authtype'] = "none"
3517
+ o['auth'] = ["smithy.api#noAuth"]
3477
3518
  o.input = Shapes::ShapeRef.new(shape: SetUserMFAPreferenceRequest)
3478
3519
  o.output = Shapes::ShapeRef.new(shape: SetUserMFAPreferenceResponse)
3479
3520
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3507,6 +3548,7 @@ module Aws::CognitoIdentityProvider
3507
3548
  o.http_method = "POST"
3508
3549
  o.http_request_uri = "/"
3509
3550
  o['authtype'] = "none"
3551
+ o['auth'] = ["smithy.api#noAuth"]
3510
3552
  o.input = Shapes::ShapeRef.new(shape: SetUserSettingsRequest)
3511
3553
  o.output = Shapes::ShapeRef.new(shape: SetUserSettingsResponse)
3512
3554
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3524,6 +3566,7 @@ module Aws::CognitoIdentityProvider
3524
3566
  o.http_method = "POST"
3525
3567
  o.http_request_uri = "/"
3526
3568
  o['authtype'] = "none"
3569
+ o['auth'] = ["smithy.api#noAuth"]
3527
3570
  o.input = Shapes::ShapeRef.new(shape: SignUpRequest)
3528
3571
  o.output = Shapes::ShapeRef.new(shape: SignUpResponse)
3529
3572
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3603,6 +3646,7 @@ module Aws::CognitoIdentityProvider
3603
3646
  o.http_method = "POST"
3604
3647
  o.http_request_uri = "/"
3605
3648
  o['authtype'] = "none"
3649
+ o['auth'] = ["smithy.api#noAuth"]
3606
3650
  o.input = Shapes::ShapeRef.new(shape: UpdateAuthEventFeedbackRequest)
3607
3651
  o.output = Shapes::ShapeRef.new(shape: UpdateAuthEventFeedbackResponse)
3608
3652
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
@@ -3619,6 +3663,7 @@ module Aws::CognitoIdentityProvider
3619
3663
  o.http_method = "POST"
3620
3664
  o.http_request_uri = "/"
3621
3665
  o['authtype'] = "none"
3666
+ o['auth'] = ["smithy.api#noAuth"]
3622
3667
  o.input = Shapes::ShapeRef.new(shape: UpdateDeviceStatusRequest)
3623
3668
  o.output = Shapes::ShapeRef.new(shape: UpdateDeviceStatusResponse)
3624
3669
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
@@ -3679,6 +3724,7 @@ module Aws::CognitoIdentityProvider
3679
3724
  o.http_method = "POST"
3680
3725
  o.http_request_uri = "/"
3681
3726
  o['authtype'] = "none"
3727
+ o['auth'] = ["smithy.api#noAuth"]
3682
3728
  o.input = Shapes::ShapeRef.new(shape: UpdateUserAttributesRequest)
3683
3729
  o.output = Shapes::ShapeRef.new(shape: UpdateUserAttributesResponse)
3684
3730
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -3755,6 +3801,7 @@ module Aws::CognitoIdentityProvider
3755
3801
  o.http_method = "POST"
3756
3802
  o.http_request_uri = "/"
3757
3803
  o['authtype'] = "none"
3804
+ o['auth'] = ["smithy.api#noAuth"]
3758
3805
  o.input = Shapes::ShapeRef.new(shape: VerifySoftwareTokenRequest)
3759
3806
  o.output = Shapes::ShapeRef.new(shape: VerifySoftwareTokenResponse)
3760
3807
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
@@ -3778,6 +3825,7 @@ module Aws::CognitoIdentityProvider
3778
3825
  o.http_method = "POST"
3779
3826
  o.http_request_uri = "/"
3780
3827
  o['authtype'] = "none"
3828
+ o['auth'] = ["smithy.api#noAuth"]
3781
3829
  o.input = Shapes::ShapeRef.new(shape: VerifyUserAttributeRequest)
3782
3830
  o.output = Shapes::ShapeRef.new(shape: VerifyUserAttributeResponse)
3783
3831
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -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.96.0'
55
+ GEM_VERSION = '1.98.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws
48
48
  ?sdk_ua_app_id: String,
49
49
  ?secret_access_key: String,
50
50
  ?session_token: String,
51
+ ?sigv4a_signing_region_set: Array[String],
51
52
  ?simple_json: bool,
52
53
  ?stub_responses: untyped,
53
54
  ?token_provider: untyped,
@@ -633,6 +634,7 @@ module Aws
633
634
  require_lowercase: bool?,
634
635
  require_numbers: bool?,
635
636
  require_symbols: bool?,
637
+ password_history_size: ::Integer?,
636
638
  temporary_password_validity_days: ::Integer?
637
639
  }?
638
640
  },
@@ -1296,10 +1298,16 @@ module Aws
1296
1298
  user_pool_id: ::String,
1297
1299
  log_configurations: Array[
1298
1300
  {
1299
- log_level: ("ERROR"),
1300
- event_source: ("userNotification"),
1301
+ log_level: ("ERROR" | "INFO"),
1302
+ event_source: ("userNotification" | "userAuthEvents"),
1301
1303
  cloud_watch_logs_configuration: {
1302
1304
  log_group_arn: ::String?
1305
+ }?,
1306
+ s3_configuration: {
1307
+ bucket_arn: ::String?
1308
+ }?,
1309
+ firehose_configuration: {
1310
+ stream_arn: ::String?
1303
1311
  }?
1304
1312
  },
1305
1313
  ]
@@ -1609,6 +1617,7 @@ module Aws
1609
1617
  require_lowercase: bool?,
1610
1618
  require_numbers: bool?,
1611
1619
  require_symbols: bool?,
1620
+ password_history_size: ::Integer?,
1612
1621
  temporary_password_validity_days: ::Integer?
1613
1622
  }?
1614
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/resource.rbs CHANGED
@@ -48,6 +48,7 @@ module Aws
48
48
  ?sdk_ua_app_id: String,
49
49
  ?secret_access_key: String,
50
50
  ?session_token: String,
51
+ ?sigv4a_signing_region_set: Array[String],
51
52
  ?simple_json: bool,
52
53
  ?stub_responses: untyped,
53
54
  ?token_provider: untyped,
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.96.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-06-25 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.199.0
22
+ version: 3.201.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.199.0
32
+ version: 3.201.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.1'
39
+ version: '1.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.1'
46
+ version: '1.5'
47
47
  description: Official AWS Ruby gem for Amazon Cognito Identity Provider. This gem
48
48
  is part of the AWS SDK for Ruby.
49
49
  email: