aws-sdk-sesv2 1.13.0 → 1.14.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: 342d0401e8d053ab7cad206dd78ffc6709bea2702d819e57192c2b599315fee8
4
- data.tar.gz: 4752965704ff594ec36fbfd057568704312761a169d95e30f9b0cb07fa2d6e9e
3
+ metadata.gz: cf142d0093dff3eae91675e8dd268efc82abf52409ef2cc9d59360032db79aaf
4
+ data.tar.gz: eb1caed6cf6b965a31cec092cfc8b7e75262fdfe74c360219191a10adffb6bfe
5
5
  SHA512:
6
- metadata.gz: a1777b5cbe044dd9a37390b3c787f4167f0b2202498d3bea3ac3c0ac29f110de305aeb1e99f073c9ff4622a2798fe7066556c017d899f3135be8dc92cc2f3985
7
- data.tar.gz: 8fb0639aaf38957af91c41fb59f51b987baeee9d2444be2f4a17e05ba0085e55de1f40e6e97ef3aaefc4abe74a9b4392527e759d54f54b87b86f72ba7cd05d46
6
+ metadata.gz: 44cc5f80b869a92fd2965925acee808ed6119712be0440a27c521fca2ca9fea95321e781a7331e5dbca90dca64e60102967732de8f9572b8dab711f207e2ca41
7
+ data.tar.gz: 85e2ea755adf6cd26c514d6e6aed6954f647317aeadd030ef0dfd777a3488aabb4218798b7ab0bda413d75fb550a8917e2916feb09056518865c3510fe0f8dd6
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-sesv2/customizations'
48
48
  # @!group service
49
49
  module Aws::SESV2
50
50
 
51
- GEM_VERSION = '1.13.0'
51
+ GEM_VERSION = '1.14.0'
52
52
 
53
53
  end
@@ -432,7 +432,7 @@ module Aws::SESV2
432
432
  # event_destination_name: "EventDestinationName", # required
433
433
  # event_destination: { # required
434
434
  # enabled: false,
435
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
435
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY, SUBSCRIPTION
436
436
  # kinesis_firehose_destination: {
437
437
  # iam_role_arn: "AmazonResourceName", # required
438
438
  # delivery_stream_arn: "AmazonResourceName", # required
@@ -464,6 +464,99 @@ module Aws::SESV2
464
464
  req.send_request(options)
465
465
  end
466
466
 
