aws-sdk-ssm 1.142.0 → 1.143.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,338 @@
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::SSM
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::SSM::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::SSM::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::SSM::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 :add_tags_to_resource
60
+ Aws::SSM::Endpoints::AddTagsToResource.build(context)
61
+ when :associate_ops_item_related_item
62
+ Aws::SSM::Endpoints::AssociateOpsItemRelatedItem.build(context)
63
+ when :cancel_command
64
+ Aws::SSM::Endpoints::CancelCommand.build(context)
65
+ when :cancel_maintenance_window_execution
66
+ Aws::SSM::Endpoints::CancelMaintenanceWindowExecution.build(context)
67
+ when :create_activation
68
+ Aws::SSM::Endpoints::CreateActivation.build(context)
69
+ when :create_association
70
+ Aws::SSM::Endpoints::CreateAssociation.build(context)
71
+ when :create_association_batch
72
+ Aws::SSM::Endpoints::CreateAssociationBatch.build(context)
73
+ when :create_document
74
+ Aws::SSM::Endpoints::CreateDocument.build(context)
75
+ when :create_maintenance_window
76
+ Aws::SSM::Endpoints::CreateMaintenanceWindow.build(context)
77
+ when :create_ops_item
78
+ Aws::SSM::Endpoints::CreateOpsItem.build(context)
79
+ when :create_ops_metadata
80
+ Aws::SSM::Endpoints::CreateOpsMetadata.build(context)
81
+ when :create_patch_baseline
82
+ Aws::SSM::Endpoints::CreatePatchBaseline.build(context)
83
+ when :create_resource_data_sync
84
+ Aws::SSM::Endpoints::CreateResourceDataSync.build(context)
85
+ when :delete_activation
86
+ Aws::SSM::Endpoints::DeleteActivation.build(context)
87
+ when :delete_association
88
+ Aws::SSM::Endpoints::DeleteAssociation.build(context)
89
+ when :delete_document
90
+ Aws::SSM::Endpoints::DeleteDocument.build(context)
91
+ when :delete_inventory
92
+ Aws::SSM::Endpoints::DeleteInventory.build(context)
93
+ when :delete_maintenance_window
94
+ Aws::SSM::Endpoints::DeleteMaintenanceWindow.build(context)
95
+ when :delete_ops_metadata
96
+ Aws::SSM::Endpoints::DeleteOpsMetadata.build(context)
97
+ when :delete_parameter
98
+ Aws::SSM::Endpoints::DeleteParameter.build(context)
99
+ when :delete_parameters
100
+ Aws::SSM::Endpoints::DeleteParameters.build(context)
101
+ when :delete_patch_baseline
102
+ Aws::SSM::Endpoints::DeletePatchBaseline.build(context)
103
+ when :delete_resource_data_sync
104
+ Aws::SSM::Endpoints::DeleteResourceDataSync.build(context)
105
+ when :deregister_managed_instance
106
+ Aws::SSM::Endpoints::DeregisterManagedInstance.build(context)
107
+ when :deregister_patch_baseline_for_patch_group
108
+ Aws::SSM::Endpoints::DeregisterPatchBaselineForPatchGroup.build(context)
109
+ when :deregister_target_from_maintenance_window
110
+ Aws::SSM::Endpoints::DeregisterTargetFromMaintenanceWindow.build(context)
111
+ when :deregister_task_from_maintenance_window
112
+ Aws::SSM::Endpoints::DeregisterTaskFromMaintenanceWindow.build(context)
113
+ when :describe_activations
114
+ Aws::SSM::Endpoints::DescribeActivations.build(context)
115
+ when :describe_association
116
+ Aws::SSM::Endpoints::DescribeAssociation.build(context)
117
+ when :describe_association_execution_targets
118
+ Aws::SSM::Endpoints::DescribeAssociationExecutionTargets.build(context)
119
+ when :describe_association_executions
120
+ Aws::SSM::Endpoints::DescribeAssociationExecutions.build(context)
121
+ when :describe_automation_executions
122
+ Aws::SSM::Endpoints::DescribeAutomationExecutions.build(context)
123
+ when :describe_automation_step_executions
124
+ Aws::SSM::Endpoints::DescribeAutomationStepExecutions.build(context)
125
+ when :describe_available_patches
126
+ Aws::SSM::Endpoints::DescribeAvailablePatches.build(context)
127
+ when :describe_document
128
+ Aws::SSM::Endpoints::DescribeDocument.build(context)
129
+ when :describe_document_permission
130
+ Aws::SSM::Endpoints::DescribeDocumentPermission.build(context)
131
+ when :describe_effective_instance_associations
132
+ Aws::SSM::Endpoints::DescribeEffectiveInstanceAssociations.build(context)
133
+ when :describe_effective_patches_for_patch_baseline
134
+ Aws::SSM::Endpoints::DescribeEffectivePatchesForPatchBaseline.build(context)
135
+ when :describe_instance_associations_status
136
+ Aws::SSM::Endpoints::DescribeInstanceAssociationsStatus.build(context)
137
+ when :describe_instance_information
138
+ Aws::SSM::Endpoints::DescribeInstanceInformation.build(context)
139
+ when :describe_instance_patch_states
140
+ Aws::SSM::Endpoints::DescribeInstancePatchStates.build(context)
141
+ when :describe_instance_patch_states_for_patch_group
142
+ Aws::SSM::Endpoints::DescribeInstancePatchStatesForPatchGroup.build(context)
143
+ when :describe_instance_patches
144
+ Aws::SSM::Endpoints::DescribeInstancePatches.build(context)
145
+ when :describe_inventory_deletions
146
+ Aws::SSM::Endpoints::DescribeInventoryDeletions.build(context)
147
+ when :describe_maintenance_window_execution_task_invocations
148
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowExecutionTaskInvocations.build(context)
149
+ when :describe_maintenance_window_execution_tasks
150
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowExecutionTasks.build(context)
151
+ when :describe_maintenance_window_executions
152
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowExecutions.build(context)
153
+ when :describe_maintenance_window_schedule
154
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowSchedule.build(context)
155
+ when :describe_maintenance_window_targets
156
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowTargets.build(context)
157
+ when :describe_maintenance_window_tasks
158
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowTasks.build(context)
159
+ when :describe_maintenance_windows
160
+ Aws::SSM::Endpoints::DescribeMaintenanceWindows.build(context)
161
+ when :describe_maintenance_windows_for_target
162
+ Aws::SSM::Endpoints::DescribeMaintenanceWindowsForTarget.build(context)
163
+ when :describe_ops_items
164
+ Aws::SSM::Endpoints::DescribeOpsItems.build(context)
165
+ when :describe_parameters
166
+ Aws::SSM::Endpoints::DescribeParameters.build(context)
167
+ when :describe_patch_baselines
168
+ Aws::SSM::Endpoints::DescribePatchBaselines.build(context)
169
+ when :describe_patch_group_state
170
+ Aws::SSM::Endpoints::DescribePatchGroupState.build(context)
171
+ when :describe_patch_groups
172
+ Aws::SSM::Endpoints::DescribePatchGroups.build(context)
173
+ when :describe_patch_properties
174
+ Aws::SSM::Endpoints::DescribePatchProperties.build(context)
175
+ when :describe_sessions
176
+ Aws::SSM::Endpoints::DescribeSessions.build(context)
177
+ when :disassociate_ops_item_related_item
178
+ Aws::SSM::Endpoints::DisassociateOpsItemRelatedItem.build(context)
179
+ when :get_automation_execution
180
+ Aws::SSM::Endpoints::GetAutomationExecution.build(context)
181
+ when :get_calendar_state
182
+ Aws::SSM::Endpoints::GetCalendarState.build(context)
183
+ when :get_command_invocation
184
+ Aws::SSM::Endpoints::GetCommandInvocation.build(context)
185
+ when :get_connection_status
186
+ Aws::SSM::Endpoints::GetConnectionStatus.build(context)
187
+ when :get_default_patch_baseline
188
+ Aws::SSM::Endpoints::GetDefaultPatchBaseline.build(context)
189
+ when :get_deployable_patch_snapshot_for_instance
190
+ Aws::SSM::Endpoints::GetDeployablePatchSnapshotForInstance.build(context)
191
+ when :get_document
192
+ Aws::SSM::Endpoints::GetDocument.build(context)
193
+ when :get_inventory
194
+ Aws::SSM::Endpoints::GetInventory.build(context)
195
+ when :get_inventory_schema
196
+ Aws::SSM::Endpoints::GetInventorySchema.build(context)
197
+ when :get_maintenance_window
198
+ Aws::SSM::Endpoints::GetMaintenanceWindow.build(context)
199
+ when :get_maintenance_window_execution
200
+ Aws::SSM::Endpoints::GetMaintenanceWindowExecution.build(context)
201
+ when :get_maintenance_window_execution_task
202
+ Aws::SSM::Endpoints::GetMaintenanceWindowExecutionTask.build(context)
203
+ when :get_maintenance_window_execution_task_invocation
204
+ Aws::SSM::Endpoints::GetMaintenanceWindowExecutionTaskInvocation.build(context)
205
+ when :get_maintenance_window_task
206
+ Aws::SSM::Endpoints::GetMaintenanceWindowTask.build(context)
207
+ when :get_ops_item
208
+ Aws::SSM::Endpoints::GetOpsItem.build(context)
209
+ when :get_ops_metadata
210
+ Aws::SSM::Endpoints::GetOpsMetadata.build(context)
211
+ when :get_ops_summary
212
+ Aws::SSM::Endpoints::GetOpsSummary.build(context)
213
+ when :get_parameter
214
+ Aws::SSM::Endpoints::GetParameter.build(context)
215
+ when :get_parameter_history
216
+ Aws::SSM::Endpoints::GetParameterHistory.build(context)
217
+ when :get_parameters
218
+ Aws::SSM::Endpoints::GetParameters.build(context)
219
+ when :get_parameters_by_path
220
+ Aws::SSM::Endpoints::GetParametersByPath.build(context)
221
+ when :get_patch_baseline
222
+ Aws::SSM::Endpoints::GetPatchBaseline.build(context)
223
+ when :get_patch_baseline_for_patch_group
224
+ Aws::SSM::Endpoints::GetPatchBaselineForPatchGroup.build(context)
225
+ when :get_service_setting
226
+ Aws::SSM::Endpoints::GetServiceSetting.build(context)
227
+ when :label_parameter_version
228
+ Aws::SSM::Endpoints::LabelParameterVersion.build(context)
229
+ when :list_association_versions
230
+ Aws::SSM::Endpoints::ListAssociationVersions.build(context)
231
+ when :list_associations
232
+ Aws::SSM::Endpoints::ListAssociations.build(context)
233
+ when :list_command_invocations
234
+ Aws::SSM::Endpoints::ListCommandInvocations.build(context)
235
+ when :list_commands
236
+ Aws::SSM::Endpoints::ListCommands.build(context)
237
+ when :list_compliance_items
238
+ Aws::SSM::Endpoints::ListComplianceItems.build(context)
239
+ when :list_compliance_summaries
240
+ Aws::SSM::Endpoints::ListComplianceSummaries.build(context)
241
+ when :list_document_metadata_history
242
+ Aws::SSM::Endpoints::ListDocumentMetadataHistory.build(context)
243
+ when :list_document_versions
244
+ Aws::SSM::Endpoints::ListDocumentVersions.build(context)
245
+ when :list_documents
246
+ Aws::SSM::Endpoints::ListDocuments.build(context)
247
+ when :list_inventory_entries
248
+ Aws::SSM::Endpoints::ListInventoryEntries.build(context)
249
+ when :list_ops_item_events
250
+ Aws::SSM::Endpoints::ListOpsItemEvents.build(context)
251
+ when :list_ops_item_related_items
252
+ Aws::SSM::Endpoints::ListOpsItemRelatedItems.build(context)
253
+ when :list_ops_metadata
254
+ Aws::SSM::Endpoints::ListOpsMetadata.build(context)
255
+ when :list_resource_compliance_summaries
256
+ Aws::SSM::Endpoints::ListResourceComplianceSummaries.build(context)
257
+ when :list_resource_data_sync
258
+ Aws::SSM::Endpoints::ListResourceDataSync.build(context)
259
+ when :list_tags_for_resource
260
+ Aws::SSM::Endpoints::ListTagsForResource.build(context)
261
+ when :modify_document_permission
262
+ Aws::SSM::Endpoints::ModifyDocumentPermission.build(context)
263
+ when :put_compliance_items
264
+ Aws::SSM::Endpoints::PutComplianceItems.build(context)
265
+ when :put_inventory
266
+ Aws::SSM::Endpoints::PutInventory.build(context)
267
+ when :put_parameter
268
+ Aws::SSM::Endpoints::PutParameter.build(context)
269
+ when :register_default_patch_baseline
270
+ Aws::SSM::Endpoints::RegisterDefaultPatchBaseline.build(context)
271
+ when :register_patch_baseline_for_patch_group
272
+ Aws::SSM::Endpoints::RegisterPatchBaselineForPatchGroup.build(context)
273
+ when :register_target_with_maintenance_window
274
+ Aws::SSM::Endpoints::RegisterTargetWithMaintenanceWindow.build(context)
275
+ when :register_task_with_maintenance_window
276
+ Aws::SSM::Endpoints::RegisterTaskWithMaintenanceWindow.build(context)
277
+ when :remove_tags_from_resource
278
+ Aws::SSM::Endpoints::RemoveTagsFromResource.build(context)
279
+ when :reset_service_setting
280
+ Aws::SSM::Endpoints::ResetServiceSetting.build(context)
281
+ when :resume_session
282
+ Aws::SSM::Endpoints::ResumeSession.build(context)
283
+ when :send_automation_signal
284
+ Aws::SSM::Endpoints::SendAutomationSignal.build(context)
285
+ when :send_command
286
+ Aws::SSM::Endpoints::SendCommand.build(context)
287
+ when :start_associations_once
288
+ Aws::SSM::Endpoints::StartAssociationsOnce.build(context)
289
+ when :start_automation_execution
290
+ Aws::SSM::Endpoints::StartAutomationExecution.build(context)
291
+ when :start_change_request_execution
292
+ Aws::SSM::Endpoints::StartChangeRequestExecution.build(context)
293
+ when :start_session
294
+ Aws::SSM::Endpoints::StartSession.build(context)
295
+ when :stop_automation_execution
296
+ Aws::SSM::Endpoints::StopAutomationExecution.build(context)
297
+ when :terminate_session
298
+ Aws::SSM::Endpoints::TerminateSession.build(context)
299
+ when :unlabel_parameter_version
300
+ Aws::SSM::Endpoints::UnlabelParameterVersion.build(context)
301
+ when :update_association
302
+ Aws::SSM::Endpoints::UpdateAssociation.build(context)
303
+ when :update_association_status
304
+ Aws::SSM::Endpoints::UpdateAssociationStatus.build(context)
305
+ when :update_document
306
+ Aws::SSM::Endpoints::UpdateDocument.build(context)
307
+ when :update_document_default_version
308
+ Aws::SSM::Endpoints::UpdateDocumentDefaultVersion.build(context)
309
+ when :update_document_metadata
310
+ Aws::SSM::Endpoints::UpdateDocumentMetadata.build(context)
311
+ when :update_maintenance_window
312
+ Aws::SSM::Endpoints::UpdateMaintenanceWindow.build(context)
313
+ when :update_maintenance_window_target
314
+ Aws::SSM::Endpoints::UpdateMaintenanceWindowTarget.build(context)
315
+ when :update_maintenance_window_task
316
+ Aws::SSM::Endpoints::UpdateMaintenanceWindowTask.build(context)
317
+ when :update_managed_instance_role
318
+ Aws::SSM::Endpoints::UpdateManagedInstanceRole.build(context)
319
+ when :update_ops_item
320
+ Aws::SSM::Endpoints::UpdateOpsItem.build(context)
321
+ when :update_ops_metadata
322
+ Aws::SSM::Endpoints::UpdateOpsMetadata.build(context)
323
+ when :update_patch_baseline
324
+ Aws::SSM::Endpoints::UpdatePatchBaseline.build(context)
325
+ when :update_resource_data_sync
326
+ Aws::SSM::Endpoints::UpdateResourceDataSync.build(context)
327
+ when :update_service_setting
328
+ Aws::SSM::Endpoints::UpdateServiceSetting.build(context)
329
+ end
330
+ end
331
+ end
332
+
333
+ def add_handlers(handlers, _config)
334
+ handlers.add(Handler, step: :build, priority: 75)
335
+ end
336
+ end
337
+ end
338
+ end
data/lib/aws-sdk-ssm.rb CHANGED
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-ssm/types'
15
15
  require_relative 'aws-sdk-ssm/client_api'
