aws-sdk-socialmessaging 1.25.0 → 1.27.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-socialmessaging/client.rb +431 -1
- data/lib/aws-sdk-socialmessaging/client_api.rb +373 -0
- data/lib/aws-sdk-socialmessaging/types.rb +592 -0
- data/lib/aws-sdk-socialmessaging.rb +1 -1
- data/sig/client.rbs +132 -0
- data/sig/types.rbs +179 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4857f25927b93e7171e6475de9657a12a5854aa008a869e59faf8e76b9bbd2ed
|
|
4
|
+
data.tar.gz: 2d3affd45b32e93dbc11cde399dc0410ba5e25e2149df9ed9abeabf8e1254ae9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8642a8c37435c8c4a77757b485b8fb4ec4598e7dd7f897c2531e4c746c98db520d77efd3e39e643bf1685369b3258c24bba9cbf2133b8b66783928b4146dad9e
|
|
7
|
+
data.tar.gz: 33e674b605816bbf915a74214cee270e09ba8ce2baa2ca7636c0c3657a73ec9b342334b93787e50403870cc834b2890c4da21ae77e3efab751fdba1f42d49286
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.27.0 (2026-06-03)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adding support for WhatsApp flow APIs and adding AccessDeniedByMetaException for Template APIs
|
|
8
|
+
|
|
9
|
+
1.26.0 (2026-05-28)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Adding new BDD representation of endpoint ruleset
|
|
13
|
+
|
|
4
14
|
1.25.0 (2026-05-21)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.27.0
|
|
@@ -560,6 +560,66 @@ module Aws::SocialMessaging
|
|
|
560
560
|
req.send_request(options)
|
|
561
561
|
end
|
|
562
562
|
|
|
563
|
+
# Creates a new WhatsApp Flow. Flows enable businesses to create rich,
|
|
564
|
+
# interactive forms and experiences that users can complete without
|
|
565
|
+
# leaving WhatsApp. The Flow is created in DRAFT status. If `publish` is
|
|
566
|
+
# set to `true` and a valid `flowJson` is provided, the Flow is
|
|
567
|
+
# published immediately.
|
|
568
|
+
#
|
|
569
|
+
# @option params [required, String] :id
|
|
570
|
+
# The ID of the WhatsApp Business Account to associate with this Flow.
|
|
571
|
+
#
|
|
572
|
+
# @option params [required, String] :flow_name
|
|
573
|
+
# The name of the Flow. Must be unique within the WhatsApp Business
|
|
574
|
+
# Account.
|
|
575
|
+
#
|
|
576
|
+
# @option params [required, Array<String>] :categories
|
|
577
|
+
# The categories that classify the business purpose of the Flow. At
|
|
578
|
+
# least one category is required.
|
|
579
|
+
#
|
|
580
|
+
# @option params [String, StringIO, File] :flow_json
|
|
581
|
+
# The Flow JSON definition that describes the screens, components, and
|
|
582
|
+
# logic of the Flow. Maximum size is 10 MB.
|
|
583
|
+
#
|
|
584
|
+
# @option params [Boolean] :publish
|
|
585
|
+
# Set to `true` to publish the Flow immediately after creation. Requires
|
|
586
|
+
# a valid `flowJson` that passes Meta's validation.
|
|
587
|
+
#
|
|
588
|
+
# @option params [String] :clone_flow_id
|
|
589
|
+
# The ID of an existing Flow within the same WhatsApp Business Account
|
|
590
|
+
# to clone.
|
|
591
|
+
#
|
|
592
|
+
# @return [Types::CreateWhatsAppFlowOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
593
|
+
#
|
|
594
|
+
# * {Types::CreateWhatsAppFlowOutput#flow_id #flow_id} => String
|
|
595
|
+
# * {Types::CreateWhatsAppFlowOutput#validation_errors #validation_errors} => Array<String>
|
|
596
|
+
#
|
|
597
|
+
# @example Request syntax with placeholder values
|
|
598
|
+
#
|
|
599
|
+
# resp = client.create_whats_app_flow({
|
|
600
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
601
|
+
# flow_name: "MetaFlowName", # required
|
|
602
|
+
# categories: ["SIGN_UP"], # required, accepts SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, SHOPPING, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER
|
|
603
|
+
# flow_json: "data",
|
|
604
|
+
# publish: false,
|
|
605
|
+
# clone_flow_id: "MetaFlowId",
|
|
606
|
+
# })
|
|
607
|
+
#
|
|
608
|
+
# @example Response structure
|
|
609
|
+
#
|
|
610
|
+
# resp.flow_id #=> String
|
|
611
|
+
# resp.validation_errors #=> Array
|
|
612
|
+
# resp.validation_errors[0] #=> String
|
|
613
|
+
#
|
|
614
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/CreateWhatsAppFlow AWS API Documentation
|
|
615
|
+
#
|
|
616
|
+
# @overload create_whats_app_flow(params = {})
|
|
617
|
+
# @param [Hash] params ({})
|
|
618
|
+
def create_whats_app_flow(params = {}, options = {})
|
|
619
|
+
req = build_request(:create_whats_app_flow, params)
|
|
620
|
+
req.send_request(options)
|
|
621
|
+
end
|
|
622
|
+
|
|
563
623
|
# Creates a new WhatsApp message template from a custom definition.
|
|
564
624
|
#
|
|
565
625
|
# <note markdown="1"> Amazon Web Services End User Messaging Social does not store any
|
|
@@ -705,6 +765,33 @@ module Aws::SocialMessaging
|
|
|
705
765
|
req.send_request(options)
|
|
706
766
|
end
|
|
707
767
|
|
|
768
|
+
# Deletes a WhatsApp Flow permanently. Only Flows in DRAFT status can be
|
|
769
|
+
# deleted. Published or deprecated Flows cannot be deleted.
|
|
770
|
+
#
|
|
771
|
+
# @option params [required, String] :id
|
|
772
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
773
|
+
#
|
|
774
|
+
# @option params [required, String] :flow_id
|
|
775
|
+
# The unique identifier of the Flow to delete.
|
|
776
|
+
#
|
|
777
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
778
|
+
#
|
|
779
|
+
# @example Request syntax with placeholder values
|
|
780
|
+
#
|
|
781
|
+
# resp = client.delete_whats_app_flow({
|
|
782
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
783
|
+
# flow_id: "MetaFlowId", # required
|
|
784
|
+
# })
|
|
785
|
+
#
|
|
786
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DeleteWhatsAppFlow AWS API Documentation
|
|
787
|
+
#
|
|
788
|
+
# @overload delete_whats_app_flow(params = {})
|
|
789
|
+
# @param [Hash] params ({})
|
|
790
|
+
def delete_whats_app_flow(params = {}, options = {})
|
|
791
|
+
req = build_request(:delete_whats_app_flow, params)
|
|
792
|
+
req.send_request(options)
|
|
793
|
+
end
|
|
794
|
+
|
|
708
795
|
# Delete a media object from the WhatsApp service. If the object is
|
|
709
796
|
# still in an Amazon S3 bucket you should delete it from there too.
|
|
710
797
|
#
|
|
@@ -784,6 +871,34 @@ module Aws::SocialMessaging
|
|
|
784
871
|
req.send_request(options)
|
|
785
872
|
end
|
|
786
873
|
|
|
874
|
+
# Deprecates a published WhatsApp Flow, marking it as no longer
|
|
875
|
+
# recommended for use. The Flow must be in PUBLISHED status. This is an
|
|
876
|
+
# irreversible operation.
|
|
877
|
+
#
|
|
878
|
+
# @option params [required, String] :id
|
|
879
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
880
|
+
#
|
|
881
|
+
# @option params [required, String] :flow_id
|
|
882
|
+
# The unique identifier of the Flow to deprecate.
|
|
883
|
+
#
|
|
884
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
885
|
+
#
|
|
886
|
+
# @example Request syntax with placeholder values
|
|
887
|
+
#
|
|
888
|
+
# resp = client.deprecate_whats_app_flow({
|
|
889
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
890
|
+
# flow_id: "MetaFlowId", # required
|
|
891
|
+
# })
|
|
892
|
+
#
|
|
893
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DeprecateWhatsAppFlow AWS API Documentation
|
|
894
|
+
#
|
|
895
|
+
# @overload deprecate_whats_app_flow(params = {})
|
|
896
|
+
# @param [Hash] params ({})
|
|
897
|
+
def deprecate_whats_app_flow(params = {}, options = {})
|
|
898
|
+
req = build_request(:deprecate_whats_app_flow, params)
|
|
899
|
+
req.send_request(options)
|
|
900
|
+
end
|
|
901
|
+
|
|
787
902
|
# Disassociate a WhatsApp Business Account (WABA) from your Amazon Web
|
|
788
903
|
# Services account.
|
|
789
904
|
#
|
|
@@ -913,6 +1028,117 @@ module Aws::SocialMessaging
|
|
|
913
1028
|
req.send_request(options)
|
|
914
1029
|
end
|
|
915
1030
|
|
|
1031
|
+
# Retrieves the metadata and status of a WhatsApp Flow, including
|
|
1032
|
+
# validation errors, preview information, and health status.
|
|
1033
|
+
#
|
|
1034
|
+
# @option params [required, String] :id
|
|
1035
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
1036
|
+
#
|
|
1037
|
+
# @option params [required, String] :flow_id
|
|
1038
|
+
# The unique identifier of the Flow to retrieve.
|
|
1039
|
+
#
|
|
1040
|
+
# @return [Types::GetWhatsAppFlowOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1041
|
+
#
|
|
1042
|
+
# * {Types::GetWhatsAppFlowOutput#flow_id #flow_id} => String
|
|
1043
|
+
# * {Types::GetWhatsAppFlowOutput#flow_name #flow_name} => String
|
|
1044
|
+
# * {Types::GetWhatsAppFlowOutput#flow_status #flow_status} => String
|
|
1045
|
+
# * {Types::GetWhatsAppFlowOutput#categories #categories} => Array<String>
|
|
1046
|
+
# * {Types::GetWhatsAppFlowOutput#validation_errors #validation_errors} => Array<String>
|
|
1047
|
+
# * {Types::GetWhatsAppFlowOutput#json_version #json_version} => String
|
|
1048
|
+
# * {Types::GetWhatsAppFlowOutput#data_api_version #data_api_version} => String
|
|
1049
|
+
# * {Types::GetWhatsAppFlowOutput#endpoint_uri #endpoint_uri} => String
|
|
1050
|
+
# * {Types::GetWhatsAppFlowOutput#preview #preview} => Types::MetaFlowPreviewInfo
|
|
1051
|
+
# * {Types::GetWhatsAppFlowOutput#whats_app_business_account #whats_app_business_account} => Types::MetaFlowWhatsAppBusinessAccountInfo
|
|
1052
|
+
# * {Types::GetWhatsAppFlowOutput#application #application} => Types::MetaFlowApplicationInfo
|
|
1053
|
+
# * {Types::GetWhatsAppFlowOutput#health_status #health_status} => Types::MetaFlowHealthStatus
|
|
1054
|
+
#
|
|
1055
|
+
# @example Request syntax with placeholder values
|
|
1056
|
+
#
|
|
1057
|
+
# resp = client.get_whats_app_flow({
|
|
1058
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1059
|
+
# flow_id: "MetaFlowId", # required
|
|
1060
|
+
# })
|
|
1061
|
+
#
|
|
1062
|
+
# @example Response structure
|
|
1063
|
+
#
|
|
1064
|
+
# resp.flow_id #=> String
|
|
1065
|
+
# resp.flow_name #=> String
|
|
1066
|
+
# resp.flow_status #=> String
|
|
1067
|
+
# resp.categories #=> Array
|
|
1068
|
+
# resp.categories[0] #=> String, one of "SIGN_UP", "SIGN_IN", "APPOINTMENT_BOOKING", "LEAD_GENERATION", "SHOPPING", "CONTACT_US", "CUSTOMER_SUPPORT", "SURVEY", "OTHER"
|
|
1069
|
+
# resp.validation_errors #=> Array
|
|
1070
|
+
# resp.validation_errors[0] #=> String
|
|
1071
|
+
# resp.json_version #=> String
|
|
1072
|
+
# resp.data_api_version #=> String
|
|
1073
|
+
# resp.endpoint_uri #=> String
|
|
1074
|
+
# resp.preview.preview_url #=> String
|
|
1075
|
+
# resp.preview.expires_at #=> String
|
|
1076
|
+
# resp.whats_app_business_account.id #=> String
|
|
1077
|
+
# resp.whats_app_business_account.name #=> String
|
|
1078
|
+
# resp.whats_app_business_account.currency #=> String
|
|
1079
|
+
# resp.whats_app_business_account.timezone_id #=> String
|
|
1080
|
+
# resp.whats_app_business_account.message_template_namespace #=> String
|
|
1081
|
+
# resp.application.link #=> String
|
|
1082
|
+
# resp.application.name #=> String
|
|
1083
|
+
# resp.application.id #=> String
|
|
1084
|
+
# resp.health_status.can_send_message #=> String
|
|
1085
|
+
# resp.health_status.entities #=> Array
|
|
1086
|
+
# resp.health_status.entities[0].entity_type #=> String
|
|
1087
|
+
# resp.health_status.entities[0].id #=> String
|
|
1088
|
+
# resp.health_status.entities[0].can_send_message #=> String
|
|
1089
|
+
#
|
|
1090
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppFlow AWS API Documentation
|
|
1091
|
+
#
|
|
1092
|
+
# @overload get_whats_app_flow(params = {})
|
|
1093
|
+
# @param [Hash] params ({})
|
|
1094
|
+
def get_whats_app_flow(params = {}, options = {})
|
|
1095
|
+
req = build_request(:get_whats_app_flow, params)
|
|
1096
|
+
req.send_request(options)
|
|
1097
|
+
end
|
|
1098
|
+
|
|
1099
|
+
# Generates a web preview URL for testing a WhatsApp Flow before
|
|
1100
|
+
# publishing. Preview URLs expire in 30 days and can be shared with
|
|
1101
|
+
# stakeholders for review.
|
|
1102
|
+
#
|
|
1103
|
+
# @option params [required, String] :id
|
|
1104
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
1105
|
+
#
|
|
1106
|
+
# @option params [required, String] :flow_id
|
|
1107
|
+
# The unique identifier of the Flow to preview.
|
|
1108
|
+
#
|
|
1109
|
+
# @option params [Boolean] :invalidate
|
|
1110
|
+
# Set to `true` to force generation of a new preview URL. Use this if
|
|
1111
|
+
# the previous URL has been compromised or you want a fresh expiration
|
|
1112
|
+
# period.
|
|
1113
|
+
#
|
|
1114
|
+
# @return [Types::GetWhatsAppFlowPreviewOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1115
|
+
#
|
|
1116
|
+
# * {Types::GetWhatsAppFlowPreviewOutput#flow_id #flow_id} => String
|
|
1117
|
+
# * {Types::GetWhatsAppFlowPreviewOutput#preview #preview} => Types::MetaFlowPreviewInfo
|
|
1118
|
+
#
|
|
1119
|
+
# @example Request syntax with placeholder values
|
|
1120
|
+
#
|
|
1121
|
+
# resp = client.get_whats_app_flow_preview({
|
|
1122
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1123
|
+
# flow_id: "MetaFlowId", # required
|
|
1124
|
+
# invalidate: false,
|
|
1125
|
+
# })
|
|
1126
|
+
#
|
|
1127
|
+
# @example Response structure
|
|
1128
|
+
#
|
|
1129
|
+
# resp.flow_id #=> String
|
|
1130
|
+
# resp.preview.preview_url #=> String
|
|
1131
|
+
# resp.preview.expires_at #=> String
|
|
1132
|
+
#
|
|
1133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppFlowPreview AWS API Documentation
|
|
1134
|
+
#
|
|
1135
|
+
# @overload get_whats_app_flow_preview(params = {})
|
|
1136
|
+
# @param [Hash] params ({})
|
|
1137
|
+
def get_whats_app_flow_preview(params = {}, options = {})
|
|
1138
|
+
req = build_request(:get_whats_app_flow_preview, params)
|
|
1139
|
+
req.send_request(options)
|
|
1140
|
+
end
|
|
1141
|
+
|
|
916
1142
|
# Get a media file from the WhatsApp service. On successful completion
|
|
917
1143
|
# the media file is retrieved from Meta and stored in the specified
|
|
918
1144
|
# Amazon S3 bucket. Use either `destinationS3File` or
|
|
@@ -1103,6 +1329,103 @@ module Aws::SocialMessaging
|
|
|
1103
1329
|
req.send_request(options)
|
|
1104
1330
|
end
|
|
1105
1331
|
|
|
1332
|
+
# Lists the assets (Flow JSON definition) of a WhatsApp Flow with
|
|
1333
|
+
# presigned download URLs. Download URLs are generated by Meta and
|
|
1334
|
+
# expire after a short period.
|
|
1335
|
+
#
|
|
1336
|
+
# @option params [required, String] :id
|
|
1337
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
1338
|
+
#
|
|
1339
|
+
# @option params [required, String] :flow_id
|
|
1340
|
+
# The unique identifier of the Flow whose assets to list.
|
|
1341
|
+
#
|
|
1342
|
+
# @option params [String] :next_token
|
|
1343
|
+
# The token for the next page of results.
|
|
1344
|
+
#
|
|
1345
|
+
# @option params [Integer] :max_results
|
|
1346
|
+
# The maximum number of results to return per page.
|
|
1347
|
+
#
|
|
1348
|
+
# @return [Types::ListWhatsAppFlowAssetsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1349
|
+
#
|
|
1350
|
+
# * {Types::ListWhatsAppFlowAssetsOutput#flow_assets #flow_assets} => Array<Types::MetaFlowAsset>
|
|
1351
|
+
# * {Types::ListWhatsAppFlowAssetsOutput#next_token #next_token} => String
|
|
1352
|
+
#
|
|
1353
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1354
|
+
#
|
|
1355
|
+
# @example Request syntax with placeholder values
|
|
1356
|
+
#
|
|
1357
|
+
# resp = client.list_whats_app_flow_assets({
|
|
1358
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1359
|
+
# flow_id: "MetaFlowId", # required
|
|
1360
|
+
# next_token: "NextToken",
|
|
1361
|
+
# max_results: 1,
|
|
1362
|
+
# })
|
|
1363
|
+
#
|
|
1364
|
+
# @example Response structure
|
|
1365
|
+
#
|
|
1366
|
+
# resp.flow_assets #=> Array
|
|
1367
|
+
# resp.flow_assets[0].name #=> String
|
|
1368
|
+
# resp.flow_assets[0].asset_type #=> String
|
|
1369
|
+
# resp.flow_assets[0].download_url #=> String
|
|
1370
|
+
# resp.next_token #=> String
|
|
1371
|
+
#
|
|
1372
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ListWhatsAppFlowAssets AWS API Documentation
|
|
1373
|
+
#
|
|
1374
|
+
# @overload list_whats_app_flow_assets(params = {})
|
|
1375
|
+
# @param [Hash] params ({})
|
|
1376
|
+
def list_whats_app_flow_assets(params = {}, options = {})
|
|
1377
|
+
req = build_request(:list_whats_app_flow_assets, params)
|
|
1378
|
+
req.send_request(options)
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1381
|
+
# Lists all WhatsApp Flows for a WhatsApp Business Account. Returns
|
|
1382
|
+
# summary information including Flow ID, name, status, and categories.
|
|
1383
|
+
#
|
|
1384
|
+
# @option params [required, String] :id
|
|
1385
|
+
# The ID of the WhatsApp Business Account to list Flows for.
|
|
1386
|
+
#
|
|
1387
|
+
# @option params [String] :next_token
|
|
1388
|
+
# The token for the next page of results.
|
|
1389
|
+
#
|
|
1390
|
+
# @option params [Integer] :max_results
|
|
1391
|
+
# The maximum number of results to return per page.
|
|
1392
|
+
#
|
|
1393
|
+
# @return [Types::ListWhatsAppFlowsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1394
|
+
#
|
|
1395
|
+
# * {Types::ListWhatsAppFlowsOutput#flows #flows} => Array<Types::MetaFlowSummary>
|
|
1396
|
+
# * {Types::ListWhatsAppFlowsOutput#next_token #next_token} => String
|
|
1397
|
+
#
|
|
1398
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1399
|
+
#
|
|
1400
|
+
# @example Request syntax with placeholder values
|
|
1401
|
+
#
|
|
1402
|
+
# resp = client.list_whats_app_flows({
|
|
1403
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1404
|
+
# next_token: "NextToken",
|
|
1405
|
+
# max_results: 1,
|
|
1406
|
+
# })
|
|
1407
|
+
#
|
|
1408
|
+
# @example Response structure
|
|
1409
|
+
#
|
|
1410
|
+
# resp.flows #=> Array
|
|
1411
|
+
# resp.flows[0].flow_id #=> String
|
|
1412
|
+
# resp.flows[0].flow_name #=> String
|
|
1413
|
+
# resp.flows[0].flow_status #=> String
|
|
1414
|
+
# resp.flows[0].flow_categories #=> Array
|
|
1415
|
+
# resp.flows[0].flow_categories[0] #=> String, one of "SIGN_UP", "SIGN_IN", "APPOINTMENT_BOOKING", "LEAD_GENERATION", "SHOPPING", "CONTACT_US", "CUSTOMER_SUPPORT", "SURVEY", "OTHER"
|
|
1416
|
+
# resp.flows[0].validation_errors #=> Array
|
|
1417
|
+
# resp.flows[0].validation_errors[0] #=> String
|
|
1418
|
+
# resp.next_token #=> String
|
|
1419
|
+
#
|
|
1420
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ListWhatsAppFlows AWS API Documentation
|
|
1421
|
+
#
|
|
1422
|
+
# @overload list_whats_app_flows(params = {})
|
|
1423
|
+
# @param [Hash] params ({})
|
|
1424
|
+
def list_whats_app_flows(params = {}, options = {})
|
|
1425
|
+
req = build_request(:list_whats_app_flows, params)
|
|
1426
|
+
req.send_request(options)
|
|
1427
|
+
end
|
|
1428
|
+
|
|
1106
1429
|
# Lists WhatsApp message templates for a specific WhatsApp Business
|
|
1107
1430
|
# Account.
|
|
1108
1431
|
#
|
|
@@ -1279,6 +1602,34 @@ module Aws::SocialMessaging
|
|
|
1279
1602
|
req.send_request(options)
|
|
1280
1603
|
end
|
|
1281
1604
|
|
|
1605
|
+
# Publishes a WhatsApp Flow, making it available for use in template
|
|
1606
|
+
# messages. The Flow must be in DRAFT status with valid Flow JSON that
|
|
1607
|
+
# passes Meta's validation. This is an irreversible operation.
|
|
1608
|
+
#
|
|
1609
|
+
# @option params [required, String] :id
|
|
1610
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
1611
|
+
#
|
|
1612
|
+
# @option params [required, String] :flow_id
|
|
1613
|
+
# The unique identifier of the Flow to publish.
|
|
1614
|
+
#
|
|
1615
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1616
|
+
#
|
|
1617
|
+
# @example Request syntax with placeholder values
|
|
1618
|
+
#
|
|
1619
|
+
# resp = client.publish_whats_app_flow({
|
|
1620
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1621
|
+
# flow_id: "MetaFlowId", # required
|
|
1622
|
+
# })
|
|
1623
|
+
#
|
|
1624
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PublishWhatsAppFlow AWS API Documentation
|
|
1625
|
+
#
|
|
1626
|
+
# @overload publish_whats_app_flow(params = {})
|
|
1627
|
+
# @param [Hash] params ({})
|
|
1628
|
+
def publish_whats_app_flow(params = {}, options = {})
|
|
1629
|
+
req = build_request(:publish_whats_app_flow, params)
|
|
1630
|
+
req.send_request(options)
|
|
1631
|
+
end
|
|
1632
|
+
|
|
1282
1633
|
# Add an event destination to log event data from WhatsApp for a
|
|
1283
1634
|
# WhatsApp Business Account (WABA). A WABA can only have one event
|
|
1284
1635
|
# destination at a time. All resources associated with the WABA use the
|
|
@@ -1455,6 +1806,85 @@ module Aws::SocialMessaging
|
|
|
1455
1806
|
req.send_request(options)
|
|
1456
1807
|
end
|
|
1457
1808
|
|
|
1809
|
+
# Updates the metadata of a WhatsApp Flow, such as its name or
|
|
1810
|
+
# categories. This does not update the Flow JSON definition. Use
|
|
1811
|
+
# [UpdateWhatsAppFlowAssets][1] to update the Flow JSON.
|
|
1812
|
+
#
|
|
1813
|
+
#
|
|
1814
|
+
#
|
|
1815
|
+
# [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_UpdateWhatsAppFlowAssets.html
|
|
1816
|
+
#
|
|
1817
|
+
# @option params [required, String] :id
|
|
1818
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
1819
|
+
#
|
|
1820
|
+
# @option params [required, String] :flow_id
|
|
1821
|
+
# The unique identifier of the Flow to update.
|
|
1822
|
+
#
|
|
1823
|
+
# @option params [String] :flow_name
|
|
1824
|
+
# The updated name for the Flow.
|
|
1825
|
+
#
|
|
1826
|
+
# @option params [Array<String>] :categories
|
|
1827
|
+
# The updated categories for the Flow.
|
|
1828
|
+
#
|
|
1829
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1830
|
+
#
|
|
1831
|
+
# @example Request syntax with placeholder values
|
|
1832
|
+
#
|
|
1833
|
+
# resp = client.update_whats_app_flow({
|
|
1834
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1835
|
+
# flow_id: "MetaFlowId", # required
|
|
1836
|
+
# flow_name: "MetaFlowName",
|
|
1837
|
+
# categories: ["SIGN_UP"], # accepts SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, LEAD_GENERATION, SHOPPING, CONTACT_US, CUSTOMER_SUPPORT, SURVEY, OTHER
|
|
1838
|
+
# })
|
|
1839
|
+
#
|
|
1840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/UpdateWhatsAppFlow AWS API Documentation
|
|
1841
|
+
#
|
|
1842
|
+
# @overload update_whats_app_flow(params = {})
|
|
1843
|
+
# @param [Hash] params ({})
|
|
1844
|
+
def update_whats_app_flow(params = {}, options = {})
|
|
1845
|
+
req = build_request(:update_whats_app_flow, params)
|
|
1846
|
+
req.send_request(options)
|
|
1847
|
+
end
|
|
1848
|
+
|
|
1849
|
+
# Updates the Flow JSON definition (assets) of a WhatsApp Flow. Updating
|
|
1850
|
+
# a published Flow's assets reverts it to DRAFT status, requiring
|
|
1851
|
+
# re-publishing.
|
|
1852
|
+
#
|
|
1853
|
+
# @option params [required, String] :id
|
|
1854
|
+
# The ID of the WhatsApp Business Account associated with this Flow.
|
|
1855
|
+
#
|
|
1856
|
+
# @option params [required, String] :flow_id
|
|
1857
|
+
# The unique identifier of the Flow whose assets to update.
|
|
1858
|
+
#
|
|
1859
|
+
# @option params [required, String, StringIO, File] :flow_json
|
|
1860
|
+
# The updated Flow JSON definition. Maximum size is 10 MB.
|
|
1861
|
+
#
|
|
1862
|
+
# @return [Types::UpdateWhatsAppFlowAssetsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1863
|
+
#
|
|
1864
|
+
# * {Types::UpdateWhatsAppFlowAssetsOutput#validation_errors #validation_errors} => Array<String>
|
|
1865
|
+
#
|
|
1866
|
+
# @example Request syntax with placeholder values
|
|
1867
|
+
#
|
|
1868
|
+
# resp = client.update_whats_app_flow_assets({
|
|
1869
|
+
# id: "LinkedWhatsAppBusinessAccountId", # required
|
|
1870
|
+
# flow_id: "MetaFlowId", # required
|
|
1871
|
+
# flow_json: "data", # required
|
|
1872
|
+
# })
|
|
1873
|
+
#
|
|
1874
|
+
# @example Response structure
|
|
1875
|
+
#
|
|
1876
|
+
# resp.validation_errors #=> Array
|
|
1877
|
+
# resp.validation_errors[0] #=> String
|
|
1878
|
+
#
|
|
1879
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/UpdateWhatsAppFlowAssets AWS API Documentation
|
|
1880
|
+
#
|
|
1881
|
+
# @overload update_whats_app_flow_assets(params = {})
|
|
1882
|
+
# @param [Hash] params ({})
|
|
1883
|
+
def update_whats_app_flow_assets(params = {}, options = {})
|
|
1884
|
+
req = build_request(:update_whats_app_flow_assets, params)
|
|
1885
|
+
req.send_request(options)
|
|
1886
|
+
end
|
|
1887
|
+
|
|
1458
1888
|
# Updates an existing WhatsApp message template.
|
|
1459
1889
|
#
|
|
1460
1890
|
# @option params [required, String] :id
|
|
@@ -1530,7 +1960,7 @@ module Aws::SocialMessaging
|
|
|
1530
1960
|
tracer: tracer
|
|
1531
1961
|
)
|
|
1532
1962
|
context[:gem_name] = 'aws-sdk-socialmessaging'
|
|
1533
|
-
context[:gem_version] = '1.
|
|
1963
|
+
context[:gem_version] = '1.27.0'
|
|
1534
1964
|
Seahorse::Client::Request.new(handlers, context)
|
|
1535
1965
|
end
|
|
1536
1966
|
|