467
+ # Creates a contact, which is an end-user who is receiving the email,
468
+ # and adds them to a contact list.
469
+ #
470
+ # @option params [required, String] :contact_list_name
471
+ # The name of the contact list to which the contact should be added.
472
+ #
473
+ # @option params [required, String] :email_address
474
+ # The contact's email address.
475
+ #
476
+ # @option params [Array<Types::TopicPreference>] :topic_preferences
477
+ # The contact's preferences for being opted-in to or opted-out of
478
+ # topics.
479
+ #
480
+ # @option params [Boolean] :unsubscribe_all
481
+ # A boolean value status noting if the contact is unsubscribed from all
482
+ # contact list topics.
483
+ #
484
+ # @option params [String] :attributes_data
485
+ # The attribute data attached to a contact.
486
+ #
487
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
488
+ #
489
+ # @example Request syntax with placeholder values
490
+ #
491
+ # resp = client.create_contact({
492
+ # contact_list_name: "ContactListName", # required
493
+ # email_address: "EmailAddress", # required
494
+ # topic_preferences: [
495
+ # {
496
+ # topic_name: "TopicName", # required
497
+ # subscription_status: "OPT_IN", # required, accepts OPT_IN, OPT_OUT
498
+ # },
499
+ # ],
500
+ # unsubscribe_all: false,
501
+ # attributes_data: "AttributesData",
502
+ # })
503
+ #
504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateContact AWS API Documentation
505
+ #
506
+ # @overload create_contact(params = {})
507
+ # @param [Hash] params ({})
508
+ def create_contact(params = {}, options = {})
509
+ req = build_request(:create_contact, params)
510
+ req.send_request(options)
511
+ end
512
+
513
+ # Creates a contact list.
514
+ #
515
+ # @option params [required, String] :contact_list_name
516
+ # The name of the contact list.
517
+ #
518
+ # @option params [Array<Types::Topic>] :topics
519
+ # An interest group, theme, or label within a list. A contact list can
520
+ # have multiple topics.
521
+ #
522
+ # @option params [String] :description
523
+ # A description of what the contact list is about.
524
+ #
525
+ # @option params [Array<Types::Tag>] :tags
526
+ # The tags associated with a contact list.
527
+ #
528
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
529
+ #
530
+ # @example Request syntax with placeholder values
531
+ #
532
+ # resp = client.create_contact_list({
533
+ # contact_list_name: "ContactListName", # required
534
+ # topics: [
535
+ # {
536
+ # topic_name: "TopicName", # required
537
+ # display_name: "DisplayName", # required
538
+ # description: "Description",
539
+ # default_subscription_status: "OPT_IN", # required, accepts OPT_IN, OPT_OUT
540
+ # },
541
+ # ],
542
+ # description: "Description",
543
+ # tags: [
544
+ # {
545
+ # key: "TagKey", # required
546
+ # value: "TagValue", # required
547
+ # },
548
+ # ],
549
+ # })
550
+ #
551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateContactList AWS API Documentation
552
+ #
553
+ # @overload create_contact_list(params = {})
554
+ # @param [Hash] params ({})
555
+ def create_contact_list(params = {}, options = {})
556
+ req = build_request(:create_contact_list, params)
557
+ req.send_request(options)
558
+ end
559
+
467
560
  # Creates a new custom verification email template.
468
561
  #
469
562
  # For more information about custom verification email templates, see
@@ -849,9 +942,13 @@ module Aws::SESV2
849
942
  #
850
943
  # resp = client.create_import_job({
851
944
  # import_destination: { # required
852
- # suppression_list_destination: { # required
945
+ # suppression_list_destination: {
853
946
  # suppression_list_import_action: "DELETE", # required, accepts DELETE, PUT
854
947
  # },
948
+ # contact_list_destination: {
949
+ # contact_list_name: "ContactListName", # required
950
+ # contact_list_import_action: "DELETE", # required, accepts DELETE, PUT
951
+ # },
855
952
  # },
856
953
  # import_data_source: { # required
857
954
  # s3_url: "S3Url", # required
@@ -934,6 +1031,54 @@ module Aws::SESV2
934
1031
  req.send_request(options)
935
1032
  end
936
1033
 
1034
+ # Removes a contact from a contact list.
1035
+ #
1036
+ # @option params [required, String] :contact_list_name
1037
+ # The name of the contact list from which the contact should be removed.
1038
+ #
1039
+ # @option params [required, String] :email_address
1040
+ # The contact's email address.
1041
+ #
1042
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1043
+ #
1044
+ # @example Request syntax with placeholder values
1045
+ #
1046
+ # resp = client.delete_contact({
1047
+ # contact_list_name: "ContactListName", # required
1048
+ # email_address: "EmailAddress", # required
1049
+ # })
1050
+ #
1051
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteContact AWS API Documentation
1052
+ #
1053
+ # @overload delete_contact(params = {})
1054
+ # @param [Hash] params ({})
1055
+ def delete_contact(params = {}, options = {})
1056
+ req = build_request(:delete_contact, params)
1057
+ req.send_request(options)
1058
+ end
1059
+
1060
+ # Deletes a contact list and all of the contacts on that list.
1061
+ #
1062
+ # @option params [required, String] :contact_list_name
1063
+ # The name of the contact list.
1064
+ #
1065
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1066
+ #
1067
+ # @example Request syntax with placeholder values
1068
+ #
1069
+ # resp = client.delete_contact_list({
1070
+ # contact_list_name: "ContactListName", # required
1071
+ # })
1072
+ #
1073
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteContactList AWS API Documentation
1074
+ #
1075
+ # @overload delete_contact_list(params = {})
1076
+ # @param [Hash] params ({})
1077
+ def delete_contact_list(params = {}, options = {})
1078
+ req = build_request(:delete_contact_list, params)
1079
+ req.send_request(options)
1080
+ end
1081
+
937
1082
  # Deletes an existing custom verification email template.
