aws-sdk-cognitoidentityprovider 1.127.0 → 1.128.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.
@@ -158,6 +158,8 @@ module Aws::CognitoIdentityProvider
158
158
  CreateManagedLoginBrandingResponse = Shapes::StructureShape.new(name: 'CreateManagedLoginBrandingResponse')
159
159
  CreateResourceServerRequest = Shapes::StructureShape.new(name: 'CreateResourceServerRequest')
160
160
  CreateResourceServerResponse = Shapes::StructureShape.new(name: 'CreateResourceServerResponse')
161
+ CreateTermsRequest = Shapes::StructureShape.new(name: 'CreateTermsRequest')
162
+ CreateTermsResponse = Shapes::StructureShape.new(name: 'CreateTermsResponse')
161
163
  CreateUserImportJobRequest = Shapes::StructureShape.new(name: 'CreateUserImportJobRequest')
162
164
  CreateUserImportJobResponse = Shapes::StructureShape.new(name: 'CreateUserImportJobResponse')
163
165
  CreateUserPoolClientRequest = Shapes::StructureShape.new(name: 'CreateUserPoolClientRequest')
@@ -179,6 +181,7 @@ module Aws::CognitoIdentityProvider
179
181
  DeleteIdentityProviderRequest = Shapes::StructureShape.new(name: 'DeleteIdentityProviderRequest')
180
182
  DeleteManagedLoginBrandingRequest = Shapes::StructureShape.new(name: 'DeleteManagedLoginBrandingRequest')
181
183
  DeleteResourceServerRequest = Shapes::StructureShape.new(name: 'DeleteResourceServerRequest')
184
+ DeleteTermsRequest = Shapes::StructureShape.new(name: 'DeleteTermsRequest')
182
185
  DeleteUserAttributesRequest = Shapes::StructureShape.new(name: 'DeleteUserAttributesRequest')
183
186
  DeleteUserAttributesResponse = Shapes::StructureShape.new(name: 'DeleteUserAttributesResponse')
184
187
  DeleteUserPoolClientRequest = Shapes::StructureShape.new(name: 'DeleteUserPoolClientRequest')
@@ -201,6 +204,8 @@ module Aws::CognitoIdentityProvider
201
204
  DescribeResourceServerResponse = Shapes::StructureShape.new(name: 'DescribeResourceServerResponse')
202
205
  DescribeRiskConfigurationRequest = Shapes::StructureShape.new(name: 'DescribeRiskConfigurationRequest')
203
206
  DescribeRiskConfigurationResponse = Shapes::StructureShape.new(name: 'DescribeRiskConfigurationResponse')
207
+ DescribeTermsRequest = Shapes::StructureShape.new(name: 'DescribeTermsRequest')
208
+ DescribeTermsResponse = Shapes::StructureShape.new(name: 'DescribeTermsResponse')
204
209
  DescribeUserImportJobRequest = Shapes::StructureShape.new(name: 'DescribeUserImportJobRequest')
205
210
  DescribeUserImportJobResponse = Shapes::StructureShape.new(name: 'DescribeUserImportJobResponse')
206
211
  DescribeUserPoolClientRequest = Shapes::StructureShape.new(name: 'DescribeUserPoolClientRequest')
@@ -315,7 +320,10 @@ module Aws::CognitoIdentityProvider
315
320
  InvalidSmsRoleTrustRelationshipException = Shapes::StructureShape.new(name: 'InvalidSmsRoleTrustRelationshipException')
316
321
  InvalidUserPoolConfigurationException = Shapes::StructureShape.new(name: 'InvalidUserPoolConfigurationException')
317
322
  LambdaConfigType = Shapes::StructureShape.new(name: 'LambdaConfigType')
323
+ LanguageIdType = Shapes::StringShape.new(name: 'LanguageIdType')
318
324
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
325
+ LinkUrlType = Shapes::StringShape.new(name: 'LinkUrlType')
326
+ LinksType = Shapes::MapShape.new(name: 'LinksType')
319
327
  ListDevicesRequest = Shapes::StructureShape.new(name: 'ListDevicesRequest')
