aws-sdk-sagemakertrainingsessionruntime 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.
@@ -0,0 +1,482 @@
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::SageMakerTrainingSessionRuntime
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AdamParamsConfig = Shapes::StructureShape.new(name: 'AdamParamsConfig')
18
+ AdamParamsConfigBeta1Double = Shapes::FloatShape.new(name: 'AdamParamsConfigBeta1Double')
19
+ AdamParamsConfigBeta2Double = Shapes::FloatShape.new(name: 'AdamParamsConfigBeta2Double')
20
+ AdamParamsConfigEpsDouble = Shapes::FloatShape.new(name: 'AdamParamsConfigEpsDouble')
21
+ AdamParamsConfigGradClipNormDouble = Shapes::FloatShape.new(name: 'AdamParamsConfigGradClipNormDouble')
22
+ AdamParamsConfigLearningRateDouble = Shapes::FloatShape.new(name: 'AdamParamsConfigLearningRateDouble')
23
+ AdamParamsConfigLoraPlusLrRatioDouble = Shapes::FloatShape.new(name: 'AdamParamsConfigLoraPlusLrRatioDouble')
24
+ AdamParamsConfigWeightDecayDouble = Shapes::FloatShape.new(name: 'AdamParamsConfigWeightDecayDouble')
25
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
26
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
27
+ ComputeLogprobsConfig = Shapes::StructureShape.new(name: 'ComputeLogprobsConfig')
28
+ ComputeLogprobsResult = Shapes::StructureShape.new(name: 'ComputeLogprobsResult')
29
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
30
+ Datum = Shapes::StructureShape.new(name: 'Datum')
31
+ DatumList = Shapes::ListShape.new(name: 'DatumList')
32
+ Document = Shapes::DocumentShape.new(name: 'Document', document: true)
33
+ Double = Shapes::FloatShape.new(name: 'Double')
34
+ DoubleList = Shapes::ListShape.new(name: 'DoubleList')
35
+ EncodedTextChunk = Shapes::StructureShape.new(name: 'EncodedTextChunk')
36
+ EncodedTextChunkList = Shapes::ListShape.new(name: 'EncodedTextChunkList')
37
+ EncodedTextChunkType = Shapes::StringShape.new(name: 'EncodedTextChunkType')
38
+ ExecuteSamplingOperationInput = Shapes::StructureShape.new(name: 'ExecuteSamplingOperationInput')
39
+ ExecuteSamplingOperationOutput = Shapes::StructureShape.new(name: 'ExecuteSamplingOperationOutput')
40
+ ExecuteTrainingOperationInput = Shapes::StructureShape.new(name: 'ExecuteTrainingOperationInput')
41
+ ExecuteTrainingOperationOutput = Shapes::StructureShape.new(name: 'ExecuteTrainingOperationOutput')
42
+ ForwardBackwardConfig = Shapes::StructureShape.new(name: 'ForwardBackwardConfig')
43
+ ForwardBackwardResult = Shapes::StructureShape.new(name: 'ForwardBackwardResult')
44
+ ForwardConfig = Shapes::StructureShape.new(name: 'ForwardConfig')
45
+ ForwardResult = Shapes::StructureShape.new(name: 'ForwardResult')
46
+ GetSamplingOperationResultInput = Shapes::StructureShape.new(name: 'GetSamplingOperationResultInput')
47
+ GetSamplingOperationResultOutput = Shapes::StructureShape.new(name: 'GetSamplingOperationResultOutput')
48
+ GetTrainingOperationResultInput = Shapes::StructureShape.new(name: 'GetTrainingOperationResultInput')
49
+ GetTrainingOperationResultOutput = Shapes::StructureShape.new(name: 'GetTrainingOperationResultOutput')
50
+ InferenceBody = Shapes::BlobShape.new(name: 'InferenceBody')
51
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
52
+ IntegerList = Shapes::ListShape.new(name: 'IntegerList')
53
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
54
+ LoadStateConfig = Shapes::StructureShape.new(name: 'LoadStateConfig')
55
+ LoadStateResult = Shapes::StructureShape.new(name: 'LoadStateResult')
56
+ LoadWeightsForSamplingConfig = Shapes::StructureShape.new(name: 'LoadWeightsForSamplingConfig')
57
+ LoadWeightsForSamplingResult = Shapes::StructureShape.new(name: 'LoadWeightsForSamplingResult')
58
+ LossFnName = Shapes::StringShape.new(name: 'LossFnName')
59
+ MetricsMap = Shapes::MapShape.new(name: 'MetricsMap')
60
+ ModelInput = Shapes::StructureShape.new(name: 'ModelInput')
61
+ OperationConfig = Shapes::UnionShape.new(name: 'OperationConfig')
62
+ OperationId = Shapes::StringShape.new(name: 'OperationId')
63
+ OperationResult = Shapes::UnionShape.new(name: 'OperationResult')
64
+ OptimizerStepConfig = Shapes::StructureShape.new(name: 'OptimizerStepConfig')
65
+ OptimizerStepResult = Shapes::StructureShape.new(name: 'OptimizerStepResult')
66
+ RequestStatus = Shapes::StringShape.new(name: 'RequestStatus')
67
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
68
+ SampleConfig = Shapes::StructureShape.new(name: 'SampleConfig')
69
+ SampleConfigNumSamplesInteger = Shapes::IntegerShape.new(name: 'SampleConfigNumSamplesInteger')
70
+ SampleOperationConfig = Shapes::UnionShape.new(name: 'SampleOperationConfig')
71
+ SampleOperationResult = Shapes::UnionShape.new(name: 'SampleOperationResult')
72
+ SampleResponse = Shapes::StructureShape.new(name: 'SampleResponse')
73
+ SampleResponseStream = Shapes::BlobShape.new(name: 'SampleResponseStream', streaming: true)
74
+ SampleTokenUsage = Shapes::StructureShape.new(name: 'SampleTokenUsage')
75
+ SampleTrainingSessionInput = Shapes::StructureShape.new(name: 'SampleTrainingSessionInput')
76
+ SampleTrainingSessionOutput = Shapes::StructureShape.new(name: 'SampleTrainingSessionOutput')
77
+ SampleTrainingSessionWithResponseStreamInput = Shapes::StructureShape.new(name: 'SampleTrainingSessionWithResponseStreamInput')
78
+ SampleTrainingSessionWithResponseStreamOutput = Shapes::StructureShape.new(name: 'SampleTrainingSessionWithResponseStreamOutput')
79
+ SampledSequence = Shapes::StructureShape.new(name: 'SampledSequence')
80
+ SampledSequenceList = Shapes::ListShape.new(name: 'SampledSequenceList')
81
+ SamplingParams = Shapes::StructureShape.new(name: 'SamplingParams')
82
+ SamplingParamsMaxTokensInteger = Shapes::IntegerShape.new(name: 'SamplingParamsMaxTokensInteger')
83
+ SamplingParamsTemperatureDouble = Shapes::FloatShape.new(name: 'SamplingParamsTemperatureDouble')
84
+ SamplingParamsTopPDouble = Shapes::FloatShape.new(name: 'SamplingParamsTopPDouble')
85
+ SaveStateConfig = Shapes::StructureShape.new(name: 'SaveStateConfig')
86
+ SaveStateConfigDescriptionString = Shapes::StringShape.new(name: 'SaveStateConfigDescriptionString')
87
+ SaveStateResult = Shapes::StructureShape.new(name: 'SaveStateResult')
88
+ SaveWeightsConfig = Shapes::StructureShape.new(name: 'SaveWeightsConfig')
89
+ SaveWeightsConfigDescriptionString = Shapes::StringShape.new(name: 'SaveWeightsConfigDescriptionString')
90
+ SaveWeightsResult = Shapes::StructureShape.new(name: 'SaveWeightsResult')
91
+ SequenceNumber = Shapes::IntegerShape.new(name: 'SequenceNumber')
92
+ StopReason = Shapes::StringShape.new(name: 'StopReason')
93
+ StopSequenceList = Shapes::ListShape.new(name: 'StopSequenceList')
94
+ String = Shapes::StringShape.new(name: 'String')
95
+ TensorData = Shapes::StructureShape.new(name: 'TensorData')
96
+ TensorDataMap = Shapes::MapShape.new(name: 'TensorDataMap')
97
+ TensorDataMapList = Shapes::ListShape.new(name: 'TensorDataMapList')
98
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
99
+ TokenLogprob = Shapes::StructureShape.new(name: 'TokenLogprob')
100
+ TokenLogprobList = Shapes::ListShape.new(name: 'TokenLogprobList')
101
+ TopkPromptLogprobsList = Shapes::ListShape.new(name: 'TopkPromptLogprobsList')
102
+ TrainingSessionName = Shapes::StringShape.new(name: 'TrainingSessionName')
103
+ TrainingTokenUsage = Shapes::StructureShape.new(name: 'TrainingTokenUsage')
104
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
105
+
106
+ AdamParamsConfig.add_member(:learning_rate, Shapes::ShapeRef.new(shape: AdamParamsConfigLearningRateDouble, required: true, location_name: "learningRate"))
107
+ AdamParamsConfig.add_member(:beta1, Shapes::ShapeRef.new(shape: AdamParamsConfigBeta1Double, location_name: "beta1"))
108
+ AdamParamsConfig.add_member(:beta2, Shapes::ShapeRef.new(shape: AdamParamsConfigBeta2Double, location_name: "beta2"))
109
+ AdamParamsConfig.add_member(:eps, Shapes::ShapeRef.new(shape: AdamParamsConfigEpsDouble, location_name: "eps"))
110
+ AdamParamsConfig.add_member(:weight_decay, Shapes::ShapeRef.new(shape: AdamParamsConfigWeightDecayDouble, location_name: "weightDecay"))
111
+ AdamParamsConfig.add_member(:grad_clip_norm, Shapes::ShapeRef.new(shape: AdamParamsConfigGradClipNormDouble, location_name: "gradClipNorm"))
112
+ AdamParamsConfig.add_member(:lora_plus_lr_ratio, Shapes::ShapeRef.new(shape: AdamParamsConfigLoraPlusLrRatioDouble, location_name: "loraPlusLrRatio"))
113
+ AdamParamsConfig.struct_class = Types::AdamParamsConfig
114
+
115
+ ComputeLogprobsConfig.add_member(:prompt, Shapes::ShapeRef.new(shape: ModelInput, required: true, location_name: "prompt"))
116
+ ComputeLogprobsConfig.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, location_name: "modelPackageArn"))
117
+ ComputeLogprobsConfig.struct_class = Types::ComputeLogprobsConfig
118
+
119
+ ComputeLogprobsResult.add_member(:logprobs, Shapes::ShapeRef.new(shape: DoubleList, required: true, location_name: "logprobs"))
120
+ ComputeLogprobsResult.struct_class = Types::ComputeLogprobsResult
121
+
122
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
123
+ ConflictException.struct_class = Types::ConflictException
124
+
125
+ Datum.add_member(:model_input, Shapes::ShapeRef.new(shape: ModelInput, required: true, location_name: "modelInput"))
126
+ Datum.add_member(:loss_fn_inputs, Shapes::ShapeRef.new(shape: TensorDataMap, location_name: "lossFnInputs"))
127
+ Datum.struct_class = Types::Datum
128
+
129
+ DatumList.member = Shapes::ShapeRef.new(shape: Datum)
130
+
131
+ DoubleList.member = Shapes::ShapeRef.new(shape: Double)
132
+
133
+ EncodedTextChunk.add_member(:tokens, Shapes::ShapeRef.new(shape: IntegerList, required: true, location_name: "tokens"))
134
+ EncodedTextChunk.add_member(:type, Shapes::ShapeRef.new(shape: EncodedTextChunkType, required: true, location_name: "type"))
135
+ EncodedTextChunk.struct_class = Types::EncodedTextChunk
136
+
137
+ EncodedTextChunkList.member = Shapes::ShapeRef.new(shape: EncodedTextChunk)
138
+
139
+ ExecuteSamplingOperationInput.add_member(:training_session_name, Shapes::ShapeRef.new(shape: TrainingSessionName, required: true, location: "uri", location_name: "trainingSessionName"))
140
+ ExecuteSamplingOperationInput.add_member(:operation_config, Shapes::ShapeRef.new(shape: SampleOperationConfig, required: true, location_name: "operationConfig"))
141
+ ExecuteSamplingOperationInput.struct_class = Types::ExecuteSamplingOperationInput
142
+
143
+ ExecuteSamplingOperationOutput.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, required: true, location_name: "operationId"))
144
+ ExecuteSamplingOperationOutput.struct_class = Types::ExecuteSamplingOperationOutput
145
+
146
+ ExecuteTrainingOperationInput.add_member(:training_session_name, Shapes::ShapeRef.new(shape: TrainingSessionName, required: true, location: "uri", location_name: "trainingSessionName"))
147
+ ExecuteTrainingOperationInput.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, required: true, location_name: "sequenceNumber"))
148
+ ExecuteTrainingOperationInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken"))
149
+ ExecuteTrainingOperationInput.add_member(:operation_config, Shapes::ShapeRef.new(shape: OperationConfig, required: true, location_name: "operationConfig"))
150
+ ExecuteTrainingOperationInput.struct_class = Types::ExecuteTrainingOperationInput
151
+
152
+ ExecuteTrainingOperationOutput.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, required: true, location_name: "operationId"))
153
+ ExecuteTrainingOperationOutput.struct_class = Types::ExecuteTrainingOperationOutput
154
+
155
+ ForwardBackwardConfig.add_member(:loss_fn_name, Shapes::ShapeRef.new(shape: LossFnName, required: true, location_name: "lossFnName"))
156
+ ForwardBackwardConfig.add_member(:datum_list, Shapes::ShapeRef.new(shape: DatumList, required: true, location_name: "datumList"))
157
+ ForwardBackwardConfig.add_member(:loss_fn_config, Shapes::ShapeRef.new(shape: Document, location_name: "lossFnConfig"))
158
+ ForwardBackwardConfig.struct_class = Types::ForwardBackwardConfig
159
+
160
+ ForwardBackwardResult.add_member(:loss_fn_output_type, Shapes::ShapeRef.new(shape: String, location_name: "lossFnOutputType"))
161
+ ForwardBackwardResult.add_member(:loss_fn_outputs, Shapes::ShapeRef.new(shape: TensorDataMapList, location_name: "lossFnOutputs"))
162
+ ForwardBackwardResult.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricsMap, location_name: "metrics"))
163
+ ForwardBackwardResult.add_member(:token_usage, Shapes::ShapeRef.new(shape: TrainingTokenUsage, location_name: "tokenUsage"))
164
+ ForwardBackwardResult.struct_class = Types::ForwardBackwardResult
165
+
166
+ ForwardConfig.add_member(:loss_fn_name, Shapes::ShapeRef.new(shape: LossFnName, required: true, location_name: "lossFnName"))
167
+ ForwardConfig.add_member(:datum_list, Shapes::ShapeRef.new(shape: DatumList, required: true, location_name: "datumList"))
168
+ ForwardConfig.add_member(:loss_fn_config, Shapes::ShapeRef.new(shape: Document, location_name: "lossFnConfig"))
169
+ ForwardConfig.struct_class = Types::ForwardConfig
170
+
171
+ ForwardResult.add_member(:loss_fn_output_type, Shapes::ShapeRef.new(shape: String, location_name: "lossFnOutputType"))
172
+ ForwardResult.add_member(:loss_fn_outputs, Shapes::ShapeRef.new(shape: TensorDataMapList, location_name: "lossFnOutputs"))
173
+ ForwardResult.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricsMap, location_name: "metrics"))
174
+ ForwardResult.add_member(:token_usage, Shapes::ShapeRef.new(shape: TrainingTokenUsage, location_name: "tokenUsage"))
175
+ ForwardResult.struct_class = Types::ForwardResult
176
+
177
+ GetSamplingOperationResultInput.add_member(:training_session_name, Shapes::ShapeRef.new(shape: TrainingSessionName, required: true, location: "uri", location_name: "trainingSessionName"))
178
+ GetSamplingOperationResultInput.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, required: true, location: "uri", location_name: "operationId"))
179
+ GetSamplingOperationResultInput.struct_class = Types::GetSamplingOperationResultInput
180
+
181
+ GetSamplingOperationResultOutput.add_member(:status, Shapes::ShapeRef.new(shape: RequestStatus, required: true, location_name: "status"))
182
+ GetSamplingOperationResultOutput.add_member(:operation_result, Shapes::ShapeRef.new(shape: SampleOperationResult, location_name: "operationResult"))
183
+ GetSamplingOperationResultOutput.add_member(:error_details, Shapes::ShapeRef.new(shape: String, location_name: "errorDetails"))
184
+ GetSamplingOperationResultOutput.struct_class = Types::GetSamplingOperationResultOutput
185
+
186
+ GetTrainingOperationResultInput.add_member(:training_session_name, Shapes::ShapeRef.new(shape: TrainingSessionName, required: true, location: "uri", location_name: "trainingSessionName"))
187
+ GetTrainingOperationResultInput.add_member(:operation_id, Shapes::ShapeRef.new(shape: OperationId, required: true, location: "uri", location_name: "operationId"))
188
+ GetTrainingOperationResultInput.struct_class = Types::GetTrainingOperationResultInput
189
+
190
+ GetTrainingOperationResultOutput.add_member(:status, Shapes::ShapeRef.new(shape: RequestStatus, required: true, location_name: "status"))
191
+ GetTrainingOperationResultOutput.add_member(:operation_result, Shapes::ShapeRef.new(shape: OperationResult, location_name: "operationResult"))
192
+ GetTrainingOperationResultOutput.add_member(:error_details, Shapes::ShapeRef.new(shape: String, location_name: "errorDetails"))
193
+ GetTrainingOperationResultOutput.add_member(:token_usage, Shapes::ShapeRef.new(shape: TrainingTokenUsage, location_name: "tokenUsage"))
194
+ GetTrainingOperationResultOutput.struct_class = Types::GetTrainingOperationResultOutput
195
+
196
+ IntegerList.member = Shapes::ShapeRef.new(shape: Integer)
197
+
198
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
199
+ InternalServerException.struct_class = Types::InternalServerException
200
+
201
+ LoadStateConfig.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "modelPackageArn"))
202
+ LoadStateConfig.add_member(:load_optimizer, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "loadOptimizer"))
203
+ LoadStateConfig.struct_class = Types::LoadStateConfig
204
+
205
+ LoadStateResult.struct_class = Types::LoadStateResult
206
+
207
+ LoadWeightsForSamplingConfig.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "modelPackageArn"))
208
+ LoadWeightsForSamplingConfig.struct_class = Types::LoadWeightsForSamplingConfig
209
+
210
+ LoadWeightsForSamplingResult.struct_class = Types::LoadWeightsForSamplingResult
211
+
212
+ MetricsMap.key = Shapes::ShapeRef.new(shape: String)
213
+ MetricsMap.value = Shapes::ShapeRef.new(shape: Double)
214
+
215
+ ModelInput.add_member(:chunks, Shapes::ShapeRef.new(shape: EncodedTextChunkList, required: true, location_name: "chunks"))
216
+ ModelInput.struct_class = Types::ModelInput
217
+
218
+ OperationConfig.add_member(:forward, Shapes::ShapeRef.new(shape: ForwardConfig, location_name: "forward"))
219
+ OperationConfig.add_member(:forward_backward, Shapes::ShapeRef.new(shape: ForwardBackwardConfig, location_name: "forwardBackward"))
220
+ OperationConfig.add_member(:optimizer_step, Shapes::ShapeRef.new(shape: OptimizerStepConfig, location_name: "optimizerStep"))
221
+ OperationConfig.add_member(:save_weights, Shapes::ShapeRef.new(shape: SaveWeightsConfig, location_name: "saveWeights"))
222
+ OperationConfig.add_member(:save_state, Shapes::ShapeRef.new(shape: SaveStateConfig, location_name: "saveState"))
223
+ OperationConfig.add_member(:load_state, Shapes::ShapeRef.new(shape: LoadStateConfig, location_name: "loadState"))
224
+ OperationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
225
+ OperationConfig.add_member_subclass(:forward, Types::OperationConfig::Forward)
226
+ OperationConfig.add_member_subclass(:forward_backward, Types::OperationConfig::ForwardBackward)
227
+ OperationConfig.add_member_subclass(:optimizer_step, Types::OperationConfig::OptimizerStep)
228
+ OperationConfig.add_member_subclass(:save_weights, Types::OperationConfig::SaveWeights)
229
+ OperationConfig.add_member_subclass(:save_state, Types::OperationConfig::SaveState)
230
+ OperationConfig.add_member_subclass(:load_state, Types::OperationConfig::LoadState)
231
+ OperationConfig.add_member_subclass(:unknown, Types::OperationConfig::Unknown)
232
+ OperationConfig.struct_class = Types::OperationConfig
233
+
234
+ OperationResult.add_member(:forward, Shapes::ShapeRef.new(shape: ForwardResult, location_name: "forward"))
235
+ OperationResult.add_member(:forward_backward, Shapes::ShapeRef.new(shape: ForwardBackwardResult, location_name: "forwardBackward"))
236
+ OperationResult.add_member(:optimizer_step, Shapes::ShapeRef.new(shape: OptimizerStepResult, location_name: "optimizerStep"))
237
+ OperationResult.add_member(:save_weights, Shapes::ShapeRef.new(shape: SaveWeightsResult, location_name: "saveWeights"))
238
+ OperationResult.add_member(:save_state, Shapes::ShapeRef.new(shape: SaveStateResult, location_name: "saveState"))
239
+ OperationResult.add_member(:load_state, Shapes::ShapeRef.new(shape: LoadStateResult, location_name: "loadState"))
240
+ OperationResult.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
241
+ OperationResult.add_member_subclass(:forward, Types::OperationResult::Forward)
242
+ OperationResult.add_member_subclass(:forward_backward, Types::OperationResult::ForwardBackward)
243
+ OperationResult.add_member_subclass(:optimizer_step, Types::OperationResult::OptimizerStep)
244
+ OperationResult.add_member_subclass(:save_weights, Types::OperationResult::SaveWeights)
245
+ OperationResult.add_member_subclass(:save_state, Types::OperationResult::SaveState)
246
+ OperationResult.add_member_subclass(:load_state, Types::OperationResult::LoadState)
247
+ OperationResult.add_member_subclass(:unknown, Types::OperationResult::Unknown)
248
+ OperationResult.struct_class = Types::OperationResult
249
+
250
+ OptimizerStepConfig.add_member(:adam_params_config, Shapes::ShapeRef.new(shape: AdamParamsConfig, required: true, location_name: "adamParamsConfig"))
251
+ OptimizerStepConfig.struct_class = Types::OptimizerStepConfig
252
+
253
+ OptimizerStepResult.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricsMap, location_name: "metrics"))
254
+ OptimizerStepResult.struct_class = Types::OptimizerStepResult
255
+
256
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
257
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
258
+
259
+ SampleConfig.add_member(:prompt, Shapes::ShapeRef.new(shape: ModelInput, required: true, location_name: "prompt"))
260
+ SampleConfig.add_member(:num_samples, Shapes::ShapeRef.new(shape: SampleConfigNumSamplesInteger, required: true, location_name: "numSamples"))
261
+ SampleConfig.add_member(:sampling_params, Shapes::ShapeRef.new(shape: SamplingParams, required: true, location_name: "samplingParams"))
262
+ SampleConfig.add_member(:include_prompt_logprobs, Shapes::ShapeRef.new(shape: Boolean, location_name: "includePromptLogprobs"))
263
+ SampleConfig.add_member(:topk_prompt_logprobs, Shapes::ShapeRef.new(shape: Integer, location_name: "topkPromptLogprobs"))
264
+ SampleConfig.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, location_name: "modelPackageArn"))
265
+ SampleConfig.struct_class = Types::SampleConfig
266
+
267
+ SampleOperationConfig.add_member(:sample, Shapes::ShapeRef.new(shape: SampleConfig, location_name: "sample"))
268
+ SampleOperationConfig.add_member(:compute_logprobs, Shapes::ShapeRef.new(shape: ComputeLogprobsConfig, location_name: "computeLogprobs"))
269
+ SampleOperationConfig.add_member(:load_weights_for_sampling, Shapes::ShapeRef.new(shape: LoadWeightsForSamplingConfig, location_name: "loadWeightsForSampling"))
270
+ SampleOperationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
271
+ SampleOperationConfig.add_member_subclass(:sample, Types::SampleOperationConfig::Sample)
272
+ SampleOperationConfig.add_member_subclass(:compute_logprobs, Types::SampleOperationConfig::ComputeLogprobs)
273
+ SampleOperationConfig.add_member_subclass(:load_weights_for_sampling, Types::SampleOperationConfig::LoadWeightsForSampling)
274
+ SampleOperationConfig.add_member_subclass(:unknown, Types::SampleOperationConfig::Unknown)
275
+ SampleOperationConfig.struct_class = Types::SampleOperationConfig
276
+
277
+ SampleOperationResult.add_member(:sample, Shapes::ShapeRef.new(shape: SampleResponse, location_name: "sample"))
278
+ SampleOperationResult.add_member(:compute_logprobs, Shapes::ShapeRef.new(shape: ComputeLogprobsResult, location_name: "computeLogprobs"))
279
+ SampleOperationResult.add_member(:load_weights_for_sampling, Shapes::ShapeRef.new(shape: LoadWeightsForSamplingResult, location_name: "loadWeightsForSampling"))
280
+ SampleOperationResult.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
281
+ SampleOperationResult.add_member_subclass(:sample, Types::SampleOperationResult::Sample)
282
+ SampleOperationResult.add_member_subclass(:compute_logprobs, Types::SampleOperationResult::ComputeLogprobs)
283
+ SampleOperationResult.add_member_subclass(:load_weights_for_sampling, Types::SampleOperationResult::LoadWeightsForSampling)
284
+ SampleOperationResult.add_member_subclass(:unknown, Types::SampleOperationResult::Unknown)
285
+ SampleOperationResult.struct_class = Types::SampleOperationResult
286
+
287
+ SampleResponse.add_member(:sequences, Shapes::ShapeRef.new(shape: SampledSequenceList, required: true, location_name: "sequences"))
288
+ SampleResponse.add_member(:prompt_logprobs, Shapes::ShapeRef.new(shape: DoubleList, location_name: "promptLogprobs"))
289
+ SampleResponse.add_member(:topk_prompt_logprobs, Shapes::ShapeRef.new(shape: TopkPromptLogprobsList, location_name: "topkPromptLogprobs"))
290
+ SampleResponse.struct_class = Types::SampleResponse
291
+
292
+ SampleTokenUsage.add_member(:prefill, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "prefill"))
293
+ SampleTokenUsage.add_member(:decode, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "decode"))
294
+ SampleTokenUsage.struct_class = Types::SampleTokenUsage
295
+
296
+ SampleTrainingSessionInput.add_member(:training_session_name, Shapes::ShapeRef.new(shape: TrainingSessionName, required: true, location: "uri", location_name: "trainingSessionName"))
297
+ SampleTrainingSessionInput.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
298
+ SampleTrainingSessionInput.add_member(:accept, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Accept"))
299
+ SampleTrainingSessionInput.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amzn-SageMaker-Model-Package"))
300
+ SampleTrainingSessionInput.add_member(:body, Shapes::ShapeRef.new(shape: InferenceBody, location_name: "body"))
301
+ SampleTrainingSessionInput.struct_class = Types::SampleTrainingSessionInput
302
+ SampleTrainingSessionInput[:payload] = :body
303
+ SampleTrainingSessionInput[:payload_member] = SampleTrainingSessionInput.member(:body)
304
+
305
+ SampleTrainingSessionOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
306
+ SampleTrainingSessionOutput.add_member(:body, Shapes::ShapeRef.new(shape: InferenceBody, required: true, location_name: "body"))
307
+ SampleTrainingSessionOutput.struct_class = Types::SampleTrainingSessionOutput
308
+ SampleTrainingSessionOutput[:payload] = :body
309
+ SampleTrainingSessionOutput[:payload_member] = SampleTrainingSessionOutput.member(:body)
310
+
311
+ SampleTrainingSessionWithResponseStreamInput.add_member(:training_session_name, Shapes::ShapeRef.new(shape: TrainingSessionName, required: true, location: "uri", location_name: "trainingSessionName"))
312
+ SampleTrainingSessionWithResponseStreamInput.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
313
+ SampleTrainingSessionWithResponseStreamInput.add_member(:accept, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Accept"))
314
+ SampleTrainingSessionWithResponseStreamInput.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amzn-SageMaker-Model-Package"))
315
+ SampleTrainingSessionWithResponseStreamInput.add_member(:body, Shapes::ShapeRef.new(shape: InferenceBody, location_name: "body"))
316
+ SampleTrainingSessionWithResponseStreamInput.struct_class = Types::SampleTrainingSessionWithResponseStreamInput
317
+ SampleTrainingSessionWithResponseStreamInput[:payload] = :body
318
+ SampleTrainingSessionWithResponseStreamInput[:payload_member] = SampleTrainingSessionWithResponseStreamInput.member(:body)
319
+
320
+ SampleTrainingSessionWithResponseStreamOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
321
+ SampleTrainingSessionWithResponseStreamOutput.add_member(:body, Shapes::ShapeRef.new(shape: SampleResponseStream, required: true, location_name: "body"))
322
+ SampleTrainingSessionWithResponseStreamOutput.struct_class = Types::SampleTrainingSessionWithResponseStreamOutput
323
+ SampleTrainingSessionWithResponseStreamOutput[:payload] = :body
324
+ SampleTrainingSessionWithResponseStreamOutput[:payload_member] = SampleTrainingSessionWithResponseStreamOutput.member(:body)
325
+
326
+ SampledSequence.add_member(:stop_reason, Shapes::ShapeRef.new(shape: StopReason, required: true, location_name: "stopReason"))
327
+ SampledSequence.add_member(:tokens, Shapes::ShapeRef.new(shape: IntegerList, required: true, location_name: "tokens"))
328
+ SampledSequence.add_member(:logprobs, Shapes::ShapeRef.new(shape: DoubleList, location_name: "logprobs"))
329
+ SampledSequence.add_member(:token_usage, Shapes::ShapeRef.new(shape: SampleTokenUsage, location_name: "tokenUsage"))
330
+ SampledSequence.struct_class = Types::SampledSequence
331
+
332
+ SampledSequenceList.member = Shapes::ShapeRef.new(shape: SampledSequence)
333
+
334
+ SamplingParams.add_member(:max_tokens, Shapes::ShapeRef.new(shape: SamplingParamsMaxTokensInteger, required: true, location_name: "maxTokens"))
335
+ SamplingParams.add_member(:temperature, Shapes::ShapeRef.new(shape: SamplingParamsTemperatureDouble, location_name: "temperature"))
336
+ SamplingParams.add_member(:top_k, Shapes::ShapeRef.new(shape: Integer, location_name: "topK"))
337
+ SamplingParams.add_member(:top_p, Shapes::ShapeRef.new(shape: SamplingParamsTopPDouble, location_name: "topP"))
338
+ SamplingParams.add_member(:seed, Shapes::ShapeRef.new(shape: Integer, location_name: "seed"))
339
+ SamplingParams.add_member(:stop, Shapes::ShapeRef.new(shape: StopSequenceList, location_name: "stop"))
340
+ SamplingParams.struct_class = Types::SamplingParams
341
+
342
+ SaveStateConfig.add_member(:description, Shapes::ShapeRef.new(shape: SaveStateConfigDescriptionString, location_name: "description"))
343
+ SaveStateConfig.struct_class = Types::SaveStateConfig
344
+
345
+ SaveStateResult.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "modelPackageArn"))
346
+ SaveStateResult.struct_class = Types::SaveStateResult
347
+
348
+ SaveWeightsConfig.add_member(:merge_weights, Shapes::ShapeRef.new(shape: Boolean, location_name: "mergeWeights"))
349
+ SaveWeightsConfig.add_member(:description, Shapes::ShapeRef.new(shape: SaveWeightsConfigDescriptionString, location_name: "description"))
350
+ SaveWeightsConfig.struct_class = Types::SaveWeightsConfig
351
+
352
+ SaveWeightsResult.add_member(:model_package_arn, Shapes::ShapeRef.new(shape: String, location_name: "modelPackageArn"))
353
+ SaveWeightsResult.struct_class = Types::SaveWeightsResult
354
+
355
+ StopSequenceList.member = Shapes::ShapeRef.new(shape: String)
356
+
357
+ TensorData.add_member(:data, Shapes::ShapeRef.new(shape: Document, required: true, location_name: "data"))
358
+ TensorData.add_member(:dtype, Shapes::ShapeRef.new(shape: String, required: true, location_name: "dtype"))
359
+ TensorData.add_member(:shape, Shapes::ShapeRef.new(shape: IntegerList, location_name: "shape"))
360
+ TensorData.struct_class = Types::TensorData
361
+
362
+ TensorDataMap.key = Shapes::ShapeRef.new(shape: String)
363
+ TensorDataMap.value = Shapes::ShapeRef.new(shape: TensorData)
364
+
365
+ TensorDataMapList.member = Shapes::ShapeRef.new(shape: TensorDataMap)
366
+
367
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
368
+ ThrottlingException.struct_class = Types::ThrottlingException
369
+
370
+ TokenLogprob.add_member(:token_id, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "tokenId"))
371
+ TokenLogprob.add_member(:logprob, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "logprob"))
372
+ TokenLogprob.struct_class = Types::TokenLogprob
373
+
374
+ TokenLogprobList.member = Shapes::ShapeRef.new(shape: TokenLogprob)
375
+
376
+ TopkPromptLogprobsList.member = Shapes::ShapeRef.new(shape: TokenLogprobList)
377
+
378
+ TrainingTokenUsage.add_member(:training_tokens, Shapes::ShapeRef.new(shape: Integer, location_name: "trainingTokens"))
379
+ TrainingTokenUsage.struct_class = Types::TrainingTokenUsage
380
+
381
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
382
+ ValidationException.struct_class = Types::ValidationException
383
+
384
+
385
+ # @api private
386
+ API = Seahorse::Model::Api.new.tap do |api|
387
+
388
+ api.version = "2025-02-10"
389
+
390
+ api.metadata = {
391
+ "apiVersion" => "2025-02-10",
392
+ "auth" => ["aws.auth#sigv4"],
393
+ "endpointPrefix" => "training-session-runtime.sagemaker",
394
+ "protocol" => "rest-json",
395
+ "protocolSettings" => {"h2" => "optional"},
396
+ "protocols" => ["rest-json"],
397
+ "serviceFullName" => "SageMaker Training Session Runtime",
398
+ "serviceId" => "SageMakerTrainingSessionRuntime",
399
+ "signatureVersion" => "v4",
400
+ "signingName" => "sagemaker",
401
+ "uid" => "sagemakertrainingsessionruntime-2025-02-10",
402
+ }
403
+
404
+ api.add_operation(:execute_sampling_operation, Seahorse::Model::Operation.new.tap do |o|
405
+ o.name = "ExecuteSamplingOperation"
406
+ o.http_method = "POST"
407
+ o.http_request_uri = "/v1/training-sessions/{trainingSessionName}/sampling-operations"
408
+ o.input = Shapes::ShapeRef.new(shape: ExecuteSamplingOperationInput)
409
+ o.output = Shapes::ShapeRef.new(shape: ExecuteSamplingOperationOutput)
410
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
411
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
413
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
415
+ end)
416
+
417
+ api.add_operation(:execute_training_operation, Seahorse::Model::Operation.new.tap do |o|
418
+ o.name = "ExecuteTrainingOperation"
419
+ o.http_method = "POST"
420
+ o.http_request_uri = "/v1/training-sessions/{trainingSessionName}/operations"
421
+ o.input = Shapes::ShapeRef.new(shape: ExecuteTrainingOperationInput)
422
+ o.output = Shapes::ShapeRef.new(shape: ExecuteTrainingOperationOutput)
423
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
424
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
425
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
426
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
427
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
428
+ end)
429
+
430
+ api.add_operation(:get_sampling_operation_result, Seahorse::Model::Operation.new.tap do |o|
431
+ o.name = "GetSamplingOperationResult"
432
+ o.http_method = "GET"
433
+ o.http_request_uri = "/v1/training-sessions/{trainingSessionName}/sampling-operations/{operationId}"
434
+ o.input = Shapes::ShapeRef.new(shape: GetSamplingOperationResultInput)
435
+ o.output = Shapes::ShapeRef.new(shape: GetSamplingOperationResultOutput)
436
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
437
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
438
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
439
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
440
+ end)
441
+
442
+ api.add_operation(:get_training_operation_result, Seahorse::Model::Operation.new.tap do |o|
443
+ o.name = "GetTrainingOperationResult"
444
+ o.http_method = "GET"
445
+ o.http_request_uri = "/v1/training-sessions/{trainingSessionName}/operations/{operationId}"
446
+ o.input = Shapes::ShapeRef.new(shape: GetTrainingOperationResultInput)
447
+ o.output = Shapes::ShapeRef.new(shape: GetTrainingOperationResultOutput)
448
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
449
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
450
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
451
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
452
+ end)
453
+
454
+ api.add_operation(:sample_training_session, Seahorse::Model::Operation.new.tap do |o|
455
+ o.name = "SampleTrainingSession"
456
+ o.http_method = "POST"
457
+ o.http_request_uri = "/training-sessions/{trainingSessionName}/sample"
458
+ o.input = Shapes::ShapeRef.new(shape: SampleTrainingSessionInput)
459
+ o.output = Shapes::ShapeRef.new(shape: SampleTrainingSessionOutput)
460
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
461
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
462
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
463
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
464
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
465
+ end)
466
+
467
+ api.add_operation(:sample_training_session_with_response_stream, Seahorse::Model::Operation.new.tap do |o|
468
+ o.name = "SampleTrainingSessionWithResponseStream"
469
+ o.http_method = "POST"
470
+ o.http_request_uri = "/training-sessions/{trainingSessionName}/sample-with-response-stream"
471
+ o.input = Shapes::ShapeRef.new(shape: SampleTrainingSessionWithResponseStreamInput)
472
+ o.output = Shapes::ShapeRef.new(shape: SampleTrainingSessionWithResponseStreamOutput)
473
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
474
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
476
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
477
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
478
+ end)
479
+ end
480
+
481
+ end
482
+ end
@@ -0,0 +1,59 @@
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
+ module Aws::SageMakerTrainingSessionRuntime
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute use_fips
14
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
15
+ #
16
+ # @return [boolean]
17
+ #
18
+ # @!attribute endpoint
19
+ # Override the endpoint used to send this request
20
+ #
21
+ # @return [string]
22
+ #
23
+ # @!attribute region
24
+ # The AWS region used to dispatch the request.
25
+ #
26
+ # @return [string]
27
+ #
28
+ EndpointParameters = Struct.new(
29
+ :use_fips,
30
+ :endpoint,
31
+ :region,
32
+ ) do
33
+ include Aws::Structure
34
+
35
+ # @api private
36
+ class << self
37
+ PARAM_MAP = {
38
+ 'UseFIPS' => :use_fips,
39
+ 'Endpoint' => :endpoint,
40
+ 'Region' => :region,
41
+ }.freeze
42
+ end
43
+
44
+ def initialize(options = {})
45
+ self[:use_fips] = options[:use_fips]
46
+ self[:use_fips] = false if self[:use_fips].nil?
47
+ self[:endpoint] = options[:endpoint]
48
+ self[:region] = options[:region]
49
+ end
50
+
51
+ def self.create(config, options={})
52
+ new({
53
+ use_fips: config.use_fips_endpoint,
54
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
55
+ region: config.region,
56
+ }.merge(options))
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,41 @@
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
+ module Aws::SageMakerTrainingSessionRuntime
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
18
+ end
19
+ if Aws::Endpoints::Matchers.set?(parameters.region)
20
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
21
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
22
+ return Aws::Endpoints::Endpoint.new(url: "https://training-session-runtime.sagemaker.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
23
+ end
24
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://training-session-runtime.sagemaker.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false)
28
+ return Aws::Endpoints::Endpoint.new(url: "https://training-session-runtime.sagemaker.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
29
+ end
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
31
+ return Aws::Endpoints::Endpoint.new(url: "https://training-session-runtime.sagemaker-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
32
+ end
33
+ return Aws::Endpoints::Endpoint.new(url: "https://training-session-runtime.sagemaker.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
+ end
35
+ end
36
+ raise ArgumentError, "Invalid Configuration: Missing Region"
37
+ raise ArgumentError, 'No endpoint could be resolved'
38
+
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,20 @@
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::SageMakerTrainingSessionRuntime
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::SageMakerTrainingSessionRuntime::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end