|
14 | 14 | delete_campaign_communication_limits/4, |
15 | 15 | delete_campaign_communication_time/3, |
16 | 16 | delete_campaign_communication_time/4, |
| 17 | + delete_campaign_entry_limits/3, |
| 18 | + delete_campaign_entry_limits/4, |
17 | 19 | delete_connect_instance_config/3, |
18 | 20 | delete_connect_instance_config/4, |
19 | 21 | delete_connect_instance_integration/3, |
|
73 | 75 | update_campaign_communication_limits/4, |
74 | 76 | update_campaign_communication_time/3, |
75 | 77 | update_campaign_communication_time/4, |
| 78 | + update_campaign_entry_limits/3, |
| 79 | + update_campaign_entry_limits/4, |
76 | 80 | update_campaign_flow_association/3, |
77 | 81 | update_campaign_flow_association/4, |
78 | 82 | update_campaign_name/3, |
|
141 | 145 | %% <<"communicationTimeConfig">> => communication_time_config(), |
142 | 146 | %% <<"connectCampaignFlowArn">> => string(), |
143 | 147 | %% <<"connectInstanceId">> => string(), |
| 148 | +%% <<"entryLimitsConfig">> => entry_limits_config(), |
144 | 149 | %% <<"id">> => string(), |
145 | 150 | %% <<"name">> => string(), |
146 | 151 | %% <<"schedule">> => schedule(), |
|
363 | 368 | -type successful_profile_outbound_request() :: #{binary() => any()}. |
364 | 369 |
|
365 | 370 |
|
| 371 | +%% Example: |
| 372 | +%% entry_limits_config() :: #{ |
| 373 | +%% <<"maxEntryCount">> => [integer()], |
| 374 | +%% <<"minEntryInterval">> => string() |
| 375 | +%% } |
| 376 | +-type entry_limits_config() :: #{binary() => any()}. |
| 377 | + |
| 378 | + |
366 | 379 | %% Example: |
367 | 380 | %% list_campaigns_request() :: #{ |
368 | 381 | %% <<"filters">> => campaign_filters(), |
|
587 | 600 | %% } |
588 | 601 | -type internal_server_exception() :: #{binary() => any()}. |
589 | 602 |
|
| 603 | +%% Example: |
| 604 | +%% delete_campaign_entry_limits_request() :: #{} |
| 605 | +-type delete_campaign_entry_limits_request() :: #{}. |
| 606 | + |
590 | 607 |
|
591 | 608 | %% Example: |
592 | 609 | %% schedule() :: #{ |
|
687 | 704 | %% <<"communicationTimeConfig">> => communication_time_config(), |
688 | 705 | %% <<"connectCampaignFlowArn">> => string(), |
689 | 706 | %% <<"connectInstanceId">> := string(), |
| 707 | +%% <<"entryLimitsConfig">> => entry_limits_config(), |
690 | 708 | %% <<"name">> := string(), |
691 | 709 | %% <<"schedule">> => schedule(), |
692 | 710 | %% <<"source">> => list(), |
|
793 | 811 | -type q_connect_integration_identifier() :: #{binary() => any()}. |
794 | 812 |
|
795 | 813 |
|
| 814 | +%% Example: |
| 815 | +%% update_campaign_entry_limits_request() :: #{ |
| 816 | +%% <<"entryLimitsConfig">> := entry_limits_config() |
| 817 | +%% } |
| 818 | +-type update_campaign_entry_limits_request() :: #{binary() => any()}. |
| 819 | + |
| 820 | + |
796 | 821 | %% Example: |
797 | 822 | %% profile_outbound_request() :: #{ |
798 | 823 | %% <<"clientToken">> => string(), |
|
891 | 916 | %% <<"channelSubtypes">> => list(string()), |
892 | 917 | %% <<"connectCampaignFlowArn">> => string(), |
893 | 918 | %% <<"connectInstanceId">> => string(), |
| 919 | +%% <<"entryLimitsConfig">> => entry_limits_config(), |
894 | 920 | %% <<"id">> => string(), |
895 | 921 | %% <<"name">> => string(), |
896 | 922 | %% <<"schedule">> => schedule(), |
|
971 | 997 | conflict_exception() | |
972 | 998 | invalid_campaign_state_exception(). |
973 | 999 |
|
| 1000 | +-type delete_campaign_entry_limits_errors() :: |
| 1001 | + validation_exception() | |
| 1002 | + access_denied_exception() | |
| 1003 | + internal_server_exception() | |
| 1004 | + resource_not_found_exception() | |
| 1005 | + conflict_exception() | |
| 1006 | + invalid_campaign_state_exception(). |
| 1007 | + |
974 | 1008 | -type delete_connect_instance_config_errors() :: |
975 | 1009 | throttling_exception() | |
976 | 1010 | validation_exception() | |
|
1163 | 1197 | conflict_exception() | |
1164 | 1198 | invalid_campaign_state_exception(). |
1165 | 1199 |
|
| 1200 | +-type update_campaign_entry_limits_errors() :: |
| 1201 | + validation_exception() | |
| 1202 | + access_denied_exception() | |
| 1203 | + internal_server_exception() | |
| 1204 | + resource_not_found_exception() | |
| 1205 | + conflict_exception() | |
| 1206 | + invalid_campaign_state_exception(). |
| 1207 | + |
1166 | 1208 | -type update_campaign_flow_association_errors() :: |
1167 | 1209 | validation_exception() | |
1168 | 1210 | access_denied_exception() | |
@@ -1379,6 +1421,42 @@ delete_campaign_communication_time(Client, Id, Input0, Options0) -> |
1379 | 1421 | {Query_, Input} = aws_request:build_headers(QueryMapping, Input2), |
1380 | 1422 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
1381 | 1423 |
|
| 1424 | +%% @doc Deletes the entry limits config for a campaign. |
| 1425 | +%% |
| 1426 | +%% This API is idempotent. |
| 1427 | +-spec delete_campaign_entry_limits(aws_client:aws_client(), binary() | list(), delete_campaign_entry_limits_request()) -> |
| 1428 | + {ok, undefined, tuple()} | |
| 1429 | + {error, any()} | |
| 1430 | + {error, delete_campaign_entry_limits_errors(), tuple()}. |
| 1431 | +delete_campaign_entry_limits(Client, Id, Input) -> |
| 1432 | + delete_campaign_entry_limits(Client, Id, Input, []). |
| 1433 | + |
| 1434 | +-spec delete_campaign_entry_limits(aws_client:aws_client(), binary() | list(), delete_campaign_entry_limits_request(), proplists:proplist()) -> |
| 1435 | + {ok, undefined, tuple()} | |
| 1436 | + {error, any()} | |
| 1437 | + {error, delete_campaign_entry_limits_errors(), tuple()}. |
| 1438 | +delete_campaign_entry_limits(Client, Id, Input0, Options0) -> |
| 1439 | + Method = delete, |
| 1440 | + Path = ["/v2/campaigns/", aws_util:encode_uri(Id), "/entry-limits"], |
| 1441 | + SuccessStatusCode = 200, |
| 1442 | + {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), |
| 1443 | + {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), |
| 1444 | + Options = [{send_body_as_binary, SendBodyAsBinary}, |
| 1445 | + {receive_body_as_binary, ReceiveBodyAsBinary}, |
| 1446 | + {append_sha256_content_hash, false} |
| 1447 | + | Options2], |
| 1448 | + |
| 1449 | + Headers = [], |
| 1450 | + Input1 = Input0, |
| 1451 | + |
| 1452 | + CustomHeaders = [], |
| 1453 | + Input2 = Input1, |
| 1454 | + |
| 1455 | + Query_ = [], |
| 1456 | + Input = Input2, |
| 1457 | + |
| 1458 | + request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
| 1459 | + |
1382 | 1460 | %% @doc Deletes a connect instance config from the specified AWS account. |
1383 | 1461 | -spec delete_connect_instance_config(aws_client:aws_client(), binary() | list(), delete_connect_instance_config_request()) -> |
1384 | 1462 | {ok, undefined, tuple()} | |
@@ -2309,6 +2387,42 @@ update_campaign_communication_time(Client, Id, Input0, Options0) -> |
2309 | 2387 |
|
2310 | 2388 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
2311 | 2389 |
|
| 2390 | +%% @doc Updates the entry limits config for a campaign. |
| 2391 | +%% |
| 2392 | +%% This API is idempotent. |
| 2393 | +-spec update_campaign_entry_limits(aws_client:aws_client(), binary() | list(), update_campaign_entry_limits_request()) -> |
| 2394 | + {ok, undefined, tuple()} | |
| 2395 | + {error, any()} | |
| 2396 | + {error, update_campaign_entry_limits_errors(), tuple()}. |
| 2397 | +update_campaign_entry_limits(Client, Id, Input) -> |
| 2398 | + update_campaign_entry_limits(Client, Id, Input, []). |
| 2399 | + |
| 2400 | +-spec update_campaign_entry_limits(aws_client:aws_client(), binary() | list(), update_campaign_entry_limits_request(), proplists:proplist()) -> |
| 2401 | + {ok, undefined, tuple()} | |
| 2402 | + {error, any()} | |
| 2403 | + {error, update_campaign_entry_limits_errors(), tuple()}. |
| 2404 | +update_campaign_entry_limits(Client, Id, Input0, Options0) -> |
| 2405 | + Method = post, |
| 2406 | + Path = ["/v2/campaigns/", aws_util:encode_uri(Id), "/entry-limits"], |
| 2407 | + SuccessStatusCode = 200, |
| 2408 | + {SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false), |
| 2409 | + {ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false), |
| 2410 | + Options = [{send_body_as_binary, SendBodyAsBinary}, |
| 2411 | + {receive_body_as_binary, ReceiveBodyAsBinary}, |
| 2412 | + {append_sha256_content_hash, false} |
| 2413 | + | Options2], |
| 2414 | + |
| 2415 | + Headers = [], |
| 2416 | + Input1 = Input0, |
| 2417 | + |
| 2418 | + CustomHeaders = [], |
| 2419 | + Input2 = Input1, |
| 2420 | + |
| 2421 | + Query_ = [], |
| 2422 | + Input = Input2, |
| 2423 | + |
| 2424 | + request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
| 2425 | + |
2312 | 2426 | %% @doc Updates the campaign flow associated with a campaign. |
2313 | 2427 | %% |
2314 | 2428 | %% This API is idempotent. |
|
0 commit comments