320
328
  ListDevicesResponse = Shapes::StructureShape.new(name: 'ListDevicesResponse')
321
329
  ListGroupsRequest = Shapes::StructureShape.new(name: 'ListGroupsRequest')
@@ -329,6 +337,9 @@ module Aws::CognitoIdentityProvider
329
337
  ListResourceServersResponse = Shapes::StructureShape.new(name: 'ListResourceServersResponse')
330
338
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
331
339
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
340
+ ListTermsRequest = Shapes::StructureShape.new(name: 'ListTermsRequest')
341
+ ListTermsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListTermsRequestMaxResultsInteger')
342
+ ListTermsResponse = Shapes::StructureShape.new(name: 'ListTermsResponse')
332
343
  ListUserImportJobsRequest = Shapes::StructureShape.new(name: 'ListUserImportJobsRequest')
333
344
  ListUserImportJobsResponse = Shapes::StructureShape.new(name: 'ListUserImportJobsResponse')
334
345
  ListUserPoolClientsRequest = Shapes::StructureShape.new(name: 'ListUserPoolClientsRequest')
@@ -471,6 +482,14 @@ module Aws::CognitoIdentityProvider
471
482
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
472
483
  TagValueType = Shapes::StringShape.new(name: 'TagValueType')
473
484
  TemporaryPasswordValidityDaysType = Shapes::IntegerShape.new(name: 'TemporaryPasswordValidityDaysType')
485
+ TermsDescriptionListType = Shapes::ListShape.new(name: 'TermsDescriptionListType')
486
+ TermsDescriptionType = Shapes::StructureShape.new(name: 'TermsDescriptionType')
487
+ TermsEnforcementType = Shapes::StringShape.new(name: 'TermsEnforcementType')
488
+ TermsExistsException = Shapes::StructureShape.new(name: 'TermsExistsException')
489
+ TermsIdType = Shapes::StringShape.new(name: 'TermsIdType')
490
+ TermsNameType = Shapes::StringShape.new(name: 'TermsNameType')
491
+ TermsSourceType = Shapes::StringShape.new(name: 'TermsSourceType')
492
+ TermsType = Shapes::StructureShape.new(name: 'TermsType')
474
493
  TierChangeNotAllowedException = Shapes::StructureShape.new(name: 'TierChangeNotAllowedException')
475
494
  TimeUnitsType = Shapes::StringShape.new(name: 'TimeUnitsType')
476
495
  TokenModelType = Shapes::StringShape.new(name: 'TokenModelType')
@@ -498,6 +517,8 @@ module Aws::CognitoIdentityProvider
498
517
  UpdateManagedLoginBrandingResponse = Shapes::StructureShape.new(name: 'UpdateManagedLoginBrandingResponse')
499
518
  UpdateResourceServerRequest = Shapes::StructureShape.new(name: 'UpdateResourceServerRequest')
500
519
  UpdateResourceServerResponse = Shapes::StructureShape.new(name: 'UpdateResourceServerResponse')
520
+ UpdateTermsRequest = Shapes::StructureShape.new(name: 'UpdateTermsRequest')
521
+ UpdateTermsResponse = Shapes::StructureShape.new(name: 'UpdateTermsResponse')
501
522
  UpdateUserAttributesRequest = Shapes::StructureShape.new(name: 'UpdateUserAttributesRequest')
502
523
  UpdateUserAttributesResponse = Shapes::StructureShape.new(name: 'UpdateUserAttributesResponse')
503
524
  UpdateUserPoolClientRequest = Shapes::StructureShape.new(name: 'UpdateUserPoolClientRequest')
@@ -1034,6 +1055,17 @@ module Aws::CognitoIdentityProvider
1034
1055
  CreateResourceServerResponse.add_member(:resource_server, Shapes::ShapeRef.new(shape: ResourceServerType, required: true, location_name: "ResourceServer"))
1035
1056
  CreateResourceServerResponse.struct_class = Types::CreateResourceServerResponse
1036
1057
 
