aws-sdk-iot 1.94.0 → 1.95.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,542 @@
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::IoT
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::IoT::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::IoT::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::IoT::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 :accept_certificate_transfer
60
+ Aws::IoT::Endpoints::AcceptCertificateTransfer.build(context)
61
+ when :add_thing_to_billing_group
62
+ Aws::IoT::Endpoints::AddThingToBillingGroup.build(context)
63
+ when :add_thing_to_thing_group
64
+ Aws::IoT::Endpoints::AddThingToThingGroup.build(context)
65
+ when :associate_targets_with_job
66
+ Aws::IoT::Endpoints::AssociateTargetsWithJob.build(context)
67
+ when :attach_policy
68
+ Aws::IoT::Endpoints::AttachPolicy.build(context)
69
+ when :attach_principal_policy
70
+ Aws::IoT::Endpoints::AttachPrincipalPolicy.build(context)
71
+ when :attach_security_profile
72
+ Aws::IoT::Endpoints::AttachSecurityProfile.build(context)
73
+ when :attach_thing_principal
74
+ Aws::IoT::Endpoints::AttachThingPrincipal.build(context)
75
+ when :cancel_audit_mitigation_actions_task
76
+ Aws::IoT::Endpoints::CancelAuditMitigationActionsTask.build(context)
77
+ when :cancel_audit_task
78
+ Aws::IoT::Endpoints::CancelAuditTask.build(context)
79
+ when :cancel_certificate_transfer
80
+ Aws::IoT::Endpoints::CancelCertificateTransfer.build(context)
81
+ when :cancel_detect_mitigation_actions_task
82
+ Aws::IoT::Endpoints::CancelDetectMitigationActionsTask.build(context)
83
+ when :cancel_job
84
+ Aws::IoT::Endpoints::CancelJob.build(context)
85
+ when :cancel_job_execution
86
+ Aws::IoT::Endpoints::CancelJobExecution.build(context)
87
+ when :clear_default_authorizer
88
+ Aws::IoT::Endpoints::ClearDefaultAuthorizer.build(context)
89
+ when :confirm_topic_rule_destination
90
+ Aws::IoT::Endpoints::ConfirmTopicRuleDestination.build(context)
91
+ when :create_audit_suppression
92
+ Aws::IoT::Endpoints::CreateAuditSuppression.build(context)
93
+ when :create_authorizer
94
+ Aws::IoT::Endpoints::CreateAuthorizer.build(context)
95
+ when :create_billing_group
96
+ Aws::IoT::Endpoints::CreateBillingGroup.build(context)
97
+ when :create_certificate_from_csr
98
+ Aws::IoT::Endpoints::CreateCertificateFromCsr.build(context)
99
+ when :create_custom_metric
100
+ Aws::IoT::Endpoints::CreateCustomMetric.build(context)
101
+ when :create_dimension
102
+ Aws::IoT::Endpoints::CreateDimension.build(context)
103
+ when :create_domain_configuration
104
+ Aws::IoT::Endpoints::CreateDomainConfiguration.build(context)
105
+ when :create_dynamic_thing_group
106
+ Aws::IoT::Endpoints::CreateDynamicThingGroup.build(context)
107
+ when :create_fleet_metric
108
+ Aws::IoT::Endpoints::CreateFleetMetric.build(context)
109
+ when :create_job
110
+ Aws::IoT::Endpoints::CreateJob.build(context)
111
+ when :create_job_template
112
+ Aws::IoT::Endpoints::CreateJobTemplate.build(context)
113
+ when :create_keys_and_certificate
114
+ Aws::IoT::Endpoints::CreateKeysAndCertificate.build(context)
115
+ when :create_mitigation_action
116
+ Aws::IoT::Endpoints::CreateMitigationAction.build(context)
117
+ when :create_ota_update
118
+ Aws::IoT::Endpoints::CreateOTAUpdate.build(context)
119
+ when :create_policy
120
+ Aws::IoT::Endpoints::CreatePolicy.build(context)
121
+ when :create_policy_version
122
+ Aws::IoT::Endpoints::CreatePolicyVersion.build(context)
123
+ when :create_provisioning_claim
124
+ Aws::IoT::Endpoints::CreateProvisioningClaim.build(context)
125
+ when :create_provisioning_template
126
+ Aws::IoT::Endpoints::CreateProvisioningTemplate.build(context)
127
+ when :create_provisioning_template_version
128
+ Aws::IoT::Endpoints::CreateProvisioningTemplateVersion.build(context)
129
+ when :create_role_alias
130
+ Aws::IoT::Endpoints::CreateRoleAlias.build(context)
131
+ when :create_scheduled_audit
132
+ Aws::IoT::Endpoints::CreateScheduledAudit.build(context)
133
+ when :create_security_profile
134
+ Aws::IoT::Endpoints::CreateSecurityProfile.build(context)
135
+ when :create_stream
136
+ Aws::IoT::Endpoints::CreateStream.build(context)
137
+ when :create_thing
138
+ Aws::IoT::Endpoints::CreateThing.build(context)
139
+ when :create_thing_group
140
+ Aws::IoT::Endpoints::CreateThingGroup.build(context)
141
+ when :create_thing_type
142
+ Aws::IoT::Endpoints::CreateThingType.build(context)
143
+ when :create_topic_rule
144
+ Aws::IoT::Endpoints::CreateTopicRule.build(context)
145
+ when :create_topic_rule_destination
146
+ Aws::IoT::Endpoints::CreateTopicRuleDestination.build(context)
147
+ when :delete_account_audit_configuration
148
+ Aws::IoT::Endpoints::DeleteAccountAuditConfiguration.build(context)
149
+ when :delete_audit_suppression
150
+ Aws::IoT::Endpoints::DeleteAuditSuppression.build(context)
151
+ when :delete_authorizer
152
+ Aws::IoT::Endpoints::DeleteAuthorizer.build(context)
153
+ when :delete_billing_group
154
+ Aws::IoT::Endpoints::DeleteBillingGroup.build(context)
155
+ when :delete_ca_certificate
156
+ Aws::IoT::Endpoints::DeleteCACertificate.build(context)
157
+ when :delete_certificate
158
+ Aws::IoT::Endpoints::DeleteCertificate.build(context)
159
+ when :delete_custom_metric
160
+ Aws::IoT::Endpoints::DeleteCustomMetric.build(context)
161
+ when :delete_dimension
162
+ Aws::IoT::Endpoints::DeleteDimension.build(context)
163
+ when :delete_domain_configuration
164
+ Aws::IoT::Endpoints::DeleteDomainConfiguration.build(context)
165
+ when :delete_dynamic_thing_group
166
+ Aws::IoT::Endpoints::DeleteDynamicThingGroup.build(context)
167
+ when :delete_fleet_metric
168
+ Aws::IoT::Endpoints::DeleteFleetMetric.build(context)
169
+ when :delete_job
170
+ Aws::IoT::Endpoints::DeleteJob.build(context)
171
+ when :delete_job_execution
172
+ Aws::IoT::Endpoints::DeleteJobExecution.build(context)
173
+ when :delete_job_template
174
+ Aws::IoT::Endpoints::DeleteJobTemplate.build(context)
175
+ when :delete_mitigation_action
176
+ Aws::IoT::Endpoints::DeleteMitigationAction.build(context)
177
+ when :delete_ota_update
178
+ Aws::IoT::Endpoints::DeleteOTAUpdate.build(context)
179
+ when :delete_policy
180
+ Aws::IoT::Endpoints::DeletePolicy.build(context)
181
+ when :delete_policy_version
182
+ Aws::IoT::Endpoints::DeletePolicyVersion.build(context)
183
+ when :delete_provisioning_template
184
+ Aws::IoT::Endpoints::DeleteProvisioningTemplate.build(context)
185
+ when :delete_provisioning_template_version
186
+ Aws::IoT::Endpoints::DeleteProvisioningTemplateVersion.build(context)
187
+ when :delete_registration_code
188
+ Aws::IoT::Endpoints::DeleteRegistrationCode.build(context)
189
+ when :delete_role_alias
190
+ Aws::IoT::Endpoints::DeleteRoleAlias.build(context)
191
+ when :delete_scheduled_audit
192
+ Aws::IoT::Endpoints::DeleteScheduledAudit.build(context)
193
+ when :delete_security_profile
194
+ Aws::IoT::Endpoints::DeleteSecurityProfile.build(context)
195
+ when :delete_stream
196
+ Aws::IoT::Endpoints::DeleteStream.build(context)
197
+ when :delete_thing
198
+ Aws::IoT::Endpoints::DeleteThing.build(context)
199
+ when :delete_thing_group
200
+ Aws::IoT::Endpoints::DeleteThingGroup.build(context)
201
+ when :delete_thing_type
202
+ Aws::IoT::Endpoints::DeleteThingType.build(context)
203
+ when :delete_topic_rule
204
+ Aws::IoT::Endpoints::DeleteTopicRule.build(context)
205
+ when :delete_topic_rule_destination
206
+ Aws::IoT::Endpoints::DeleteTopicRuleDestination.build(context)
207
+ when :delete_v2_logging_level
208
+ Aws::IoT::Endpoints::DeleteV2LoggingLevel.build(context)
209
+ when :deprecate_thing_type
210
+ Aws::IoT::Endpoints::DeprecateThingType.build(context)
211
+ when :describe_account_audit_configuration
212
+ Aws::IoT::Endpoints::DescribeAccountAuditConfiguration.build(context)
213
+ when :describe_audit_finding
214
+ Aws::IoT::Endpoints::DescribeAuditFinding.build(context)
215
+ when :describe_audit_mitigation_actions_task
216
+ Aws::IoT::Endpoints::DescribeAuditMitigationActionsTask.build(context)
217
+ when :describe_audit_suppression
218
+ Aws::IoT::Endpoints::DescribeAuditSuppression.build(context)
219
+ when :describe_audit_task
220
+ Aws::IoT::Endpoints::DescribeAuditTask.build(context)
221
+ when :describe_authorizer
222
+ Aws::IoT::Endpoints::DescribeAuthorizer.build(context)
223
+ when :describe_billing_group
224
+ Aws::IoT::Endpoints::DescribeBillingGroup.build(context)
225
+ when :describe_ca_certificate
226
+ Aws::IoT::Endpoints::DescribeCACertificate.build(context)
227
+ when :describe_certificate
228
+ Aws::IoT::Endpoints::DescribeCertificate.build(context)
229
+ when :describe_custom_metric
230
+ Aws::IoT::Endpoints::DescribeCustomMetric.build(context)
231
+ when :describe_default_authorizer
232
+ Aws::IoT::Endpoints::DescribeDefaultAuthorizer.build(context)
233
+ when :describe_detect_mitigation_actions_task
234
+ Aws::IoT::Endpoints::DescribeDetectMitigationActionsTask.build(context)
235
+ when :describe_dimension
236
+ Aws::IoT::Endpoints::DescribeDimension.build(context)
237
+ when :describe_domain_configuration
238
+ Aws::IoT::Endpoints::DescribeDomainConfiguration.build(context)
239
+ when :describe_endpoint
240
+ Aws::IoT::Endpoints::DescribeEndpoint.build(context)
241
+ when :describe_event_configurations
242
+ Aws::IoT::Endpoints::DescribeEventConfigurations.build(context)
243
+ when :describe_fleet_metric
244
+ Aws::IoT::Endpoints::DescribeFleetMetric.build(context)
245
+ when :describe_index
246
+ Aws::IoT::Endpoints::DescribeIndex.build(context)
247
+ when :describe_job
248
+ Aws::IoT::Endpoints::DescribeJob.build(context)
249
+ when :describe_job_execution
250
+ Aws::IoT::Endpoints::DescribeJobExecution.build(context)
251
+ when :describe_job_template
252
+ Aws::IoT::Endpoints::DescribeJobTemplate.build(context)
253
+ when :describe_managed_job_template
254
+ Aws::IoT::Endpoints::DescribeManagedJobTemplate.build(context)
255
+ when :describe_mitigation_action
256
+ Aws::IoT::Endpoints::DescribeMitigationAction.build(context)
257
+ when :describe_provisioning_template
258
+ Aws::IoT::Endpoints::DescribeProvisioningTemplate.build(context)
259
+ when :describe_provisioning_template_version
260
+ Aws::IoT::Endpoints::DescribeProvisioningTemplateVersion.build(context)
261
+ when :describe_role_alias
262
+ Aws::IoT::Endpoints::DescribeRoleAlias.build(context)
263
+ when :describe_scheduled_audit
264
+ Aws::IoT::Endpoints::DescribeScheduledAudit.build(context)
265
+ when :describe_security_profile
266
+ Aws::IoT::Endpoints::DescribeSecurityProfile.build(context)
267
+ when :describe_stream
268
+ Aws::IoT::Endpoints::DescribeStream.build(context)
269
+ when :describe_thing
270
+ Aws::IoT::Endpoints::DescribeThing.build(context)
271
+ when :describe_thing_group
272
+ Aws::IoT::Endpoints::DescribeThingGroup.build(context)
273
+ when :describe_thing_registration_task
274
+ Aws::IoT::Endpoints::DescribeThingRegistrationTask.build(context)
275
+ when :describe_thing_type
276
+ Aws::IoT::Endpoints::DescribeThingType.build(context)
277
+ when :detach_policy
278
+ Aws::IoT::Endpoints::DetachPolicy.build(context)
279
+ when :detach_principal_policy
280
+ Aws::IoT::Endpoints::DetachPrincipalPolicy.build(context)
281
+ when :detach_security_profile
282
+ Aws::IoT::Endpoints::DetachSecurityProfile.build(context)
283
+ when :detach_thing_principal
284
+ Aws::IoT::Endpoints::DetachThingPrincipal.build(context)
285
+ when :disable_topic_rule
286
+ Aws::IoT::Endpoints::DisableTopicRule.build(context)
287
+ when :enable_topic_rule
288
+ Aws::IoT::Endpoints::EnableTopicRule.build(context)
289
+ when :get_behavior_model_training_summaries
290
+ Aws::IoT::Endpoints::GetBehaviorModelTrainingSummaries.build(context)
291
+ when :get_buckets_aggregation
292
+ Aws::IoT::Endpoints::GetBucketsAggregation.build(context)
293
+ when :get_cardinality
294
+ Aws::IoT::Endpoints::GetCardinality.build(context)
295
+ when :get_effective_policies
296
+ Aws::IoT::Endpoints::GetEffectivePolicies.build(context)
297
+ when :get_indexing_configuration
298
+ Aws::IoT::Endpoints::GetIndexingConfiguration.build(context)
299
+ when :get_job_document
300
+ Aws::IoT::Endpoints::GetJobDocument.build(context)
301
+ when :get_logging_options
302
+ Aws::IoT::Endpoints::GetLoggingOptions.build(context)
303
+ when :get_ota_update
304
+ Aws::IoT::Endpoints::GetOTAUpdate.build(context)
305
+ when :get_percentiles
306
+ Aws::IoT::Endpoints::GetPercentiles.build(context)
307
+ when :get_policy
308
+ Aws::IoT::Endpoints::GetPolicy.build(context)
309
+ when :get_policy_version
310
+ Aws::IoT::Endpoints::GetPolicyVersion.build(context)
311
+ when :get_registration_code
312
+ Aws::IoT::Endpoints::GetRegistrationCode.build(context)
313
+ when :get_statistics
314
+ Aws::IoT::Endpoints::GetStatistics.build(context)
315
+ when :get_topic_rule
316
+ Aws::IoT::Endpoints::GetTopicRule.build(context)
317
+ when :get_topic_rule_destination
318
+ Aws::IoT::Endpoints::GetTopicRuleDestination.build(context)
319
+ when :get_v2_logging_options
320
+ Aws::IoT::Endpoints::GetV2LoggingOptions.build(context)
321
+ when :list_active_violations
322
+ Aws::IoT::Endpoints::ListActiveViolations.build(context)
323
+ when :list_attached_policies
324
+ Aws::IoT::Endpoints::ListAttachedPolicies.build(context)
325
+ when :list_audit_findings
326
+ Aws::IoT::Endpoints::ListAuditFindings.build(context)
327
+ when :list_audit_mitigation_actions_executions
328
+ Aws::IoT::Endpoints::ListAuditMitigationActionsExecutions.build(context)
329
+ when :list_audit_mitigation_actions_tasks
330
+ Aws::IoT::Endpoints::ListAuditMitigationActionsTasks.build(context)
331
+ when :list_audit_suppressions
332
+ Aws::IoT::Endpoints::ListAuditSuppressions.build(context)
333
+ when :list_audit_tasks
334
+ Aws::IoT::Endpoints::ListAuditTasks.build(context)
335
+ when :list_authorizers
336
+ Aws::IoT::Endpoints::ListAuthorizers.build(context)
337
+ when :list_billing_groups
338
+ Aws::IoT::Endpoints::ListBillingGroups.build(context)
339
+ when :list_ca_certificates
340
+ Aws::IoT::Endpoints::ListCACertificates.build(context)
341
+ when :list_certificates
342
+ Aws::IoT::Endpoints::ListCertificates.build(context)
343
+ when :list_certificates_by_ca
344
+ Aws::IoT::Endpoints::ListCertificatesByCA.build(context)
345
+ when :list_custom_metrics
346
+ Aws::IoT::Endpoints::ListCustomMetrics.build(context)
347
+ when :list_detect_mitigation_actions_executions
348
+ Aws::IoT::Endpoints::ListDetectMitigationActionsExecutions.build(context)
349
+ when :list_detect_mitigation_actions_tasks
350
+ Aws::IoT::Endpoints::ListDetectMitigationActionsTasks.build(context)
351
+ when :list_dimensions
352
+ Aws::IoT::Endpoints::ListDimensions.build(context)
353
+ when :list_domain_configurations
354
+ Aws::IoT::Endpoints::ListDomainConfigurations.build(context)
355
+ when :list_fleet_metrics
356
+ Aws::IoT::Endpoints::ListFleetMetrics.build(context)
357
+ when :list_indices
358
+ Aws::IoT::Endpoints::ListIndices.build(context)
359
+ when :list_job_executions_for_job
360
+ Aws::IoT::Endpoints::ListJobExecutionsForJob.build(context)
361
+ when :list_job_executions_for_thing
362
+ Aws::IoT::Endpoints::ListJobExecutionsForThing.build(context)
363
+ when :list_job_templates
364
+ Aws::IoT::Endpoints::ListJobTemplates.build(context)
365
+ when :list_jobs
366
+ Aws::IoT::Endpoints::ListJobs.build(context)
367
+ when :list_managed_job_templates
368
+ Aws::IoT::Endpoints::ListManagedJobTemplates.build(context)
369
+ when :list_metric_values
370
+ Aws::IoT::Endpoints::ListMetricValues.build(context)
371
+ when :list_mitigation_actions
372
+ Aws::IoT::Endpoints::ListMitigationActions.build(context)
373
+ when :list_ota_updates
374
+ Aws::IoT::Endpoints::ListOTAUpdates.build(context)
375
+ when :list_outgoing_certificates
376
+ Aws::IoT::Endpoints::ListOutgoingCertificates.build(context)
377
+ when :list_policies
378
+ Aws::IoT::Endpoints::ListPolicies.build(context)
379
+ when :list_policy_principals
380
+ Aws::IoT::Endpoints::ListPolicyPrincipals.build(context)
381
+ when :list_policy_versions
382
+ Aws::IoT::Endpoints::ListPolicyVersions.build(context)
383
+ when :list_principal_policies
384
+ Aws::IoT::Endpoints::ListPrincipalPolicies.build(context)
385
+ when :list_principal_things
386
+ Aws::IoT::Endpoints::ListPrincipalThings.build(context)
387
+ when :list_provisioning_template_versions
388
+ Aws::IoT::Endpoints::ListProvisioningTemplateVersions.build(context)
389
+ when :list_provisioning_templates
390
+ Aws::IoT::Endpoints::ListProvisioningTemplates.build(context)
391
+ when :list_role_aliases
392
+ Aws::IoT::Endpoints::ListRoleAliases.build(context)
393
+ when :list_scheduled_audits
394
+ Aws::IoT::Endpoints::ListScheduledAudits.build(context)
395
+ when :list_security_profiles
396
+ Aws::IoT::Endpoints::ListSecurityProfiles.build(context)
397
+ when :list_security_profiles_for_target
398
+ Aws::IoT::Endpoints::ListSecurityProfilesForTarget.build(context)
399
+ when :list_streams
400
+ Aws::IoT::Endpoints::ListStreams.build(context)
401
+ when :list_tags_for_resource
402
+ Aws::IoT::Endpoints::ListTagsForResource.build(context)
403
+ when :list_targets_for_policy
404
+ Aws::IoT::Endpoints::ListTargetsForPolicy.build(context)
405
+ when :list_targets_for_security_profile
406
+ Aws::IoT::Endpoints::ListTargetsForSecurityProfile.build(context)
407
+ when :list_thing_groups
408
+ Aws::IoT::Endpoints::ListThingGroups.build(context)
409
+ when :list_thing_groups_for_thing
410
+ Aws::IoT::Endpoints::ListThingGroupsForThing.build(context)
411
+ when :list_thing_principals
412
+ Aws::IoT::Endpoints::ListThingPrincipals.build(context)
413
+ when :list_thing_registration_task_reports
414
+ Aws::IoT::Endpoints::ListThingRegistrationTaskReports.build(context)
415
+ when :list_thing_registration_tasks
416
+ Aws::IoT::Endpoints::ListThingRegistrationTasks.build(context)
417
+ when :list_thing_types
418
+ Aws::IoT::Endpoints::ListThingTypes.build(context)
419
+ when :list_things
420
+ Aws::IoT::Endpoints::ListThings.build(context)
421
+ when :list_things_in_billing_group
422
+ Aws::IoT::Endpoints::ListThingsInBillingGroup.build(context)
423
+ when :list_things_in_thing_group
424
+ Aws::IoT::Endpoints::ListThingsInThingGroup.build(context)
425
+ when :list_topic_rule_destinations
426
+ Aws::IoT::Endpoints::ListTopicRuleDestinations.build(context)
427
+ when :list_topic_rules
428
+ Aws::IoT::Endpoints::ListTopicRules.build(context)
429
+ when :list_v2_logging_levels
430
+ Aws::IoT::Endpoints::ListV2LoggingLevels.build(context)
431
+ when :list_violation_events
432
+ Aws::IoT::Endpoints::ListViolationEvents.build(context)
433
+ when :put_verification_state_on_violation
434
+ Aws::IoT::Endpoints::PutVerificationStateOnViolation.build(context)
435
+ when :register_ca_certificate
436
+ Aws::IoT::Endpoints::RegisterCACertificate.build(context)
437
+ when :register_certificate
438
+ Aws::IoT::Endpoints::RegisterCertificate.build(context)
439
+ when :register_certificate_without_ca
440
+ Aws::IoT::Endpoints::RegisterCertificateWithoutCA.build(context)
441
+ when :register_thing
442
+ Aws::IoT::Endpoints::RegisterThing.build(context)
443
+ when :reject_certificate_transfer
444
+ Aws::IoT::Endpoints::RejectCertificateTransfer.build(context)
445
+ when :remove_thing_from_billing_group
446
+ Aws::IoT::Endpoints::RemoveThingFromBillingGroup.build(context)
447
+ when :remove_thing_from_thing_group
448
+ Aws::IoT::Endpoints::RemoveThingFromThingGroup.build(context)
449
+ when :replace_topic_rule
450
+ Aws::IoT::Endpoints::ReplaceTopicRule.build(context)
451
+ when :search_index
452
+ Aws::IoT::Endpoints::SearchIndex.build(context)
453
+ when :set_default_authorizer
454
+ Aws::IoT::Endpoints::SetDefaultAuthorizer.build(context)
455
+ when :set_default_policy_version
456
+ Aws::IoT::Endpoints::SetDefaultPolicyVersion.build(context)
457
+ when :set_logging_options
458
+ Aws::IoT::Endpoints::SetLoggingOptions.build(context)
459
+ when :set_v2_logging_level
460
+ Aws::IoT::Endpoints::SetV2LoggingLevel.build(context)
461
+ when :set_v2_logging_options
462
+ Aws::IoT::Endpoints::SetV2LoggingOptions.build(context)
463
+ when :start_audit_mitigation_actions_task
464
+ Aws::IoT::Endpoints::StartAuditMitigationActionsTask.build(context)
465
+ when :start_detect_mitigation_actions_task
466
+ Aws::IoT::Endpoints::StartDetectMitigationActionsTask.build(context)
467
+ when :start_on_demand_audit_task
468
+ Aws::IoT::Endpoints::StartOnDemandAuditTask.build(context)
469
+ when :start_thing_registration_task
470
+ Aws::IoT::Endpoints::StartThingRegistrationTask.build(context)
471
+ when :stop_thing_registration_task
472
+ Aws::IoT::Endpoints::StopThingRegistrationTask.build(context)
473
+ when :tag_resource
474
+ Aws::IoT::Endpoints::TagResource.build(context)
475
+ when :test_authorization
476
+ Aws::IoT::Endpoints::TestAuthorization.build(context)
477
+ when :test_invoke_authorizer
478
+ Aws::IoT::Endpoints::TestInvokeAuthorizer.build(context)
479
+ when :transfer_certificate
480
+ Aws::IoT::Endpoints::TransferCertificate.build(context)
481
+ when :untag_resource
482
+ Aws::IoT::Endpoints::UntagResource.build(context)
483
+ when :update_account_audit_configuration
484
+ Aws::IoT::Endpoints::UpdateAccountAuditConfiguration.build(context)
485
+ when :update_audit_suppression
486
+ Aws::IoT::Endpoints::UpdateAuditSuppression.build(context)
487
+ when :update_authorizer
488
+ Aws::IoT::Endpoints::UpdateAuthorizer.build(context)
489
+ when :update_billing_group
490
+ Aws::IoT::Endpoints::UpdateBillingGroup.build(context)
491
+ when :update_ca_certificate
492
+ Aws::IoT::Endpoints::UpdateCACertificate.build(context)
493
+ when :update_certificate
494
+ Aws::IoT::Endpoints::UpdateCertificate.build(context)
495
+ when :update_custom_metric
496
+ Aws::IoT::Endpoints::UpdateCustomMetric.build(context)
497
+ when :update_dimension
498
+ Aws::IoT::Endpoints::UpdateDimension.build(context)
499
+ when :update_domain_configuration
500
+ Aws::IoT::Endpoints::UpdateDomainConfiguration.build(context)
501
+ when :update_dynamic_thing_group
502
+ Aws::IoT::Endpoints::UpdateDynamicThingGroup.build(context)
503
+ when :update_event_configurations
504
+ Aws::IoT::Endpoints::UpdateEventConfigurations.build(context)
505
+ when :update_fleet_metric
506
+ Aws::IoT::Endpoints::UpdateFleetMetric.build(context)
507
+ when :update_indexing_configuration
508
+ Aws::IoT::Endpoints::UpdateIndexingConfiguration.build(context)
509
+ when :update_job
510
+ Aws::IoT::Endpoints::UpdateJob.build(context)
511
+ when :update_mitigation_action
512
+ Aws::IoT::Endpoints::UpdateMitigationAction.build(context)
513
+ when :update_provisioning_template
514
+ Aws::IoT::Endpoints::UpdateProvisioningTemplate.build(context)
515
+ when :update_role_alias
516
+ Aws::IoT::Endpoints::UpdateRoleAlias.build(context)
517
+ when :update_scheduled_audit
518
+ Aws::IoT::Endpoints::UpdateScheduledAudit.build(context)
519
+ when :update_security_profile
520
+ Aws::IoT::Endpoints::UpdateSecurityProfile.build(context)
521
+ when :update_stream
522
+ Aws::IoT::Endpoints::UpdateStream.build(context)
523
+ when :update_thing
524
+ Aws::IoT::Endpoints::UpdateThing.build(context)
525
+ when :update_thing_group
526
+ Aws::IoT::Endpoints::UpdateThingGroup.build(context)
527
+ when :update_thing_groups_for_thing
528
+ Aws::IoT::Endpoints::UpdateThingGroupsForThing.build(context)
529
+ when :update_topic_rule_destination
530
+ Aws::IoT::Endpoints::UpdateTopicRuleDestination.build(context)
531
+ when :validate_security_profile_behaviors
532
+ Aws::IoT::Endpoints::ValidateSecurityProfileBehaviors.build(context)
533
+ end
534
+ end
535
+ end
536
+
537
+ def add_handlers(handlers, _config)
538
+ handlers.add(Handler, step: :build, priority: 75)
539
+ end
540
+ end
541
+ end
542
+ end
data/lib/aws-sdk-iot.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-iot/types'
15
15
  require_relative 'aws-sdk-iot/client_api'