938
1083
  #
939
1084
  # For more information about custom verification email templates, see
@@ -1266,7 +1411,7 @@ module Aws::SESV2
1266
1411
  # resp.event_destinations[0].name #=> String
1267
1412
  # resp.event_destinations[0].enabled #=> Boolean
1268
1413
  # resp.event_destinations[0].matching_event_types #=> Array
1269
- # resp.event_destinations[0].matching_event_types[0] #=> String, one of "SEND", "REJECT", "BOUNCE", "COMPLAINT", "DELIVERY", "OPEN", "CLICK", "RENDERING_FAILURE", "DELIVERY_DELAY"
1414
+ # resp.event_destinations[0].matching_event_types[0] #=> String, one of "SEND", "REJECT", "BOUNCE", "COMPLAINT", "DELIVERY", "OPEN", "CLICK", "RENDERING_FAILURE", "DELIVERY_DELAY", "SUBSCRIPTION"
1270
1415
  # resp.event_destinations[0].kinesis_firehose_destination.iam_role_arn #=> String
1271
1416
  # resp.event_destinations[0].kinesis_firehose_destination.delivery_stream_arn #=> String
1272
1417
  # resp.event_destinations[0].cloud_watch_destination.dimension_configurations #=> Array
@@ -1285,6 +1430,101 @@ module Aws::SESV2
1285
1430
  req.send_request(options)
1286
1431
  end
1287
1432
 
