aws-sdk-sagemakerruntime 1.0.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 +7 -0
- data/lib/aws-sdk-sagemakerruntime.rb +47 -0
- data/lib/aws-sdk-sagemakerruntime/client.rb +247 -0
- data/lib/aws-sdk-sagemakerruntime/client_api.rb +71 -0
- data/lib/aws-sdk-sagemakerruntime/customizations.rb +0 -0
- data/lib/aws-sdk-sagemakerruntime/errors.rb +14 -0
- data/lib/aws-sdk-sagemakerruntime/resource.rb +23 -0
- data/lib/aws-sdk-sagemakerruntime/types.rb +76 -0
- metadata +82 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d0c3f2c8458e9af64139e57036d472959450bf8a
|
4
|
+
data.tar.gz: 3479894be5e28187c72daa8d26bb9171221cdcc4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 450ba7ded7a8cab0dc77245043f672c54f71ed20bf7c20be4e311bbc8262e6af345b18ffc62115babfd4a363a5023e4cc07ddef51e27f0f62575320cce8b6b08
|
7
|
+
data.tar.gz: 84e706873cebc85875c918692ee4606b68d75a4691349499ca6cf29464205db6865d3c000cd99e2a5c54cf38351c8b7901c64f786d74eba755ed92c07774cda3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core'
|
9
|
+
require 'aws-sigv4'
|
10
|
+
|
11
|
+
require_relative 'aws-sdk-sagemakerruntime/types'
|
12
|
+
require_relative 'aws-sdk-sagemakerruntime/client_api'
|
13
|
+
require_relative 'aws-sdk-sagemakerruntime/client'
|
14
|
+
require_relative 'aws-sdk-sagemakerruntime/errors'
|
15
|
+
require_relative 'aws-sdk-sagemakerruntime/resource'
|
16
|
+
require_relative 'aws-sdk-sagemakerruntime/customizations'
|
17
|
+
|
18
|
+
# This module provides support for Amazon SageMaker Runtime. This module is available in the
|
19
|
+
# `aws-sdk-sagemakerruntime` gem.
|
20
|
+
#
|
21
|
+
# # Client
|
22
|
+
#
|
23
|
+
# The {Client} class provides one method for each API operation. Operation
|
24
|
+
# methods each accept a hash of request parameters and return a response
|
25
|
+
# structure.
|
26
|
+
#
|
27
|
+
# See {Client} for more information.
|
28
|
+
#
|
29
|
+
# # Errors
|
30
|
+
#
|
31
|
+
# Errors returned from Amazon SageMaker Runtime all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::SageMakerRuntime::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::SageMakerRuntime
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,247 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'seahorse/client/plugins/content_length.rb'
|
9
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
10
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
11
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
12
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
13
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
14
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
15
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
22
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
23
|
+
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
24
|
+
|
25
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakerruntime)
|
26
|
+
|
27
|
+
module Aws::SageMakerRuntime
|
28
|
+
class Client < Seahorse::Client::Base
|
29
|
+
|
30
|
+
include Aws::ClientStubs
|
31
|
+
|
32
|
+
@identifier = :sagemakerruntime
|
33
|
+
|
34
|
+
set_api(ClientApi::API)
|
35
|
+
|
36
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
37
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
38
|
+
add_plugin(Aws::Plugins::Logging)
|
39
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
40
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
41
|
+
add_plugin(Aws::Plugins::UserAgent)
|
42
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
43
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
44
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
45
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
46
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
47
|
+
add_plugin(Aws::Plugins::StubResponses)
|
48
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
50
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
51
|
+
add_plugin(Aws::Plugins::Protocols::RestJson)
|
52
|
+
|
53
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
54
|
+
# Your AWS credentials. This can be an instance of any one of the
|
55
|
+
# following classes:
|
56
|
+
#
|
57
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
58
|
+
# credentials.
|
59
|
+
#
|
60
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
61
|
+
# from an EC2 IMDS on an EC2 instance.
|
62
|
+
#
|
63
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
64
|
+
# shared file, such as `~/.aws/config`.
|
65
|
+
#
|
66
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
67
|
+
#
|
68
|
+
# When `:credentials` are not configured directly, the following
|
69
|
+
# locations will be searched for credentials:
|
70
|
+
#
|
71
|
+
# * `Aws.config[:credentials]`
|
72
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
73
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
74
|
+
# * `~/.aws/credentials`
|
75
|
+
# * `~/.aws/config`
|
76
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
77
|
+
# very aggressive. Construct and pass an instance of
|
78
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
79
|
+
# timeouts.
|
80
|
+
#
|
81
|
+
# @option options [required, String] :region
|
82
|
+
# The AWS region to connect to. The configured `:region` is
|
83
|
+
# used to determine the service `:endpoint`. When not passed,
|
84
|
+
# a default `:region` is search for in the following locations:
|
85
|
+
#
|
86
|
+
# * `Aws.config[:region]`
|
87
|
+
# * `ENV['AWS_REGION']`
|
88
|
+
# * `ENV['AMAZON_REGION']`
|
89
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
90
|
+
# * `~/.aws/credentials`
|
91
|
+
# * `~/.aws/config`
|
92
|
+
#
|
93
|
+
# @option options [String] :access_key_id
|
94
|
+
#
|
95
|
+
# @option options [Boolean] :convert_params (true)
|
96
|
+
# When `true`, an attempt is made to coerce request parameters into
|
97
|
+
# the required types.
|
98
|
+
#
|
99
|
+
# @option options [String] :endpoint
|
100
|
+
# The client endpoint is normally constructed from the `:region`
|
101
|
+
# option. You should only configure an `:endpoint` when connecting
|
102
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
103
|
+
#
|
104
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
105
|
+
# The log formatter.
|
106
|
+
#
|
107
|
+
# @option options [Symbol] :log_level (:info)
|
108
|
+
# The log level to send messages to the `:logger` at.
|
109
|
+
#
|
110
|
+
# @option options [Logger] :logger
|
111
|
+
# The Logger instance to send log messages to. If this option
|
112
|
+
# is not set, logging will be disabled.
|
113
|
+
#
|
114
|
+
# @option options [String] :profile ("default")
|
115
|
+
# Used when loading credentials from the shared credentials file
|
116
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
117
|
+
#
|
118
|
+
# @option options [Integer] :retry_limit (3)
|
119
|
+
# The maximum number of times to retry failed requests. Only
|
120
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
121
|
+
# are retried. Generally, these are throttling errors, data
|
122
|
+
# checksum errors, networking errors, timeout errors and auth
|
123
|
+
# errors from expired credentials.
|
124
|
+
#
|
125
|
+
# @option options [String] :secret_access_key
|
126
|
+
#
|
127
|
+
# @option options [String] :session_token
|
128
|
+
#
|
129
|
+
# @option options [Boolean] :stub_responses (false)
|
130
|
+
# Causes the client to return stubbed responses. By default
|
131
|
+
# fake responses are generated and returned. You can specify
|
132
|
+
# the response data to return or errors to raise by calling
|
133
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
134
|
+
#
|
135
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
136
|
+
# requests are made, and retries are disabled.
|
137
|
+
#
|
138
|
+
# @option options [Boolean] :validate_params (true)
|
139
|
+
# When `true`, request parameters are validated before
|
140
|
+
# sending the request.
|
141
|
+
#
|
142
|
+
def initialize(*args)
|
143
|
+
super
|
144
|
+
end
|
145
|
+
|
146
|
+
# @!group API Operations
|
147
|
+
|
148
|
+
# After you deploy a model into production using Amazon SageMaker
|
149
|
+
# hosting services, your client applications use this API to get
|
150
|
+
# inferences from the model hosted at the specified endpoint.
|
151
|
+
#
|
152
|
+
# For an overview of Amazon SageMaker, see [How It Works][1]
|
153
|
+
#
|
154
|
+
# Amazon SageMaker strips all POST headers except those supported by the
|
155
|
+
# API. Amazon SageMaker might add additional headers. You should not
|
156
|
+
# rely on the behavior of headers outside those enumerated in the
|
157
|
+
# request syntax.
|
158
|
+
#
|
159
|
+
#
|
160
|
+
#
|
161
|
+
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html
|
162
|
+
#
|
163
|
+
# @option params [required, String] :endpoint_name
|
164
|
+
# The name of the endpoint that you specified when you created the
|
165
|
+
# endpoint using the [CreateEndpoint][1] API.
|
166
|
+
#
|
167
|
+
#
|
168
|
+
#
|
169
|
+
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html
|
170
|
+
#
|
171
|
+
# @option params [required, String, IO] :body
|
172
|
+
# Provides input data, in the format specified in the `ContentType`
|
173
|
+
# request header. Amazon SageMaker passes all of the data in the body to
|
174
|
+
# the model.
|
175
|
+
#
|
176
|
+
# @option params [String] :content_type
|
177
|
+
# The MIME type of the input data in the request body.
|
178
|
+
#
|
179
|
+
# @option params [String] :accept
|
180
|
+
# The desired MIME type of the inference in the response.
|
181
|
+
#
|
182
|
+
# @return [Types::InvokeEndpointOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
183
|
+
#
|
184
|
+
# * {Types::InvokeEndpointOutput#body #body} => String
|
185
|
+
# * {Types::InvokeEndpointOutput#content_type #content_type} => String
|
186
|
+
# * {Types::InvokeEndpointOutput#invoked_production_variant #invoked_production_variant} => String
|
187
|
+
#
|
188
|
+
# @example Request syntax with placeholder values
|
189
|
+
#
|
190
|
+
# resp = client.invoke_endpoint({
|
191
|
+
# endpoint_name: "EndpointName", # required
|
192
|
+
# body: "data", # required
|
193
|
+
# content_type: "Header",
|
194
|
+
# accept: "Header",
|
195
|
+
# })
|
196
|
+
#
|
197
|
+
# @example Response structure
|
198
|
+
#
|
199
|
+
# resp.body #=> String
|
200
|
+
# resp.content_type #=> String
|
201
|
+
# resp.invoked_production_variant #=> String
|
202
|
+
#
|
203
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpoint AWS API Documentation
|
204
|
+
#
|
205
|
+
# @overload invoke_endpoint(params = {})
|
206
|
+
# @param [Hash] params ({})
|
207
|
+
def invoke_endpoint(params = {}, options = {})
|
208
|
+
req = build_request(:invoke_endpoint, params)
|
209
|
+
req.send_request(options)
|
210
|
+
end
|
211
|
+
|
212
|
+
# @!endgroup
|
213
|
+
|
214
|
+
# @param params ({})
|
215
|
+
# @api private
|
216
|
+
def build_request(operation_name, params = {})
|
217
|
+
handlers = @handlers.for(operation_name)
|
218
|
+
context = Seahorse::Client::RequestContext.new(
|
219
|
+
operation_name: operation_name,
|
220
|
+
operation: config.api.operation(operation_name),
|
221
|
+
client: self,
|
222
|
+
params: params,
|
223
|
+
config: config)
|
224
|
+
context[:gem_name] = 'aws-sdk-sagemakerruntime'
|
225
|
+
context[:gem_version] = '1.0.0'
|
226
|
+
Seahorse::Client::Request.new(handlers, context)
|
227
|
+
end
|
228
|
+
|
229
|
+
# @api private
|
230
|
+
# @deprecated
|
231
|
+
def waiter_names
|
232
|
+
[]
|
233
|
+
end
|
234
|
+
|
235
|
+
class << self
|
236
|
+
|
237
|
+
# @api private
|
238
|
+
attr_reader :identifier
|
239
|
+
|
240
|
+
# @api private
|
241
|
+
def errors_module
|
242
|
+
Errors
|
243
|
+
end
|
244
|
+
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::SageMakerRuntime
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
BodyBlob = Shapes::BlobShape.new(name: 'BodyBlob')
|
15
|
+
EndpointName = Shapes::StringShape.new(name: 'EndpointName')
|
16
|
+
Header = Shapes::StringShape.new(name: 'Header')
|
17
|
+
InternalFailure = Shapes::StructureShape.new(name: 'InternalFailure')
|
18
|
+
InvokeEndpointInput = Shapes::StructureShape.new(name: 'InvokeEndpointInput')
|
19
|
+
InvokeEndpointOutput = Shapes::StructureShape.new(name: 'InvokeEndpointOutput')
|
20
|
+
LogStreamArn = Shapes::StringShape.new(name: 'LogStreamArn')
|
21
|
+
Message = Shapes::StringShape.new(name: 'Message')
|
22
|
+
ModelError = Shapes::StructureShape.new(name: 'ModelError')
|
23
|
+
ServiceUnavailable = Shapes::StructureShape.new(name: 'ServiceUnavailable')
|
24
|
+
StatusCode = Shapes::IntegerShape.new(name: 'StatusCode')
|
25
|
+
ValidationError = Shapes::StructureShape.new(name: 'ValidationError')
|
26
|
+
|
27
|
+
InvokeEndpointInput.add_member(:endpoint_name, Shapes::ShapeRef.new(shape: EndpointName, required: true, location: "uri", location_name: "EndpointName"))
|
28
|
+
InvokeEndpointInput.add_member(:body, Shapes::ShapeRef.new(shape: BodyBlob, required: true, location_name: "Body"))
|
29
|
+
InvokeEndpointInput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Content-Type"))
|
30
|
+
InvokeEndpointInput.add_member(:accept, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Accept"))
|
31
|
+
InvokeEndpointInput.struct_class = Types::InvokeEndpointInput
|
32
|
+
InvokeEndpointInput[:payload] = :body
|
33
|
+
InvokeEndpointInput[:payload_member] = InvokeEndpointInput.member(:body)
|
34
|
+
|
35
|
+
InvokeEndpointOutput.add_member(:body, Shapes::ShapeRef.new(shape: BodyBlob, required: true, location_name: "Body"))
|
36
|
+
InvokeEndpointOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "Content-Type"))
|
37
|
+
InvokeEndpointOutput.add_member(:invoked_production_variant, Shapes::ShapeRef.new(shape: Header, location: "header", location_name: "x-Amzn-Invoked-Production-Variant"))
|
38
|
+
InvokeEndpointOutput.struct_class = Types::InvokeEndpointOutput
|
39
|
+
InvokeEndpointOutput[:payload] = :body
|
40
|
+
InvokeEndpointOutput[:payload_member] = InvokeEndpointOutput.member(:body)
|
41
|
+
|
42
|
+
|
43
|
+
# @api private
|
44
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
45
|
+
|
46
|
+
api.version = "2017-05-13"
|
47
|
+
|
48
|
+
api.metadata = {
|
49
|
+
"endpointPrefix" => "runtime.sagemaker",
|
50
|
+
"jsonVersion" => "1.1",
|
51
|
+
"protocol" => "rest-json",
|
52
|
+
"serviceFullName" => "Amazon SageMaker Runtime",
|
53
|
+
"signatureVersion" => "v4",
|
54
|
+
"signingName" => "sagemaker",
|
55
|
+
}
|
56
|
+
|
57
|
+
api.add_operation(:invoke_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
58
|
+
o.name = "InvokeEndpoint"
|
59
|
+
o.http_method = "POST"
|
60
|
+
o.http_request_uri = "/endpoints/{EndpointName}/invocations"
|
61
|
+
o.input = Shapes::ShapeRef.new(shape: InvokeEndpointInput)
|
62
|
+
o.output = Shapes::ShapeRef.new(shape: InvokeEndpointOutput)
|
63
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailure)
|
64
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailable)
|
65
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationError)
|
66
|
+
o.errors << Shapes::ShapeRef.new(shape: ModelError)
|
67
|
+
end)
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
end
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::SageMakerRuntime
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::SageMakerRuntime
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::SageMakerRuntime
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# @note When making an API call, you may pass InvokeEndpointInput
|
12
|
+
# data as a hash:
|
13
|
+
#
|
14
|
+
# {
|
15
|
+
# endpoint_name: "EndpointName", # required
|
16
|
+
# body: "data", # required
|
17
|
+
# content_type: "Header",
|
18
|
+
# accept: "Header",
|
19
|
+
# }
|
20
|
+
#
|
21
|
+
# @!attribute [rw] endpoint_name
|
22
|
+
# The name of the endpoint that you specified when you created the
|
23
|
+
# endpoint using the [CreateEndpoint][1] API.
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# [1]: http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html
|
28
|
+
# @return [String]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] body
|
31
|
+
# Provides input data, in the format specified in the `ContentType`
|
32
|
+
# request header. Amazon SageMaker passes all of the data in the body
|
33
|
+
# to the model.
|
34
|
+
# @return [String]
|
35
|
+
#
|
36
|
+
# @!attribute [rw] content_type
|
37
|
+
# The MIME type of the input data in the request body.
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @!attribute [rw] accept
|
41
|
+
# The desired MIME type of the inference in the response.
|
42
|
+
# @return [String]
|
43
|
+
#
|
44
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointInput AWS API Documentation
|
45
|
+
#
|
46
|
+
class InvokeEndpointInput < Struct.new(
|
47
|
+
:endpoint_name,
|
48
|
+
:body,
|
49
|
+
:content_type,
|
50
|
+
:accept)
|
51
|
+
include Aws::Structure
|
52
|
+
end
|
53
|
+
|
54
|
+
# @!attribute [rw] body
|
55
|
+
# Includes the inference provided by the model.
|
56
|
+
# @return [String]
|
57
|
+
#
|
58
|
+
# @!attribute [rw] content_type
|
59
|
+
# The MIME type of the inference returned in the response body.
|
60
|
+
# @return [String]
|
61
|
+
#
|
62
|
+
# @!attribute [rw] invoked_production_variant
|
63
|
+
# Identifies the production variant that was invoked.
|
64
|
+
# @return [String]
|
65
|
+
#
|
66
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13/InvokeEndpointOutput AWS API Documentation
|
67
|
+
#
|
68
|
+
class InvokeEndpointOutput < Struct.new(
|
69
|
+
:body,
|
70
|
+
:content_type,
|
71
|
+
:invoked_production_variant)
|
72
|
+
include Aws::Structure
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
end
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-sagemakerruntime
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sigv4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Official AWS Ruby gem for Amazon SageMaker Runtime. This gem is part
|
42
|
+
of the AWS SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-sagemakerruntime.rb
|
50
|
+
- lib/aws-sdk-sagemakerruntime/client.rb
|
51
|
+
- lib/aws-sdk-sagemakerruntime/client_api.rb
|
52
|
+
- lib/aws-sdk-sagemakerruntime/customizations.rb
|
53
|
+
- lib/aws-sdk-sagemakerruntime/errors.rb
|
54
|
+
- lib/aws-sdk-sagemakerruntime/resource.rb
|
55
|
+
- lib/aws-sdk-sagemakerruntime/types.rb
|
56
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
57
|
+
licenses:
|
58
|
+
- Apache-2.0
|
59
|
+
metadata:
|
60
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-sagemakerruntime
|
61
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-sagemakerruntime/CHANGELOG.md
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 2.5.1
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: AWS SDK for Ruby - Amazon SageMaker Runtime
|
82
|
+
test_files: []
|