aws-sdk-opsworkscm 1.52.0 → 1.54.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b23bd9427d690a3b0912cf1647161966c88795463b23d1d5e51b6fb9b9b2115
4
- data.tar.gz: acff0a5f76310a713f65583963155918b0882749ef9f962da24504ca1ff196f6
3
+ metadata.gz: cfc8fdbe3d5c0f9426dd9e7e005f9e7272f8c1d6031b6b7c7321195062f16692
4
+ data.tar.gz: a670a97be0af12af7c068365a707c0a15db9429508613dec5a5c92cd5beca00d
5
5
  SHA512:
6
- metadata.gz: 2299eee9ae5341fe5b29c9f3c22d3b3c7d204bff57814c169c01b4fd8c5cb3c9ad99f0b8aebd00ca6a0363a63cfb4167ea72af17172e570f3f3d406461184ddc
7
- data.tar.gz: 1b6771621a6c8b0ddfd5805b24d7f322fb36dfa1165b07676fb30036d70706b4f6e7509f68b29c773c38476ae68e4e357d227bb56192dd0e21943414169916f2
6
+ metadata.gz: f530d249ef5810094946a6e9268baf3cb8d20d0f4fc61a05651e519e880fb1ae099d35babd0563654956a062d19d6da66b99f65f214fe780dd5d72b0cc8f3606
7
+ data.tar.gz: a59cc2086accdf33d7f6b4b2f5dbb4f3480604f4423ea3ad2cc9deb5d5e4d1d053f9e040613d42c5f0be91b1fc9d8f421dfcd008c867bbbf0b22f8cd59aa287a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.54.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.53.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.52.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -330,4 +342,4 @@ Unreleased Changes
330
342
  1.0.0.rc2 (2016-12-09)
331
343
  ------------------
332
344
 
333
- * Feature - Initial release of `aws-sdk-opsworkscm`.
345
+ * Feature - Initial release of `aws-sdk-opsworkscm`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.52.0
1
+ 1.54.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:opsworkscm)
@@ -79,8 +79,9 @@ module Aws::OpsWorksCM
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::OpsWorksCM::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::OpsWorksCM
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::OpsWorksCM
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::OpsWorksCM::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::OpsWorksCM::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -1841,7 +1858,7 @@ module Aws::OpsWorksCM
1841
1858
  params: params,
1842
1859
  config: config)
1843
1860
  context[:gem_name] = 'aws-sdk-opsworkscm'
1844
- context[:gem_version] = '1.52.0'
1861
+ context[:gem_version] = '1.54.0'
1845
1862
  Seahorse::Client::Request.new(handlers, context)
1846
1863
  end
1847
1864
 