1058
+ CreateTermsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1059
+ CreateTermsRequest.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, required: true, location_name: "ClientId"))
1060
+ CreateTermsRequest.add_member(:terms_name, Shapes::ShapeRef.new(shape: TermsNameType, required: true, location_name: "TermsName"))
1061
+ CreateTermsRequest.add_member(:terms_source, Shapes::ShapeRef.new(shape: TermsSourceType, required: true, location_name: "TermsSource"))
1062
+ CreateTermsRequest.add_member(:enforcement, Shapes::ShapeRef.new(shape: TermsEnforcementType, required: true, location_name: "Enforcement"))
1063
+ CreateTermsRequest.add_member(:links, Shapes::ShapeRef.new(shape: LinksType, location_name: "Links"))
1064
+ CreateTermsRequest.struct_class = Types::CreateTermsRequest
1065
+
1066
+ CreateTermsResponse.add_member(:terms, Shapes::ShapeRef.new(shape: TermsType, location_name: "Terms"))
1067
+ CreateTermsResponse.struct_class = Types::CreateTermsResponse
1068
+
1037
1069
  CreateUserImportJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: UserImportJobNameType, required: true, location_name: "JobName"))
1038
1070
  CreateUserImportJobRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1039
1071
  CreateUserImportJobRequest.add_member(:cloud_watch_logs_role_arn, Shapes::ShapeRef.new(shape: ArnType, required: true, location_name: "CloudWatchLogsRoleArn"))
@@ -1138,6 +1170,10 @@ module Aws::CognitoIdentityProvider
1138
1170
  DeleteResourceServerRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceServerIdentifierType, required: true, location_name: "Identifier"))
1139
1171
  DeleteResourceServerRequest.struct_class = Types::DeleteResourceServerRequest
1140
1172
 
1173
+ DeleteTermsRequest.add_member(:terms_id, Shapes::ShapeRef.new(shape: TermsIdType, required: true, location_name: "TermsId"))
1174
+ DeleteTermsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1175
+ DeleteTermsRequest.struct_class = Types::DeleteTermsRequest
1176
+
1141
1177
  DeleteUserAttributesRequest.add_member(:user_attribute_names, Shapes::ShapeRef.new(shape: AttributeNameListType, required: true, location_name: "UserAttributeNames"))
1142
1178
  DeleteUserAttributesRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, required: true, location_name: "AccessToken"))
1143
1179
  DeleteUserAttributesRequest.struct_class = Types::DeleteUserAttributesRequest
@@ -1205,6 +1241,13 @@ module Aws::CognitoIdentityProvider
1205
1241
  DescribeRiskConfigurationResponse.add_member(:risk_configuration, Shapes::ShapeRef.new(shape: RiskConfigurationType, required: true, location_name: "RiskConfiguration"))
1206
1242
  DescribeRiskConfigurationResponse.struct_class = Types::DescribeRiskConfigurationResponse
1207
1243
 
1244
+ DescribeTermsRequest.add_member(:terms_id, Shapes::ShapeRef.new(shape: TermsIdType, required: true, location_name: "TermsId"))
1245
+ DescribeTermsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1246
+ DescribeTermsRequest.struct_class = Types::DescribeTermsRequest
1247
+
1248
+ DescribeTermsResponse.add_member(:terms, Shapes::ShapeRef.new(shape: TermsType, location_name: "Terms"))
1249
+ DescribeTermsResponse.struct_class = Types::DescribeTermsResponse
1250
+
1208
1251
  DescribeUserImportJobRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1209
1252
  DescribeUserImportJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: UserImportJobIdType, required: true, location_name: "JobId"))
1210
1253
  DescribeUserImportJobRequest.struct_class = Types::DescribeUserImportJobRequest
@@ -1525,6 +1568,9 @@ module Aws::CognitoIdentityProvider
1525
1568
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1526
1569
  LimitExceededException.struct_class = Types::LimitExceededException
1527
1570
 
