aws-sdk-rekognition 1.101.0 → 1.103.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-rekognition/client.rb +37 -2
- data/lib/aws-sdk-rekognition/client_api.rb +2 -0
- data/lib/aws-sdk-rekognition/types.rb +17 -4
- data/lib/aws-sdk-rekognition.rb +1 -1
- data/sig/client.rbs +5 -2
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae8d362c907ce69e43d788bdf1f9adba5847cb7416d7e1744265e6e17b340ea1
|
4
|
+
data.tar.gz: c70ffe2d34659cf344a7df9e51967a98b47ad79b766069b870d17bce8dddb5df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae1e3a5954cfb505611fbe063e1ffa9fec6d48af74f3f8c751c2641df009094319202c953a31a91651d4224751e9daef1870df7e961579eee20ea28659695e3
|
7
|
+
data.tar.gz: f11cbe2207628e3d82f9ba006c4a9cb951388a313e9eb108b461d2576fd2845ab1c187b8ee7857fa067297062a42fbe019b0d3292004680a6533378b1a232312
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.103.0 (2024-09-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.102.0 (2024-07-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds support for tagging projects and datasets with the CreateProject and CreateDataset APIs.
|
13
|
+
|
4
14
|
1.101.0 (2024-07-02)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.103.0
|
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
|
32
32
|
require 'aws-sdk-core/plugins/request_compression.rb'
|
33
33
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
34
34
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
35
|
+
require 'aws-sdk-core/plugins/telemetry.rb'
|
35
36
|
require 'aws-sdk-core/plugins/sign.rb'
|
36
37
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
37
38
|
|
@@ -83,6 +84,7 @@ module Aws::Rekognition
|
|
83
84
|
add_plugin(Aws::Plugins::RequestCompression)
|
84
85
|
add_plugin(Aws::Plugins::DefaultsMode)
|
85
86
|
add_plugin(Aws::Plugins::RecursionDetection)
|
87
|
+
add_plugin(Aws::Plugins::Telemetry)
|
86
88
|
add_plugin(Aws::Plugins::Sign)
|
87
89
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
88
90
|
add_plugin(Aws::Rekognition::Plugins::Endpoints)
|
@@ -337,6 +339,16 @@ module Aws::Rekognition
|
|
337
339
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
338
340
|
# requests are made, and retries are disabled.
|
339
341
|
#
|
342
|
+
# @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
|
343
|
+
# Allows you to provide a telemetry provider, which is used to
|
344
|
+
# emit telemetry data. By default, uses `NoOpTelemetryProvider` which
|
345
|
+
# will not record or emit any telemetry data. The SDK supports the
|
346
|
+
# following telemetry providers:
|
347
|
+
#
|
348
|
+
# * OpenTelemetry (OTel) - To use the OTel provider, install and require the
|
349
|
+
# `opentelemetry-sdk` gem and then, pass in an instance of a
|
350
|
+
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
351
|
+
#
|
340
352
|
# @option options [Aws::TokenProvider] :token_provider
|
341
353
|
# A Bearer Token Provider. This can be an instance of any one of the
|
342
354
|
# following classes:
|
@@ -1064,6 +1076,10 @@ module Aws::Rekognition
|
|
1064
1076
|
# The ARN of the Amazon Rekognition Custom Labels project to which you
|
1065
1077
|
# want to asssign the dataset.
|
1066
1078
|
#
|
1079
|
+
# @option params [Hash<String,String>] :tags
|
1080
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
1081
|
+
# dataset.
|
1082
|
+
#
|
1067
1083
|
# @return [Types::CreateDatasetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1068
1084
|
#
|
1069
1085
|
# * {Types::CreateDatasetResponse#dataset_arn #dataset_arn} => String
|
@@ -1106,6 +1122,9 @@ module Aws::Rekognition
|
|
1106
1122
|
# },
|
1107
1123
|
# dataset_type: "TRAIN", # required, accepts TRAIN, TEST
|
1108
1124
|
# project_arn: "ProjectArn", # required
|
1125
|
+
# tags: {
|
1126
|
+
# "TagKey" => "TagValue",
|
1127
|
+
# },
|
1109
1128
|
# })
|
1110
1129
|
#
|
1111
1130
|
# @example Response structure
|
@@ -1199,6 +1218,10 @@ module Aws::Rekognition
|
|
1199
1218
|
# effort. Required argument for Content Moderation. Applicable only to
|
1200
1219
|
# adapters.
|
1201
1220
|
#
|
1221
|
+
# @option params [Hash<String,String>] :tags
|
1222
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
1223
|
+
# project.
|
1224
|
+
#
|
1202
1225
|
# @return [Types::CreateProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1203
1226
|
#
|
1204
1227
|
# * {Types::CreateProjectResponse#project_arn #project_arn} => String
|
@@ -1223,6 +1246,9 @@ module Aws::Rekognition
|
|
1223
1246
|
# project_name: "ProjectName", # required
|
1224
1247
|
# feature: "CONTENT_MODERATION", # accepts CONTENT_MODERATION, CUSTOM_LABELS
|
1225
1248
|
# auto_update: "ENABLED", # accepts ENABLED, DISABLED
|
1249
|
+
# tags: {
|
1250
|
+
# "TagKey" => "TagValue",
|
1251
|
+
# },
|
1226
1252
|
# })
|
1227
1253
|
#
|
1228
1254
|
# @example Response structure
|
@@ -4485,6 +4511,10 @@ module Aws::Rekognition
|
|
4485
4511
|
# with the token value returned from the previous call to
|
4486
4512
|
# `GetLabelDetection`.
|
4487
4513
|
#
|
4514
|
+
# If you are retrieving results while using the Amazon Simple
|
4515
|
+
# Notification Service, note that you will receive an "ERROR"
|
4516
|
+
# notification if the job encounters an issue.
|
4517
|
+
#
|
4488
4518
|
# @option params [required, String] :job_id
|
4489
4519
|
# Job identifier for the label detection operation for which you want
|
4490
4520
|
# results returned. You get the job identifer from an initial call to
|
@@ -8407,14 +8437,19 @@ module Aws::Rekognition
|
|
8407
8437
|
# @api private
|
8408
8438
|
def build_request(operation_name, params = {})
|
8409
8439
|
handlers = @handlers.for(operation_name)
|
8440
|
+
tracer = config.telemetry_provider.tracer_provider.tracer(
|
8441
|
+
Aws::Telemetry.module_to_tracer_name('Aws::Rekognition')
|
8442
|
+
)
|
8410
8443
|
context = Seahorse::Client::RequestContext.new(
|
8411
8444
|
operation_name: operation_name,
|
8412
8445
|
operation: config.api.operation(operation_name),
|
8413
8446
|
client: self,
|
8414
8447
|
params: params,
|
8415
|
-
config: config
|
8448
|
+
config: config,
|
8449
|
+
tracer: tracer
|
8450
|
+
)
|
8416
8451
|
context[:gem_name] = 'aws-sdk-rekognition'
|
8417
|
-
context[:gem_version] = '1.
|
8452
|
+
context[:gem_version] = '1.103.0'
|
8418
8453
|
Seahorse::Client::Request.new(handlers, context)
|
8419
8454
|
end
|
8420
8455
|
|
@@ -733,6 +733,7 @@ module Aws::Rekognition
|
|
733
733
|
CreateDatasetRequest.add_member(:dataset_source, Shapes::ShapeRef.new(shape: DatasetSource, location_name: "DatasetSource"))
|
734
734
|
CreateDatasetRequest.add_member(:dataset_type, Shapes::ShapeRef.new(shape: DatasetType, required: true, location_name: "DatasetType"))
|
735
735
|
CreateDatasetRequest.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location_name: "ProjectArn"))
|
736
|
+
CreateDatasetRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
736
737
|
CreateDatasetRequest.struct_class = Types::CreateDatasetRequest
|
737
738
|
|
738
739
|
CreateDatasetResponse.add_member(:dataset_arn, Shapes::ShapeRef.new(shape: DatasetArn, location_name: "DatasetArn"))
|
@@ -753,6 +754,7 @@ module Aws::Rekognition
|
|
753
754
|
CreateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "ProjectName"))
|
754
755
|
CreateProjectRequest.add_member(:feature, Shapes::ShapeRef.new(shape: CustomizationFeature, location_name: "Feature"))
|
755
756
|
CreateProjectRequest.add_member(:auto_update, Shapes::ShapeRef.new(shape: ProjectAutoUpdate, location_name: "AutoUpdate"))
|
757
|
+
CreateProjectRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
756
758
|
CreateProjectRequest.struct_class = Types::CreateProjectRequest
|
757
759
|
|
758
760
|
CreateProjectResponse.add_member(:project_arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "ProjectArn"))
|
@@ -903,10 +903,16 @@ module Aws::Rekognition
|
|
903
903
|
# want to asssign the dataset.
|
904
904
|
# @return [String]
|
905
905
|
#
|
906
|
+
# @!attribute [rw] tags
|
907
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
908
|
+
# dataset.
|
909
|
+
# @return [Hash<String,String>]
|
910
|
+
#
|
906
911
|
class CreateDatasetRequest < Struct.new(
|
907
912
|
:dataset_source,
|
908
913
|
:dataset_type,
|
909
|
-
:project_arn
|
914
|
+
:project_arn,
|
915
|
+
:tags)
|
910
916
|
SENSITIVE = []
|
911
917
|
include Aws::Structure
|
912
918
|
end
|
@@ -1006,10 +1012,16 @@ module Aws::Rekognition
|
|
1006
1012
|
# adapters.
|
1007
1013
|
# @return [String]
|
1008
1014
|
#
|
1015
|
+
# @!attribute [rw] tags
|
1016
|
+
# A set of tags (key-value pairs) that you want to attach to the
|
1017
|
+
# project.
|
1018
|
+
# @return [Hash<String,String>]
|
1019
|
+
#
|
1009
1020
|
class CreateProjectRequest < Struct.new(
|
1010
1021
|
:project_name,
|
1011
1022
|
:feature,
|
1012
|
-
:auto_update
|
1023
|
+
:auto_update,
|
1024
|
+
:tags)
|
1013
1025
|
SENSITIVE = []
|
1014
1026
|
include Aws::Structure
|
1015
1027
|
end
|
@@ -2399,8 +2411,9 @@ module Aws::Rekognition
|
|
2399
2411
|
end
|
2400
2412
|
|
2401
2413
|
# @!attribute [rw] moderation_labels
|
2402
|
-
# Array of detected Moderation labels
|
2403
|
-
# from the start of the video, they
|
2414
|
+
# Array of detected Moderation labels. For video operations, this
|
2415
|
+
# includes the time, in milliseconds from the start of the video, they
|
2416
|
+
# were detected.
|
2404
2417
|
# @return [Array<Types::ModerationLabel>]
|
2405
2418
|
#
|
2406
2419
|
# @!attribute [rw] moderation_model_version
|
data/lib/aws-sdk-rekognition.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -51,6 +51,7 @@ module Aws
|
|
51
51
|
?sigv4a_signing_region_set: Array[String],
|
52
52
|
?simple_json: bool,
|
53
53
|
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
54
55
|
?token_provider: untyped,
|
55
56
|
?use_dualstack_endpoint: bool,
|
56
57
|
?use_fips_endpoint: bool,
|
@@ -170,7 +171,8 @@ module Aws
|
|
170
171
|
dataset_arn: ::String?
|
171
172
|
},
|
172
173
|
dataset_type: ("TRAIN" | "TEST"),
|
173
|
-
project_arn: ::String
|
174
|
+
project_arn: ::String,
|
175
|
+
?tags: Hash[::String, ::String]
|
174
176
|
) -> _CreateDatasetResponseSuccess
|
175
177
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDatasetResponseSuccess
|
176
178
|
|
@@ -200,7 +202,8 @@ module Aws
|
|
200
202
|
def create_project: (
|
201
203
|
project_name: ::String,
|
202
204
|
?feature: ("CONTENT_MODERATION" | "CUSTOM_LABELS"),
|
203
|
-
?auto_update: ("ENABLED" | "DISABLED")
|
205
|
+
?auto_update: ("ENABLED" | "DISABLED"),
|
206
|
+
?tags: Hash[::String, ::String]
|
204
207
|
) -> _CreateProjectResponseSuccess
|
205
208
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateProjectResponseSuccess
|
206
209
|
|
data/sig/resource.rbs
CHANGED
@@ -51,6 +51,7 @@ module Aws
|
|
51
51
|
?sigv4a_signing_region_set: Array[String],
|
52
52
|
?simple_json: bool,
|
53
53
|
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
54
55
|
?token_provider: untyped,
|
55
56
|
?use_dualstack_endpoint: bool,
|
56
57
|
?use_fips_endpoint: bool,
|
data/sig/types.rbs
CHANGED
@@ -215,6 +215,7 @@ module Aws::Rekognition
|
|
215
215
|
attr_accessor dataset_source: Types::DatasetSource
|
216
216
|
attr_accessor dataset_type: ("TRAIN" | "TEST")
|
217
217
|
attr_accessor project_arn: ::String
|
218
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
218
219
|
SENSITIVE: []
|
219
220
|
end
|
220
221
|
|
@@ -245,6 +246,7 @@ module Aws::Rekognition
|
|
245
246
|
attr_accessor project_name: ::String
|
246
247
|
attr_accessor feature: ("CONTENT_MODERATION" | "CUSTOM_LABELS")
|
247
248
|
attr_accessor auto_update: ("ENABLED" | "DISABLED")
|
249
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
248
250
|
SENSITIVE: []
|
249
251
|
end
|
250
252
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rekognition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.103.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: 2024-
|
11
|
+
date: 2024-09-03 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.203.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.203.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|