@@ -0,0 +1,66 @@
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::OpsWorksCM
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # 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.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,51 @@
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::OpsWorksCM
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://opsworks-cm-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://opsworks-cm-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://opsworks-cm.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://opsworks-cm.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, 'No endpoint could be resolved'
48
+
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,281 @@
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::OpsWorksCM
12
+ module Endpoints
13
+
14
+ class AssociateNode
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::OpsWorksCM::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateBackup
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::OpsWorksCM::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class CreateServer
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::OpsWorksCM::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DeleteBackup
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::OpsWorksCM::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DeleteServer
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::OpsWorksCM::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class DescribeAccountAttributes
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::OpsWorksCM::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class DescribeBackups
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::OpsWorksCM::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class DescribeEvents
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::OpsWorksCM::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class DescribeNodeAssociationStatus
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::OpsWorksCM::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class DescribeServers
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::OpsWorksCM::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class DisassociateNode
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::OpsWorksCM::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class ExportServerEngineAttribute
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::OpsWorksCM::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class ListTagsForResource
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::OpsWorksCM::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class RestoreServer
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::OpsWorksCM::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class StartMaintenance
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::OpsWorksCM::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class TagResource
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::OpsWorksCM::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class UntagResource
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::OpsWorksCM::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class UpdateServer
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::OpsWorksCM::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class UpdateServerEngineAttributes
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::OpsWorksCM::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ end
281
+ end
@@ -0,0 +1,106 @@
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::OpsWorksCM
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::OpsWorksCM::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::OpsWorksCM::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::OpsWorksCM::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 :associate_node
60
+ Aws::OpsWorksCM::Endpoints::AssociateNode.build(context)
61
+ when :create_backup
62
+ Aws::OpsWorksCM::Endpoints::CreateBackup.build(context)
63
+ when :create_server
64
+ Aws::OpsWorksCM::Endpoints::CreateServer.build(context)
65
+ when :delete_backup
66
+ Aws::OpsWorksCM::Endpoints::DeleteBackup.build(context)
67
+ when :delete_server
68
+ Aws::OpsWorksCM::Endpoints::DeleteServer.build(context)
69
+ when :describe_account_attributes
70
+ Aws::OpsWorksCM::Endpoints::DescribeAccountAttributes.build(context)
71
+ when :describe_backups
72
+ Aws::OpsWorksCM::Endpoints::DescribeBackups.build(context)
73
+ when :describe_events
74
+ Aws::OpsWorksCM::Endpoints::DescribeEvents.build(context)
75
+ when :describe_node_association_status
76
+ Aws::OpsWorksCM::Endpoints::DescribeNodeAssociationStatus.build(context)
77
+ when :describe_servers
78
+ Aws::OpsWorksCM::Endpoints::DescribeServers.build(context)
79
+ when :disassociate_node
80
+ Aws::OpsWorksCM::Endpoints::DisassociateNode.build(context)
81
+ when :export_server_engine_attribute
82
+ Aws::OpsWorksCM::Endpoints::ExportServerEngineAttribute.build(context)
83
+ when :list_tags_for_resource
84
+ Aws::OpsWorksCM::Endpoints::ListTagsForResource.build(context)
85
+ when :restore_server
86
+ Aws::OpsWorksCM::Endpoints::RestoreServer.build(context)
87
+ when :start_maintenance
88
+ Aws::OpsWorksCM::Endpoints::StartMaintenance.build(context)
89
+ when :tag_resource
90
+ Aws::OpsWorksCM::Endpoints::TagResource.build(context)
91
+ when :untag_resource
92
+ Aws::OpsWorksCM::Endpoints::UntagResource.build(context)
93
+ when :update_server
94
+ Aws::OpsWorksCM::Endpoints::UpdateServer.build(context)
95
+ when :update_server_engine_attributes
96
+ Aws::OpsWorksCM::Endpoints::UpdateServerEngineAttributes.build(context)
97
+ end
98
+ end
99
+ end
100
+
101
+ def add_handlers(handlers, _config)
102
+ handlers.add(Handler, step: :build, priority: 75)
103
+ end
104
+ end
105
+ end
106
+ end
@@ -42,20 +42,6 @@ module Aws::OpsWorksCM
42
42
  include Aws::Structure
43
43
  end
44
44
 
45
- # @note When making an API call, you may pass AssociateNodeRequest
46
- # data as a hash:
47
- #
48
- # {
49
- # server_name: "ServerName", # required
50
- # node_name: "NodeName", # required
51
- # engine_attributes: [ # required
52
- # {
53
- # name: "EngineAttributeName",
54
- # value: "EngineAttributeValue",
55
- # },
56
- # ],
57
- # }
58
- #
59
45
  # @!attribute [rw] server_name
60
46
  # The name of the server with which to associate the node.
61
47
  # @return [String]
@@ -255,20 +241,6 @@ module Aws::OpsWorksCM
255
241
  include Aws::Structure
256
242
  end
257
243
 
258
- # @note When making an API call, you may pass CreateBackupRequest
259
- # data as a hash:
260
- #
261
- # {
262
- # server_name: "ServerName", # required
263
- # description: "String",
264
- # tags: [
265
- # {
266
- # key: "TagKey", # required
267
- # value: "TagValue", # required
268
- # },
269
- # ],
270
- # }
271
- #
272
244
  # @!attribute [rw] server_name
273
245
  # The name of the server that you want to back up.
274
246
  # @return [String]
@@ -320,43 +292,6 @@ module Aws::OpsWorksCM
320
292
  include Aws::Structure
321
293
  end
322
294
 
323
- # @note When making an API call, you may pass CreateServerRequest
324
- # data as a hash:
325
- #
326
- # {
327
- # associate_public_ip_address: false,
328
- # custom_domain: "CustomDomain",
329
- # custom_certificate: "CustomCertificate",
330
- # custom_private_key: "CustomPrivateKey",
331
- # disable_automated_backup: false,
332
- # engine: "String", # required
333
- # engine_model: "String",
334
- # engine_version: "String",
335
- # engine_attributes: [
336
- # {
337
- # name: "EngineAttributeName",
338
- # value: "EngineAttributeValue",
339
- # },
340
- # ],
341
- # backup_retention_count: 1,
342
- # server_name: "ServerName", # required
343
- # instance_profile_arn: "InstanceProfileArn", # required
344
- # instance_type: "String", # required
345
- # key_pair: "KeyPair",
346
- # preferred_maintenance_window: "TimeWindowDefinition",
347
- # preferred_backup_window: "TimeWindowDefinition",
348
- # security_group_ids: ["String"],
349
- # service_role_arn: "ServiceRoleArn", # required
350
- # subnet_ids: ["String"],
351
- # tags: [
352
- # {
353
- # key: "TagKey", # required
354
- # value: "TagValue", # required
355
- # },
356
- # ],
357
- # backup_id: "BackupId",
358
- # }
359
- #
360
295
  # @!attribute [rw] associate_public_ip_address