1571
+ LinksType.key = Shapes::ShapeRef.new(shape: LanguageIdType)
1572
+ LinksType.value = Shapes::ShapeRef.new(shape: LinkUrlType)
1573
+
1528
1574
  ListDevicesRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, required: true, location_name: "AccessToken"))
1529
1575
  ListDevicesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: QueryLimitType, location_name: "Limit"))
1530
1576
  ListDevicesRequest.add_member(:pagination_token, Shapes::ShapeRef.new(shape: SearchPaginationTokenType, location_name: "PaginationToken"))
@@ -1569,6 +1615,15 @@ module Aws::CognitoIdentityProvider
1569
1615
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: UserPoolTagsType, location_name: "Tags"))
1570
1616
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
1571
1617
 
1618
+ ListTermsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1619
+ ListTermsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListTermsRequestMaxResultsInteger, location_name: "MaxResults"))
1620
+ ListTermsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: StringType, location_name: "NextToken"))
1621
+ ListTermsRequest.struct_class = Types::ListTermsRequest
1622
+
1623
+ ListTermsResponse.add_member(:terms, Shapes::ShapeRef.new(shape: TermsDescriptionListType, required: true, location_name: "Terms"))
1624
+ ListTermsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: StringType, location_name: "NextToken"))
1625
+ ListTermsResponse.struct_class = Types::ListTermsResponse
1626
+
1572
1627
  ListUserImportJobsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
1573
1628
  ListUserImportJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PoolQueryLimitType, required: true, location_name: "MaxResults"))
1574
1629
  ListUserImportJobsRequest.add_member(:pagination_token, Shapes::ShapeRef.new(shape: PaginationKeyType, location_name: "PaginationToken"))
@@ -1958,6 +2013,29 @@ module Aws::CognitoIdentityProvider
1958
2013
 
1959
2014
  TagResourceResponse.struct_class = Types::TagResourceResponse
1960
2015
 
2016
+ TermsDescriptionListType.member = Shapes::ShapeRef.new(shape: TermsDescriptionType)
2017
+
2018
+ TermsDescriptionType.add_member(:terms_id, Shapes::ShapeRef.new(shape: TermsIdType, required: true, location_name: "TermsId"))
2019
+ TermsDescriptionType.add_member(:terms_name, Shapes::ShapeRef.new(shape: TermsNameType, required: true, location_name: "TermsName"))
2020
+ TermsDescriptionType.add_member(:enforcement, Shapes::ShapeRef.new(shape: TermsEnforcementType, required: true, location_name: "Enforcement"))
2021
+ TermsDescriptionType.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, required: true, location_name: "CreationDate"))
2022
+ TermsDescriptionType.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: DateType, required: true, location_name: "LastModifiedDate"))
2023
+ TermsDescriptionType.struct_class = Types::TermsDescriptionType
2024
+
2025
+ TermsExistsException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
2026
+ TermsExistsException.struct_class = Types::TermsExistsException
2027
+
2028
+ TermsType.add_member(:terms_id, Shapes::ShapeRef.new(shape: TermsIdType, required: true, location_name: "TermsId"))
2029
+ TermsType.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
2030
+ TermsType.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientIdType, required: true, location_name: "ClientId"))
2031
+ TermsType.add_member(:terms_name, Shapes::ShapeRef.new(shape: TermsNameType, required: true, location_name: "TermsName"))
2032
+ TermsType.add_member(:terms_source, Shapes::ShapeRef.new(shape: TermsSourceType, required: true, location_name: "TermsSource"))
2033
+ TermsType.add_member(:enforcement, Shapes::ShapeRef.new(shape: TermsEnforcementType, required: true, location_name: "Enforcement"))
2034
+ TermsType.add_member(:links, Shapes::ShapeRef.new(shape: LinksType, required: true, location_name: "Links"))
2035
+ TermsType.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, required: true, location_name: "CreationDate"))
2036
+ TermsType.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: DateType, required: true, location_name: "LastModifiedDate"))
2037
+ TermsType.struct_class = Types::TermsType
2038
+
1961
2039
  TierChangeNotAllowedException.add_member(:message, Shapes::ShapeRef.new(shape: MessageType, location_name: "message"))