16
+ require_relative 'aws-sdk-iot/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-iot/client'
17
18
  require_relative 'aws-sdk-iot/errors'
18
19
  require_relative 'aws-sdk-iot/resource'
20
+ require_relative 'aws-sdk-iot/endpoint_parameters'
21
+ require_relative 'aws-sdk-iot/endpoint_provider'
22
+ require_relative 'aws-sdk-iot/endpoints'
19
23
  require_relative 'aws-sdk-iot/customizations'
20
24
 
21
25
  # This module provides support for AWS IoT. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-iot/customizations'
48
52
  # @!group service
49
53
  module Aws::IoT
50
54
 
51
- GEM_VERSION = '1.94.0'
55
+ GEM_VERSION = '1.95.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.94.0
4
+ version: 1.95.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-08-04 00:00:00.000000000 Z
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.127.0
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.127.0
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-iot/client.rb
60
60
  - lib/aws-sdk-iot/client_api.rb
61
61
  - lib/aws-sdk-iot/customizations.rb
62
+ - lib/aws-sdk-iot/endpoint_parameters.rb
63
+ - lib/aws-sdk-iot/endpoint_provider.rb
64
+ - lib/aws-sdk-iot/endpoints.rb
62
65
  - lib/aws-sdk-iot/errors.rb
66
+ - lib/aws-sdk-iot/plugins/endpoints.rb
63
67
  - lib/aws-sdk-iot/resource.rb
64
68
  - lib/aws-sdk-iot/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby