aws-sdk-cognitoidentityprovider 1.43.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b6ac655b806a0dc5a6704b845c9fbe080aa79366883d8dc5aa6803140571271
4
- data.tar.gz: 18d558b605615d5c11b1fb2c96dc413942e7b84d7a02120470c90dd52922ddb5
3
+ metadata.gz: 2aeaf9e91919db21d3db364967058f99e7c3508600f788e6ccedcf549ffbb4db
4
+ data.tar.gz: 247f2a12b2c5fdec7817d2c632b260353a86c57e27b9c2b02b19c3097cee640e
5
5
  SHA512:
6
- metadata.gz: 128c94db366737299919700d2691680916cca0411192984a7159d70f5040824bc38f4e189c138bc38f41cac0772c101fdceb53a93a2059fca290e6df7961d2f9
7
- data.tar.gz: 0b4da76cd9964e0f7799fb0813c5af0c2d4c72cca42acbbbeb157261be7df8acb50952c57353bf15f05d8b6223cb6d01a04c1f31ece78f56973effbe8e5651f8
6
+ metadata.gz: 47fdb42508be0fdf33788ac955698025fbd692a769986b9074ca5be87f8dc32765984a98588987a844d65ec417a7d1f2327e4a1dd207619c57267206fc183b2e
7
+ data.tar.gz: 444db0a838c66192a31ff49bfc06968887d5fc0007e9e3d4da1d398955482c51d44246377a97d74e62987eeb986664d45cc0d67d511eb908987c64325a58a2e4
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-cognitoidentityprovider/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::CognitoIdentityProvider
49
50
 
50
- GEM_VERSION = '1.43.0'
51
+ GEM_VERSION = '1.48.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::CognitoIdentityProvider
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::CognitoIdentityProvider
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -2731,9 +2746,21 @@ module Aws::CognitoIdentityProvider
2731
2746
  #
2732
2747
  # @option params [String] :email_verification_message
2733
2748
  # A string representing the email verification message.
2749
+ # EmailVerificationMessage is allowed only if [EmailSendingAccount][1]
2750
+ # is DEVELOPER.
2751
+ #
2752
+ #
2753
+ #
2754
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
2734
2755
  #
2735
2756
  # @option params [String] :email_verification_subject
2736
2757
  # A string representing the email verification subject.
2758
+ # EmailVerificationSubject is allowed only if [EmailSendingAccount][1]
2759
+ # is DEVELOPER.
2760
+ #
2761
+ #
2762
+ #
2763
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
2737
2764
  #
2738
2765
  # @option params [Types::VerificationMessageTemplateType] :verification_message_template
2739
2766
  # The template for the verification message that the user sees when the
@@ -2819,6 +2846,15 @@ module Aws::CognitoIdentityProvider
2819
2846
  # verify_auth_challenge_response: "ArnType",
2820
2847
  # pre_token_generation: "ArnType",
2821
2848
  # user_migration: "ArnType",
2849
+ # custom_sms_sender: {
2850
+ # lambda_version: "V1_0", # required, accepts V1_0
2851
+ # lambda_arn: "ArnType", # required
2852
+ # },
2853
+ # custom_email_sender: {
2854
+ # lambda_version: "V1_0", # required, accepts V1_0
2855
+ # lambda_arn: "ArnType", # required
2856
+ # },
2857
+ # kms_key_id: "ArnType",
2822
2858
  # },
2823
2859
  # auto_verified_attributes: ["phone_number"], # accepts phone_number, email
2824
2860
  # alias_attributes: ["phone_number"], # accepts phone_number, email, preferred_username
@@ -2916,6 +2952,11 @@ module Aws::CognitoIdentityProvider
2916
2952
  # resp.user_pool.lambda_config.verify_auth_challenge_response #=> String
2917
2953
  # resp.user_pool.lambda_config.pre_token_generation #=> String
2918
2954
  # resp.user_pool.lambda_config.user_migration #=> String
2955
+ # resp.user_pool.lambda_config.custom_sms_sender.lambda_version #=> String, one of "V1_0"
2956
+ # resp.user_pool.lambda_config.custom_sms_sender.lambda_arn #=> String
2957
+ # resp.user_pool.lambda_config.custom_email_sender.lambda_version #=> String, one of "V1_0"
2958
+ # resp.user_pool.lambda_config.custom_email_sender.lambda_arn #=> String
2959
+ # resp.user_pool.lambda_config.kms_key_id #=> String
2919
2960
  # resp.user_pool.status #=> String, one of "Enabled", "Disabled"
2920
2961
  # resp.user_pool.last_modified_date #=> Time
2921
2962
  # resp.user_pool.creation_date #=> Time
@@ -3198,9 +3239,10 @@ module Aws::CognitoIdentityProvider
3198
3239
  # allowed_o_auth_scopes: ["ScopeType"],