361
296
  # Associate a public IP address with a server that you are launching.
362
297
  # Valid values are `true` or `false`. The default value is `true`.
@@ -636,13 +571,6 @@ module Aws::OpsWorksCM
636
571
  include Aws::Structure
637
572
  end
638
573
 
639
- # @note When making an API call, you may pass DeleteBackupRequest
640
- # data as a hash:
641
- #
642
- # {
643
- # backup_id: "BackupId", # required
644
- # }
645
- #
646
574
  # @!attribute [rw] backup_id
647
575
  # The ID of the backup to delete. Run the DescribeBackups command to
648
576
  # get a list of backup IDs. Backup IDs are in the format
@@ -661,13 +589,6 @@ module Aws::OpsWorksCM
661
589
  #
662
590
  class DeleteBackupResponse < Aws::EmptyStructure; end
663
591
 
664
- # @note When making an API call, you may pass DeleteServerRequest
665
- # data as a hash:
666
- #
667
- # {
668
- # server_name: "ServerName", # required
669
- # }
670
- #
671
592
  # @!attribute [rw] server_name
672
593
  # The ID of the server to delete.
673
594
  # @return [String]
@@ -702,16 +623,6 @@ module Aws::OpsWorksCM
702
623
  include Aws::Structure
703
624
  end
704
625
 
705
- # @note When making an API call, you may pass DescribeBackupsRequest
706
- # data as a hash:
707
- #
708
- # {
709
- # backup_id: "BackupId",
710
- # server_name: "ServerName",
711
- # next_token: "NextToken",
712
- # max_results: 1,
713
- # }
714
- #
715
626
  # @!attribute [rw] backup_id
716
627
  # Describes a single backup.
717
628
  # @return [String]
@@ -756,15 +667,6 @@ module Aws::OpsWorksCM
756
667
  include Aws::Structure
757
668
  end
758
669
 
759
- # @note When making an API call, you may pass DescribeEventsRequest
760
- # data as a hash:
761
- #
762
- # {
763
- # server_name: "ServerName", # required
764
- # next_token: "NextToken",
765
- # max_results: 1,
766
- # }
767
- #
768
670
  # @!attribute [rw] server_name
769
671
  # The name of the server for which you want to view events.
770
672
  # @return [String]
@@ -824,14 +726,6 @@ module Aws::OpsWorksCM
824
726
  include Aws::Structure
825
727
  end
826
728
 
827
- # @note When making an API call, you may pass DescribeNodeAssociationStatusRequest
828
- # data as a hash:
829
- #
830
- # {
831
- # node_association_status_token: "NodeAssociationStatusToken", # required
832
- # server_name: "ServerName", # required
833
- # }
834
- #
835
729
  # @!attribute [rw] node_association_status_token
836
730
  # The token returned in either the AssociateNodeResponse or the
837
731
  # DisassociateNodeResponse.
@@ -878,15 +772,6 @@ module Aws::OpsWorksCM
878
772
  include Aws::Structure
879
773
  end
880
774
 
881
- # @note When making an API call, you may pass DescribeServersRequest
882
- # data as a hash:
883
- #
884
- # {
885
- # server_name: "ServerName",
886
- # next_token: "NextToken",
887
- # max_results: 1,
888
- # }
889
- #
890
775
  # @!attribute [rw] server_name
891
776
  # Describes the server with the specified ServerName.
892
777
  # @return [String]
@@ -951,20 +836,6 @@ module Aws::OpsWorksCM
951
836
  include Aws::Structure
952
837
  end
953
838
 
954
- # @note When making an API call, you may pass DisassociateNodeRequest
955
- # data as a hash:
956
- #
957
- # {
958
- # server_name: "ServerName", # required
959
- # node_name: "NodeName", # required
960
- # engine_attributes: [
961
- # {
962
- # name: "EngineAttributeName",
963
- # value: "EngineAttributeValue",
964
- # },
965
- # ],
966
- # }
967
- #
968
839
  # @!attribute [rw] server_name
