aws-sdk-cognitoidentityprovider 1.18.0 → 1.19.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
  SHA1:
3
- metadata.gz: 6c9f817bcbbd9c6e1515a7a8a379b54c6b51d44e
4
- data.tar.gz: 9e7317392d47135b98d005ad87fc055a2fe87d82
3
+ metadata.gz: 44ed23b3cf9fb2941c97da9452c54e2e535f7e74
4
+ data.tar.gz: a962ccfced703ee60fc10572b85c1c76eb7f573d
5
5
  SHA512:
6
- metadata.gz: 32e98281d354aa2d8a1aab0e1de257be474ce1616b663a1431c9d25aa9a061dcb7736c9e6a7fc43ebc301ee29bc30ee9657df73efdec19915ac650e1157b1f41
7
- data.tar.gz: 4b13b63d80220ee8057634ad64fc9a7bbfb8f455063332ff5a40863242ad722e79090dd26fa2436d8c0095f78f869d4c3bda6d73587c9f6d5bbf9fe9d5779d77
6
+ metadata.gz: e53c39acba74e0cb8eafbf73177ea72e229b71d51c0e432860a3e2138814ec7cc29556bdfaca78eb8b3fbd6ae68c2eaa098cd105e36141c760bc87d9022383bd
7
+ data.tar.gz: ab12543827c42eed73b59240412d7be519ec22ec2663375b03fdcf6add0aaa3e1d13777092c8d926bb6544d683a57775c1e5eaf3a3cdff5a33e68c2350169a9c
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cognitoidentityprovider/customizations'
42
42
  # @service
43
43
  module Aws::CognitoIdentityProvider
44
44
 
45
- GEM_VERSION = '1.18.0'
45
+ GEM_VERSION = '1.19.0'
46
46
 
47
47
  end
@@ -1465,6 +1465,34 @@ module Aws::CognitoIdentityProvider
1465
1465
  req.send_request(options)
1466
1466
  end
1467
1467
 
1468
+ # @option params [required, String] :user_pool_id
1469
+ #
1470
+ # @option params [required, String] :username
1471
+ #
1472
+ # @option params [required, String] :password
1473
+ #
1474
+ # @option params [Boolean] :permanent
1475
+ #
1476
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1477
+ #
1478
+ # @example Request syntax with placeholder values
1479
+ #
1480
+ # resp = client.admin_set_user_password({
1481
+ # user_pool_id: "UserPoolIdType", # required
1482
+ # username: "UsernameType", # required
1483
+ # password: "PasswordType", # required
1484
+ # permanent: false,
1485
+ # })
1486
+ #
1487
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserPassword AWS API Documentation
1488
+ #
1489
+ # @overload admin_set_user_password(params = {})
1490
+ # @param [Hash] params ({})
1491
+ def admin_set_user_password(params = {}, options = {})
1492
+ req = build_request(:admin_set_user_password, params)
1493
+ req.send_request(options)
1494
+ end
1495
+
1468
1496
  # Sets all the user settings for a specified user name. Works on any
1469
1497
  # user.
1470
1498
  #
@@ -2225,6 +2253,7 @@ module Aws::CognitoIdentityProvider
2225
2253
  # require_lowercase: false,
2226
2254
  # require_numbers: false,
2227
2255
  # require_symbols: false,
2256
+ # temporary_password_validity_days: 1,
2228
2257
  # },
2229
2258
  # },
2230
2259
  # lambda_config: {
@@ -2311,6 +2340,7 @@ module Aws::CognitoIdentityProvider
2311
2340
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
2312
2341
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
2313
2342
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
2343
+ # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
2314
2344
  # resp.user_pool.lambda_config.pre_sign_up #=> String
2315
2345
  # resp.user_pool.lambda_config.custom_message #=> String
2316
2346
  # resp.user_pool.lambda_config.post_confirmation #=> String
@@ -3028,6 +3058,7 @@ module Aws::CognitoIdentityProvider
3028
3058
  # resp.user_pool.policies.password_policy.require_lowercase #=> Boolean
3029
3059
  # resp.user_pool.policies.password_policy.require_numbers #=> Boolean
3030
3060
  # resp.user_pool.policies.password_policy.require_symbols #=> Boolean
3061
+ # resp.user_pool.policies.password_policy.temporary_password_validity_days #=> Integer
3031
3062
  # resp.user_pool.lambda_config.pre_sign_up #=> String
3032
3063
  # resp.user_pool.lambda_config.custom_message #=> String
3033
3064
  # resp.user_pool.lambda_config.post_confirmation #=> String
@@ -5357,6 +5388,7 @@ module Aws::CognitoIdentityProvider
5357
5388
  # require_lowercase: false,
5358
5389
  # require_numbers: false,
5359
5390
  # require_symbols: false,
5391
+ # temporary_password_validity_days: 1,
5360
5392
  # },