3199
3240
  # allowed_o_auth_flows_user_pool_client: false,
3200
3241
  # analytics_configuration: {
3201
- # application_id: "HexStringType", # required
3202
- # role_arn: "ArnType", # required
3203
- # external_id: "StringType", # required
3242
+ # application_id: "HexStringType",
3243
+ # application_arn: "ArnType",
3244
+ # role_arn: "ArnType",
3245
+ # external_id: "StringType",
3204
3246
  # user_data_shared: false,
3205
3247
  # },
3206
3248
  # prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
@@ -3239,6 +3281,7 @@ module Aws::CognitoIdentityProvider
3239
3281
  # resp.user_pool_client.allowed_o_auth_scopes[0] #=> String
3240
3282
  # resp.user_pool_client.allowed_o_auth_flows_user_pool_client #=> Boolean
3241
3283
  # resp.user_pool_client.analytics_configuration.application_id #=> String
3284
+ # resp.user_pool_client.analytics_configuration.application_arn #=> String
3242
3285
  # resp.user_pool_client.analytics_configuration.role_arn #=> String
3243
3286
  # resp.user_pool_client.analytics_configuration.external_id #=> String
3244
3287
  # resp.user_pool_client.analytics_configuration.user_data_shared #=> Boolean
@@ -3729,6 +3772,11 @@ module Aws::CognitoIdentityProvider
3729
3772
  # resp.user_pool.lambda_config.verify_auth_challenge_response #=> String
3730
3773
  # resp.user_pool.lambda_config.pre_token_generation #=> String
3731
3774
  # resp.user_pool.lambda_config.user_migration #=> String
3775
+ # resp.user_pool.lambda_config.custom_sms_sender.lambda_version #=> String, one of "V1_0"
3776
+ # resp.user_pool.lambda_config.custom_sms_sender.lambda_arn #=> String
3777
+ # resp.user_pool.lambda_config.custom_email_sender.lambda_version #=> String, one of "V1_0"
3778
+ # resp.user_pool.lambda_config.custom_email_sender.lambda_arn #=> String
3779
+ # resp.user_pool.lambda_config.kms_key_id #=> String
3732
3780
  # resp.user_pool.status #=> String, one of "Enabled", "Disabled"
3733
3781
  # resp.user_pool.last_modified_date #=> Time
3734
3782
  # resp.user_pool.creation_date #=> Time
@@ -3849,6 +3897,7 @@ module Aws::CognitoIdentityProvider
3849
3897
  # resp.user_pool_client.allowed_o_auth_scopes[0] #=> String
3850
3898
  # resp.user_pool_client.allowed_o_auth_flows_user_pool_client #=> Boolean
3851
3899
  # resp.user_pool_client.analytics_configuration.application_id #=> String
3900
+ # resp.user_pool_client.analytics_configuration.application_arn #=> String
3852
3901
  # resp.user_pool_client.analytics_configuration.role_arn #=> String
3853
3902
  # resp.user_pool_client.analytics_configuration.external_id #=> String
3854
3903
  # resp.user_pool_client.analytics_configuration.user_data_shared #=> Boolean
@@ -4979,6 +5028,11 @@ module Aws::CognitoIdentityProvider
4979
5028
  # resp.user_pools[0].lambda_config.verify_auth_challenge_response #=> String
4980
5029
  # resp.user_pools[0].lambda_config.pre_token_generation #=> String
4981
5030
  # resp.user_pools[0].lambda_config.user_migration #=> String
5031
+ # resp.user_pools[0].lambda_config.custom_sms_sender.lambda_version #=> String, one of "V1_0"
5032
+ # resp.user_pools[0].lambda_config.custom_sms_sender.lambda_arn #=> String
5033
+ # resp.user_pools[0].lambda_config.custom_email_sender.lambda_version #=> String, one of "V1_0"
5034
+ # resp.user_pools[0].lambda_config.custom_email_sender.lambda_arn #=> String
5035
+ # resp.user_pools[0].lambda_config.kms_key_id #=> String
4982
5036
  # resp.user_pools[0].status #=> String, one of "Enabled", "Disabled"
4983
5037
  # resp.user_pools[0].last_modified_date #=> Time
4984
5038
  # resp.user_pools[0].creation_date #=> Time
@@ -5601,7 +5655,12 @@ module Aws::CognitoIdentityProvider
5601
5655
  # one factor can be set as preferred. The preferred MFA factor will be
5602
5656
  # used to authenticate a user if multiple factors are enabled. If
5603
5657
  # multiple options are enabled and no preference is set, a challenge to
