aws-sdk-frauddetector 1.34.0 → 1.36.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-frauddetector/client.rb +44 -5
- data/lib/aws-sdk-frauddetector/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-frauddetector/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-frauddetector/endpoints.rb +967 -0
- data/lib/aws-sdk-frauddetector/plugins/endpoints.rb +204 -0
- data/lib/aws-sdk-frauddetector/types.rb +24 -2
- data/lib/aws-sdk-frauddetector.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,204 @@
|
|
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_model
|
74
|
+
Aws::FraudDetector::Endpoints::CreateModel.build(context)
|
75
|
+
when :create_model_version
|
76
|
+
Aws::FraudDetector::Endpoints::CreateModelVersion.build(context)
|
77
|
+
when :create_rule
|
78
|
+
Aws::FraudDetector::Endpoints::CreateRule.build(context)
|
79
|
+
when :create_variable
|
80
|
+
Aws::FraudDetector::Endpoints::CreateVariable.build(context)
|
81
|
+
when :delete_batch_import_job
|
82
|
+
Aws::FraudDetector::Endpoints::DeleteBatchImportJob.build(context)
|
83
|
+
when :delete_batch_prediction_job
|
84
|
+
Aws::FraudDetector::Endpoints::DeleteBatchPredictionJob.build(context)
|
85
|
+
when :delete_detector
|
86
|
+
Aws::FraudDetector::Endpoints::DeleteDetector.build(context)
|
87
|
+
when :delete_detector_version
|
88
|
+
Aws::FraudDetector::Endpoints::DeleteDetectorVersion.build(context)
|
89
|
+
when :delete_entity_type
|
90
|
+
Aws::FraudDetector::Endpoints::DeleteEntityType.build(context)
|
91
|
+
when :delete_event
|
92
|
+
Aws::FraudDetector::Endpoints::DeleteEvent.build(context)
|
93
|
+
when :delete_event_type
|
94
|
+
Aws::FraudDetector::Endpoints::DeleteEventType.build(context)
|
95
|
+
when :delete_events_by_event_type
|
96
|
+
Aws::FraudDetector::Endpoints::DeleteEventsByEventType.build(context)
|
97
|
+
when :delete_external_model
|
98
|
+
Aws::FraudDetector::Endpoints::DeleteExternalModel.build(context)
|
99
|
+
when :delete_label
|
100
|
+
Aws::FraudDetector::Endpoints::DeleteLabel.build(context)
|
101
|
+
when :delete_model
|
102
|
+
Aws::FraudDetector::Endpoints::DeleteModel.build(context)
|
103
|
+
when :delete_model_version
|
104
|
+
Aws::FraudDetector::Endpoints::DeleteModelVersion.build(context)
|
105
|
+
when :delete_outcome
|
106
|
+
Aws::FraudDetector::Endpoints::DeleteOutcome.build(context)
|
107
|
+
when :delete_rule
|
108
|
+
Aws::FraudDetector::Endpoints::DeleteRule.build(context)
|
109
|
+
when :delete_variable
|
110
|
+
Aws::FraudDetector::Endpoints::DeleteVariable.build(context)
|
111
|
+
when :describe_detector
|
112
|
+
Aws::FraudDetector::Endpoints::DescribeDetector.build(context)
|
113
|
+
when :describe_model_versions
|
114
|
+
Aws::FraudDetector::Endpoints::DescribeModelVersions.build(context)
|
115
|
+
when :get_batch_import_jobs
|
116
|
+
Aws::FraudDetector::Endpoints::GetBatchImportJobs.build(context)
|
117
|
+
when :get_batch_prediction_jobs
|
118
|
+
Aws::FraudDetector::Endpoints::GetBatchPredictionJobs.build(context)
|
119
|
+
when :get_delete_events_by_event_type_status
|
120
|
+
Aws::FraudDetector::Endpoints::GetDeleteEventsByEventTypeStatus.build(context)
|
121
|
+
when :get_detector_version
|
122
|
+
Aws::FraudDetector::Endpoints::GetDetectorVersion.build(context)
|
123
|
+
when :get_detectors
|
124
|
+
Aws::FraudDetector::Endpoints::GetDetectors.build(context)
|
125
|
+
when :get_entity_types
|
126
|
+
Aws::FraudDetector::Endpoints::GetEntityTypes.build(context)
|
127
|
+
when :get_event
|
128
|
+
Aws::FraudDetector::Endpoints::GetEvent.build(context)
|
129
|
+
when :get_event_prediction
|
130
|
+
Aws::FraudDetector::Endpoints::GetEventPrediction.build(context)
|
131
|
+
when :get_event_prediction_metadata
|
132
|
+
Aws::FraudDetector::Endpoints::GetEventPredictionMetadata.build(context)
|
133
|
+
when :get_event_types
|
134
|
+
Aws::FraudDetector::Endpoints::GetEventTypes.build(context)
|
135
|
+
when :get_external_models
|
136
|
+
Aws::FraudDetector::Endpoints::GetExternalModels.build(context)
|
137
|
+
when :get_kms_encryption_key
|
138
|
+
Aws::FraudDetector::Endpoints::GetKMSEncryptionKey.build(context)
|
139
|
+
when :get_labels
|
140
|
+
Aws::FraudDetector::Endpoints::GetLabels.build(context)
|
141
|
+
when :get_model_version
|
142
|
+
Aws::FraudDetector::Endpoints::GetModelVersion.build(context)
|
143
|
+
when :get_models
|
144
|
+
Aws::FraudDetector::Endpoints::GetModels.build(context)
|
145
|
+
when :get_outcomes
|
146
|
+
Aws::FraudDetector::Endpoints::GetOutcomes.build(context)
|
147
|
+
when :get_rules
|
148
|
+
Aws::FraudDetector::Endpoints::GetRules.build(context)
|
149
|
+
when :get_variables
|
150
|
+
Aws::FraudDetector::Endpoints::GetVariables.build(context)
|
151
|
+
when :list_event_predictions
|
152
|
+
Aws::FraudDetector::Endpoints::ListEventPredictions.build(context)
|
153
|
+
when :list_tags_for_resource
|
154
|
+
Aws::FraudDetector::Endpoints::ListTagsForResource.build(context)
|
155
|
+
when :put_detector
|
156
|
+
Aws::FraudDetector::Endpoints::PutDetector.build(context)
|
157
|
+
when :put_entity_type
|
158
|
+
Aws::FraudDetector::Endpoints::PutEntityType.build(context)
|
159
|
+
when :put_event_type
|
160
|
+
Aws::FraudDetector::Endpoints::PutEventType.build(context)
|
161
|
+
when :put_external_model
|
162
|
+
Aws::FraudDetector::Endpoints::PutExternalModel.build(context)
|
163
|
+
when :put_kms_encryption_key
|
164
|
+
Aws::FraudDetector::Endpoints::PutKMSEncryptionKey.build(context)
|
165
|
+
when :put_label
|
166
|
+
Aws::FraudDetector::Endpoints::PutLabel.build(context)
|
167
|
+
when :put_outcome
|
168
|
+
Aws::FraudDetector::Endpoints::PutOutcome.build(context)
|
169
|
+
when :send_event
|
170
|
+
Aws::FraudDetector::Endpoints::SendEvent.build(context)
|
171
|
+
when :tag_resource
|
172
|
+
Aws::FraudDetector::Endpoints::TagResource.build(context)
|
173
|
+
when :untag_resource
|
174
|
+
Aws::FraudDetector::Endpoints::UntagResource.build(context)
|
175
|
+
when :update_detector_version
|
176
|
+
Aws::FraudDetector::Endpoints::UpdateDetectorVersion.build(context)
|
177
|
+
when :update_detector_version_metadata
|
178
|
+
Aws::FraudDetector::Endpoints::UpdateDetectorVersionMetadata.build(context)
|
179
|
+
when :update_detector_version_status
|
180
|
+
Aws::FraudDetector::Endpoints::UpdateDetectorVersionStatus.build(context)
|
181
|
+
when :update_event_label
|
182
|
+
Aws::FraudDetector::Endpoints::UpdateEventLabel.build(context)
|
183
|
+
when :update_model
|
184
|
+
Aws::FraudDetector::Endpoints::UpdateModel.build(context)
|
185
|
+
when :update_model_version
|
186
|
+
Aws::FraudDetector::Endpoints::UpdateModelVersion.build(context)
|
187
|
+
when :update_model_version_status
|
188
|
+
Aws::FraudDetector::Endpoints::UpdateModelVersionStatus.build(context)
|
189
|
+
when :update_rule_metadata
|
190
|
+
Aws::FraudDetector::Endpoints::UpdateRuleMetadata.build(context)
|
191
|
+
when :update_rule_version
|
192
|
+
Aws::FraudDetector::Endpoints::UpdateRuleVersion.build(context)
|
193
|
+
when :update_variable
|
194
|
+
Aws::FraudDetector::Endpoints::UpdateVariable.build(context)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
def add_handlers(handlers, _config)
|
200
|
+
handlers.add(Handler, step: :build, priority: 75)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
@@ -592,8 +592,16 @@ module Aws::FraudDetector
|
|
592
592
|
#
|
593
593
|
# @!attribute [rw] iam_role_arn
|
594
594
|
# The ARN of the IAM role created for Amazon S3 bucket that holds your
|
595
|
-
# data file.
|
596
|
-
#
|
595
|
+
# data file.
|
596
|
+
#
|
597
|
+
# The IAM role must have read permissions to your input S3 bucket and
|
598
|
+
# write permissions to your output S3 bucket. For more information
|
599
|
+
# about bucket permissions, see [User policy examples][1] in the
|
600
|
+
# *Amazon S3 User Guide*.
|
601
|
+
#
|
602
|
+
#
|
603
|
+
#
|
604
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-policies-s3.html
|
597
605
|
# @return [String]
|
598
606
|
#
|
599
607
|
# @!attribute [rw] tags
|
@@ -662,6 +670,15 @@ module Aws::FraudDetector
|
|
662
670
|
#
|
663
671
|
# @!attribute [rw] iam_role_arn
|
664
672
|
# The ARN of the IAM role to use for this job request.
|
673
|
+
#
|
674
|
+
# The IAM Role must have read permissions to your input S3 bucket and
|
675
|
+
# write permissions to your output S3 bucket. For more information
|
676
|
+
# about bucket permissions, see [User policy examples][1] in the
|
677
|
+
# *Amazon S3 User Guide*.
|
678
|
+
#
|
679
|
+
#
|
680
|
+
#
|
681
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-policies-s3.html
|
665
682
|
# @return [String]
|
666
683
|
#
|
667
684
|
# @!attribute [rw] tags
|
@@ -4460,6 +4477,9 @@ module Aws::FraudDetector
|
|
4460
4477
|
#
|
4461
4478
|
# @!attribute [rw] kms_encryption_key_arn
|
4462
4479
|
# The KMS encryption key ARN.
|
4480
|
+
#
|
4481
|
+
# The KMS key must be single-Region key. Amazon Fraud Detector does
|
4482
|
+
# not support multi-Region KMS key.
|
4463
4483
|
# @return [String]
|
4464
4484
|
#
|
4465
4485
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutKMSEncryptionKeyRequest AWS API Documentation
|
@@ -5212,6 +5232,8 @@ module Aws::FraudDetector
|
|
5212
5232
|
#
|
5213
5233
|
# @!attribute [rw] status
|
5214
5234
|
# The new status.
|
5235
|
+
#
|
5236
|
+
# The only supported values are `ACTIVE` and `INACTIVE`
|
5215
5237
|
# @return [String]
|
5216
5238
|
#
|
5217
5239
|
# @see http://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionStatusRequest AWS API Documentation
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-frauddetector/types'
|
15
15
|
require_relative 'aws-sdk-frauddetector/client_api'
|
16
|
+
require_relative 'aws-sdk-frauddetector/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-frauddetector/client'
|
17
18
|
require_relative 'aws-sdk-frauddetector/errors'
|
18
19
|
require_relative 'aws-sdk-frauddetector/resource'
|
20
|
+
require_relative 'aws-sdk-frauddetector/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-frauddetector/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-frauddetector/endpoints'
|
19
23
|
require_relative 'aws-sdk-frauddetector/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Fraud Detector. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-frauddetector/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::FraudDetector
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.36.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-frauddetector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-frauddetector/client.rb
|
60
60
|
- lib/aws-sdk-frauddetector/client_api.rb
|
61
61
|
- lib/aws-sdk-frauddetector/customizations.rb
|
62
|
+
- lib/aws-sdk-frauddetector/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-frauddetector/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-frauddetector/endpoints.rb
|
62
65
|
- lib/aws-sdk-frauddetector/errors.rb
|
66
|
+
- lib/aws-sdk-frauddetector/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-frauddetector/resource.rb
|
64
68
|
- lib/aws-sdk-frauddetector/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|