969
840
  # The name of the server from which to disassociate the node.
970
841
  # @return [String]
@@ -1012,14 +883,6 @@ module Aws::OpsWorksCM
1012
883
 
1013
884
  # A name and value pair that is specific to the engine of the server.
1014
885
  #
1015
- # @note When making an API call, you may pass EngineAttribute
1016
- # data as a hash:
1017
- #
1018
- # {
1019
- # name: "EngineAttributeName",
1020
- # value: "EngineAttributeValue",
1021
- # }
1022
- #
1023
886
  # @!attribute [rw] name
1024
887
  # The name of the engine attribute.
1025
888
  # @return [String]
@@ -1037,20 +900,6 @@ module Aws::OpsWorksCM
1037
900
  include Aws::Structure
1038
901
  end
1039
902
 
1040
- # @note When making an API call, you may pass ExportServerEngineAttributeRequest
1041
- # data as a hash:
1042
- #
1043
- # {
1044
- # export_attribute_name: "String", # required
1045
- # server_name: "ServerName", # required
1046
- # input_attributes: [
1047
- # {
1048
- # name: "EngineAttributeName",
1049
- # value: "EngineAttributeValue",
1050
- # },
1051
- # ],
1052
- # }
1053
- #
1054
903
  # @!attribute [rw] export_attribute_name
1055
904
  # The name of the export attribute. Currently, the supported export
1056
905
  # attribute is `Userdata`. This exports a user data script that
@@ -1159,15 +1008,6 @@ module Aws::OpsWorksCM
1159
1008
  include Aws::Structure
1160
1009
  end
1161
1010
 
1162
- # @note When making an API call, you may pass ListTagsForResourceRequest
1163
- # data as a hash:
1164
- #
1165
- # {
1166
- # resource_arn: "AWSOpsWorksCMResourceArn", # required
1167
- # next_token: "NextToken",
1168
- # max_results: 1,
1169
- # }
1170
- #
1171
1011
  # @!attribute [rw] resource_arn
1172
1012
  # The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef
1173
1013
  # Automate or AWS OpsWorks for Puppet Enterprise server for which you
@@ -1253,16 +1093,6 @@ module Aws::OpsWorksCM
1253
1093
  include Aws::Structure
1254
1094
  end
1255
1095
 
1256
- # @note When making an API call, you may pass RestoreServerRequest
1257
- # data as a hash:
1258
- #
1259
- # {
1260
- # backup_id: "BackupId", # required
1261
- # server_name: "ServerName", # required
1262
- # instance_type: "String",
1263
- # key_pair: "KeyPair",
1264
- # }
1265
- #
1266
1096
  # @!attribute [rw] backup_id
1267
1097
  # The ID of the backup that you want to use to restore a server.
1268
1098
  # @return [String]
@@ -1513,19 +1343,6 @@ module Aws::OpsWorksCM
1513
1343
  include Aws::Structure
1514
1344
  end
1515
1345
 
1516
- # @note When making an API call, you may pass StartMaintenanceRequest
1517
- # data as a hash:
1518
- #
1519
- # {
1520
- # server_name: "ServerName", # required
1521
- # engine_attributes: [
1522
- # {
1523
- # name: "EngineAttributeName",
1524
- # value: "EngineAttributeValue",
1525
- # },
1526
- # ],
1527
- # }
1528
- #
1529
1346
  # @!attribute [rw] server_name
1530
1347
  # The name of the server on which to run maintenance.
1531
1348
  # @return [String]
@@ -1576,14 +1393,6 @@ module Aws::OpsWorksCM
1576
1393
  # key and value. A maximum of 50 user-applied tags is allowed for
1577
1394
  # tag-supported AWS OpsWorks-CM resources.
1578
1395
  #
1579
- # @note When making an API call, you may pass Tag
1580
- # data as a hash:
1581
- #
1582
- # {
1583
- # key: "TagKey", # required
1584
- # value: "TagValue", # required
1585
- # }
1586
- #
1587
1396
  # @!attribute [rw] key
1588
1397
  # A tag key, such as `Stage` or `Name`. A tag key cannot be empty. The
1589
1398
  # key can be a maximum of 127 characters, and can contain only Unicode
@@ -1607,19 +1416,6 @@ module Aws::OpsWorksCM
1607
1416
  include Aws::Structure
1608
1417
  end
1609
1418
 