5604
- # choose an MFA option will be returned during sign in.
5658
+ # choose an MFA option will be returned during sign in. If an MFA type
5659
+ # is enabled for a user, the user will be prompted for MFA during all
5660
+ # sign in attempts, unless device tracking is turned on and the device
5661
+ # has been trusted. If you would like MFA to be applied selectively
5662
+ # based on the assessed risk level of sign in attempts, disable MFA for
5663
+ # users and turn on Adaptive Authentication for the user pool.
5605
5664
  #
5606
5665
  # @option params [Types::SMSMfaSettingsType] :sms_mfa_settings
5607
5666
  # The SMS text message multi-factor authentication (MFA) settings.
@@ -6464,6 +6523,15 @@ module Aws::CognitoIdentityProvider
6464
6523
  # verify_auth_challenge_response: "ArnType",
6465
6524
  # pre_token_generation: "ArnType",
6466
6525
  # user_migration: "ArnType",
6526
+ # custom_sms_sender: {
6527
+ # lambda_version: "V1_0", # required, accepts V1_0
6528
+ # lambda_arn: "ArnType", # required
6529
+ # },
6530
+ # custom_email_sender: {
6531
+ # lambda_version: "V1_0", # required, accepts V1_0
6532
+ # lambda_arn: "ArnType", # required
6533
+ # },
6534
+ # kms_key_id: "ArnType",
6467
6535
  # },
6468
6536
  # auto_verified_attributes: ["phone_number"], # accepts phone_number, email
6469
6537
  # sms_verification_message: "SmsVerificationMessageType",
@@ -6735,9 +6803,10 @@ module Aws::CognitoIdentityProvider
6735
6803
  # allowed_o_auth_scopes: ["ScopeType"],
6736
6804
  # allowed_o_auth_flows_user_pool_client: false,
6737
6805
  # analytics_configuration: {
6738
- # application_id: "HexStringType", # required
6739
- # role_arn: "ArnType", # required
6740
- # external_id: "StringType", # required
6806
+ # application_id: "HexStringType",
6807
+ # application_arn: "ArnType",
6808
+ # role_arn: "ArnType",
6809
+ # external_id: "StringType",
6741
6810
  # user_data_shared: false,
6742
6811
  # },
6743
6812
  # prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
@@ -6776,6 +6845,7 @@ module Aws::CognitoIdentityProvider
6776
6845
  # resp.user_pool_client.allowed_o_auth_scopes[0] #=> String
6777
6846
  # resp.user_pool_client.allowed_o_auth_flows_user_pool_client #=> Boolean
6778
6847
  # resp.user_pool_client.analytics_configuration.application_id #=> String
6848
+ # resp.user_pool_client.analytics_configuration.application_arn #=> String
6779
6849
  # resp.user_pool_client.analytics_configuration.role_arn #=> String
6780
6850
  # resp.user_pool_client.analytics_configuration.external_id #=> String
6781
6851
  # resp.user_pool_client.analytics_configuration.user_data_shared #=> Boolean
@@ -6962,7 +7032,7 @@ module Aws::CognitoIdentityProvider
6962
7032
  params: params,
6963
7033
  config: config)
6964
7034
  context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
6965
- context[:gem_version] = '1.43.0'
7035
+ context[:gem_version] = '1.48.0'
6966
7036
  Seahorse::Client::Request.new(handlers, context)
6967
7037
  end
6968
7038
 
@@ -149,6 +149,10 @@ module Aws::CognitoIdentityProvider
149
149
  CustomAttributeNameType = Shapes::StringShape.new(name: 'CustomAttributeNameType')
150
150
  CustomAttributesListType = Shapes::ListShape.new(name: 'CustomAttributesListType')
151
151
  CustomDomainConfigType = Shapes::StructureShape.new(name: 'CustomDomainConfigType')
152
+ CustomEmailLambdaVersionConfigType = Shapes::StructureShape.new(name: 'CustomEmailLambdaVersionConfigType')
153
+ CustomEmailSenderLambdaVersionType = Shapes::StringShape.new(name: 'CustomEmailSenderLambdaVersionType')
154
+ CustomSMSLambdaVersionConfigType = Shapes::StructureShape.new(name: 'CustomSMSLambdaVersionConfigType')
155
+ CustomSMSSenderLambdaVersionType = Shapes::StringShape.new(name: 'CustomSMSSenderLambdaVersionType')
152
156
  DateType = Shapes::TimestampShape.new(name: 'DateType')
153
157
  DefaultEmailOptionType = Shapes::StringShape.new(name: 'DefaultEmailOptionType')
154
158
  DeleteGroupRequest = Shapes::StructureShape.new(name: 'DeleteGroupRequest')
@@ -713,9 +717,10 @@ module Aws::CognitoIdentityProvider
713
717
  AliasExistsException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
714
718
  AliasExistsException.struct_class = Types::AliasExistsException
715
719
 