1433
+ # Returns a contact from a contact list.
1434
+ #
1435
+ # @option params [required, String] :contact_list_name
1436
+ # The name of the contact list to which the contact belongs.
1437
+ #
1438
+ # @option params [required, String] :email_address
1439
+ # The contact's email addres.
1440
+ #
1441
+ # @return [Types::GetContactResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1442
+ #
1443
+ # * {Types::GetContactResponse#contact_list_name #contact_list_name} => String
1444
+ # * {Types::GetContactResponse#email_address #email_address} => String
1445
+ # * {Types::GetContactResponse#topic_preferences #topic_preferences} => Array&lt;Types::TopicPreference&gt;
1446
+ # * {Types::GetContactResponse#topic_default_preferences #topic_default_preferences} => Array&lt;Types::TopicPreference&gt;
1447
+ # * {Types::GetContactResponse#unsubscribe_all #unsubscribe_all} => Boolean
1448
+ # * {Types::GetContactResponse#attributes_data #attributes_data} => String
1449
+ # * {Types::GetContactResponse#created_timestamp #created_timestamp} => Time
1450
+ # * {Types::GetContactResponse#last_updated_timestamp #last_updated_timestamp} => Time
1451
+ #
1452
+ # @example Request syntax with placeholder values
1453
+ #
1454
+ # resp = client.get_contact({
1455
+ # contact_list_name: "ContactListName", # required
1456
+ # email_address: "EmailAddress", # required
1457
+ # })
1458
+ #
1459
+ # @example Response structure
1460
+ #
1461
+ # resp.contact_list_name #=> String
1462
+ # resp.email_address #=> String
1463
+ # resp.topic_preferences #=> Array
1464
+ # resp.topic_preferences[0].topic_name #=> String
1465
+ # resp.topic_preferences[0].subscription_status #=> String, one of "OPT_IN", "OPT_OUT"
1466
+ # resp.topic_default_preferences #=> Array
1467
+ # resp.topic_default_preferences[0].topic_name #=> String
1468
+ # resp.topic_default_preferences[0].subscription_status #=> String, one of "OPT_IN", "OPT_OUT"
1469
+ # resp.unsubscribe_all #=> Boolean
1470
+ # resp.attributes_data #=> String
1471
+ # resp.created_timestamp #=> Time
1472
+ # resp.last_updated_timestamp #=> Time
1473
+ #
1474
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetContact AWS API Documentation
1475
+ #
1476
+ # @overload get_contact(params = {})
1477
+ # @param [Hash] params ({})
1478
+ def get_contact(params = {}, options = {})
1479
+ req = build_request(:get_contact, params)
1480
+ req.send_request(options)
1481
+ end
1482
+
1483
+ # Returns contact list metadata. It does not return any information
1484
+ # about the contacts present in the list.
1485
+ #
1486
+ # @option params [required, String] :contact_list_name
1487
+ # The name of the contact list.
1488
+ #
1489
+ # @return [Types::GetContactListResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1490
+ #
1491
+ # * {Types::GetContactListResponse#contact_list_name #contact_list_name} => String
1492
+ # * {Types::GetContactListResponse#topics #topics} => Array&lt;Types::Topic&gt;
1493
+ # * {Types::GetContactListResponse#description #description} => String
1494
+ # * {Types::GetContactListResponse#created_timestamp #created_timestamp} => Time
1495
+ # * {Types::GetContactListResponse#last_updated_timestamp #last_updated_timestamp} => Time
1496
+ # * {Types::GetContactListResponse#tags #tags} => Array&lt;Types::Tag&gt;
1497
+ #
1498
+ # @example Request syntax with placeholder values
1499
+ #
1500
+ # resp = client.get_contact_list({
1501
+ # contact_list_name: "ContactListName", # required
1502
+ # })
1503
+ #
1504
+ # @example Response structure
1505
+ #
1506
+ # resp.contact_list_name #=> String
1507
+ # resp.topics #=> Array
1508
+ # resp.topics[0].topic_name #=> String
1509
+ # resp.topics[0].display_name #=> String
1510
+ # resp.topics[0].description #=> String
1511
+ # resp.topics[0].default_subscription_status #=> String, one of "OPT_IN", "OPT_OUT"
1512
+ # resp.description #=> String
1513
+ # resp.created_timestamp #=> Time
1514
+ # resp.last_updated_timestamp #=> Time
1515
+ # resp.tags #=> Array
1516
+ # resp.tags[0].key #=> String
1517
+ # resp.tags[0].value #=> String
1518
+ #
1519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetContactList AWS API Documentation
1520
+ #
1521
+ # @overload get_contact_list(params = {})
1522
+ # @param [Hash] params ({})
1523
+ def get_contact_list(params = {}, options = {})
1524
+ req = build_request(:get_contact_list, params)
1525
+ req.send_request(options)
1526
+ end
1527
+
1288
1528
  # Returns the custom email verification template for the template name
1289
1529
  # you specify.
1290
1530
  #
@@ -1793,6 +2033,8 @@ module Aws::SESV2
1793
2033
  #
1794
2034
  # resp.job_id #=> String
1795
2035
  # resp.import_destination.suppression_list_destination.suppression_list_import_action #=> String, one of "DELETE", "PUT"
2036
+ # resp.import_destination.contact_list_destination.contact_list_name #=> String
2037
+ # resp.import_destination.contact_list_destination.contact_list_import_action #=> String, one of "DELETE", "PUT"
1796
2038
  # resp.import_data_source.s3_url #=> String
1797
2039
  # resp.import_data_source.data_format #=> String, one of "CSV", "JSON"
1798
2040
  # resp.failure_info.failed_records_s3_url #=> String
@@ -1893,6 +2135,118 @@ module Aws::SESV2
1893
2135
  req.send_request(options)
1894
2136
  end
1895
2137
 