1610
- # @note When making an API call, you may pass TagResourceRequest
1611
- # data as a hash:
1612
- #
1613
- # {
1614
- # resource_arn: "AWSOpsWorksCMResourceArn", # required
1615
- # tags: [ # required
1616
- # {
1617
- # key: "TagKey", # required
1618
- # value: "TagValue", # required
1619
- # },
1620
- # ],
1621
- # }
1622
- #
1623
1419
  # @!attribute [rw] resource_arn
1624
1420
  # The Amazon Resource Number (ARN) of a resource to which you want to
1625
1421
  # apply tags. For example,
@@ -1660,14 +1456,6 @@ module Aws::OpsWorksCM
1660
1456
  #
1661
1457
  class TagResourceResponse < Aws::EmptyStructure; end
1662
1458
 
1663
- # @note When making an API call, you may pass UntagResourceRequest
1664
- # data as a hash:
1665
- #
1666
- # {
1667
- # resource_arn: "AWSOpsWorksCMResourceArn", # required
1668
- # tag_keys: ["TagKey"], # required
1669
- # }
1670
- #
1671
1459
  # @!attribute [rw] resource_arn
1672
1460
  # The Amazon Resource Number (ARN) of a resource from which you want
1673
1461
  # to remove tags. For example,
@@ -1691,15 +1479,6 @@ module Aws::OpsWorksCM
1691
1479
  #
1692
1480
  class UntagResourceResponse < Aws::EmptyStructure; end
1693
1481
 
1694
- # @note When making an API call, you may pass UpdateServerEngineAttributesRequest
1695
- # data as a hash:
1696
- #
1697
- # {
1698
- # server_name: "ServerName", # required
1699
- # attribute_name: "AttributeName", # required
1700
- # attribute_value: "AttributeValue",
1701
- # }
1702
- #
1703
1482
  # @!attribute [rw] server_name
1704
1483
  # The name of the server to update.
1705
1484
  # @return [String]
@@ -1734,17 +1513,6 @@ module Aws::OpsWorksCM
1734
1513
  include Aws::Structure
1735
1514
  end
1736
1515
 
1737
- # @note When making an API call, you may pass UpdateServerRequest
1738
- # data as a hash:
1739
- #
1740
- # {
1741
- # disable_automated_backup: false,
1742
- # backup_retention_count: 1,
1743
- # server_name: "ServerName", # required
1744
- # preferred_maintenance_window: "TimeWindowDefinition",
1745
- # preferred_backup_window: "TimeWindowDefinition",
1746
- # }
1747
- #
1748
1516
  # @!attribute [rw] disable_automated_backup
1749
1517
  # Setting DisableAutomatedBackup to `true` disables automated or
1750
1518
  # scheduled backups. Automated backups are enabled by default.
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-opsworkscm/types'
15
15
  require_relative 'aws-sdk-opsworkscm/client_api'
16
+ require_relative 'aws-sdk-opsworkscm/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-opsworkscm/client'
17
18
  require_relative 'aws-sdk-opsworkscm/errors'
18
19
  require_relative 'aws-sdk-opsworkscm/waiters'
19
20
  require_relative 'aws-sdk-opsworkscm/resource'
21
+ require_relative 'aws-sdk-opsworkscm/endpoint_parameters'
22
+ require_relative 'aws-sdk-opsworkscm/endpoint_provider'
23
+ require_relative 'aws-sdk-opsworkscm/endpoints'
20
24
  require_relative 'aws-sdk-opsworkscm/customizations'
21
25
 
22
26
  # This module provides support for AWS OpsWorks CM. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-opsworkscm/customizations'
49
53
  # @!group service
50
54
  module Aws::OpsWorksCM
51
55
 
52
- GEM_VERSION = '1.52.0'
56
+ GEM_VERSION = '1.54.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-opsworkscm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.52.0
4
+ version: 1.54.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-02-24 00:00:00.000000000 Z
11
+ date: 2023-01-18 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-opsworkscm/client.rb
60
60
  - lib/aws-sdk-opsworkscm/client_api.rb
61
61
  - lib/aws-sdk-opsworkscm/customizations.rb
62
+ - lib/aws-sdk-opsworkscm/endpoint_parameters.rb
63
+ - lib/aws-sdk-opsworkscm/endpoint_provider.rb
64
+ - lib/aws-sdk-opsworkscm/endpoints.rb
62
65
  - lib/aws-sdk-opsworkscm/errors.rb
66
+ - lib/aws-sdk-opsworkscm/plugins/endpoints.rb
63
67
  - lib/aws-sdk-opsworkscm/resource.rb
64
68
  - lib/aws-sdk-opsworkscm/types.rb
65
69
  - lib/aws-sdk-opsworkscm/waiters.rb