5361
5393
  # },
5362
5394
  # lambda_config: {
@@ -5757,7 +5789,7 @@ module Aws::CognitoIdentityProvider
5757
5789
  params: params,
5758
5790
  config: config)
5759
5791
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
5760
- context[:gem_version] = '1.18.0'
5792
+ context[:gem_version] = '1.19.0'
5761
5793
  Seahorse::Client::Request.new(handlers, context)
5762
5794
  end
5763
5795
 
@@ -57,6 +57,8 @@ module Aws::CognitoIdentityProvider
57
57
  AdminRespondToAuthChallengeResponse = Shapes::StructureShape.new(name: 'AdminRespondToAuthChallengeResponse')
58
58
  AdminSetUserMFAPreferenceRequest = Shapes::StructureShape.new(name: 'AdminSetUserMFAPreferenceRequest')
59
59
  AdminSetUserMFAPreferenceResponse = Shapes::StructureShape.new(name: 'AdminSetUserMFAPreferenceResponse')
60
+ AdminSetUserPasswordRequest = Shapes::StructureShape.new(name: 'AdminSetUserPasswordRequest')
61
+ AdminSetUserPasswordResponse = Shapes::StructureShape.new(name: 'AdminSetUserPasswordResponse')
60
62
  AdminSetUserSettingsRequest = Shapes::StructureShape.new(name: 'AdminSetUserSettingsRequest')
61
63
  AdminSetUserSettingsResponse = Shapes::StructureShape.new(name: 'AdminSetUserSettingsResponse')
62
64
  AdminUpdateAuthEventFeedbackRequest = Shapes::StructureShape.new(name: 'AdminUpdateAuthEventFeedbackRequest')
@@ -377,6 +379,7 @@ module Aws::CognitoIdentityProvider
377
379
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
378
380
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
379
381
  TagValueType = Shapes::StringShape.new(name: 'TagValueType')
382
+ TemporaryPasswordValidityDaysType = Shapes::IntegerShape.new(name: 'TemporaryPasswordValidityDaysType')
380
383
  TokenModelType = Shapes::StringShape.new(name: 'TokenModelType')
381
384
  TooManyFailedAttemptsException = Shapes::StructureShape.new(name: 'TooManyFailedAttemptsException')
382
385
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
@@ -638,6 +641,14 @@ module Aws::CognitoIdentityProvider
638
641
 
639
642
  AdminSetUserMFAPreferenceResponse.struct_class = Types::AdminSetUserMFAPreferenceResponse
640
643
 
644
+ AdminSetUserPasswordRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
645
+ AdminSetUserPasswordRequest.add_member(:username, Shapes::ShapeRef.new(shape: UsernameType, required: true, location_name: "Username"))
646
+ AdminSetUserPasswordRequest.add_member(:password, Shapes::ShapeRef.new(shape: PasswordType, required: true, location_name: "Password"))
647
+ AdminSetUserPasswordRequest.add_member(:permanent, Shapes::ShapeRef.new(shape: BooleanType, location_name: "Permanent"))
648
+ AdminSetUserPasswordRequest.struct_class = Types::AdminSetUserPasswordRequest
649
+
650
+ AdminSetUserPasswordResponse.struct_class = Types::AdminSetUserPasswordResponse
651
+
641
652
  AdminSetUserSettingsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
642
653
  AdminSetUserSettingsRequest.add_member(:username, Shapes::ShapeRef.new(shape: UsernameType, required: true, location_name: "Username"))
643
654
  AdminSetUserSettingsRequest.add_member(:mfa_options, Shapes::ShapeRef.new(shape: MFAOptionListType, required: true, location_name: "MFAOptions"))