2138
+ # Lists all of the contact lists available.
2139
+ #
2140
+ # @option params [Integer] :page_size
2141
+ # Maximum number of contact lists to return at once. Use this parameter
2142
+ # to paginate results. If additional contact lists exist beyond the
2143
+ # specified limit, the `NextToken` element is sent in the response. Use
2144
+ # the `NextToken` value in subsequent requests to retrieve additional
2145
+ # lists.
2146
+ #
2147
+ # @option params [String] :next_token
2148
+ # A string token indicating that there might be additional contact lists
2149
+ # available to be listed. Use the token provided in the Response to use
2150
+ # in the subsequent call to ListContactLists with the same parameters to
2151
+ # retrieve the next page of contact lists.
2152
+ #
2153
+ # @return [Types::ListContactListsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2154
+ #
2155
+ # * {Types::ListContactListsResponse#contact_lists #contact_lists} => Array&lt;Types::ContactList&gt;
2156
+ # * {Types::ListContactListsResponse#next_token #next_token} => String
2157
+ #
2158
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2159
+ #
2160
+ # @example Request syntax with placeholder values
2161
+ #
2162
+ # resp = client.list_contact_lists({
2163
+ # page_size: 1,
2164
+ # next_token: "NextToken",
2165
+ # })
2166
+ #
2167
+ # @example Response structure
2168
+ #
2169
+ # resp.contact_lists #=> Array
2170
+ # resp.contact_lists[0].contact_list_name #=> String
2171
+ # resp.contact_lists[0].last_updated_timestamp #=> Time
2172
+ # resp.next_token #=> String
2173
+ #
2174
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListContactLists AWS API Documentation
2175
+ #
2176
+ # @overload list_contact_lists(params = {})
2177
+ # @param [Hash] params ({})
2178
+ def list_contact_lists(params = {}, options = {})
2179
+ req = build_request(:list_contact_lists, params)
2180
+ req.send_request(options)
2181
+ end
2182
+
2183
+ # Lists the contacts present in a specific contact list.
2184
+ #
2185
+ # @option params [required, String] :contact_list_name
2186
+ # The name of the contact list.
2187
+ #
2188
+ # @option params [Types::ListContactsFilter] :filter
2189
+ # A filter that can be applied to a list of contacts.
2190
+ #
2191
+ # @option params [Integer] :page_size
2192
+ # The number of contacts that may be returned at once, which is
2193
+ # dependent on if there are more or less contacts than the value of the
2194
+ # PageSize. Use this parameter to paginate results. If additional
2195
+ # contacts exist beyond the specified limit, the `NextToken` element is
2196
+ # sent in the response. Use the `NextToken` value in subsequent requests
2197
+ # to retrieve additional contacts.
2198
+ #
2199
+ # @option params [String] :next_token
2200
+ # A string token indicating that there might be additional contacts
2201
+ # available to be listed. Use the token provided in the Response to use
2202
+ # in the subsequent call to ListContacts with the same parameters to
2203
+ # retrieve the next page of contacts.
2204
+ #
2205
+ # @return [Types::ListContactsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2206
+ #
2207
+ # * {Types::ListContactsResponse#contacts #contacts} => Array&lt;Types::Contact&gt;
2208
+ # * {Types::ListContactsResponse#next_token #next_token} => String
2209
+ #
2210
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2211
+ #
2212
+ # @example Request syntax with placeholder values
2213
+ #
2214
+ # resp = client.list_contacts({
2215
+ # contact_list_name: "ContactListName", # required
2216
+ # filter: {
2217
+ # filtered_status: "OPT_IN", # accepts OPT_IN, OPT_OUT
2218
+ # topic_filter: {
2219
+ # topic_name: "TopicName",
2220
+ # use_default_if_preference_unavailable: false,
2221
+ # },
2222
+ # },
2223
+ # page_size: 1,
2224
+ # next_token: "NextToken",
2225
+ # })
2226
+ #
2227
+ # @example Response structure
2228
+ #
2229
+ # resp.contacts #=> Array
2230
+ # resp.contacts[0].email_address #=> String
2231
+ # resp.contacts[0].topic_preferences #=> Array
2232
+ # resp.contacts[0].topic_preferences[0].topic_name #=> String
2233
+ # resp.contacts[0].topic_preferences[0].subscription_status #=> String, one of "OPT_IN", "OPT_OUT"
2234
+ # resp.contacts[0].topic_default_preferences #=> Array
2235
+ # resp.contacts[0].topic_default_preferences[0].topic_name #=> String
2236
+ # resp.contacts[0].topic_default_preferences[0].subscription_status #=> String, one of "OPT_IN", "OPT_OUT"
2237
+ # resp.contacts[0].unsubscribe_all #=> Boolean
2238
+ # resp.contacts[0].last_updated_timestamp #=> Time
2239
+ # resp.next_token #=> String
2240
+ #
2241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListContacts AWS API Documentation
2242
+ #
2243
+ # @overload list_contacts(params = {})
2244
+ # @param [Hash] params ({})
2245
+ def list_contacts(params = {}, options = {})
2246
+ req = build_request(:list_contacts, params)
2247
+ req.send_request(options)
2248
+ end
2249
+
1896
2250
  # Lists the existing custom verification email templates for your