1962
2040
  TierChangeNotAllowedException.struct_class = Types::TierChangeNotAllowedException
1963
2041
 
@@ -2060,6 +2138,17 @@ module Aws::CognitoIdentityProvider
2060
2138
  UpdateResourceServerResponse.add_member(:resource_server, Shapes::ShapeRef.new(shape: ResourceServerType, required: true, location_name: "ResourceServer"))
2061
2139
  UpdateResourceServerResponse.struct_class = Types::UpdateResourceServerResponse
2062
2140
 
2141
+ UpdateTermsRequest.add_member(:terms_id, Shapes::ShapeRef.new(shape: TermsIdType, required: true, location_name: "TermsId"))
2142
+ UpdateTermsRequest.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: UserPoolIdType, required: true, location_name: "UserPoolId"))
2143
+ UpdateTermsRequest.add_member(:terms_name, Shapes::ShapeRef.new(shape: TermsNameType, location_name: "TermsName"))
2144
+ UpdateTermsRequest.add_member(:terms_source, Shapes::ShapeRef.new(shape: TermsSourceType, location_name: "TermsSource"))
2145
+ UpdateTermsRequest.add_member(:enforcement, Shapes::ShapeRef.new(shape: TermsEnforcementType, location_name: "Enforcement"))
2146
+ UpdateTermsRequest.add_member(:links, Shapes::ShapeRef.new(shape: LinksType, location_name: "Links"))
2147
+ UpdateTermsRequest.struct_class = Types::UpdateTermsRequest
2148
+
2149
+ UpdateTermsResponse.add_member(:terms, Shapes::ShapeRef.new(shape: TermsType, location_name: "Terms"))
2150
+ UpdateTermsResponse.struct_class = Types::UpdateTermsResponse
2151
+
2063
2152
  UpdateUserAttributesRequest.add_member(:user_attributes, Shapes::ShapeRef.new(shape: AttributeListType, required: true, location_name: "UserAttributes"))
2064
2153
  UpdateUserAttributesRequest.add_member(:access_token, Shapes::ShapeRef.new(shape: TokenModelType, required: true, location_name: "AccessToken"))
2065
2154
  UpdateUserAttributesRequest.add_member(:client_metadata, Shapes::ShapeRef.new(shape: ClientMetadataType, location_name: "ClientMetadata"))
@@ -3024,6 +3113,22 @@ module Aws::CognitoIdentityProvider
3024
3113
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3025
3114
  end)
3026
3115
 
3116
+ api.add_operation(:create_terms, Seahorse::Model::Operation.new.tap do |o|
3117
+ o.name = "CreateTerms"
3118
+ o.http_method = "POST"
3119
+ o.http_request_uri = "/"
3120
+ o.input = Shapes::ShapeRef.new(shape: CreateTermsRequest)
3121
+ o.output = Shapes::ShapeRef.new(shape: CreateTermsResponse)
3122
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3123
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
3124
+ o.errors << Shapes::ShapeRef.new(shape: TermsExistsException)
3125
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3126
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3127
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3128
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
3129
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3130
+ end)
3131
+
3027
3132
  api.add_operation(:create_user_import_job, Seahorse::Model::Operation.new.tap do |o|
3028
3133
  o.name = "CreateUserImportJob"
3029
3134
  o.http_method = "POST"
@@ -3145,6 +3250,20 @@ module Aws::CognitoIdentityProvider
3145
3250
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3146
3251
  end)
3147
3252
 
3253
+ api.add_operation(:delete_terms, Seahorse::Model::Operation.new.tap do |o|
3254
+ o.name = "DeleteTerms"
3255
+ o.http_method = "POST"
3256
+ o.http_request_uri = "/"
3257
+ o.input = Shapes::ShapeRef.new(shape: DeleteTermsRequest)
3258
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3259
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3260
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
3261
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3262
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3263
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3264
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3265
+ end)
3266
+
3148
3267
  api.add_operation(:delete_user, Seahorse::Model::Operation.new.tap do |o|
3149
3268
  o.name = "DeleteUser"
3150
3269
  o.http_method = "POST"
@@ -3307,6 +3426,19 @@ module Aws::CognitoIdentityProvider
3307
3426
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3308
3427
  end)