716
- AnalyticsConfigurationType.add_member(:application_id, Shapes::ShapeRef.new(shape: HexStringType, required: true, location_name: "ApplicationId"))
717
- AnalyticsConfigurationType.add_member(:role_arn, Shapes::ShapeRef.new(shape: ArnType, required: true, location_name: "RoleArn"))
718
- AnalyticsConfigurationType.add_member(:external_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "ExternalId"))
720
+ AnalyticsConfigurationType.add_member(:application_id, Shapes::ShapeRef.new(shape: HexStringType, location_name: "ApplicationId"))
721
+ AnalyticsConfigurationType.add_member(:application_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "ApplicationArn"))
722
+ AnalyticsConfigurationType.add_member(:role_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "RoleArn"))
723
+ AnalyticsConfigurationType.add_member(:external_id, Shapes::ShapeRef.new(shape: StringType, location_name: "ExternalId"))
719
724
  AnalyticsConfigurationType.add_member(:user_data_shared, Shapes::ShapeRef.new(shape: BooleanType, location_name: "UserDataShared"))
720
725
  AnalyticsConfigurationType.struct_class = Types::AnalyticsConfigurationType
721
726
 
@@ -956,6 +961,14 @@ module Aws::CognitoIdentityProvider
956
961
  CustomDomainConfigType.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: ArnType, required: true, location_name: "CertificateArn"))
957
962
  CustomDomainConfigType.struct_class = Types::CustomDomainConfigType
958
963
 
964
+ CustomEmailLambdaVersionConfigType.add_member(:lambda_version, Shapes::ShapeRef.new(shape: CustomEmailSenderLambdaVersionType, required: true, location_name: "LambdaVersion"))
965
+ CustomEmailLambdaVersionConfigType.add_member(:lambda_arn, Shapes::ShapeRef.new(shape: ArnType, required: true, location_name: "LambdaArn"))
966
+ CustomEmailLambdaVersionConfigType.struct_class = Types::CustomEmailLambdaVersionConfigType
967
+
968
+ CustomSMSLambdaVersionConfigType.add_member(:lambda_version, Shapes::ShapeRef.new(shape: CustomSMSSenderLambdaVersionType, required: true, location_name: "LambdaVersion"))
969
+ CustomSMSLambdaVersionConfigType.add_member(:lambda_arn, Shapes::ShapeRef.new(shape: ArnType, required: true, location_name: "LambdaArn"))
970
+ CustomSMSLambdaVersionConfigType.struct_class = Types::CustomSMSLambdaVersionConfigType
971
+
959
972
  DeleteGroupRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupNameType, required: true, location_name: "GroupName"))
960
973
  DeleteGroupRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
961
974
  DeleteGroupRequest.struct_class = Types::DeleteGroupRequest
@@ -1273,6 +1286,9 @@ module Aws::CognitoIdentityProvider
1273
1286
  LambdaConfigType.add_member(:verify_auth_challenge_response, Shapes::ShapeRef.new(shape: ArnType, location_name: "VerifyAuthChallengeResponse"))
1274
1287
  LambdaConfigType.add_member(:pre_token_generation, Shapes::ShapeRef.new(shape: ArnType, location_name: "PreTokenGeneration"))
1275
1288
  LambdaConfigType.add_member(:user_migration, Shapes::ShapeRef.new(shape: ArnType, location_name: "UserMigration"))
1289
+ LambdaConfigType.add_member(:custom_sms_sender, Shapes::ShapeRef.new(shape: CustomSMSLambdaVersionConfigType, location_name: "CustomSMSSender"))
1290
+ LambdaConfigType.add_member(:custom_email_sender, Shapes::ShapeRef.new(shape: CustomEmailLambdaVersionConfigType, location_name: "CustomEmailSender"))
1291
+ LambdaConfigType.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: ArnType, location_name: "KMSKeyID"))
1276
1292
  LambdaConfigType.struct_class = Types::LambdaConfigType
1277
1293
 
1278
1294
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
@@ -2181,9 +2181,10 @@ module Aws::CognitoIdentityProvider
2181
2181
  # data as a hash:
2182
2182
  #
2183
2183
  # {
2184
- # application_id: "HexStringType", # required
2185
- # role_arn: "ArnType", # required
2186
- # external_id: "StringType", # required
2184
+ # application_id: "HexStringType",
2185
+ # application_arn: "ArnType",
2186
+ # role_arn: "ArnType",
2187
+ # external_id: "StringType",
2187
2188
  # user_data_shared: false,
2188
2189
  # }
2189
2190
  #
@@ -2191,6 +2192,13 @@ module Aws::CognitoIdentityProvider
2191
2192
  # The application ID for an Amazon Pinpoint application.
2192
2193
  # @return [String]
2193
2194
  #