1897
2251
  # account in the current AWS Region.
1898
2252
  #
@@ -2253,7 +2607,7 @@ module Aws::SESV2
2253
2607
  # @example Request syntax with placeholder values
2254
2608
  #
2255
2609
  # resp = client.list_import_jobs({
2256
- # import_destination_type: "SUPPRESSION_LIST", # accepts SUPPRESSION_LIST
2610
+ # import_destination_type: "SUPPRESSION_LIST", # accepts SUPPRESSION_LIST, CONTACT_LIST
2257
2611
  # next_token: "NextToken",
2258
2612
  # page_size: 1,
2259
2613
  # })
@@ -2263,6 +2617,8 @@ module Aws::SESV2
2263
2617
  # resp.import_jobs #=> Array
2264
2618
  # resp.import_jobs[0].job_id #=> String
2265
2619
  # resp.import_jobs[0].import_destination.suppression_list_destination.suppression_list_import_action #=> String, one of "DELETE", "PUT"
2620
+ # resp.import_jobs[0].import_destination.contact_list_destination.contact_list_name #=> String
2621
+ # resp.import_jobs[0].import_destination.contact_list_destination.contact_list_import_action #=> String, one of "DELETE", "PUT"
2266
2622
  # resp.import_jobs[0].job_status #=> String, one of "CREATED", "PROCESSING", "COMPLETED", "FAILED"
2267
2623
  # resp.import_jobs[0].created_timestamp #=> Time
2268
2624
  # resp.next_token #=> String
@@ -3293,6 +3649,10 @@ module Aws::SESV2
3293
3649
  # The name of the configuration set that you want to use when sending
3294
3650
  # the email.
3295
3651
  #
3652
+ # @option params [Types::ListManagementOptions] :list_management_options
3653
+ # An object used to specify a list or topic to which an email belongs,
3654
+ # which will be used when a contact chooses to unsubscribe.
3655
+ #
3296
3656
  # @return [Types::SendEmailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3297
3657
  #
3298
3658
  # * {Types::SendEmailResponse#message_id #message_id} => String
@@ -3343,6 +3703,10 @@ module Aws::SESV2
3343
3703
  # },
3344
3704
  # ],
3345
3705
  # configuration_set_name: "ConfigurationSetName",
3706
+ # list_management_options: {
3707
+ # contact_list_name: "ContactListName", # required
3708
+ # topic_name: "TopicName",
3709
+ # },
3346
3710
  # })
3347
3711
  #
3348
3712
  # @example Response structure
@@ -3502,7 +3866,7 @@ module Aws::SESV2
3502
3866
  # event_destination_name: "EventDestinationName", # required
3503
3867
  # event_destination: { # required
3504
3868
  # enabled: false,
3505
- # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY
3869
+ # matching_event_types: ["SEND"], # accepts SEND, REJECT, BOUNCE, COMPLAINT, DELIVERY, OPEN, CLICK, RENDERING_FAILURE, DELIVERY_DELAY, SUBSCRIPTION
3506
3870
  # kinesis_firehose_destination: {
3507
3871
  # iam_role_arn: "AmazonResourceName", # required
3508
3872
  # delivery_stream_arn: "AmazonResourceName", # required
