aws-sdk-frauddetector 1.28.0 → 1.46.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 +93 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-frauddetector/client.rb +601 -41
- data/lib/aws-sdk-frauddetector/client_api.rb +424 -3
- data/lib/aws-sdk-frauddetector/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-frauddetector/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-frauddetector/endpoints.rb +1038 -0
- data/lib/aws-sdk-frauddetector/plugins/endpoints.rb +214 -0
- data/lib/aws-sdk-frauddetector/types.rb +1221 -950
- data/lib/aws-sdk-frauddetector.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,214 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::FraudDetector
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::FraudDetector::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::FraudDetector::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::FraudDetector::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :batch_create_variable
|
60
|
+
Aws::FraudDetector::Endpoints::BatchCreateVariable.build(context)
|
61
|
+
when :batch_get_variable
|
62
|
+
Aws::FraudDetector::Endpoints::BatchGetVariable.build(context)
|
63
|
+
when :cancel_batch_import_job
|
64
|
+
Aws::FraudDetector::Endpoints::CancelBatchImportJob.build(context)
|
65
|
+
when :cancel_batch_prediction_job
|
66
|
+
Aws::FraudDetector::Endpoints::CancelBatchPredictionJob.build(context)
|
67
|
+
when :create_batch_import_job
|
68
|
+
Aws::FraudDetector::Endpoints::CreateBatchImportJob.build(context)
|
69
|
+
when :create_batch_prediction_job
|
70
|
+
Aws::FraudDetector::Endpoints::CreateBatchPredictionJob.build(context)
|
71
|
+
when :create_detector_version
|
72
|
+
Aws::FraudDetector::Endpoints::CreateDetectorVersion.build(context)
|
73
|
+
when :create_list
|
74
|
+
Aws::FraudDetector::Endpoints::CreateList.build(context)
|
75
|
+
when :create_model
|
76
|
+
Aws::FraudDetector::Endpoints::CreateModel.build(context)
|
77
|
+
when :create_model_version
|
78
|
+
Aws::FraudDetector::Endpoints::CreateModelVersion.build(context)
|
79
|
+
when :create_rule
|
80
|
+
Aws::FraudDetector::Endpoints::CreateRule.build(context)
|
81
|
+
when :create_variable
|
82
|
+
Aws::FraudDetector::Endpoints::CreateVariable.build(context)
|
83
|
+
when :delete_batch_import_job
|
84
|
+
Aws::FraudDetector::Endpoints::DeleteBatchImportJob.build(context)
|
85
|
+
when :delete_batch_prediction_job
|
86
|
+
Aws::FraudDetector::Endpoints::DeleteBatchPredictionJob.build(context)
|
87
|
+
when :delete_detector
|
88
|
+
Aws::FraudDetector::Endpoints::DeleteDetector.build(context)
|
89
|
+
when :delete_detector_version
|
90
|
+
Aws::FraudDetector::Endpoints::DeleteDetectorVersion.build(context)
|
91
|
+
when :delete_entity_type
|
92
|
+
Aws::FraudDetector::Endpoints::DeleteEntityType.build(context)
|
93
|
+
when :delete_event
|
94
|
+
Aws::FraudDetector::Endpoints::DeleteEvent.build(context)
|
95
|
+
when :delete_event_type
|
96
|
+
Aws::FraudDetector::Endpoints::DeleteEventType.build(context)
|
97
|
+
when :delete_events_by_event_type
|
98
|
+
Aws::FraudDetector::Endpoints::DeleteEventsByEventType.build(context)
|
99
|
+
when :delete_external_model
|
100
|
+
Aws::FraudDetector::Endpoints::DeleteExternalModel.build(context)
|
101
|
+
when :delete_label
|
102
|
+
Aws::FraudDetector::Endpoints::DeleteLabel.build(context)
|
103
|
+
when :delete_list
|
104
|
+
Aws::FraudDetector::Endpoints::DeleteList.build(context)
|
105
|
+
when :delete_model
|
106
|
+
Aws::FraudDetector::Endpoints::DeleteModel.build(context)
|
107
|
+
when :delete_model_version
|
108
|
+
Aws::FraudDetector::Endpoints::DeleteModelVersion.build(context)
|
109
|
+
when :delete_outcome
|
110
|
+
Aws::FraudDetector::Endpoints::DeleteOutcome.build(context)
|
111
|
+
when :delete_rule
|
112
|
+
Aws::FraudDetector::Endpoints::DeleteRule.build(context)
|
113
|
+
when :delete_variable
|
114
|
+
Aws::FraudDetector::Endpoints::DeleteVariable.build(context)
|
115
|
+
when :describe_detector
|
116
|
+
Aws::FraudDetector::Endpoints::DescribeDetector.build(context)
|
117
|
+
when :describe_model_versions
|
118
|
+
Aws::FraudDetector::Endpoints::DescribeModelVersions.build(context)
|
119
|
+
when :get_batch_import_jobs
|
120
|
+
Aws::FraudDetector::Endpoints::GetBatchImportJobs.build(context)
|
121
|
+
when :get_batch_prediction_jobs
|
122
|
+
Aws::FraudDetector::Endpoints::GetBatchPredictionJobs.build(context)
|
123
|
+
when :get_delete_events_by_event_type_status
|
124
|
+
Aws::FraudDetector::Endpoints::GetDeleteEventsByEventTypeStatus.build(context)
|
125
|
+
when :get_detector_version
|
126
|
+
Aws::FraudDetector::Endpoints::GetDetectorVersion.build(context)
|
127
|
+
when :get_detectors
|
128
|
+
Aws::FraudDetector::Endpoints::GetDetectors.build(context)
|
129
|
+
when :get_entity_types
|
130
|
+
Aws::FraudDetector::Endpoints::GetEntityTypes.build(context)
|
131
|
+
when :get_event
|
132
|
+
Aws::FraudDetector::Endpoints::GetEvent.build(context)
|
133
|
+
when :get_event_prediction
|
134
|
+
Aws::FraudDetector::Endpoints::GetEventPrediction.build(context)
|
135
|
+
when :get_event_prediction_metadata
|
136
|
+
Aws::FraudDetector::Endpoints::GetEventPredictionMetadata.build(context)
|
137
|
+
when :get_event_types
|
138
|
+
Aws::FraudDetector::Endpoints::GetEventTypes.build(context)
|
139
|
+
when :get_external_models
|
140
|
+
Aws::FraudDetector::Endpoints::GetExternalModels.build(context)
|
141
|
+
when :get_kms_encryption_key
|
142
|
+
Aws::FraudDetector::Endpoints::GetKMSEncryptionKey.build(context)
|
143
|
+
when :get_labels
|
144
|
+
Aws::FraudDetector::Endpoints::GetLabels.build(context)
|
145
|
+
when :get_list_elements
|
146
|
+
Aws::FraudDetector::Endpoints::GetListElements.build(context)
|
147
|
+
when :get_lists_metadata
|
148
|
+
Aws::FraudDetector::Endpoints::GetListsMetadata.build(context)
|
149
|
+
when :get_model_version
|
150
|
+
Aws::FraudDetector::Endpoints::GetModelVersion.build(context)
|
151
|
+
when :get_models
|
152
|
+
Aws::FraudDetector::Endpoints::GetModels.build(context)
|
153
|
+
when :get_outcomes
|
154
|
+
Aws::FraudDetector::Endpoints::GetOutcomes.build(context)
|
155
|
+
when :get_rules
|
156
|
+
Aws::FraudDetector::Endpoints::GetRules.build(context)
|
157
|
+
when :get_variables
|
158
|
+
Aws::FraudDetector::Endpoints::GetVariables.build(context)
|
159
|
+
when :list_event_predictions
|
160
|
+
Aws::FraudDetector::Endpoints::ListEventPredictions.build(context)
|
161
|
+
when :list_tags_for_resource
|
162
|
+
Aws::FraudDetector::Endpoints::ListTagsForResource.build(context)
|
163
|
+
when :put_detector
|
164
|
+
Aws::FraudDetector::Endpoints::PutDetector.build(context)
|
165
|
+
when :put_entity_type
|
166
|
+
Aws::FraudDetector::Endpoints::PutEntityType.build(context)
|
167
|
+
when :put_event_type
|
168
|
+
Aws::FraudDetector::Endpoints::PutEventType.build(context)
|
169
|
+
when :put_external_model
|
170
|
+
Aws::FraudDetector::Endpoints::PutExternalModel.build(context)
|
171
|
+
when :put_kms_encryption_key
|
172
|
+
Aws::FraudDetector::Endpoints::PutKMSEncryptionKey.build(context)
|
173
|
+
when :put_label
|
174
|
+
Aws::FraudDetector::Endpoints::PutLabel.build(context)
|
175
|
+
when :put_outcome
|
176
|
+
Aws::FraudDetector::Endpoints::PutOutcome.build(context)
|
177
|
+
when :send_event
|
178
|
+
Aws::FraudDetector::Endpoints::SendEvent.build(context)
|
179
|
+
when :tag_resource
|
180
|
+
Aws::FraudDetector::Endpoints::TagResource.build(context)
|
181
|
+
when :untag_resource
|
182
|
+
Aws::FraudDetector::Endpoints::UntagResource.build(context)
|
183
|
+
when :update_detector_version
|
184
|
+
Aws::FraudDetector::Endpoints::UpdateDetectorVersion.build(context)
|
185
|
+
when :update_detector_version_metadata
|
186
|
+
Aws::FraudDetector::Endpoints::UpdateDetectorVersionMetadata.build(context)
|
187
|
+
when :update_detector_version_status
|
188
|
+
Aws::FraudDetector::Endpoints::UpdateDetectorVersionStatus.build(context)
|
189
|
+
when :update_event_label
|
190
|
+
Aws::FraudDetector::Endpoints::UpdateEventLabel.build(context)
|
191
|
+
when :update_list
|
192
|
+
Aws::FraudDetector::Endpoints::UpdateList.build(context)
|
193
|
+
when :update_model
|
194
|
+
Aws::FraudDetector::Endpoints::UpdateModel.build(context)
|
195
|
+
when :update_model_version
|
196
|
+
Aws::FraudDetector::Endpoints::UpdateModelVersion.build(context)
|
197
|
+
when :update_model_version_status
|
198
|
+
Aws::FraudDetector::Endpoints::UpdateModelVersionStatus.build(context)
|
199
|
+
when :update_rule_metadata
|
200
|
+
Aws::FraudDetector::Endpoints::UpdateRuleMetadata.build(context)
|
201
|
+
when :update_rule_version
|
202
|
+
Aws::FraudDetector::Endpoints::UpdateRuleVersion.build(context)
|
203
|
+
when :update_variable
|
204
|
+
Aws::FraudDetector::Endpoints::UpdateVariable.build(context)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
def add_handlers(handlers, _config)
|
210
|
+
handlers.add(Handler, step: :build, priority: 75)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|