2195
+ # @!attribute [rw] application_arn
2196
+ # The Amazon Resource Name (ARN) of an Amazon Pinpoint project. You
2197
+ # can use the Amazon Pinpoint project for Pinpoint integration with
2198
+ # the chosen User Pool Client. Amazon Cognito publishes events to the
2199
+ # pinpoint project declared by the app ARN.
2200
+ # @return [String]
2201
+ #
2194
2202
  # @!attribute [rw] role_arn
2195
2203
  # The ARN of an IAM role that authorizes Amazon Cognito to publish
2196
2204
  # events to Amazon Pinpoint analytics.
@@ -2209,6 +2217,7 @@ module Aws::CognitoIdentityProvider
2209
2217
  #
2210
2218
  class AnalyticsConfigurationType < Struct.new(
2211
2219
  :application_id,
2220
+ :application_arn,
2212
2221
  :role_arn,
2213
2222
  :external_id,
2214
2223
  :user_data_shared)
@@ -3278,9 +3287,10 @@ module Aws::CognitoIdentityProvider
3278
3287
  # allowed_o_auth_scopes: ["ScopeType"],
3279
3288
  # allowed_o_auth_flows_user_pool_client: false,
3280
3289
  # analytics_configuration: {
3281
- # application_id: "HexStringType", # required
3282
- # role_arn: "ArnType", # required
3283
- # external_id: "StringType", # required
3290
+ # application_id: "HexStringType",
3291
+ # application_arn: "ArnType",
3292
+ # role_arn: "ArnType",
3293
+ # external_id: "StringType",
3284
3294
  # user_data_shared: false,
3285
3295
  # },
3286
3296
  # prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
@@ -3618,6 +3628,15 @@ module Aws::CognitoIdentityProvider
3618
3628
  # verify_auth_challenge_response: "ArnType",
3619
3629
  # pre_token_generation: "ArnType",
3620
3630
  # user_migration: "ArnType",
3631
+ # custom_sms_sender: {
3632
+ # lambda_version: "V1_0", # required, accepts V1_0
3633
+ # lambda_arn: "ArnType", # required
3634
+ # },
3635
+ # custom_email_sender: {
3636
+ # lambda_version: "V1_0", # required, accepts V1_0
3637
+ # lambda_arn: "ArnType", # required
3638
+ # },
3639
+ # kms_key_id: "ArnType",
3621
3640
  # },
3622
3641
  # auto_verified_attributes: ["phone_number"], # accepts phone_number, email
3623
3642
  # alias_attributes: ["phone_number"], # accepts phone_number, email, preferred_username
@@ -3747,10 +3766,22 @@ module Aws::CognitoIdentityProvider
3747
3766
  #
3748
3767
  # @!attribute [rw] email_verification_message
3749
3768
  # A string representing the email verification message.
3769
+ # EmailVerificationMessage is allowed only if [EmailSendingAccount][1]
3770
+ # is DEVELOPER.
3771
+ #
3772
+ #
3773
+ #
3774
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
3750
3775
  # @return [String]
3751
3776
  #
3752
3777
  # @!attribute [rw] email_verification_subject
3753
3778
  # A string representing the email verification subject.
3779
+ # EmailVerificationSubject is allowed only if [EmailSendingAccount][1]
3780
+ # is DEVELOPER.
3781
+ #
3782
+ #
3783
+ #
3784
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
3754
3785
  # @return [String]
3755
3786
  #
3756
3787
  # @!attribute [rw] verification_message_template
@@ -3888,6 +3919,66 @@ module Aws::CognitoIdentityProvider
3888
3919
  include Aws::Structure
3889
3920
  end
3890
3921
 