@@ -3534,6 +3898,92 @@ module Aws::SESV2
3534
3898
  req.send_request(options)
3535
3899
  end
3536
3900
 
3901
+ # Updates a contact's preferences for a list. It is not necessary to
3902
+ # specify all existing topic preferences in the TopicPreferences object,
3903
+ # just the ones that need updating.
3904
+ #
3905
+ # @option params [required, String] :contact_list_name
3906
+ # The name of the contact list.
3907
+ #
3908
+ # @option params [required, String] :email_address
3909
+ # The contact's email addres.
3910
+ #
3911
+ # @option params [Array<Types::TopicPreference>] :topic_preferences
3912
+ # The contact's preference for being opted-in to or opted-out of a
3913
+ # topic.
3914
+ #
3915
+ # @option params [Boolean] :unsubscribe_all
3916
+ # A boolean value status noting if the contact is unsubscribed from all
3917
+ # contact list topics.
3918
+ #
3919
+ # @option params [String] :attributes_data
3920
+ # The attribute data attached to a contact.
3921
+ #
3922
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3923
+ #
3924
+ # @example Request syntax with placeholder values
3925
+ #
3926
+ # resp = client.update_contact({
3927
+ # contact_list_name: "ContactListName", # required
3928
+ # email_address: "EmailAddress", # required
3929
+ # topic_preferences: [
3930
+ # {
3931
+ # topic_name: "TopicName", # required
3932
+ # subscription_status: "OPT_IN", # required, accepts OPT_IN, OPT_OUT
3933
+ # },
3934
+ # ],
3935
+ # unsubscribe_all: false,
3936
+ # attributes_data: "AttributesData",
3937
+ # })
3938
+ #
3939
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/UpdateContact AWS API Documentation
3940
+ #
3941
+ # @overload update_contact(params = {})
3942
+ # @param [Hash] params ({})
3943
+ def update_contact(params = {}, options = {})
3944
+ req = build_request(:update_contact, params)
3945
+ req.send_request(options)
3946
+ end
3947
+
3948
+ # Updates contact list metadata. This operation does a complete
3949
+ # replacement.
3950
+ #
3951
+ # @option params [required, String] :contact_list_name
3952
+ # The name of the contact list.
3953
+ #
3954
+ # @option params [Array<Types::Topic>] :topics
3955
+ # An interest group, theme, or label within a list. A contact list can
3956
+ # have multiple topics.
3957
+ #
3958
+ # @option params [String] :description
3959
+ # A description of what the contact list is about.
3960
+ #
3961
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3962
+ #
3963
+ # @example Request syntax with placeholder values
3964
+ #
3965
+ # resp = client.update_contact_list({
3966
+ # contact_list_name: "ContactListName", # required
3967
+ # topics: [
3968
+ # {
3969
+ # topic_name: "TopicName", # required
3970
+ # display_name: "DisplayName", # required
3971
+ # description: "Description",
3972
+ # default_subscription_status: "OPT_IN", # required, accepts OPT_IN, OPT_OUT
3973
+ # },
3974
+ # ],
3975
+ # description: "Description",
3976
+ # })
3977
+ #
3978
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/UpdateContactList AWS API Documentation
3979
+ #
3980
+ # @overload update_contact_list(params = {})
3981
+ # @param [Hash] params ({})
3982
+ def update_contact_list(params = {}, options = {})
3983
+ req = build_request(:update_contact_list, params)
3984
+ req.send_request(options)
3985
+ end
3986
+
3537
3987
  # Updates an existing custom verification email template.
3538
3988
  #
3539
3989
  # For more information about custom verification email templates, see
@@ -3706,7 +4156,7 @@ module Aws::SESV2
3706
4156
  params: params,
3707
4157
  config: config)
3708
4158
  context[:gem_name] = 'aws-sdk-sesv2'
3709
- context[:gem_version] = '1.13.0'
4159
+ context[:gem_version] = '1.14.0'
3710
4160
  Seahorse::Client::Request.new(handlers, context)
3711
4161
  end
3712
4162