@@ -1309,6 +1320,7 @@ module Aws::CognitoIdentityProvider
1309
1320
  PasswordPolicyType.add_member(:require_lowercase, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireLowercase"))
1310
1321
  PasswordPolicyType.add_member(:require_numbers, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireNumbers"))
1311
1322
  PasswordPolicyType.add_member(:require_symbols, Shapes::ShapeRef.new(shape: BooleanType, location_name: "RequireSymbols"))
1323
+ PasswordPolicyType.add_member(:temporary_password_validity_days, Shapes::ShapeRef.new(shape: TemporaryPasswordValidityDaysType, location_name: "TemporaryPasswordValidityDays"))
1312
1324
  PasswordPolicyType.struct_class = Types::PasswordPolicyType
1313
1325
 
1314
1326
  ProviderDescription.add_member(:provider_name, Shapes::ShapeRef.new(shape: ProviderNameType, location_name: "ProviderName"))
@@ -2127,6 +2139,21 @@ module Aws::CognitoIdentityProvider
2127
2139
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2128
2140
  end)
2129
2141
 
2142
+ api.add_operation(:admin_set_user_password, Seahorse::Model::Operation.new.tap do |o|
2143
+ o.name = "AdminSetUserPassword"
2144
+ o.http_method = "POST"
2145
+ o.http_request_uri = "/"
2146
+ o.input = Shapes::ShapeRef.new(shape: AdminSetUserPasswordRequest)
2147
+ o.output = Shapes::ShapeRef.new(shape: AdminSetUserPasswordResponse)
2148
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2149
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
2150
+ o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
2151
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
2152
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2153
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2154
+ o.errors << Shapes::ShapeRef.new(shape: InvalidPasswordException)
2155
+ end)
2156
+
2130
2157
  api.add_operation(:admin_set_user_settings, Seahorse::Model::Operation.new.tap do |o|
2131
2158
  o.name = "AdminSetUserSettings"
2132
2159
  o.http_method = "POST"
@@ -1520,6 +1520,42 @@ module Aws::CognitoIdentityProvider
1520
1520
  #
1521
1521
  class AdminSetUserMFAPreferenceResponse < Aws::EmptyStructure; end
1522
1522
 
1523
+ # @note When making an API call, you may pass AdminSetUserPasswordRequest
1524
+ # data as a hash:
1525
+ #
1526
+ # {
1527
+ # user_pool_id: "UserPoolIdType", # required
1528
+ # username: "UsernameType", # required
1529
+ # password: "PasswordType", # required
1530
+ # permanent: false,
1531
+ # }
1532
+ #
1533
+ # @!attribute [rw] user_pool_id
1534
+ # @return [String]
1535
+ #
1536
+ # @!attribute [rw] username
1537
+ # @return [String]
1538
+ #
1539
+ # @!attribute [rw] password
1540
+ # @return [String]
1541
+ #
1542
+ # @!attribute [rw] permanent
1543
+ # @return [Boolean]
1544
+ #
1545
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserPasswordRequest AWS API Documentation
1546
+ #
1547
+ class AdminSetUserPasswordRequest < Struct.new(
1548
+ :user_pool_id,
1549
+ :username,
1550
+ :password,
1551
+ :permanent)
1552
+ include Aws::Structure
1553
+ end
1554
+
1555
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserPasswordResponse AWS API Documentation
1556
+ #
1557
+ class AdminSetUserPasswordResponse < Aws::EmptyStructure; end
1558
+
1523
1559
  # Represents the request to set user settings as an administrator.
1524
1560
  #
1525
1561
  # @note When making an API call, you may pass AdminSetUserSettingsRequest
@@ -2838,6 +2874,7 @@ module Aws::CognitoIdentityProvider
2838
2874
  # require_lowercase: false,
2839
2875
  # require_numbers: false,
2840
2876
  # require_symbols: false,
2877
+ # temporary_password_validity_days: 1,
2841
2878
  # },
2842
2879
  # },
2843
2880
  # lambda_config: {
@@ -5467,6 +5504,7 @@ module Aws::CognitoIdentityProvider
5467
5504
  # require_lowercase: false,
5468
5505
  # require_numbers: false,
5469
5506
  # require_symbols: false,
5507
+ # temporary_password_validity_days: 1,
5470
5508
  # }
5471
5509
  #
5472
5510
  # @!attribute [rw] minimum_length
@@ -5496,6 +5534,9 @@ module Aws::CognitoIdentityProvider
5496
5534
  # required users to use at least one symbol in their password.
5497
5535
  # @return [Boolean]
5498
5536
  #
5537
+ # @!attribute [rw] temporary_password_validity_days
5538
+ # @return [Integer]
5539
+ #
5499
5540
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/PasswordPolicyType AWS API Documentation
5500
5541
  #
5501
5542
  class PasswordPolicyType < Struct.new(
@@ -5503,7 +5544,8 @@ module Aws::CognitoIdentityProvider
5503
5544
  :require_uppercase,
5504
5545
  :require_lowercase,
5505
5546
  :require_numbers,
5506
- :require_symbols)
5547
+ :require_symbols,
5548
+ :temporary_password_validity_days)
5507
5549
  include Aws::Structure
5508
5550
  end
5509
5551
 
@@ -7233,6 +7275,7 @@ module Aws::CognitoIdentityProvider
7233
7275
  # require_lowercase: false,
7234
7276
  # require_numbers: false,
7235
7277
  # require_symbols: false,
7278
+ # temporary_password_validity_days: 1,
7236
7279
  # },
7237
7280
  # },
7238
7281
  # lambda_config: {
@@ -7760,6 +7803,7 @@ module Aws::CognitoIdentityProvider
7760
7803
  # require_lowercase: false,
7761
7804
  # require_numbers: false,
7762
7805
  # require_symbols: false,
7806
+ # temporary_password_validity_days: 1,
7763
7807
  # },
7764
7808
  # }
7765
7809
  #
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.18.0
4
+ version: 1.19.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: 2019-04-18 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core