3922
+ # A custom email sender Lambda configuration type.
3923
+ #
3924
+ # @note When making an API call, you may pass CustomEmailLambdaVersionConfigType
3925
+ # data as a hash:
3926
+ #
3927
+ # {
3928
+ # lambda_version: "V1_0", # required, accepts V1_0
3929
+ # lambda_arn: "ArnType", # required
3930
+ # }
3931
+ #
3932
+ # @!attribute [rw] lambda_version
3933
+ # The Lambda version represents the signature of the "request"
3934
+ # attribute in the "event" information Amazon Cognito passes to your
3935
+ # custom email Lambda function. The only supported value is `V1_0`.
3936
+ # @return [String]
3937
+ #
3938
+ # @!attribute [rw] lambda_arn
3939
+ # The Lambda Amazon Resource Name of the Lambda function that Amazon
3940
+ # Cognito triggers to send email notifications to users.
3941
+ # @return [String]
3942
+ #
3943
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CustomEmailLambdaVersionConfigType AWS API Documentation
3944
+ #
3945
+ class CustomEmailLambdaVersionConfigType < Struct.new(
3946
+ :lambda_version,
3947
+ :lambda_arn)
3948
+ SENSITIVE = []
3949
+ include Aws::Structure
3950
+ end
3951
+
3952
+ # A custom SMS sender Lambda configuration type.
3953
+ #
3954
+ # @note When making an API call, you may pass CustomSMSLambdaVersionConfigType
3955
+ # data as a hash:
3956
+ #
3957
+ # {
3958
+ # lambda_version: "V1_0", # required, accepts V1_0
3959
+ # lambda_arn: "ArnType", # required
3960
+ # }
3961
+ #
3962
+ # @!attribute [rw] lambda_version
3963
+ # The Lambda version represents the signature of the "request"
3964
+ # attribute in the "event" information Amazon Cognito passes to your
3965
+ # custom SMS Lambda function. The only supported value is `V1_0`.
3966
+ # @return [String]
3967
+ #
3968
+ # @!attribute [rw] lambda_arn
3969
+ # The Lambda Amazon Resource Name of the Lambda function that Amazon
3970
+ # Cognito triggers to send SMS notifications to users.
3971
+ # @return [String]
3972
+ #
3973
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CustomSMSLambdaVersionConfigType AWS API Documentation
3974
+ #
3975
+ class CustomSMSLambdaVersionConfigType < Struct.new(
3976
+ :lambda_version,
3977
+ :lambda_arn)
3978
+ SENSITIVE = []
3979
+ include Aws::Structure
3980
+ end
3981
+
3891
3982
  # @note When making an API call, you may pass DeleteGroupRequest
3892
3983
  # data as a hash:
3893
3984
  #
@@ -4518,6 +4609,16 @@ module Aws::CognitoIdentityProvider
4518
4609
 
4519
4610
  # The email configuration type.
4520
4611
  #
4612
+ # <note markdown="1"> Amazon Cognito has specific regions for use with Amazon SES. For more
4613
+ # information on the supported regions, see [Email Settings for Amazon
4614
+ # Cognito User Pools][1].
4615
+ #
4616
+ # </note>
4617
+ #
4618
+ #
4619
+ #
4620
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-email.html
4621
+ #
4521
4622
  # @note When making an API call, you may pass EmailConfigurationType
4522
4623
  # data as a hash:
4523
4624
  #
@@ -4570,6 +4671,29 @@ module Aws::CognitoIdentityProvider
4570
4671
  # customize the FROM address, provide the ARN of an Amazon SES
4571
4672
  # verified email address for the `SourceArn` parameter.
4572
4673
  #
4674
+ # If EmailSendingAccount is COGNITO\_DEFAULT, the following
4675
+ # parameters aren't allowed:
4676
+ #
4677
+ # * EmailVerificationMessage
4678
+ #
4679
+ # * EmailVerificationSubject
4680
+ #
4681
+ # * InviteMessageTemplate.EmailMessage
4682
+ #
4683
+ # * InviteMessageTemplate.EmailSubject
4684
+ #
4685
+ # * VerificationMessageTemplate.EmailMessage
4686
+ #
4687
+ # * VerificationMessageTemplate.EmailMessageByLink
4688
+ #
4689
+ # * VerificationMessageTemplate.EmailSubject,
4690
+ #
4691
+ # * VerificationMessageTemplate.EmailSubjectByLink
4692
+ #
4693
+ # <note markdown="1"> DEVELOPER EmailSendingAccount is required.
4694
+ #
4695
+ # </note>
4696
+ #
4573
4697
  # DEVELOPER
4574
4698
  #
4575
4699
  # : When Amazon Cognito emails your users, it uses your Amazon SES
@@ -5965,6 +6089,15 @@ module Aws::CognitoIdentityProvider
5965
6089
  # verify_auth_challenge_response: "ArnType",
5966
6090
  # pre_token_generation: "ArnType",
5967
6091
  # user_migration: "ArnType",
6092
+ # custom_sms_sender: {
6093
+ # lambda_version: "V1_0", # required, accepts V1_0
6094
+ # lambda_arn: "ArnType", # required
6095
+ # },
6096
+ # custom_email_sender: {
6097
+ # lambda_version: "V1_0", # required, accepts V1_0
6098
+ # lambda_arn: "ArnType", # required
6099
+ # },
6100
+ # kms_key_id: "ArnType",
5968
6101
  # }
5969
6102
  #
5970
6103
  # @!attribute [rw] pre_sign_up
@@ -6007,6 +6140,21 @@ module Aws::CognitoIdentityProvider
6007
6140
  # The user migration Lambda config type.
6008
6141
  # @return [String]
6009
6142
  #