16
+ require_relative 'aws-sdk-ssm/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-ssm/client'
17
18
  require_relative 'aws-sdk-ssm/errors'
18
19
  require_relative 'aws-sdk-ssm/waiters'
19
20
  require_relative 'aws-sdk-ssm/resource'
21
+ require_relative 'aws-sdk-ssm/endpoint_parameters'
22
+ require_relative 'aws-sdk-ssm/endpoint_provider'
23
+ require_relative 'aws-sdk-ssm/endpoints'
20
24
  require_relative 'aws-sdk-ssm/customizations'
21
25
 
22
26
  # This module provides support for Amazon Simple Systems Manager (SSM). This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-ssm/customizations'
49
53
  # @!group service
50
54
  module Aws::SSM
51
55
 
52
- GEM_VERSION = '1.142.0'
56
+ GEM_VERSION = '1.143.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ssm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.142.0
4
+ version: 1.143.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-10-13 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-ssm/client.rb
60
60
  - lib/aws-sdk-ssm/client_api.rb
61
61
  - lib/aws-sdk-ssm/customizations.rb
62
+ - lib/aws-sdk-ssm/endpoint_parameters.rb
63
+ - lib/aws-sdk-ssm/endpoint_provider.rb
64
+ - lib/aws-sdk-ssm/endpoints.rb
62
65
  - lib/aws-sdk-ssm/errors.rb
66
+ - lib/aws-sdk-ssm/plugins/endpoints.rb
63
67
  - lib/aws-sdk-ssm/resource.rb
64
68
  - lib/aws-sdk-ssm/types.rb
65
69
  - lib/aws-sdk-ssm/waiters.rb