aws-sdk-pinpoint 1.70.0 → 1.72.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-pinpoint/client.rb +222 -1
- data/lib/aws-sdk-pinpoint/client_api.rb +122 -0
- data/lib/aws-sdk-pinpoint/endpoint_provider.rb +39 -21
- data/lib/aws-sdk-pinpoint/endpoints.rb +42 -0
- data/lib/aws-sdk-pinpoint/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-pinpoint/types.rb +486 -52
- data/lib/aws-sdk-pinpoint.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb242928f5860d272ec2514e7634c25bf836fb07058899846ed12276ae3ecb15
|
4
|
+
data.tar.gz: c2ba5091dfaeb83988075d97d06d6b430b3e13acf97cf68ede30831681ab8137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d94fc8cb9a158bfd58579a455975546a8f429fb357e7fa5aa1b1050f16e4b27e235262436ba01307f0366d73e77ebafa75f0cfc92b357fa6eae60c90e1cae85
|
7
|
+
data.tar.gz: 28587be416ddb07b99184536207821c4361014a4e96559a22d59ff1771a5a33082887404fccd6e797b8d83375caaadd2ddef6db8dcd13421d5fb50a3c6e278e7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.72.0 (2023-05-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Pinpoint is deprecating the tags parameter in the UpdateSegment, UpdateCampaign, UpdateEmailTemplate, UpdateSmsTemplate, UpdatePushTemplate, UpdateInAppTemplate and UpdateVoiceTemplate. Amazon Pinpoint will end support tags parameter by May 22, 2023.
|
8
|
+
|
9
|
+
1.71.0 (2023-04-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adds support for journey runs and querying journey execution metrics based on journey runs. Adds execution metrics to campaign activities. Updates docs for Advanced Quiet Time.
|
13
|
+
|
4
14
|
1.70.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.72.0
|
@@ -4901,6 +4901,8 @@ module Aws::Pinpoint
|
|
4901
4901
|
# resp.activities_response.item[0].timezones_total_count #=> Integer
|
4902
4902
|
# resp.activities_response.item[0].total_endpoint_count #=> Integer
|
4903
4903
|
# resp.activities_response.item[0].treatment_id #=> String
|
4904
|
+
# resp.activities_response.item[0].execution_metrics #=> Hash
|
4905
|
+
# resp.activities_response.item[0].execution_metrics["__string"] #=> String
|
4904
4906
|
# resp.activities_response.next_token #=> String
|
4905
4907
|
#
|
4906
4908
|
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivities AWS API Documentation
|
@@ -7023,6 +7025,225 @@ module Aws::Pinpoint
|
|
7023
7025
|
req.send_request(options)
|
7024
7026
|
end
|
7025
7027
|
|
7028
|
+
# Retrieves (queries) pre-aggregated data for a standard run execution
|
7029
|
+
# metric that applies to a journey activity.
|
7030
|
+
#
|
7031
|
+
# @option params [required, String] :application_id
|
7032
|
+
#
|
7033
|
+
# @option params [required, String] :journey_activity_id
|
7034
|
+
#
|
7035
|
+
# @option params [required, String] :journey_id
|
7036
|
+
#
|
7037
|
+
# @option params [String] :next_token
|
7038
|
+
#
|
7039
|
+
# @option params [String] :page_size
|
7040
|
+
#
|
7041
|
+
# @option params [required, String] :run_id
|
7042
|
+
#
|
7043
|
+
# @return [Types::GetJourneyRunExecutionActivityMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7044
|
+
#
|
7045
|
+
# * {Types::GetJourneyRunExecutionActivityMetricsResponse#journey_run_execution_activity_metrics_response #journey_run_execution_activity_metrics_response} => Types::JourneyRunExecutionActivityMetricsResponse
|
7046
|
+
#
|
7047
|
+
#
|
7048
|
+
# @example Example: To get the activity execution metrics for a journey run
|
7049
|
+
#
|
7050
|
+
# # The following example gets activity execution metrics for a single run of a journey.
|
7051
|
+
#
|
7052
|
+
# resp = client.get_journey_run_execution_activity_metrics({
|
7053
|
+
# application_id: "11111111112222222222333333333344",
|
7054
|
+
# journey_id: "aaaaaaaaaabbbbbbbbbbccccccccccdd",
|
7055
|
+
# run_id: "99999999998888888888777777777766",
|
7056
|
+
# journey_activity_id: "AAAAAAAAAA",
|
7057
|
+
# })
|
7058
|
+
#
|
7059
|
+
# resp.to_h outputs the following:
|
7060
|
+
# {
|
7061
|
+
# journey_run_execution_activity_metrics_response: {
|
7062
|
+
# application_id: "11111111112222222222333333333344",
|
7063
|
+
# journey_id: "aaaaaaaaaabbbbbbbbbbccccccccccdd",
|
7064
|
+
# run_id: "99999999998888888888777777777766",
|
7065
|
+
# journey_activity_id: "AAAAAAAAAA",
|
7066
|
+
# activity_type: "EMAIL",
|
7067
|
+
# last_evaluated_time: "2000-01-01T00:00:05.000Z",
|
7068
|
+
# metrics: {
|
7069
|
+
# "SUCCESS" => "1",
|
7070
|
+
# },
|
7071
|
+
# },
|
7072
|
+
# }
|
7073
|
+
#
|
7074
|
+
# @example Request syntax with placeholder values
|
7075
|
+
#
|
7076
|
+
# resp = client.get_journey_run_execution_activity_metrics({
|
7077
|
+
# application_id: "__string", # required
|
7078
|
+
# journey_activity_id: "__string", # required
|
7079
|
+
# journey_id: "__string", # required
|
7080
|
+
# next_token: "__string",
|
7081
|
+
# page_size: "__string",
|
7082
|
+
# run_id: "__string", # required
|
7083
|
+
# })
|
7084
|
+
#
|
7085
|
+
# @example Response structure
|
7086
|
+
#
|
7087
|
+
# resp.journey_run_execution_activity_metrics_response.activity_type #=> String
|
7088
|
+
# resp.journey_run_execution_activity_metrics_response.application_id #=> String
|
7089
|
+
# resp.journey_run_execution_activity_metrics_response.journey_activity_id #=> String
|
7090
|
+
# resp.journey_run_execution_activity_metrics_response.journey_id #=> String
|
7091
|
+
# resp.journey_run_execution_activity_metrics_response.last_evaluated_time #=> String
|
7092
|
+
# resp.journey_run_execution_activity_metrics_response.metrics #=> Hash
|
7093
|
+
# resp.journey_run_execution_activity_metrics_response.metrics["__string"] #=> String
|
7094
|
+
# resp.journey_run_execution_activity_metrics_response.run_id #=> String
|
7095
|
+
#
|
7096
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourneyRunExecutionActivityMetrics AWS API Documentation
|
7097
|
+
#
|
7098
|
+
# @overload get_journey_run_execution_activity_metrics(params = {})
|
7099
|
+
# @param [Hash] params ({})
|
7100
|
+
def get_journey_run_execution_activity_metrics(params = {}, options = {})
|
7101
|
+
req = build_request(:get_journey_run_execution_activity_metrics, params)
|
7102
|
+
req.send_request(options)
|
7103
|
+
end
|
7104
|
+
|
7105
|
+
# Retrieves (queries) pre-aggregated data for a standard run execution
|
7106
|
+
# metric that applies to a journey.
|
7107
|
+
#
|
7108
|
+
# @option params [required, String] :application_id
|
7109
|
+
#
|
7110
|
+
# @option params [required, String] :journey_id
|
7111
|
+
#
|
7112
|
+
# @option params [String] :next_token
|
7113
|
+
#
|
7114
|
+
# @option params [String] :page_size
|
7115
|
+
#
|
7116
|
+
# @option params [required, String] :run_id
|
7117
|
+
#
|
7118
|
+
# @return [Types::GetJourneyRunExecutionMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7119
|
+
#
|
7120
|
+
# * {Types::GetJourneyRunExecutionMetricsResponse#journey_run_execution_metrics_response #journey_run_execution_metrics_response} => Types::JourneyRunExecutionMetricsResponse
|
7121
|
+
#
|
7122
|
+
#
|
7123
|
+
# @example Example: To get the execution metrics for a journey run
|
7124
|
+
#
|
7125
|
+
# # The following example gets execution metrics for a single run of a journey.
|
7126
|
+
#
|
7127
|
+
# resp = client.get_journey_run_execution_metrics({
|
7128
|
+
# application_id: "11111111112222222222333333333344",
|
7129
|
+
# journey_id: "aaaaaaaaaabbbbbbbbbbccccccccccdd",
|
7130
|
+
# run_id: "99999999998888888888777777777766",
|
7131
|
+
# })
|
7132
|
+
#
|
7133
|
+
# resp.to_h outputs the following:
|
7134
|
+
# {
|
7135
|
+
# journey_run_execution_metrics_response: {
|
7136
|
+
# application_id: "11111111112222222222333333333344",
|
7137
|
+
# journey_id: "aaaaaaaaaabbbbbbbbbbccccccccccdd",
|
7138
|
+
# run_id: "99999999998888888888777777777766",
|
7139
|
+
# last_evaluated_time: "2000-01-01T00:00:05.000Z",
|
7140
|
+
# metrics: {
|
7141
|
+
# "ENDPOINT_PRODUCED" => "1",
|
7142
|
+
# "ENDPOINT_ENTERED" => "1",
|
7143
|
+
# "ENDPOINT_LEFT" => "1",
|
7144
|
+
# },
|
7145
|
+
# },
|
7146
|
+
# }
|
7147
|
+
#
|
7148
|
+
# @example Request syntax with placeholder values
|
7149
|
+
#
|
7150
|
+
# resp = client.get_journey_run_execution_metrics({
|
7151
|
+
# application_id: "__string", # required
|
7152
|
+
# journey_id: "__string", # required
|
7153
|
+
# next_token: "__string",
|
7154
|
+
# page_size: "__string",
|
7155
|
+
# run_id: "__string", # required
|
7156
|
+
# })
|
7157
|
+
#
|
7158
|
+
# @example Response structure
|
7159
|
+
#
|
7160
|
+
# resp.journey_run_execution_metrics_response.application_id #=> String
|
7161
|
+
# resp.journey_run_execution_metrics_response.journey_id #=> String
|
7162
|
+
# resp.journey_run_execution_metrics_response.last_evaluated_time #=> String
|
7163
|
+
# resp.journey_run_execution_metrics_response.metrics #=> Hash
|
7164
|
+
# resp.journey_run_execution_metrics_response.metrics["__string"] #=> String
|
7165
|
+
# resp.journey_run_execution_metrics_response.run_id #=> String
|
7166
|
+
#
|
7167
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourneyRunExecutionMetrics AWS API Documentation
|
7168
|
+
#
|
7169
|
+
# @overload get_journey_run_execution_metrics(params = {})
|
7170
|
+
# @param [Hash] params ({})
|
7171
|
+
def get_journey_run_execution_metrics(params = {}, options = {})
|
7172
|
+
req = build_request(:get_journey_run_execution_metrics, params)
|
7173
|
+
req.send_request(options)
|
7174
|
+
end
|
7175
|
+
|
7176
|
+
# Provides information about the runs of a journey.
|
7177
|
+
#
|
7178
|
+
# @option params [required, String] :application_id
|
7179
|
+
#
|
7180
|
+
# @option params [required, String] :journey_id
|
7181
|
+
#
|
7182
|
+
# @option params [String] :page_size
|
7183
|
+
#
|
7184
|
+
# @option params [String] :token
|
7185
|
+
#
|
7186
|
+
# @return [Types::GetJourneyRunsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7187
|
+
#
|
7188
|
+
# * {Types::GetJourneyRunsResponse#journey_runs_response #journey_runs_response} => Types::JourneyRunsResponse
|
7189
|
+
#
|
7190
|
+
#
|
7191
|
+
# @example Example: To get the runs of a journey
|
7192
|
+
#
|
7193
|
+
# # The following example gets the runs of a journey.
|
7194
|
+
#
|
7195
|
+
# resp = client.get_journey_runs({
|
7196
|
+
# application_id: "11111111112222222222333333333344",
|
7197
|
+
# journey_id: "aaaaaaaaaabbbbbbbbbbccccccccccdd",
|
7198
|
+
# })
|
7199
|
+
#
|
7200
|
+
# resp.to_h outputs the following:
|
7201
|
+
# {
|
7202
|
+
# journey_runs_response: {
|
7203
|
+
# item: [
|
7204
|
+
# {
|
7205
|
+
# run_id: "99999999998888888888777777777766",
|
7206
|
+
# creation_time: "2000-01-01T00:00:00.000Z",
|
7207
|
+
# last_update_time: "2000-01-01T00:00:05.000Z",
|
7208
|
+
# status: "COMPLETED",
|
7209
|
+
# },
|
7210
|
+
# {
|
7211
|
+
# run_id: "ffffffffffeeeeeeeeeeddddddddddcc",
|
7212
|
+
# creation_time: "2000-01-01T00:00:10.000Z",
|
7213
|
+
# last_update_time: "2000-01-01T00:00:10.000Z",
|
7214
|
+
# status: "SCHEDULED",
|
7215
|
+
# },
|
7216
|
+
# ],
|
7217
|
+
# },
|
7218
|
+
# }
|
7219
|
+
#
|
7220
|
+
# @example Request syntax with placeholder values
|
7221
|
+
#
|
7222
|
+
# resp = client.get_journey_runs({
|
7223
|
+
# application_id: "__string", # required
|
7224
|
+
# journey_id: "__string", # required
|
7225
|
+
# page_size: "__string",
|
7226
|
+
# token: "__string",
|
7227
|
+
# })
|
7228
|
+
#
|
7229
|
+
# @example Response structure
|
7230
|
+
#
|
7231
|
+
# resp.journey_runs_response.item #=> Array
|
7232
|
+
# resp.journey_runs_response.item[0].creation_time #=> String
|
7233
|
+
# resp.journey_runs_response.item[0].last_update_time #=> String
|
7234
|
+
# resp.journey_runs_response.item[0].run_id #=> String
|
7235
|
+
# resp.journey_runs_response.item[0].status #=> String, one of "SCHEDULED", "RUNNING", "COMPLETED", "CANCELLED"
|
7236
|
+
# resp.journey_runs_response.next_token #=> String
|
7237
|
+
#
|
7238
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourneyRuns AWS API Documentation
|
7239
|
+
#
|
7240
|
+
# @overload get_journey_runs(params = {})
|
7241
|
+
# @param [Hash] params ({})
|
7242
|
+
def get_journey_runs(params = {}, options = {})
|
7243
|
+
req = build_request(:get_journey_runs, params)
|
7244
|
+
req.send_request(options)
|
7245
|
+
end
|
7246
|
+
|
7026
7247
|
# Retrieves the content and settings of a message template for messages
|
7027
7248
|
# that are sent through a push notification channel.
|
7028
7249
|
#
|
@@ -12491,7 +12712,7 @@ module Aws::Pinpoint
|
|
12491
12712
|
params: params,
|
12492
12713
|
config: config)
|
12493
12714
|
context[:gem_name] = 'aws-sdk-pinpoint'
|
12494
|
-
context[:gem_version] = '1.
|
12715
|
+
context[:gem_version] = '1.72.0'
|
12495
12716
|
Seahorse::Client::Request.new(handlers, context)
|
12496
12717
|
end
|
12497
12718
|
|
@@ -255,6 +255,12 @@ module Aws::Pinpoint
|
|
255
255
|
GetJourneyExecutionMetricsResponse = Shapes::StructureShape.new(name: 'GetJourneyExecutionMetricsResponse')
|
256
256
|
GetJourneyRequest = Shapes::StructureShape.new(name: 'GetJourneyRequest')
|
257
257
|
GetJourneyResponse = Shapes::StructureShape.new(name: 'GetJourneyResponse')
|
258
|
+
GetJourneyRunExecutionActivityMetricsRequest = Shapes::StructureShape.new(name: 'GetJourneyRunExecutionActivityMetricsRequest')
|
259
|
+
GetJourneyRunExecutionActivityMetricsResponse = Shapes::StructureShape.new(name: 'GetJourneyRunExecutionActivityMetricsResponse')
|
260
|
+
GetJourneyRunExecutionMetricsRequest = Shapes::StructureShape.new(name: 'GetJourneyRunExecutionMetricsRequest')
|
261
|
+
GetJourneyRunExecutionMetricsResponse = Shapes::StructureShape.new(name: 'GetJourneyRunExecutionMetricsResponse')
|
262
|
+
GetJourneyRunsRequest = Shapes::StructureShape.new(name: 'GetJourneyRunsRequest')
|
263
|
+
GetJourneyRunsResponse = Shapes::StructureShape.new(name: 'GetJourneyRunsResponse')
|
258
264
|
GetPushTemplateRequest = Shapes::StructureShape.new(name: 'GetPushTemplateRequest')
|
259
265
|
GetPushTemplateResponse = Shapes::StructureShape.new(name: 'GetPushTemplateResponse')
|
260
266
|
GetRecommenderConfigurationRequest = Shapes::StructureShape.new(name: 'GetRecommenderConfigurationRequest')
|
@@ -311,6 +317,11 @@ module Aws::Pinpoint
|
|
311
317
|
JourneyLimits = Shapes::StructureShape.new(name: 'JourneyLimits')
|
312
318
|
JourneyPushMessage = Shapes::StructureShape.new(name: 'JourneyPushMessage')
|
313
319
|
JourneyResponse = Shapes::StructureShape.new(name: 'JourneyResponse')
|
320
|
+
JourneyRunExecutionActivityMetricsResponse = Shapes::StructureShape.new(name: 'JourneyRunExecutionActivityMetricsResponse')
|
321
|
+
JourneyRunExecutionMetricsResponse = Shapes::StructureShape.new(name: 'JourneyRunExecutionMetricsResponse')
|
322
|
+
JourneyRunResponse = Shapes::StructureShape.new(name: 'JourneyRunResponse')
|
323
|
+
JourneyRunStatus = Shapes::StringShape.new(name: 'JourneyRunStatus')
|
324
|
+
JourneyRunsResponse = Shapes::StructureShape.new(name: 'JourneyRunsResponse')
|
314
325
|
JourneySMSMessage = Shapes::StructureShape.new(name: 'JourneySMSMessage')
|
315
326
|
JourneySchedule = Shapes::StructureShape.new(name: 'JourneySchedule')
|
316
327
|
JourneyStateRequest = Shapes::StructureShape.new(name: 'JourneyStateRequest')
|
@@ -329,6 +340,7 @@ module Aws::Pinpoint
|
|
329
340
|
ListOfInAppMessageCampaign = Shapes::ListShape.new(name: 'ListOfInAppMessageCampaign')
|
330
341
|
ListOfInAppMessageContent = Shapes::ListShape.new(name: 'ListOfInAppMessageContent')
|
331
342
|
ListOfJourneyResponse = Shapes::ListShape.new(name: 'ListOfJourneyResponse')
|
343
|
+
ListOfJourneyRunResponse = Shapes::ListShape.new(name: 'ListOfJourneyRunResponse')
|
332
344
|
ListOfMultiConditionalBranch = Shapes::ListShape.new(name: 'ListOfMultiConditionalBranch')
|
333
345
|
ListOfOpenHoursRules = Shapes::ListShape.new(name: 'ListOfOpenHoursRules')
|
334
346
|
ListOfRandomSplitEntry = Shapes::ListShape.new(name: 'ListOfRandomSplitEntry')
|
@@ -730,6 +742,7 @@ module Aws::Pinpoint
|
|
730
742
|
ActivityResponse.add_member(:timezones_total_count, Shapes::ShapeRef.new(shape: __integer, location_name: "TimezonesTotalCount"))
|
731
743
|
ActivityResponse.add_member(:total_endpoint_count, Shapes::ShapeRef.new(shape: __integer, location_name: "TotalEndpointCount"))
|
732
744
|
ActivityResponse.add_member(:treatment_id, Shapes::ShapeRef.new(shape: __string, location_name: "TreatmentId"))
|
745
|
+
ActivityResponse.add_member(:execution_metrics, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "ExecutionMetrics"))
|
733
746
|
ActivityResponse.struct_class = Types::ActivityResponse
|
734
747
|
|
735
748
|
AddressConfiguration.add_member(:body_override, Shapes::ShapeRef.new(shape: __string, location_name: "BodyOverride"))
|
@@ -1934,6 +1947,42 @@ module Aws::Pinpoint
|
|
1934
1947
|
GetJourneyResponse[:payload] = :journey_response
|
1935
1948
|
GetJourneyResponse[:payload_member] = GetJourneyResponse.member(:journey_response)
|
1936
1949
|
|
1950
|
+
GetJourneyRunExecutionActivityMetricsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
|
1951
|
+
GetJourneyRunExecutionActivityMetricsRequest.add_member(:journey_activity_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "journey-activity-id"))
|
1952
|
+
GetJourneyRunExecutionActivityMetricsRequest.add_member(:journey_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "journey-id"))
|
1953
|
+
GetJourneyRunExecutionActivityMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "next-token"))
|
1954
|
+
GetJourneyRunExecutionActivityMetricsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
|
1955
|
+
GetJourneyRunExecutionActivityMetricsRequest.add_member(:run_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "run-id"))
|
1956
|
+
GetJourneyRunExecutionActivityMetricsRequest.struct_class = Types::GetJourneyRunExecutionActivityMetricsRequest
|
1957
|
+
|
1958
|
+
GetJourneyRunExecutionActivityMetricsResponse.add_member(:journey_run_execution_activity_metrics_response, Shapes::ShapeRef.new(shape: JourneyRunExecutionActivityMetricsResponse, required: true, location_name: "JourneyRunExecutionActivityMetricsResponse"))
|
1959
|
+
GetJourneyRunExecutionActivityMetricsResponse.struct_class = Types::GetJourneyRunExecutionActivityMetricsResponse
|
1960
|
+
GetJourneyRunExecutionActivityMetricsResponse[:payload] = :journey_run_execution_activity_metrics_response
|
1961
|
+
GetJourneyRunExecutionActivityMetricsResponse[:payload_member] = GetJourneyRunExecutionActivityMetricsResponse.member(:journey_run_execution_activity_metrics_response)
|
1962
|
+
|
1963
|
+
GetJourneyRunExecutionMetricsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
|
1964
|
+
GetJourneyRunExecutionMetricsRequest.add_member(:journey_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "journey-id"))
|
1965
|
+
GetJourneyRunExecutionMetricsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "next-token"))
|
1966
|
+
GetJourneyRunExecutionMetricsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
|
1967
|
+
GetJourneyRunExecutionMetricsRequest.add_member(:run_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "run-id"))
|
1968
|
+
GetJourneyRunExecutionMetricsRequest.struct_class = Types::GetJourneyRunExecutionMetricsRequest
|
1969
|
+
|
1970
|
+
GetJourneyRunExecutionMetricsResponse.add_member(:journey_run_execution_metrics_response, Shapes::ShapeRef.new(shape: JourneyRunExecutionMetricsResponse, required: true, location_name: "JourneyRunExecutionMetricsResponse"))
|
1971
|
+
GetJourneyRunExecutionMetricsResponse.struct_class = Types::GetJourneyRunExecutionMetricsResponse
|
1972
|
+
GetJourneyRunExecutionMetricsResponse[:payload] = :journey_run_execution_metrics_response
|
1973
|
+
GetJourneyRunExecutionMetricsResponse[:payload_member] = GetJourneyRunExecutionMetricsResponse.member(:journey_run_execution_metrics_response)
|
1974
|
+
|
1975
|
+
GetJourneyRunsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "application-id"))
|
1976
|
+
GetJourneyRunsRequest.add_member(:journey_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "journey-id"))
|
1977
|
+
GetJourneyRunsRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "page-size"))
|
1978
|
+
GetJourneyRunsRequest.add_member(:token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "token"))
|
1979
|
+
GetJourneyRunsRequest.struct_class = Types::GetJourneyRunsRequest
|
1980
|
+
|
1981
|
+
GetJourneyRunsResponse.add_member(:journey_runs_response, Shapes::ShapeRef.new(shape: JourneyRunsResponse, required: true, location_name: "JourneyRunsResponse"))
|
1982
|
+
GetJourneyRunsResponse.struct_class = Types::GetJourneyRunsResponse
|
1983
|
+
GetJourneyRunsResponse[:payload] = :journey_runs_response
|
1984
|
+
GetJourneyRunsResponse[:payload_member] = GetJourneyRunsResponse.member(:journey_runs_response)
|
1985
|
+
|
1937
1986
|
GetPushTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "template-name"))
|
1938
1987
|
GetPushTemplateRequest.add_member(:version, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "version"))
|
1939
1988
|
GetPushTemplateRequest.struct_class = Types::GetPushTemplateRequest
|
@@ -2248,6 +2297,32 @@ module Aws::Pinpoint
|
|
2248
2297
|
JourneyResponse.add_member(:closed_days, Shapes::ShapeRef.new(shape: ClosedDays, location_name: "ClosedDays"))
|
2249
2298
|
JourneyResponse.struct_class = Types::JourneyResponse
|
2250
2299
|
|
2300
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:activity_type, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ActivityType"))
|
2301
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApplicationId"))
|
2302
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:journey_activity_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "JourneyActivityId"))
|
2303
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:journey_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "JourneyId"))
|
2304
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:last_evaluated_time, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastEvaluatedTime"))
|
2305
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: MapOf__string, required: true, location_name: "Metrics"))
|
2306
|
+
JourneyRunExecutionActivityMetricsResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "RunId"))
|
2307
|
+
JourneyRunExecutionActivityMetricsResponse.struct_class = Types::JourneyRunExecutionActivityMetricsResponse
|
2308
|
+
|
2309
|
+
JourneyRunExecutionMetricsResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "ApplicationId"))
|
2310
|
+
JourneyRunExecutionMetricsResponse.add_member(:journey_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "JourneyId"))
|
2311
|
+
JourneyRunExecutionMetricsResponse.add_member(:last_evaluated_time, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastEvaluatedTime"))
|
2312
|
+
JourneyRunExecutionMetricsResponse.add_member(:metrics, Shapes::ShapeRef.new(shape: MapOf__string, required: true, location_name: "Metrics"))
|
2313
|
+
JourneyRunExecutionMetricsResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "RunId"))
|
2314
|
+
JourneyRunExecutionMetricsResponse.struct_class = Types::JourneyRunExecutionMetricsResponse
|
2315
|
+
|
2316
|
+
JourneyRunResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "CreationTime"))
|
2317
|
+
JourneyRunResponse.add_member(:last_update_time, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "LastUpdateTime"))
|
2318
|
+
JourneyRunResponse.add_member(:run_id, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "RunId"))
|
2319
|
+
JourneyRunResponse.add_member(:status, Shapes::ShapeRef.new(shape: JourneyRunStatus, required: true, location_name: "Status"))
|
2320
|
+
JourneyRunResponse.struct_class = Types::JourneyRunResponse
|
2321
|
+
|
2322
|
+
JourneyRunsResponse.add_member(:item, Shapes::ShapeRef.new(shape: ListOfJourneyRunResponse, required: true, location_name: "Item"))
|
2323
|
+
JourneyRunsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
|
2324
|
+
JourneyRunsResponse.struct_class = Types::JourneyRunsResponse
|
2325
|
+
|
2251
2326
|
JourneySMSMessage.add_member(:message_type, Shapes::ShapeRef.new(shape: MessageType, location_name: "MessageType"))
|
2252
2327
|
JourneySMSMessage.add_member(:origination_number, Shapes::ShapeRef.new(shape: __string, location_name: "OriginationNumber"))
|
2253
2328
|
JourneySMSMessage.add_member(:sender_id, Shapes::ShapeRef.new(shape: __string, location_name: "SenderId"))
|
@@ -2299,6 +2374,8 @@ module Aws::Pinpoint
|
|
2299
2374
|
|
2300
2375
|
ListOfJourneyResponse.member = Shapes::ShapeRef.new(shape: JourneyResponse)
|
2301
2376
|
|
2377
|
+
ListOfJourneyRunResponse.member = Shapes::ShapeRef.new(shape: JourneyRunResponse)
|
2378
|
+
|
2302
2379
|
ListOfMultiConditionalBranch.member = Shapes::ShapeRef.new(shape: MultiConditionalBranch)
|
2303
2380
|
|
2304
2381
|
ListOfOpenHoursRules.member = Shapes::ShapeRef.new(shape: OpenHoursRule)
|
@@ -4401,6 +4478,51 @@ module Aws::Pinpoint
|
|
4401
4478
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
4402
4479
|
end)
|
4403
4480
|
|
4481
|
+
api.add_operation(:get_journey_run_execution_activity_metrics, Seahorse::Model::Operation.new.tap do |o|
|
4482
|
+
o.name = "GetJourneyRunExecutionActivityMetrics"
|
4483
|
+
o.http_method = "GET"
|
4484
|
+
o.http_request_uri = "/v1/apps/{application-id}/journeys/{journey-id}/runs/{run-id}/activities/{journey-activity-id}/execution-metrics"
|
4485
|
+
o.input = Shapes::ShapeRef.new(shape: GetJourneyRunExecutionActivityMetricsRequest)
|
4486
|
+
o.output = Shapes::ShapeRef.new(shape: GetJourneyRunExecutionActivityMetricsResponse)
|
4487
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
4488
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
4489
|
+
o.errors << Shapes::ShapeRef.new(shape: PayloadTooLargeException)
|
4490
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
4491
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
4492
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
4493
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
4494
|
+
end)
|
4495
|
+
|
4496
|
+
api.add_operation(:get_journey_run_execution_metrics, Seahorse::Model::Operation.new.tap do |o|
|
4497
|
+
o.name = "GetJourneyRunExecutionMetrics"
|
4498
|
+
o.http_method = "GET"
|
4499
|
+
o.http_request_uri = "/v1/apps/{application-id}/journeys/{journey-id}/runs/{run-id}/execution-metrics"
|
4500
|
+
o.input = Shapes::ShapeRef.new(shape: GetJourneyRunExecutionMetricsRequest)
|
4501
|
+
o.output = Shapes::ShapeRef.new(shape: GetJourneyRunExecutionMetricsResponse)
|
4502
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
4503
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
4504
|
+
o.errors << Shapes::ShapeRef.new(shape: PayloadTooLargeException)
|
4505
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
4506
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
4507
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
4508
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
4509
|
+
end)
|
4510
|
+
|
4511
|
+
api.add_operation(:get_journey_runs, Seahorse::Model::Operation.new.tap do |o|
|
4512
|
+
o.name = "GetJourneyRuns"
|
4513
|
+
o.http_method = "GET"
|
4514
|
+
o.http_request_uri = "/v1/apps/{application-id}/journeys/{journey-id}/runs"
|
4515
|
+
o.input = Shapes::ShapeRef.new(shape: GetJourneyRunsRequest)
|
4516
|
+
o.output = Shapes::ShapeRef.new(shape: GetJourneyRunsResponse)
|
4517
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
4518
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
4519
|
+
o.errors << Shapes::ShapeRef.new(shape: PayloadTooLargeException)
|
4520
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
4521
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
4522
|
+
o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
|
4523
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
4524
|
+
end)
|
4525
|
+
|
4404
4526
|
api.add_operation(:get_push_template, Seahorse::Model::Operation.new.tap do |o|
|
4405
4527
|
o.name = "GetPushTemplate"
|
4406
4528
|
o.http_method = "GET"
|
@@ -14,36 +14,54 @@ module Aws::Pinpoint
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
19
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
21
39
|
end
|
22
40
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
24
45
|
end
|
25
|
-
|
26
|
-
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-east-1")
|
47
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.us-east-1.amazonaws.com", headers: {}, properties: {})
|
30
48
|
end
|
31
|
-
|
32
|
-
|
33
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
49
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-west-2")
|
50
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.us-west-2.amazonaws.com", headers: {}, properties: {})
|
36
51
|
end
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
if Aws::Endpoints::Matchers.
|
41
|
-
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.#{region}
|
52
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
53
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
54
|
+
end
|
55
|
+
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.#{region}.amazonaws.com", headers: {}, properties: {})
|
57
|
+
end
|
58
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
59
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.#{region}.amazonaws.com", headers: {}, properties: {})
|
42
60
|
end
|
43
|
-
|
61
|
+
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
62
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://pinpoint.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
63
|
end
|
64
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
65
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
66
|
|
49
67
|
end
|
@@ -949,6 +949,48 @@ module Aws::Pinpoint
|
|
949
949
|
end
|
950
950
|
end
|
951
951
|
|
952
|
+
class GetJourneyRunExecutionActivityMetrics
|
953
|
+
def self.build(context)
|
954
|
+
unless context.config.regional_endpoint
|
955
|
+
endpoint = context.config.endpoint.to_s
|
956
|
+
end
|
957
|
+
Aws::Pinpoint::EndpointParameters.new(
|
958
|
+
region: context.config.region,
|
959
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
960
|
+
use_fips: context.config.use_fips_endpoint,
|
961
|
+
endpoint: endpoint,
|
962
|
+
)
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
966
|
+
class GetJourneyRunExecutionMetrics
|
967
|
+
def self.build(context)
|
968
|
+
unless context.config.regional_endpoint
|
969
|
+
endpoint = context.config.endpoint.to_s
|
970
|
+
end
|
971
|
+
Aws::Pinpoint::EndpointParameters.new(
|
972
|
+
region: context.config.region,
|
973
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
974
|
+
use_fips: context.config.use_fips_endpoint,
|
975
|
+
endpoint: endpoint,
|
976
|
+
)
|
977
|
+
end
|
978
|
+
end
|
979
|
+
|
980
|
+
class GetJourneyRuns
|
981
|
+
def self.build(context)
|
982
|
+
unless context.config.regional_endpoint
|
983
|
+
endpoint = context.config.endpoint.to_s
|
984
|
+
end
|
985
|
+
Aws::Pinpoint::EndpointParameters.new(
|
986
|
+
region: context.config.region,
|
987
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
988
|
+
use_fips: context.config.use_fips_endpoint,
|
989
|
+
endpoint: endpoint,
|
990
|
+
)
|
991
|
+
end
|
992
|
+
end
|
993
|
+
|
952
994
|
class GetPushTemplate
|
953
995
|
def self.build(context)
|
954
996
|
unless context.config.regional_endpoint
|
@@ -190,6 +190,12 @@ module Aws::Pinpoint
|
|
190
190
|
Aws::Pinpoint::Endpoints::GetJourneyExecutionActivityMetrics.build(context)
|
191
191
|
when :get_journey_execution_metrics
|
192
192
|
Aws::Pinpoint::Endpoints::GetJourneyExecutionMetrics.build(context)
|
193
|
+
when :get_journey_run_execution_activity_metrics
|
194
|
+
Aws::Pinpoint::Endpoints::GetJourneyRunExecutionActivityMetrics.build(context)
|
195
|
+
when :get_journey_run_execution_metrics
|
196
|
+
Aws::Pinpoint::Endpoints::GetJourneyRunExecutionMetrics.build(context)
|
197
|
+
when :get_journey_runs
|
198
|
+
Aws::Pinpoint::Endpoints::GetJourneyRuns.build(context)
|
193
199
|
when :get_push_template
|
194
200
|
Aws::Pinpoint::Endpoints::GetPushTemplate.build(context)
|
195
201
|
when :get_recommender_configuration
|