6143
+ # @!attribute [rw] custom_sms_sender
6144
+ # A custom SMS sender AWS Lambda trigger.
6145
+ # @return [Types::CustomSMSLambdaVersionConfigType]
6146
+ #
6147
+ # @!attribute [rw] custom_email_sender
6148
+ # A custom email sender AWS Lambda trigger.
6149
+ # @return [Types::CustomEmailLambdaVersionConfigType]
6150
+ #
6151
+ # @!attribute [rw] kms_key_id
6152
+ # The Amazon Resource Name of Key Management Service [Customer master
6153
+ # keys](/kms/latest/developerguide/concepts.html#master_keys) . Amazon
6154
+ # Cognito uses the key to encrypt codes and temporary passwords sent
6155
+ # to `CustomEmailSender` and `CustomSMSSender`.
6156
+ # @return [String]
6157
+ #
6010
6158
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/LambdaConfigType AWS API Documentation
6011
6159
  #
6012
6160
  class LambdaConfigType < Struct.new(
@@ -6019,7 +6167,10 @@ module Aws::CognitoIdentityProvider
6019
6167
  :create_auth_challenge,
6020
6168
  :verify_auth_challenge_response,
6021
6169
  :pre_token_generation,
6022
- :user_migration)
6170
+ :user_migration,
6171
+ :custom_sms_sender,
6172
+ :custom_email_sender,
6173
+ :kms_key_id)
6023
6174
  SENSITIVE = []
6024
6175
  include Aws::Structure
6025
6176
  end
@@ -6680,11 +6831,21 @@ module Aws::CognitoIdentityProvider
6680
6831
  # @return [String]
6681
6832
  #
6682
6833
  # @!attribute [rw] email_message
6683
- # The message template for email messages.
6834
+ # The message template for email messages. EmailMessage is allowed
6835
+ # only if [EmailSendingAccount][1] is DEVELOPER.
6836
+ #
6837
+ #
6838
+ #
6839
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
6684
6840
  # @return [String]
6685
6841
  #
6686
6842
  # @!attribute [rw] email_subject
6687
- # The subject line for email messages.
6843
+ # The subject line for email messages. EmailSubject is allowed only if
6844
+ # [EmailSendingAccount][1] is DEVELOPER.
6845
+ #
6846
+ #
6847
+ #
6848
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
6688
6849
  # @return [String]
6689
6850
  #
6690
6851
  # @see http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/MessageTemplateType AWS API Documentation
@@ -7489,7 +7650,13 @@ module Aws::CognitoIdentityProvider
7489
7650
  include Aws::Structure
7490
7651
  end
7491
7652
 
7492
- # The type used for enabling SMS MFA at the user level.
7653
+ # The type used for enabling SMS MFA at the user level. Phone numbers
7654
+ # don't need to be verified to be used for SMS MFA. If an MFA type is
7655
+ # enabled for a user, the user will be prompted for MFA during all sign
7656
+ # in attempts, unless device tracking is turned on and the device has
7657
+ # been trusted. If you would like MFA to be applied selectively based on
7658
+ # the assessed risk level of sign in attempts, disable MFA for users and
7659
+ # turn on Adaptive Authentication for the user pool.
7493
7660
  #
7494
7661
  # @note When making an API call, you may pass SMSMfaSettingsType
7495
7662
  # data as a hash:
@@ -7500,7 +7667,10 @@ module Aws::CognitoIdentityProvider
7500
7667
  # }
7501
7668
  #
7502
7669
  # @!attribute [rw] enabled
7503
- # Specifies whether SMS text message MFA is enabled.
7670
+ # Specifies whether SMS text message MFA is enabled. If an MFA type is
7671
+ # enabled for a user, the user will be prompted for MFA during all
7672
+ # sign in attempts, unless device tracking is turned on and the device
7673
+ # has been trusted.
7504
7674
  # @return [Boolean]
7505
7675
  #
7506
7676
  # @!attribute [rw] preferred_mfa
@@ -8109,7 +8279,12 @@ module Aws::CognitoIdentityProvider
8109
8279
  # @!attribute [rw] sns_caller_arn
8110
8280
  # The Amazon Resource Name (ARN) of the Amazon Simple Notification
8111
8281
  # Service (SNS) caller. This is the ARN of the IAM role in your AWS
8112
- # account which Cognito will use to send SMS messages.
8282
+ # account which Cognito will use to send SMS messages. SMS messages
8283
+ # are subject to a [spending limit][1].
8284
+ #
8285
+ #
8286
+ #
8287
+ # [1]: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html
8113
8288
  # @return [String]
8114
8289
  #
8115
8290
  # @!attribute [rw] external_id
@@ -8202,7 +8377,13 @@ module Aws::CognitoIdentityProvider
8202
8377
  include Aws::Structure
8203
8378
  end
8204
8379
 