3309
3428
 
3429
+ api.add_operation(:describe_terms, Seahorse::Model::Operation.new.tap do |o|
3430
+ o.name = "DescribeTerms"
3431
+ o.http_method = "POST"
3432
+ o.http_request_uri = "/"
3433
+ o.input = Shapes::ShapeRef.new(shape: DescribeTermsRequest)
3434
+ o.output = Shapes::ShapeRef.new(shape: DescribeTermsResponse)
3435
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3436
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3437
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3438
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3439
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3440
+ end)
3441
+
3310
3442
  api.add_operation(:describe_user_import_job, Seahorse::Model::Operation.new.tap do |o|
3311
3443
  o.name = "DescribeUserImportJob"
3312
3444
  o.http_method = "POST"
@@ -3734,6 +3866,19 @@ module Aws::CognitoIdentityProvider
3734
3866
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3735
3867
  end)
3736
3868
 
3869
+ api.add_operation(:list_terms, Seahorse::Model::Operation.new.tap do |o|
3870
+ o.name = "ListTerms"
3871
+ o.http_method = "POST"
3872
+ o.http_request_uri = "/"
3873
+ o.input = Shapes::ShapeRef.new(shape: ListTermsRequest)
3874
+ o.output = Shapes::ShapeRef.new(shape: ListTermsResponse)
3875
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3876
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
3877
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3878
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
3879
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
3880
+ end)
3881
+
3737
3882
  api.add_operation(:list_user_import_jobs, Seahorse::Model::Operation.new.tap do |o|
3738
3883
  o.name = "ListUserImportJobs"
3739
3884
  o.http_method = "POST"
@@ -4199,6 +4344,21 @@ module Aws::CognitoIdentityProvider
4199
4344
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
4200
4345
  end)
4201
4346
 
4347
+ api.add_operation(:update_terms, Seahorse::Model::Operation.new.tap do |o|
4348
+ o.name = "UpdateTerms"
4349
+ o.http_method = "POST"
4350
+ o.http_request_uri = "/"
4351
+ o.input = Shapes::ShapeRef.new(shape: UpdateTermsRequest)
4352
+ o.output = Shapes::ShapeRef.new(shape: UpdateTermsResponse)
4353
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
4354
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
4355
+ o.errors << Shapes::ShapeRef.new(shape: TermsExistsException)
4356
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
4357
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
4358
+ o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException)
4359
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
4360
+ end)
4361
+
4202
4362
  api.add_operation(:update_user_attributes, Seahorse::Model::Operation.new.tap do |o|
4203
4363
  o.name = "UpdateUserAttributes"
4204
4364
  o.http_method = "POST"
@@ -58,6 +58,7 @@ module Aws::CognitoIdentityProvider
58
58
  # * {ResourceNotFoundException}
59
59
  # * {ScopeDoesNotExistException}
60
60
  # * {SoftwareTokenMFANotFoundException}
61
+ # * {TermsExistsException}
61
62
  # * {TierChangeNotAllowedException}
62
63
  # * {TooManyFailedAttemptsException}
63
64
  # * {TooManyRequestsException}
@@ -558,6 +559,21 @@ module Aws::CognitoIdentityProvider
558
559
  end
559
560
  end
560
561
 
562
+ class TermsExistsException < ServiceError
563
+
564
+ # @param [Seahorse::Client::RequestContext] context
565
+ # @param [String] message
566
+ # @param [Aws::CognitoIdentityProvider::Types::TermsExistsException] data
567
+ def initialize(context, message, data = Aws::EmptyStructure.new)
568
+ super(context, message, data)
569
+ end
570
+
571
+ # @return [String]
572
+ def message
573
+ @message || @data[:message]
574
+ end
575
+ end
576
+
561
577
  class TierChangeNotAllowedException < ServiceError
562
578
 
563
579
  # @param [Seahorse::Client::RequestContext] context