8205
- # The type used for enabling software token MFA at the user level.
8380
+ # The type used for enabling software token MFA at the user level. If an
8381
+ # MFA type is enabled for a user, the user will be prompted for MFA
8382
+ # during all sign in attempts, unless device tracking is turned on and
8383
+ # the device has been trusted. If you would like MFA to be applied
8384
+ # selectively based on the assessed risk level of sign in attempts,
8385
+ # disable MFA for users and turn on Adaptive Authentication for the user
8386
+ # pool.
8206
8387
  #
8207
8388
  # @note When making an API call, you may pass SoftwareTokenMfaSettingsType
8208
8389
  # data as a hash:
@@ -8213,7 +8394,10 @@ module Aws::CognitoIdentityProvider
8213
8394
  # }
8214
8395
  #
8215
8396
  # @!attribute [rw] enabled
8216
- # Specifies whether software token MFA is enabled.
8397
+ # Specifies whether software token MFA is enabled. If an MFA type is
8398
+ # enabled for a user, the user will be prompted for MFA during all
8399
+ # sign in attempts, unless device tracking is turned on and the device
8400
+ # has been trusted.
8217
8401
  # @return [Boolean]
8218
8402
  #
8219
8403
  # @!attribute [rw] preferred_mfa
@@ -8945,9 +9129,10 @@ module Aws::CognitoIdentityProvider
8945
9129
  # allowed_o_auth_scopes: ["ScopeType"],
8946
9130
  # allowed_o_auth_flows_user_pool_client: false,
8947
9131
  # analytics_configuration: {
8948
- # application_id: "HexStringType", # required
8949
- # role_arn: "ArnType", # required
8950
- # external_id: "StringType", # required
9132
+ # application_id: "HexStringType",
9133
+ # application_arn: "ArnType",
9134
+ # role_arn: "ArnType",
9135
+ # external_id: "StringType",
8951
9136
  # user_data_shared: false,
8952
9137
  # },
8953
9138
  # prevent_user_existence_errors: "LEGACY", # accepts LEGACY, ENABLED
@@ -9270,6 +9455,15 @@ module Aws::CognitoIdentityProvider
9270
9455
  # verify_auth_challenge_response: "ArnType",
9271
9456
  # pre_token_generation: "ArnType",
9272
9457
  # user_migration: "ArnType",
9458
+ # custom_sms_sender: {
9459
+ # lambda_version: "V1_0", # required, accepts V1_0
9460
+ # lambda_arn: "ArnType", # required
9461
+ # },
9462
+ # custom_email_sender: {
9463
+ # lambda_version: "V1_0", # required, accepts V1_0
9464
+ # lambda_arn: "ArnType", # required
9465
+ # },
9466
+ # kms_key_id: "ArnType",
9273
9467
  # },
9274
9468
  # auto_verified_attributes: ["phone_number"], # accepts phone_number, email
9275
9469
  # sms_verification_message: "SmsVerificationMessageType",
@@ -10336,21 +10530,41 @@ module Aws::CognitoIdentityProvider
10336
10530
  # @return [String]
10337
10531
  #
10338
10532
  # @!attribute [rw] email_message
10339
- # The email message template.
10533
+ # The email message template. EmailMessage is allowed only if [
10534
+ # EmailSendingAccount][1] is DEVELOPER.
10535
+ #
10536
+ #
10537
+ #
10538
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
10340
10539
  # @return [String]
10341
10540
  #
10342
10541
  # @!attribute [rw] email_subject
10343
- # The subject line for the email message template.
10542
+ # The subject line for the email message template. EmailSubject is
10543
+ # allowed only if [EmailSendingAccount][1] is DEVELOPER.
10544
+ #
10545
+ #
10546
+ #
10547
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
10344
10548
  # @return [String]
10345
10549
  #
10346
10550
  # @!attribute [rw] email_message_by_link
10347
10551
  # The email message template for sending a confirmation link to the
10348
- # user.
10552
+ # user. EmailMessageByLink is allowed only if [
10553
+ # EmailSendingAccount][1] is DEVELOPER.
10554
+ #
10555
+ #
10556
+ #
10557
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
10349
10558
  # @return [String]
10350
10559
  #
10351
10560
  # @!attribute [rw] email_subject_by_link
10352
10561
  # The subject line for the email message template for sending a
10353
- # confirmation link to the user.
10562
+ # confirmation link to the user. EmailSubjectByLink is allowed only [
10563
+ # EmailSendingAccount][1] is DEVELOPER.
10564
+ #
10565
+ #
10566
+ #
10567
+ # [1]: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_EmailConfigurationType.html#CognitoUserPools-Type-EmailConfigurationType-EmailSendingAccount
10354
10568
  # @return [String]
10355
10569
  #
10356
10570
  # @!attribute [rw] default_email_option
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.43.0
4
+ version: 1.48.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: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2020-11-24 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.99.0
22
+ version: 3.109.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement