aws-sdk-opsworkscm 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7375ff3b8aa48778cb047037618f3d627067d528
4
- data.tar.gz: 09c13eeca64172176a03cd302cde350911e8e5ed
3
+ metadata.gz: cdd69af03f125389ca80048e23bea8ebc977fe60
4
+ data.tar.gz: 914f2b72a9939b0d3ef29535f0f7d566b11715cf
5
5
  SHA512:
6
- metadata.gz: 318e25964d9ea2b5e453dce020a87fd273af629a3bfe050f03f58149e6eab01d47cdaea2430b8f35847888152e62193bf73ca237cfe622d975df31054a9fedb2
7
- data.tar.gz: 2d866dfd13511176b1f5482212c6cc5fda03277b59b9d323290cae1b799dce72b253c8d0173ab55e5e5b47deb6187b8b80fc669da01697f463316baf7eefc8c2
6
+ metadata.gz: 17124c7132a4293ff203b74f73215492b0fc56a047da8bf3431f09e4759adf795be73bf3103d8693f66bd0cbd4dbf6c05efad5f7c5b16ff6d12667ccec6ef5b8
7
+ data.tar.gz: aed44649adbf83757bd57a1815868503ff73c78815b5b0b1c8f1d2a1478757fe0cc52d593476ebbc0231755dff3a21ccb40187e1236b9714b91da9e9aec8955f
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-opsworkscm/customizations'
42
42
  # @service
43
43
  module Aws::OpsWorksCM
44
44
 
45
- GEM_VERSION = '1.0.0.rc2'
45
+ GEM_VERSION = '1.0.0.rc3'
46
46
 
47
47
  end
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -23,1004 +23,1224 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
23
23
 
24
24
  Aws::Plugins::GlobalConfiguration.add_identifier(:opsworkscm)
25
25
 
26
- module Aws
27
- module OpsWorksCM
28
- class Client < Seahorse::Client::Base
26
+ module Aws::OpsWorksCM
27
+ class Client < Seahorse::Client::Base
29
28
 
30
- include Aws::ClientStubs
29
+ include Aws::ClientStubs
31
30
 
32
- @identifier = :opsworkscm
31
+ @identifier = :opsworkscm
33
32
 
34
- set_api(ClientApi::API)
33
+ set_api(ClientApi::API)
35
34
 
36
- add_plugin(Seahorse::Client::Plugins::ContentLength)
37
- add_plugin(Aws::Plugins::CredentialsConfiguration)
38
- add_plugin(Aws::Plugins::Logging)
39
- add_plugin(Aws::Plugins::ParamConverter)
40
- add_plugin(Aws::Plugins::ParamValidator)
41
- add_plugin(Aws::Plugins::UserAgent)
42
- add_plugin(Aws::Plugins::HelpfulSocketErrors)
43
- add_plugin(Aws::Plugins::RetryErrors)
44
- add_plugin(Aws::Plugins::GlobalConfiguration)
45
- add_plugin(Aws::Plugins::RegionalEndpoint)
46
- add_plugin(Aws::Plugins::ResponsePaging)
47
- add_plugin(Aws::Plugins::StubResponses)
48
- add_plugin(Aws::Plugins::IdempotencyToken)
49
- add_plugin(Aws::Plugins::SignatureV4)
50
- add_plugin(Aws::Plugins::Protocols::JsonRpc)
35
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
36
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
37
+ add_plugin(Aws::Plugins::Logging)
38
+ add_plugin(Aws::Plugins::ParamConverter)
39
+ add_plugin(Aws::Plugins::ParamValidator)
40
+ add_plugin(Aws::Plugins::UserAgent)
41
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
42
+ add_plugin(Aws::Plugins::RetryErrors)
43
+ add_plugin(Aws::Plugins::GlobalConfiguration)
44
+ add_plugin(Aws::Plugins::RegionalEndpoint)
45
+ add_plugin(Aws::Plugins::ResponsePaging)
46
+ add_plugin(Aws::Plugins::StubResponses)
47
+ add_plugin(Aws::Plugins::IdempotencyToken)
48
+ add_plugin(Aws::Plugins::SignatureV4)
49
+ add_plugin(Aws::Plugins::Protocols::JsonRpc)
51
50
 
52
- # @option options [required, Aws::CredentialProvider] :credentials
53
- # Your AWS credentials. This can be an instance of any one of the
54
- # following classes:
55
- #
56
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
57
- # credentials.
58
- #
59
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
60
- # from an EC2 IMDS on an EC2 instance.
61
- #
62
- # * `Aws::SharedCredentials` - Used for loading credentials from a
63
- # shared file, such as `~/.aws/config`.
64
- #
65
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
66
- #
67
- # When `:credentials` are not configured directly, the following
68
- # locations will be searched for credentials:
69
- #
70
- # * `Aws.config[:credentials]`
71
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
72
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
73
- # * `~/.aws/credentials`
74
- # * `~/.aws/config`
75
- # * EC2 IMDS instance profile - When used by default, the timeouts are
76
- # very aggressive. Construct and pass an instance of
77
- # `Aws::InstanceProfileCredentails` to enable retries and extended
78
- # timeouts.
79
- # @option options [required, String] :region
80
- # The AWS region to connect to. The configured `:region` is
81
- # used to determine the service `:endpoint`. When not passed,
82
- # a default `:region` is search for in the following locations:
83
- #
84
- # * `Aws.config[:region]`
85
- # * `ENV['AWS_REGION']`
86
- # * `ENV['AMAZON_REGION']`
87
- # * `ENV['AWS_DEFAULT_REGION']`
88
- # * `~/.aws/credentials`
89
- # * `~/.aws/config`
90
- # @option options [String] :access_key_id
91
- # @option options [Boolean] :convert_params (true)
92
- # When `true`, an attempt is made to coerce request parameters into
93
- # the required types.
94
- # @option options [String] :endpoint
95
- # The client endpoint is normally constructed from the `:region`
96
- # option. You should only configure an `:endpoint` when connecting
97
- # to test endpoints. This should be avalid HTTP(S) URI.
98
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
99
- # The log formatter.
100
- # @option options [Symbol] :log_level (:info)
101
- # The log level to send messages to the `:logger` at.
102
- # @option options [Logger] :logger
103
- # The Logger instance to send log messages to. If this option
104
- # is not set, logging will be disabled.
105
- # @option options [String] :profile ("default")
106
- # Used when loading credentials from the shared credentials file
107
- # at HOME/.aws/credentials. When not specified, 'default' is used.
108
- # @option options [Integer] :retry_limit (3)
109
- # The maximum number of times to retry failed requests. Only
110
- # ~ 500 level server errors and certain ~ 400 level client errors
111
- # are retried. Generally, these are throttling errors, data
112
- # checksum errors, networking errors, timeout errors and auth
113
- # errors from expired credentials.
114
- # @option options [String] :secret_access_key
115
- # @option options [String] :session_token
116
- # @option options [Boolean] :simple_json (false)
117
- # Disables request parameter conversion, validation, and formatting.
118
- # Also disable response data type conversions. This option is useful
119
- # when you want to ensure the highest level of performance by
120
- # avoiding overhead of walking request parameters and response data
121
- # structures.
122
- #
123
- # When `:simple_json` is enabled, the request parameters hash must
124
- # be formatted exactly as the DynamoDB API expects.
125
- # @option options [Boolean] :stub_responses (false)
126
- # Causes the client to return stubbed responses. By default
127
- # fake responses are generated and returned. You can specify
128
- # the response data to return or errors to raise by calling
129
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
130
- #
131
- # ** Please note ** When response stubbing is enabled, no HTTP
132
- # requests are made, and retries are disabled.
133
- # @option options [Boolean] :validate_params (true)
134
- # When `true`, request parameters are validated before
135
- # sending the request.
136
- def initialize(*args)
137
- super
138
- end
139
-
140
- # @!group API Operations
51
+ # @option options [required, Aws::CredentialProvider] :credentials
52
+ # Your AWS credentials. This can be an instance of any one of the
53
+ # following classes:
54
+ #
55
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
56
+ # credentials.
57
+ #
58
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
59
+ # from an EC2 IMDS on an EC2 instance.
60
+ #
61
+ # * `Aws::SharedCredentials` - Used for loading credentials from a
62
+ # shared file, such as `~/.aws/config`.
63
+ #
64
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
65
+ #
66
+ # When `:credentials` are not configured directly, the following
67
+ # locations will be searched for credentials:
68
+ #
69
+ # * `Aws.config[:credentials]`
70
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
71
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
72
+ # * `~/.aws/credentials`
73
+ # * `~/.aws/config`
74
+ # * EC2 IMDS instance profile - When used by default, the timeouts are
75
+ # very aggressive. Construct and pass an instance of
76
+ # `Aws::InstanceProfileCredentails` to enable retries and extended
77
+ # timeouts.
78
+ #
79
+ # @option options [required, String] :region
80
+ # The AWS region to connect to. The configured `:region` is
81
+ # used to determine the service `:endpoint`. When not passed,
82
+ # a default `:region` is search for in the following locations:
83
+ #
84
+ # * `Aws.config[:region]`
85
+ # * `ENV['AWS_REGION']`
86
+ # * `ENV['AMAZON_REGION']`
87
+ # * `ENV['AWS_DEFAULT_REGION']`
88
+ # * `~/.aws/credentials`
89
+ # * `~/.aws/config`
90
+ #
91
+ # @option options [String] :access_key_id
92
+ #
93
+ # @option options [Boolean] :convert_params (true)
94
+ # When `true`, an attempt is made to coerce request parameters into
95
+ # the required types.
96
+ #
97
+ # @option options [String] :endpoint
98
+ # The client endpoint is normally constructed from the `:region`
99
+ # option. You should only configure an `:endpoint` when connecting
100
+ # to test endpoints. This should be avalid HTTP(S) URI.
101
+ #
102
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
103
+ # The log formatter.
104
+ #
105
+ # @option options [Symbol] :log_level (:info)
106
+ # The log level to send messages to the `:logger` at.
107
+ #
108
+ # @option options [Logger] :logger
109
+ # The Logger instance to send log messages to. If this option
110
+ # is not set, logging will be disabled.
111
+ #
112
+ # @option options [String] :profile ("default")
113
+ # Used when loading credentials from the shared credentials file
114
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
115
+ #
116
+ # @option options [Integer] :retry_limit (3)
117
+ # The maximum number of times to retry failed requests. Only
118
+ # ~ 500 level server errors and certain ~ 400 level client errors
119
+ # are retried. Generally, these are throttling errors, data
120
+ # checksum errors, networking errors, timeout errors and auth
121
+ # errors from expired credentials.
122
+ #
123
+ # @option options [String] :secret_access_key
124
+ #
125
+ # @option options [String] :session_token
126
+ #
127
+ # @option options [Boolean] :simple_json (false)
128
+ # Disables request parameter conversion, validation, and formatting.
129
+ # Also disable response data type conversions. This option is useful
130
+ # when you want to ensure the highest level of performance by
131
+ # avoiding overhead of walking request parameters and response data
132
+ # structures.
133
+ #
134
+ # When `:simple_json` is enabled, the request parameters hash must
135
+ # be formatted exactly as the DynamoDB API expects.
136
+ #
137
+ # @option options [Boolean] :stub_responses (false)
138
+ # Causes the client to return stubbed responses. By default
139
+ # fake responses are generated and returned. You can specify
140
+ # the response data to return or errors to raise by calling
141
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
142
+ #
143
+ # ** Please note ** When response stubbing is enabled, no HTTP
144
+ # requests are made, and retries are disabled.
145
+ #
146
+ # @option options [Boolean] :validate_params (true)
147
+ # When `true`, request parameters are validated before
148
+ # sending the request.
149
+ #
150
+ def initialize(*args)
151
+ super
152
+ end
141
153
 
142
- # @option params [required, String] :server_name
143
- # @option params [required, String] :node_name
144
- # @option params [Array<Types::EngineAttribute>] :engine_attributes
145
- # @return [Types::AssociateNodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
146
- #
147
- # * {Types::AssociateNodeResponse#node_association_status_token #NodeAssociationStatusToken} => String
148
- #
149
- # @example Request syntax with placeholder values
150
- # resp = client.associate_node({
151
- # server_name: "ServerName", # required
152
- # node_name: "NodeName", # required
153
- # engine_attributes: [
154
- # {
155
- # name: "String",
156
- # value: "String",
157
- # },
158
- # ],
159
- # })
160
- #
161
- # @example Response structure
162
- # resp.node_association_status_token #=> String
163
- # @overload associate_node(params = {})
164
- # @param [Hash] params ({})
165
- def associate_node(params = {}, options = {})
166
- req = build_request(:associate_node, params)
167
- req.send_request(options)
168
- end
154
+ # @!group API Operations
169
155
 
170
- # Creates an application-level backup of a server. While the server is
171
- # `BACKING_UP`, the server can not be modified and no additional backup
172
- # can be created.
173
- #
174
- # Backups can be created for `RUNNING`, `HEALTHY` and `UNHEALTHY`
175
- # servers.
176
- #
177
- # This operation is asnychronous.
178
- #
179
- # By default 50 manual backups can be created.
180
- #
181
- # A `LimitExceededException` is thrown then the maximum number of manual
182
- # backup is reached. A `InvalidStateException` is thrown when the server
183
- # is not in any of RUNNING, HEALTHY, UNHEALTHY. A
184
- # `ResourceNotFoundException` is thrown when the server is not found. A
185
- # `ValidationException` is thrown when parameters of the request are not
186
- # valid.
187
- # @option params [required, String] :server_name
188
- # The name of the server that you want to back up.
189
- # @option params [String] :description
190
- # A user-defined description of the backup.
191
- # @return [Types::CreateBackupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
192
- #
193
- # * {Types::CreateBackupResponse#backup #Backup} => Types::Backup
194
- #
195
- # @example Request syntax with placeholder values
196
- # resp = client.create_backup({
197
- # server_name: "ServerName", # required
198
- # description: "String",
199
- # })
200
- #
201
- # @example Response structure
202
- # resp.backup.backup_arn #=> String
203
- # resp.backup.backup_id #=> String
204
- # resp.backup.backup_type #=> String, one of "AUTOMATED", "MANUAL"
205
- # resp.backup.created_at #=> Time
206
- # resp.backup.description #=> String
207
- # resp.backup.engine #=> String
208
- # resp.backup.engine_model #=> String
209
- # resp.backup.engine_version #=> String
210
- # resp.backup.instance_profile_arn #=> String
211
- # resp.backup.instance_type #=> String
212
- # resp.backup.key_pair #=> String
213
- # resp.backup.preferred_backup_window #=> String
214
- # resp.backup.preferred_maintenance_window #=> String
215
- # resp.backup.s3_data_size #=> Integer
216
- # resp.backup.s3_data_url #=> String
217
- # resp.backup.s3_log_url #=> String
218
- # resp.backup.security_group_ids #=> Array
219
- # resp.backup.security_group_ids[0] #=> String
220
- # resp.backup.server_name #=> String
221
- # resp.backup.service_role_arn #=> String
222
- # resp.backup.status #=> String, one of "IN_PROGRESS", "OK", "FAILED", "DELETING"
223
- # resp.backup.status_description #=> String
224
- # resp.backup.subnet_ids #=> Array
225
- # resp.backup.subnet_ids[0] #=> String
226
- # resp.backup.tools_version #=> String
227
- # resp.backup.user_arn #=> String
228
- # @overload create_backup(params = {})
229
- # @param [Hash] params ({})
230
- def create_backup(params = {}, options = {})
231
- req = build_request(:create_backup, params)
232
- req.send_request(options)
233
- end
156
+ # Associates a new node with the Chef server. This command is an
157
+ # alternative to `knife bootstrap`. For more information about how to
158
+ # disassociate a node, see DisassociateNode.
159
+ #
160
+ # A node can can only be associated with servers that are in a `HEALTHY`
161
+ # state. Otherwise, an `InvalidStateException` is thrown. A
162
+ # `ResourceNotFoundException` is thrown when the server does not exist.
163
+ # A `ValidationException` is raised when parameters of the request are
164
+ # not valid. The AssociateNode API call can be integrated into Auto
165
+ # Scaling configurations, AWS Cloudformation templates, or the user data
166
+ # of a server's instance.
167
+ #
168
+ # Example: `aws opsworks-cm associate-node --server-name MyServer
169
+ # --node-name MyManagedNode --engine-attributes
170
+ # "Name=MyOrganization,Value=default"
171
+ # "Name=Chef_node_public_key,Value=Public_key_contents"`
172
+ #
173
+ # @option params [required, String] :server_name
174
+ # The name of the server with which to associate the node.
175
+ #
176
+ # @option params [required, String] :node_name
177
+ # The name of the Chef client node.
178
+ #
179
+ # @option params [required, Array<Types::EngineAttribute>] :engine_attributes
180
+ # Engine attributes used for associating the node.
181
+ #
182
+ # **Attributes accepted in a AssociateNode request:**
183
+ #
184
+ # * `CHEF_ORGANIZATION`\: The Chef organization with which the node is
185
+ # associated. By default only one organization named `default` can
186
+ # exist.
187
+ #
188
+ # * `CHEF_NODE_PUBLIC_KEY`\: A PEM-formatted public key. This key is
189
+ # required for the `chef-client` agent to access the Chef API.
190
+ #
191
+ # @return [Types::AssociateNodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
192
+ #
193
+ # * {Types::AssociateNodeResponse#node_association_status_token #node_association_status_token} => String
194
+ #
195
+ # @example Request syntax with placeholder values
196
+ #
197
+ # resp = client.associate_node({
198
+ # server_name: "ServerName", # required
199
+ # node_name: "NodeName", # required
200
+ # engine_attributes: [ # required
201
+ # {
202
+ # name: "EngineAttributeName",
203
+ # value: "EngineAttributeValue",
204
+ # },
205
+ # ],
206
+ # })
207
+ #
208
+ # @example Response structure
209
+ #
210
+ # resp.node_association_status_token #=> String
211
+ #
212
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AssociateNode AWS API Documentation
213
+ #
214
+ # @overload associate_node(params = {})
215
+ # @param [Hash] params ({})
216
+ def associate_node(params = {}, options = {})
217
+ req = build_request(:associate_node, params)
218
+ req.send_request(options)
219
+ end
234
220
 
235
- # Creates and immedately starts a new Server. The server can be used
236
- # once it has reached the `HEALTHY` state.
237
- #
238
- # This operation is asnychronous.
239
- #
240
- # A `LimitExceededException` is thrown then the maximum number of server
241
- # backup is reached. A `ResourceAlreadyExistsException` is raise when a
242
- # server with the same name already exists in the account. A
243
- # `ResourceNotFoundException` is thrown when a backupId is passed, but
244
- # the backup does not exist. A `ValidationException` is thrown when
245
- # parameters of the request are not valid.
246
- #
247
- # By default 10 servers can be created. A `LimitExceededException` is
248
- # raised when the limit is exceeded.
249
- #
250
- # When no security groups are provided by using `SecurityGroupIds`, AWS
251
- # OpsWorks creates a new security group. This security group opens the
252
- # Chef server to the world on TCP port 443. If a KeyName is present, SSH
253
- # access is enabled. SSH is also open to the world on TCP port 22.
254
- #
255
- # By default, the Chef Server is accessible from any IP address. We
256
- # recommend that you update your security group rules to allow access
257
- # from known IP addresses and address ranges only. To edit security
258
- # group rules, open Security Groups in the navigation pane of the EC2
259
- # management console.
260
- # @option params [Boolean] :disable_automated_backup
261
- # Enable or disable scheduled backups. Valid values are `true` or
262
- # `false`. The default value is `true`.
263
- # @option params [String] :engine
264
- # The configuration management engine to use. Valid values include
265
- # `Chef`.
266
- # @option params [String] :engine_model
267
- # The engine model, or option. Valid values include `Single`.
268
- # @option params [String] :engine_version
269
- # The major release version of the engine that you want to use. Values
270
- # depend on the engine that you choose.
271
- # @option params [Array<Types::EngineAttribute>] :engine_attributes
272
- # Engine attributes on a specified server.
273
- #
274
- # **Attributes accepted in a createServer request:**
275
- #
276
- # * `CHEF_PIVOTAL_KEY`\: A base64-encoded RSA private key that is not
277
- # stored by AWS OpsWorks for Chef Automate. This private key is
278
- # required to access the Chef API.
279
- #
280
- # ^
281
- # @option params [Integer] :backup_retention_count
282
- # The number of automated backups that you want to keep. Whenever a new
283
- # backup is created, AWS OpsWorks for Chef Automate deletes the oldest
284
- # backups if this number is exceeded. The default value is `1`.
285
- # @option params [required, String] :server_name
286
- # The name of the server. The server name must be unique within your AWS
287
- # account, within each region. Server names must start with a letter;
288
- # then letters, numbers, or hyphens (-) are allowed, up to a maximum of
289
- # 32 characters.
290
- # @option params [required, String] :instance_profile_arn
291
- # The ARN of the instance profile that your Amazon EC2 instances use.
292
- # Although the AWS OpsWorks console typically creates the instance
293
- # profile for you, in this release of AWS OpsWorks for Chef Automate,
294
- # run the service-role-creation.yaml AWS CloudFormation template,
295
- # located at
296
- # https://s3.amazonaws.com/opsworks-stuff/latest/service-role-creation.yaml.
297
- # This template creates a stack that includes the instance profile you
298
- # need.
299
- # @option params [String] :instance_type
300
- # The Amazon EC2 instance type to use. Valid values must be specified in
301
- # the following format: `^([cm][34]|t2).*` For example, `c3.large`.
302
- # @option params [String] :key_pair
303
- # The Amazon EC2 key pair to set for the instance. You may specify this
304
- # parameter to connect to your instances by using SSH.
305
- # @option params [String] :preferred_maintenance_window
306
- # The start time for a one-hour period each week during which AWS
307
- # OpsWorks for Chef Automate performs maintenance on the instance. Valid
308
- # values must be specified in the following format: `DDD:HH:MM`. The
309
- # specified time is in coordinated universal time (UTC). The default
310
- # value is a random one-hour period on Tuesday, Wednesday, or Friday.
311
- # See `TimeWindowDefinition` for more information.
312
- #
313
- # **Example:** `Mon:08:00`, which represents a start time of every
314
- # Monday at 08:00 UTC. (8:00 a.m.)
315
- # @option params [String] :preferred_backup_window
316
- # The start time for a one-hour period during which AWS OpsWorks for
317
- # Chef Automate backs up application-level data on your server if
318
- # backups are enabled. Valid values must be specified in one of the
319
- # following formats:
320
- #
321
- # * `HH:MM` for daily backups
322
- #
323
- # * `DDD:HH:MM` for weekly backups
324
- #
325
- # The specified time is in coordinated universal time (UTC). The default
326
- # value is a random, daily start time.
327
- #
328
- # **Example:** `08:00`, which represents a daily start time of 08:00
329
- # UTC.
330
- #
331
- # **Example:** `Mon:08:00`, which represents a start time of every
332
- # Monday at 08:00 UTC. (8:00 a.m.)
333
- # @option params [Array<String>] :security_group_ids
334
- # A list of security group IDs to attach to the Amazon EC2 instance. If
335
- # you add this parameter, the specified security groups must be within
336
- # the VPC that is specified by `SubnetIds`.
337
- #
338
- # If you do not specify this parameter, AWS OpsWorks for Chef Automate
339
- # creates one new security group that uses TCP ports 22 and 443, open to
340
- # 0.0.0.0/0 (everyone).
341
- # @option params [required, String] :service_role_arn
342
- # The service role that the AWS OpsWorks for Chef Automate service
343
- # backend uses to work with your account. Although the AWS OpsWorks
344
- # console typically creates the service role for you, in this release of
345
- # AWS OpsWorks for Chef Automate, run the service-role-creation.yaml AWS
346
- # CloudFormation template, located at
347
- # https://s3.amazonaws.com/opsworks-stuff/latest/service-role-creation.yaml.
348
- # This template creates a stack that includes the service role that you
349
- # need.
350
- # @option params [Array<String>] :subnet_ids
351
- # The IDs of subnets in which to launch the server EC2 instance.
352
- #
353
- # Amazon EC2-Classic customers: This field is required. All servers must
354
- # run within a VPC. The VPC must have "Auto Assign Public IP" enabled.
355
- #
356
- # EC2-VPC customers: This field is optional. If you do not specify
357
- # subnet IDs, your EC2 instances are created in a default subnet that is
358
- # selected by Amazon EC2. If you specify subnet IDs, the VPC must have
359
- # "Auto Assign Public IP" enabled.
360
- #
361
- # For more information about supported Amazon EC2 platforms, see
362
- # [Supported Platforms][1].
363
- #
364
- #
365
- #
366
- # [1]: http://docs.aws.amazon.com/https:/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
367
- # @option params [String] :backup_id
368
- # If you specify this field, AWS OpsWorks for Chef Automate creates the
369
- # server by using the backup represented by BackupId.
370
- # @return [Types::CreateServerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
371
- #
372
- # * {Types::CreateServerResponse#server #Server} => Types::Server
373
- #
374
- # @example Request syntax with placeholder values
375
- # resp = client.create_server({
376
- # disable_automated_backup: false,
377
- # engine: "String",
378
- # engine_model: "String",
379
- # engine_version: "String",
380
- # engine_attributes: [
381
- # {
382
- # name: "String",
383
- # value: "String",
384
- # },
385
- # ],
386
- # backup_retention_count: 1,
387
- # server_name: "ServerName", # required
388
- # instance_profile_arn: "InstanceProfileArn", # required
389
- # instance_type: "String",
390
- # key_pair: "KeyPair",
391
- # preferred_maintenance_window: "TimeWindowDefinition",
392
- # preferred_backup_window: "TimeWindowDefinition",
393
- # security_group_ids: ["String"],
394
- # service_role_arn: "ServiceRoleArn", # required
395
- # subnet_ids: ["String"],
396
- # backup_id: "BackupId",
397
- # })
398
- #
399
- # @example Response structure
400
- # resp.server.backup_retention_count #=> Integer
401
- # resp.server.server_name #=> String
402
- # resp.server.created_at #=> Time
403
- # resp.server.disable_automated_backup #=> Boolean
404
- # resp.server.endpoint #=> String
405
- # resp.server.engine #=> String
406
- # resp.server.engine_model #=> String
407
- # resp.server.engine_attributes #=> Array
408
- # resp.server.engine_attributes[0].name #=> String
409
- # resp.server.engine_attributes[0].value #=> String
410
- # resp.server.engine_version #=> String
411
- # resp.server.instance_profile_arn #=> String
412
- # resp.server.instance_type #=> String
413
- # resp.server.key_pair #=> String
414
- # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
415
- # resp.server.preferred_maintenance_window #=> String
416
- # resp.server.preferred_backup_window #=> String
417
- # resp.server.security_group_ids #=> Array
418
- # resp.server.security_group_ids[0] #=> String
419
- # resp.server.service_role_arn #=> String
420
- # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY"
421
- # resp.server.status_reason #=> String
422
- # resp.server.subnet_ids #=> Array
423
- # resp.server.subnet_ids[0] #=> String
424
- # resp.server.server_arn #=> String
425
- # @overload create_server(params = {})
426
- # @param [Hash] params ({})
427
- def create_server(params = {}, options = {})
428
- req = build_request(:create_server, params)
429
- req.send_request(options)
430
- end
221
+ # Creates an application-level backup of a server. While the server is
222
+ # in the `BACKING_UP` state, the server cannot be changed, and no
223
+ # additional backup can be created.
224
+ #
225
+ # Backups can be created for servers in `RUNNING`, `HEALTHY`, and
226
+ # `UNHEALTHY` states. By default, you can create a maximum of 50 manual
227
+ # backups.
228
+ #
229
+ # This operation is asynchronous.
230
+ #
231
+ # A `LimitExceededException` is thrown when the maximum number of manual
232
+ # backups is reached. An `InvalidStateException` is thrown when the
233
+ # server is not in any of the following states: RUNNING, HEALTHY, or
234
+ # UNHEALTHY. A `ResourceNotFoundException` is thrown when the server is
235
+ # not found. A `ValidationException` is thrown when parameters of the
236
+ # request are not valid.
237
+ #
238
+ # @option params [required, String] :server_name
239
+ # The name of the server that you want to back up.
240
+ #
241
+ # @option params [String] :description
242
+ # A user-defined description of the backup.
243
+ #
244
+ # @return [Types::CreateBackupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
245
+ #
246
+ # * {Types::CreateBackupResponse#backup #backup} => Types::Backup
247
+ #
248
+ # @example Request syntax with placeholder values
249
+ #
250
+ # resp = client.create_backup({
251
+ # server_name: "ServerName", # required
252
+ # description: "String",
253
+ # })
254
+ #
255
+ # @example Response structure
256
+ #
257
+ # resp.backup.backup_arn #=> String
258
+ # resp.backup.backup_id #=> String
259
+ # resp.backup.backup_type #=> String, one of "AUTOMATED", "MANUAL"
260
+ # resp.backup.created_at #=> Time
261
+ # resp.backup.description #=> String
262
+ # resp.backup.engine #=> String
263
+ # resp.backup.engine_model #=> String
264
+ # resp.backup.engine_version #=> String
265
+ # resp.backup.instance_profile_arn #=> String
266
+ # resp.backup.instance_type #=> String
267
+ # resp.backup.key_pair #=> String
268
+ # resp.backup.preferred_backup_window #=> String
269
+ # resp.backup.preferred_maintenance_window #=> String
270
+ # resp.backup.s3_data_size #=> Integer
271
+ # resp.backup.s3_data_url #=> String
272
+ # resp.backup.s3_log_url #=> String
273
+ # resp.backup.security_group_ids #=> Array
274
+ # resp.backup.security_group_ids[0] #=> String
275
+ # resp.backup.server_name #=> String
276
+ # resp.backup.service_role_arn #=> String
277
+ # resp.backup.status #=> String, one of "IN_PROGRESS", "OK", "FAILED", "DELETING"
278
+ # resp.backup.status_description #=> String
279
+ # resp.backup.subnet_ids #=> Array
280
+ # resp.backup.subnet_ids[0] #=> String
281
+ # resp.backup.tools_version #=> String
282
+ # resp.backup.user_arn #=> String
283
+ #
284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackup AWS API Documentation
285
+ #
286
+ # @overload create_backup(params = {})
287
+ # @param [Hash] params ({})
288
+ def create_backup(params = {}, options = {})
289
+ req = build_request(:create_backup, params)
290
+ req.send_request(options)
291
+ end
431
292
 
432
- # Deletes a backup. You can delete both manual and automated backups.
433
- #
434
- # This operation is asynchronous.
435
- #
436
- # A `InvalidStateException` is thrown then a backup is already deleting.
437
- # A `ResourceNotFoundException` is thrown when the backup does not
438
- # exist. A `ValidationException` is thrown when parameters of the
439
- # request are not valid.
440
- # @option params [required, String] :backup_id
441
- # The ID of the backup to delete. Run the DescribeBackups command to get
442
- # a list of backup IDs. Backup IDs are in the format
443
- # `ServerName-yyyyMMddHHmmssSSS`.
444
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
445
- #
446
- # @example Request syntax with placeholder values
447
- # resp = client.delete_backup({
448
- # backup_id: "BackupId", # required
449
- # })
450
- # @overload delete_backup(params = {})
451
- # @param [Hash] params ({})
452
- def delete_backup(params = {}, options = {})
453
- req = build_request(:delete_backup, params)
454
- req.send_request(options)
455
- end
293
+ # Creates and immedately starts a new server. The server is ready to use
294
+ # when it is in the `HEALTHY` state. By default, you can create a
295
+ # maximum of 10 servers.
296
+ #
297
+ # This operation is asynchronous.
298
+ #
299
+ # A `LimitExceededException` is thrown when you have created the maximum
300
+ # number of servers (10). A `ResourceAlreadyExistsException` is thrown
301
+ # when a server with the same name already exists in the account. A
302
+ # `ResourceNotFoundException` is thrown when you specify a backup ID
303
+ # that is not valid or is for a backup that does not exist. A
304
+ # `ValidationException` is thrown when parameters of the request are not
305
+ # valid.
306
+ #
307
+ # If you do not specify a security group by adding the
308
+ # `SecurityGroupIds` parameter, AWS OpsWorks creates a new security
309
+ # group. The default security group opens the Chef server to the world
310
+ # on TCP port 443. If a KeyName is present, AWS OpsWorks enables SSH
311
+ # access. SSH is also open to the world on TCP port 22.
312
+ #
313
+ # By default, the Chef Server is accessible from any IP address. We
314
+ # recommend that you update your security group rules to allow access
315
+ # from known IP addresses and address ranges only. To edit security
316
+ # group rules, open Security Groups in the navigation pane of the EC2
317
+ # management console.
318
+ #
319
+ # @option params [Boolean] :associate_public_ip_address
320
+ # Associate a public IP address with a server that you are launching.
321
+ # Valid values are `true` or `false`. The default value is `true`.
322
+ #
323
+ # @option params [Boolean] :disable_automated_backup
324
+ # Enable or disable scheduled backups. Valid values are `true` or
325
+ # `false`. The default value is `true`.
326
+ #
327
+ # @option params [String] :engine
328
+ # The configuration management engine to use. Valid values include
329
+ # `Chef`.
330
+ #
331
+ # @option params [String] :engine_model
332
+ # The engine model, or option. Valid values include `Single`.
333
+ #
334
+ # @option params [String] :engine_version
335
+ # The major release version of the engine that you want to use. Values
336
+ # depend on the engine that you choose.
337
+ #
338
+ # @option params [Array<Types::EngineAttribute>] :engine_attributes
339
+ # Optional engine attributes on a specified server.
340
+ #
341
+ # **Attributes accepted in a createServer request:**
342
+ #
343
+ # * `CHEF_PIVOTAL_KEY`\: A base64-encoded RSA private key that is not
344
+ # stored by AWS OpsWorks for Chef. This private key is required to
345
+ # access the Chef API. When no CHEF\_PIVOTAL\_KEY is set, one is
346
+ # generated and returned in the response.
347
+ #
348
+ # * `CHEF_DELIVERY_ADMIN_PASSWORD`\: The password for the administrative
349
+ # user in the Chef Automate GUI. The password length is a minimum of
350
+ # eight characters, and a maximum of 32. The password can contain
351
+ # letters, numbers, and special characters (!/@#$%^&amp;+=\_). The
352
+ # password must contain at least one lower case letter, one upper case
353
+ # letter, one number, and one special character. When no
354
+ # CHEF\_DELIVERY\_ADMIN\_PASSWORD is set, one is generated and
355
+ # returned in the response.
356
+ #
357
+ # @option params [Integer] :backup_retention_count
358
+ # The number of automated backups that you want to keep. Whenever a new
359
+ # backup is created, AWS OpsWorks for Chef Automate deletes the oldest
360
+ # backups if this number is exceeded. The default value is `1`.
361
+ #
362
+ # @option params [required, String] :server_name
363
+ # The name of the server. The server name must be unique within your AWS
364
+ # account, within each region. Server names must start with a letter;
365
+ # then letters, numbers, or hyphens (-) are allowed, up to a maximum of
366
+ # 40 characters.
367
+ #
368
+ # @option params [required, String] :instance_profile_arn
369
+ # The ARN of the instance profile that your Amazon EC2 instances use.
370
+ # Although the AWS OpsWorks console typically creates the instance
371
+ # profile for you, if you are using API commands instead, run the
372
+ # service-role-creation.yaml AWS CloudFormation template, located at
373
+ # https://s3.amazonaws.com/opsworks-cm-us-east-1-prod-default-assets/misc/opsworks-cm-roles.yaml.
374
+ # This template creates a CloudFormation stack that includes the
375
+ # instance profile you need.
376
+ #
377
+ # @option params [required, String] :instance_type
378
+ # The Amazon EC2 instance type to use. Valid values must be specified in
379
+ # the following format: `^([cm][34]|t2).*` For example, `m4.large`.
380
+ # Valid values are `t2.medium`, `m4.large`, or `m4.2xlarge`.
381
+ #
382
+ # @option params [String] :key_pair
383
+ # The Amazon EC2 key pair to set for the instance. This parameter is
384
+ # optional; if desired, you may specify this parameter to connect to
385
+ # your instances by using SSH.
386
+ #
387
+ # @option params [String] :preferred_maintenance_window
388
+ # The start time for a one-hour period each week during which AWS
389
+ # OpsWorks for Chef Automate performs maintenance on the instance. Valid
390
+ # values must be specified in the following format: `DDD:HH:MM`. The
391
+ # specified time is in coordinated universal time (UTC). The default
392
+ # value is a random one-hour period on Tuesday, Wednesday, or Friday.
393
+ # See `TimeWindowDefinition` for more information.
394
+ #
395
+ # **Example:** `Mon:08:00`, which represents a start time of every
396
+ # Monday at 08:00 UTC. (8:00 a.m.)
397
+ #
398
+ # @option params [String] :preferred_backup_window
399
+ # The start time for a one-hour period during which AWS OpsWorks for
400
+ # Chef Automate backs up application-level data on your server if
401
+ # automated backups are enabled. Valid values must be specified in one
402
+ # of the following formats:
403
+ #
404
+ # * `HH:MM` for daily backups
405
+ #
406
+ # * `DDD:HH:MM` for weekly backups
407
+ #
408
+ # The specified time is in coordinated universal time (UTC). The default
409
+ # value is a random, daily start time.
410
+ #
411
+ # **Example:** `08:00`, which represents a daily start time of 08:00
412
+ # UTC.
413
+ #
414
+ # **Example:** `Mon:08:00`, which represents a start time of every
415
+ # Monday at 08:00 UTC. (8:00 a.m.)
416
+ #
417
+ # @option params [Array<String>] :security_group_ids
418
+ # A list of security group IDs to attach to the Amazon EC2 instance. If
419
+ # you add this parameter, the specified security groups must be within
420
+ # the VPC that is specified by `SubnetIds`.
421
+ #
422
+ # If you do not specify this parameter, AWS OpsWorks for Chef Automate
423
+ # creates one new security group that uses TCP ports 22 and 443, open to
424
+ # 0.0.0.0/0 (everyone).
425
+ #
426
+ # @option params [required, String] :service_role_arn
427
+ # The service role that the AWS OpsWorks for Chef Automate service
428
+ # backend uses to work with your account. Although the AWS OpsWorks
429
+ # management console typically creates the service role for you, if you
430
+ # are using the AWS CLI or API commands, run the
431
+ # service-role-creation.yaml AWS CloudFormation template, located at
432
+ # https://s3.amazonaws.com/opsworks-stuff/latest/service-role-creation.yaml.
433
+ # This template creates a CloudFormation stack that includes the service
434
+ # role that you need.
435
+ #
436
+ # @option params [Array<String>] :subnet_ids
437
+ # The IDs of subnets in which to launch the server EC2 instance.
438
+ #
439
+ # Amazon EC2-Classic customers: This field is required. All servers must
440
+ # run within a VPC. The VPC must have "Auto Assign Public IP" enabled.
441
+ #
442
+ # EC2-VPC customers: This field is optional. If you do not specify
443
+ # subnet IDs, your EC2 instances are created in a default subnet that is
444
+ # selected by Amazon EC2. If you specify subnet IDs, the VPC must have
445
+ # "Auto Assign Public IP" enabled.
446
+ #
447
+ # For more information about supported Amazon EC2 platforms, see
448
+ # [Supported Platforms][1].
449
+ #
450
+ #
451
+ #
452
+ # [1]: http://docs.aws.amazon.com/https:/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html
453
+ #
454
+ # @option params [String] :backup_id
455
+ # If you specify this field, AWS OpsWorks for Chef Automate creates the
456
+ # server by using the backup represented by BackupId.
457
+ #
458
+ # @return [Types::CreateServerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
459
+ #
460
+ # * {Types::CreateServerResponse#server #server} => Types::Server
461
+ #
462
+ # @example Request syntax with placeholder values
463
+ #
464
+ # resp = client.create_server({
465
+ # associate_public_ip_address: false,
466
+ # disable_automated_backup: false,
467
+ # engine: "String",
468
+ # engine_model: "String",
469
+ # engine_version: "String",
470
+ # engine_attributes: [
471
+ # {
472
+ # name: "EngineAttributeName",
473
+ # value: "EngineAttributeValue",
474
+ # },
475
+ # ],
476
+ # backup_retention_count: 1,
477
+ # server_name: "ServerName", # required
478
+ # instance_profile_arn: "InstanceProfileArn", # required
479
+ # instance_type: "String", # required
480
+ # key_pair: "KeyPair",
481
+ # preferred_maintenance_window: "TimeWindowDefinition",
482
+ # preferred_backup_window: "TimeWindowDefinition",
483
+ # security_group_ids: ["String"],
484
+ # service_role_arn: "ServiceRoleArn", # required
485
+ # subnet_ids: ["String"],
486
+ # backup_id: "BackupId",
487
+ # })
488
+ #
489
+ # @example Response structure
490
+ #
491
+ # resp.server.associate_public_ip_address #=> Boolean
492
+ # resp.server.backup_retention_count #=> Integer
493
+ # resp.server.server_name #=> String
494
+ # resp.server.created_at #=> Time
495
+ # resp.server.cloud_formation_stack_arn #=> String
496
+ # resp.server.disable_automated_backup #=> Boolean
497
+ # resp.server.endpoint #=> String
498
+ # resp.server.engine #=> String
499
+ # resp.server.engine_model #=> String
500
+ # resp.server.engine_attributes #=> Array
501
+ # resp.server.engine_attributes[0].name #=> String
502
+ # resp.server.engine_attributes[0].value #=> String
503
+ # resp.server.engine_version #=> String
504
+ # resp.server.instance_profile_arn #=> String
505
+ # resp.server.instance_type #=> String
506
+ # resp.server.key_pair #=> String
507
+ # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
508
+ # resp.server.preferred_maintenance_window #=> String
509
+ # resp.server.preferred_backup_window #=> String
510
+ # resp.server.security_group_ids #=> Array
511
+ # resp.server.security_group_ids[0] #=> String
512
+ # resp.server.service_role_arn #=> String
513
+ # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "RESTORING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY", "TERMINATED"
514
+ # resp.server.status_reason #=> String
515
+ # resp.server.subnet_ids #=> Array
516
+ # resp.server.subnet_ids[0] #=> String
517
+ # resp.server.server_arn #=> String
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateServer AWS API Documentation
520
+ #
521
+ # @overload create_server(params = {})
522
+ # @param [Hash] params ({})
523
+ def create_server(params = {}, options = {})
524
+ req = build_request(:create_server, params)
525
+ req.send_request(options)
526
+ end
456
527
 
457
- # Deletes the server and the underlying AWS CloudFormation stack
458
- # (including the server's EC2 instance). The server status updated to
459
- # `DELETING`. Once the server is successfully deleted, it will no longer
460
- # be returned by `DescribeServer` requests. If the AWS CloudFormation
461
- # stack cannot be deleted, the server cannot be deleted.
462
- #
463
- # This operation is asynchronous.
464
- #
465
- # A `InvalidStateException` is thrown then a server is already deleting.
466
- # A `ResourceNotFoundException` is thrown when the server does not
467
- # exist. A `ValidationException` is raised when parameters of the
468
- # request are invalid.
469
- # @option params [required, String] :server_name
470
- # The ID of the server to delete.
471
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
472
- #
473
- # @example Request syntax with placeholder values
474
- # resp = client.delete_server({
475
- # server_name: "ServerName", # required
476
- # })
477
- # @overload delete_server(params = {})
478
- # @param [Hash] params ({})
479
- def delete_server(params = {}, options = {})
480
- req = build_request(:delete_server, params)
481
- req.send_request(options)
482
- end
528
+ # Deletes a backup. You can delete both manual and automated backups.
529
+ # This operation is asynchronous.
530
+ #
531
+ # An `InvalidStateException` is thrown when a backup deletion is already
532
+ # in progress. A `ResourceNotFoundException` is thrown when the backup
533
+ # does not exist. A `ValidationException` is thrown when parameters of
534
+ # the request are not valid.
535
+ #
536
+ # @option params [required, String] :backup_id
537
+ # The ID of the backup to delete. Run the DescribeBackups command to get
538
+ # a list of backup IDs. Backup IDs are in the format
539
+ # `ServerName-yyyyMMddHHmmssSSS`.
540
+ #
541
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
542
+ #
543
+ # @example Request syntax with placeholder values
544
+ #
545
+ # resp = client.delete_backup({
546
+ # backup_id: "BackupId", # required
547
+ # })
548
+ #
549
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteBackup AWS API Documentation
550
+ #
551
+ # @overload delete_backup(params = {})
552
+ # @param [Hash] params ({})
553
+ def delete_backup(params = {}, options = {})
554
+ req = build_request(:delete_backup, params)
555
+ req.send_request(options)
556
+ end
483
557
 
484
- # Describes your account attributes, and creates requests to increase
485
- # limits before they are reached or exceeded.
486
- #
487
- # This operation is synchronous.
488
- # @return [Types::DescribeAccountAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
489
- #
490
- # * {Types::DescribeAccountAttributesResponse#attributes #Attributes} => Array&lt;Types::AccountAttribute&gt;
491
- #
492
- # @example Request syntax with placeholder values
493
- # resp = client.describe_account_attributes()
494
- #
495
- # @example Response structure
496
- # resp.attributes #=> Array
497
- # resp.attributes[0].name #=> String
498
- # resp.attributes[0].maximum #=> Integer
499
- # resp.attributes[0].used #=> Integer
500
- # @overload describe_account_attributes(params = {})
501
- # @param [Hash] params ({})
502
- def describe_account_attributes(params = {}, options = {})
503
- req = build_request(:describe_account_attributes, params)
504
- req.send_request(options)
505
- end
558
+ # Deletes the server and the underlying AWS CloudFormation stack
559
+ # (including the server's EC2 instance). When you run this command, the
560
+ # server state is updated to `DELETING`. After the server is deleted, it
561
+ # is no longer returned by `DescribeServer` requests. If the AWS
562
+ # CloudFormation stack cannot be deleted, the server cannot be deleted.
563
+ #
564
+ # This operation is asynchronous.
565
+ #
566
+ # An `InvalidStateException` is thrown when a server deletion is already
567
+ # in progress. A `ResourceNotFoundException` is thrown when the server
568
+ # does not exist. A `ValidationException` is raised when parameters of
569
+ # the request are not valid.
570
+ #
571
+ # @option params [required, String] :server_name
572
+ # The ID of the server to delete.
573
+ #
574
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
575
+ #
576
+ # @example Request syntax with placeholder values
577
+ #
578
+ # resp = client.delete_server({
579
+ # server_name: "ServerName", # required
580
+ # })
581
+ #
582
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteServer AWS API Documentation
583
+ #
584
+ # @overload delete_server(params = {})
585
+ # @param [Hash] params ({})
586
+ def delete_server(params = {}, options = {})
587
+ req = build_request(:delete_server, params)
588
+ req.send_request(options)
589
+ end
506
590
 
507
- # Describes backups. The results are ordered by time, with newest
508
- # backups first. If you do not specify a BackupId or ServerName, the
509
- # command returns all backups.
510
- #
511
- # This operation is synchronous.
512
- #
513
- # A `ResourceNotFoundException` is thrown when the backup does not
514
- # exist. A `ValidationException` is raised when parameters of the
515
- # request are invalid.
516
- # @option params [String] :backup_id
517
- # Describes a single backup.
518
- # @option params [String] :server_name
519
- # Returns backups for the server with the specified ServerName.
520
- # @option params [String] :next_token
521
- # NextToken is a string that is returned in some command responses. It
522
- # indicates that not all entries have been returned, and that you must
523
- # run at least one more request to get remaining items. To get remaining
524
- # results, call `DescribeBackups` again, and assign the token from the
525
- # previous results as the value of the `nextToken` parameter. If there
526
- # are no more results, the response object's `nextToken` parameter
527
- # value is `null`. Setting a `nextToken` value that was not returned in
528
- # your previous results causes an `InvalidNextTokenException` to occur.
529
- # @option params [Integer] :max_results
530
- # To receive a paginated response, use this parameter to specify the
531
- # maximum number of results to be returned with a single call. If the
532
- # number of available results exceeds this maximum, the response
533
- # includes a `NextToken` value that you can assign to the `NextToken`
534
- # request parameter to get the next set of results.
535
- # @return [Types::DescribeBackupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
536
- #
537
- # * {Types::DescribeBackupsResponse#backups #Backups} => Array&lt;Types::Backup&gt;
538
- # * {Types::DescribeBackupsResponse#next_token #NextToken} => String
539
- #
540
- # @example Request syntax with placeholder values
541
- # resp = client.describe_backups({
542
- # backup_id: "BackupId",
543
- # server_name: "ServerName",
544
- # next_token: "NextToken",
545
- # max_results: 1,
546
- # })
547
- #
548
- # @example Response structure
549
- # resp.backups #=> Array
550
- # resp.backups[0].backup_arn #=> String
551
- # resp.backups[0].backup_id #=> String
552
- # resp.backups[0].backup_type #=> String, one of "AUTOMATED", "MANUAL"
553
- # resp.backups[0].created_at #=> Time
554
- # resp.backups[0].description #=> String
555
- # resp.backups[0].engine #=> String
556
- # resp.backups[0].engine_model #=> String
557
- # resp.backups[0].engine_version #=> String
558
- # resp.backups[0].instance_profile_arn #=> String
559
- # resp.backups[0].instance_type #=> String
560
- # resp.backups[0].key_pair #=> String
561
- # resp.backups[0].preferred_backup_window #=> String
562
- # resp.backups[0].preferred_maintenance_window #=> String
563
- # resp.backups[0].s3_data_size #=> Integer
564
- # resp.backups[0].s3_data_url #=> String
565
- # resp.backups[0].s3_log_url #=> String
566
- # resp.backups[0].security_group_ids #=> Array
567
- # resp.backups[0].security_group_ids[0] #=> String
568
- # resp.backups[0].server_name #=> String
569
- # resp.backups[0].service_role_arn #=> String
570
- # resp.backups[0].status #=> String, one of "IN_PROGRESS", "OK", "FAILED", "DELETING"
571
- # resp.backups[0].status_description #=> String
572
- # resp.backups[0].subnet_ids #=> Array
573
- # resp.backups[0].subnet_ids[0] #=> String
574
- # resp.backups[0].tools_version #=> String
575
- # resp.backups[0].user_arn #=> String
576
- # resp.next_token #=> String
577
- # @overload describe_backups(params = {})
578
- # @param [Hash] params ({})
579
- def describe_backups(params = {}, options = {})
580
- req = build_request(:describe_backups, params)
581
- req.send_request(options)
582
- end
591
+ # Describes your account attributes, and creates requests to increase
592
+ # limits before they are reached or exceeded.
593
+ #
594
+ # This operation is synchronous.
595
+ #
596
+ # @return [Types::DescribeAccountAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
597
+ #
598
+ # * {Types::DescribeAccountAttributesResponse#attributes #attributes} => Array&lt;Types::AccountAttribute&gt;
599
+ #
600
+ # @example Response structure
601
+ #
602
+ # resp.attributes #=> Array
603
+ # resp.attributes[0].name #=> String
604
+ # resp.attributes[0].maximum #=> Integer
605
+ # resp.attributes[0].used #=> Integer
606
+ #
607
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeAccountAttributes AWS API Documentation
608
+ #
609
+ # @overload describe_account_attributes(params = {})
610
+ # @param [Hash] params ({})
611
+ def describe_account_attributes(params = {}, options = {})
612
+ req = build_request(:describe_account_attributes, params)
613
+ req.send_request(options)
614
+ end
583
615
 
584
- # Describes events for a specified server. Results are ordered by time,
585
- # with newest events first.
586
- #
587
- # This operation is synchronous.
588
- #
589
- # A `ResourceNotFoundException` is thrown when the server does not
590
- # exist. A `ValidationException` is raised when parameters of the
591
- # request are invalid.
592
- # @option params [required, String] :server_name
593
- # The name of the server for which you want to view events.
594
- # @option params [String] :next_token
595
- # NextToken is a string that is returned in some command responses. It
596
- # indicates that not all entries have been returned, and that you must
597
- # run at least one more request to get remaining items. To get remaining
598
- # results, call `DescribeEvents` again, and assign the token from the
599
- # previous results as the value of the `nextToken` parameter. If there
600
- # are no more results, the response object's `nextToken` parameter
601
- # value is `null`. Setting a `nextToken` value that was not returned in
602
- # your previous results causes an `InvalidNextTokenException` to occur.
603
- # @option params [Integer] :max_results
604
- # To receive a paginated response, use this parameter to specify the
605
- # maximum number of results to be returned with a single call. If the
606
- # number of available results exceeds this maximum, the response
607
- # includes a `NextToken` value that you can assign to the `NextToken`
608
- # request parameter to get the next set of results.
609
- # @return [Types::DescribeEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
610
- #
611
- # * {Types::DescribeEventsResponse#server_events #ServerEvents} => Array&lt;Types::ServerEvent&gt;
612
- # * {Types::DescribeEventsResponse#next_token #NextToken} => String
613
- #
614
- # @example Request syntax with placeholder values
615
- # resp = client.describe_events({
616
- # server_name: "ServerName", # required
617
- # next_token: "NextToken",
618
- # max_results: 1,
619
- # })
620
- #
621
- # @example Response structure
622
- # resp.server_events #=> Array
623
- # resp.server_events[0].created_at #=> Time
624
- # resp.server_events[0].server_name #=> String
625
- # resp.server_events[0].message #=> String
626
- # resp.server_events[0].log_url #=> String
627
- # resp.next_token #=> String
628
- # @overload describe_events(params = {})
629
- # @param [Hash] params ({})
630
- def describe_events(params = {}, options = {})
631
- req = build_request(:describe_events, params)
632
- req.send_request(options)
633
- end
616
+ # Describes backups. The results are ordered by time, with newest
617
+ # backups first. If you do not specify a BackupId or ServerName, the
618
+ # command returns all backups.
619
+ #
620
+ # This operation is synchronous.
621
+ #
622
+ # A `ResourceNotFoundException` is thrown when the backup does not
623
+ # exist. A `ValidationException` is raised when parameters of the
624
+ # request are not valid.
625
+ #
626
+ # @option params [String] :backup_id
627
+ # Describes a single backup.
628
+ #
629
+ # @option params [String] :server_name
630
+ # Returns backups for the server with the specified ServerName.
631
+ #
632
+ # @option params [String] :next_token
633
+ # NextToken is a string that is returned in some command responses. It
634
+ # indicates that not all entries have been returned, and that you must
635
+ # run at least one more request to get remaining items. To get remaining
636
+ # results, call `DescribeBackups` again, and assign the token from the
637
+ # previous results as the value of the `nextToken` parameter. If there
638
+ # are no more results, the response object's `nextToken` parameter
639
+ # value is `null`. Setting a `nextToken` value that was not returned in
640
+ # your previous results causes an `InvalidNextTokenException` to occur.
641
+ #
642
+ # @option params [Integer] :max_results
643
+ # To receive a paginated response, use this parameter to specify the
644
+ # maximum number of results to be returned with a single call. If the
645
+ # number of available results exceeds this maximum, the response
646
+ # includes a `NextToken` value that you can assign to the `NextToken`
647
+ # request parameter to get the next set of results.
648
+ #
649
+ # @return [Types::DescribeBackupsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
650
+ #
651
+ # * {Types::DescribeBackupsResponse#backups #backups} => Array&lt;Types::Backup&gt;
652
+ # * {Types::DescribeBackupsResponse#next_token #next_token} => String
653
+ #
654
+ # @example Request syntax with placeholder values
655
+ #
656
+ # resp = client.describe_backups({
657
+ # backup_id: "BackupId",
658
+ # server_name: "ServerName",
659
+ # next_token: "NextToken",
660
+ # max_results: 1,
661
+ # })
662
+ #
663
+ # @example Response structure
664
+ #
665
+ # resp.backups #=> Array
666
+ # resp.backups[0].backup_arn #=> String
667
+ # resp.backups[0].backup_id #=> String
668
+ # resp.backups[0].backup_type #=> String, one of "AUTOMATED", "MANUAL"
669
+ # resp.backups[0].created_at #=> Time
670
+ # resp.backups[0].description #=> String
671
+ # resp.backups[0].engine #=> String
672
+ # resp.backups[0].engine_model #=> String
673
+ # resp.backups[0].engine_version #=> String
674
+ # resp.backups[0].instance_profile_arn #=> String
675
+ # resp.backups[0].instance_type #=> String
676
+ # resp.backups[0].key_pair #=> String
677
+ # resp.backups[0].preferred_backup_window #=> String
678
+ # resp.backups[0].preferred_maintenance_window #=> String
679
+ # resp.backups[0].s3_data_size #=> Integer
680
+ # resp.backups[0].s3_data_url #=> String
681
+ # resp.backups[0].s3_log_url #=> String
682
+ # resp.backups[0].security_group_ids #=> Array
683
+ # resp.backups[0].security_group_ids[0] #=> String
684
+ # resp.backups[0].server_name #=> String
685
+ # resp.backups[0].service_role_arn #=> String
686
+ # resp.backups[0].status #=> String, one of "IN_PROGRESS", "OK", "FAILED", "DELETING"
687
+ # resp.backups[0].status_description #=> String
688
+ # resp.backups[0].subnet_ids #=> Array
689
+ # resp.backups[0].subnet_ids[0] #=> String
690
+ # resp.backups[0].tools_version #=> String
691
+ # resp.backups[0].user_arn #=> String
692
+ # resp.next_token #=> String
693
+ #
694
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeBackups AWS API Documentation
695
+ #
696
+ # @overload describe_backups(params = {})
697
+ # @param [Hash] params ({})
698
+ def describe_backups(params = {}, options = {})
699
+ req = build_request(:describe_backups, params)
700
+ req.send_request(options)
701
+ end
634
702
 
635
- # @option params [required, String] :node_association_status_token
636
- # @option params [required, String] :server_name
637
- # @return [Types::DescribeNodeAssociationStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
638
- #
639
- # * {Types::DescribeNodeAssociationStatusResponse#node_association_status #NodeAssociationStatus} => String
640
- #
641
- # @example Request syntax with placeholder values
642
- # resp = client.describe_node_association_status({
643
- # node_association_status_token: "NodeAssociationStatusToken", # required
644
- # server_name: "ServerName", # required
645
- # })
646
- #
647
- # @example Response structure
648
- # resp.node_association_status #=> String, one of "SUCCESS", "FAILED", "IN_PROGRESS"
649
- # @overload describe_node_association_status(params = {})
650
- # @param [Hash] params ({})
651
- def describe_node_association_status(params = {}, options = {})
652
- req = build_request(:describe_node_association_status, params)
653
- req.send_request(options)
654
- end
703
+ # Describes events for a specified server. Results are ordered by time,
704
+ # with newest events first.
705
+ #
706
+ # This operation is synchronous.
707
+ #
708
+ # A `ResourceNotFoundException` is thrown when the server does not
709
+ # exist. A `ValidationException` is raised when parameters of the
710
+ # request are not valid.
711
+ #
712
+ # @option params [required, String] :server_name
713
+ # The name of the server for which you want to view events.
714
+ #
715
+ # @option params [String] :next_token
716
+ # NextToken is a string that is returned in some command responses. It
717
+ # indicates that not all entries have been returned, and that you must
718
+ # run at least one more request to get remaining items. To get remaining
719
+ # results, call `DescribeEvents` again, and assign the token from the
720
+ # previous results as the value of the `nextToken` parameter. If there
721
+ # are no more results, the response object's `nextToken` parameter
722
+ # value is `null`. Setting a `nextToken` value that was not returned in
723
+ # your previous results causes an `InvalidNextTokenException` to occur.
724
+ #
725
+ # @option params [Integer] :max_results
726
+ # To receive a paginated response, use this parameter to specify the
727
+ # maximum number of results to be returned with a single call. If the
728
+ # number of available results exceeds this maximum, the response
729
+ # includes a `NextToken` value that you can assign to the `NextToken`
730
+ # request parameter to get the next set of results.
731
+ #
732
+ # @return [Types::DescribeEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
733
+ #
734
+ # * {Types::DescribeEventsResponse#server_events #server_events} => Array&lt;Types::ServerEvent&gt;
735
+ # * {Types::DescribeEventsResponse#next_token #next_token} => String
736
+ #
737
+ # @example Request syntax with placeholder values
738
+ #
739
+ # resp = client.describe_events({
740
+ # server_name: "ServerName", # required
741
+ # next_token: "NextToken",
742
+ # max_results: 1,
743
+ # })
744
+ #
745
+ # @example Response structure
746
+ #
747
+ # resp.server_events #=> Array
748
+ # resp.server_events[0].created_at #=> Time
749
+ # resp.server_events[0].server_name #=> String
750
+ # resp.server_events[0].message #=> String
751
+ # resp.server_events[0].log_url #=> String
752
+ # resp.next_token #=> String
753
+ #
754
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeEvents AWS API Documentation
755
+ #
756
+ # @overload describe_events(params = {})
757
+ # @param [Hash] params ({})
758
+ def describe_events(params = {}, options = {})
759
+ req = build_request(:describe_events, params)
760
+ req.send_request(options)
761
+ end
655
762
 
656
- # Lists all configuration management servers that are identified with
657
- # your account. Only the stored results from Amazon DynamoDB are
658
- # returned. AWS OpsWorks for Chef Automate does not query other
659
- # services.
660
- #
661
- # This operation is synchronous.
662
- #
663
- # A `ResourceNotFoundException` is thrown when the server does not
664
- # exist. A `ValidationException` is raised when parameters of the
665
- # request are invalid.
666
- # @option params [String] :server_name
667
- # Describes the server with the specified ServerName.
668
- # @option params [String] :next_token
669
- # NextToken is a string that is returned in some command responses. It
670
- # indicates that not all entries have been returned, and that you must
671
- # run at least one more request to get remaining items. To get remaining
672
- # results, call `DescribeServers` again, and assign the token from the
673
- # previous results as the value of the `nextToken` parameter. If there
674
- # are no more results, the response object's `nextToken` parameter
675
- # value is `null`. Setting a `nextToken` value that was not returned in
676
- # your previous results causes an `InvalidNextTokenException` to occur.
677
- # @option params [Integer] :max_results
678
- # To receive a paginated response, use this parameter to specify the
679
- # maximum number of results to be returned with a single call. If the
680
- # number of available results exceeds this maximum, the response
681
- # includes a `NextToken` value that you can assign to the `NextToken`
682
- # request parameter to get the next set of results.
683
- # @return [Types::DescribeServersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
684
- #
685
- # * {Types::DescribeServersResponse#servers #Servers} => Array&lt;Types::Server&gt;
686
- # * {Types::DescribeServersResponse#next_token #NextToken} => String
687
- #
688
- # @example Request syntax with placeholder values
689
- # resp = client.describe_servers({
690
- # server_name: "ServerName",
691
- # next_token: "NextToken",
692
- # max_results: 1,
693
- # })
694
- #
695
- # @example Response structure
696
- # resp.servers #=> Array
697
- # resp.servers[0].backup_retention_count #=> Integer
698
- # resp.servers[0].server_name #=> String
699
- # resp.servers[0].created_at #=> Time
700
- # resp.servers[0].disable_automated_backup #=> Boolean
701
- # resp.servers[0].endpoint #=> String
702
- # resp.servers[0].engine #=> String
703
- # resp.servers[0].engine_model #=> String
704
- # resp.servers[0].engine_attributes #=> Array
705
- # resp.servers[0].engine_attributes[0].name #=> String
706
- # resp.servers[0].engine_attributes[0].value #=> String
707
- # resp.servers[0].engine_version #=> String
708
- # resp.servers[0].instance_profile_arn #=> String
709
- # resp.servers[0].instance_type #=> String
710
- # resp.servers[0].key_pair #=> String
711
- # resp.servers[0].maintenance_status #=> String, one of "SUCCESS", "FAILED"
712
- # resp.servers[0].preferred_maintenance_window #=> String
713
- # resp.servers[0].preferred_backup_window #=> String
714
- # resp.servers[0].security_group_ids #=> Array
715
- # resp.servers[0].security_group_ids[0] #=> String
716
- # resp.servers[0].service_role_arn #=> String
717
- # resp.servers[0].status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY"
718
- # resp.servers[0].status_reason #=> String
719
- # resp.servers[0].subnet_ids #=> Array
720
- # resp.servers[0].subnet_ids[0] #=> String
721
- # resp.servers[0].server_arn #=> String
722
- # resp.next_token #=> String
723
- # @overload describe_servers(params = {})
724
- # @param [Hash] params ({})
725
- def describe_servers(params = {}, options = {})
726
- req = build_request(:describe_servers, params)
727
- req.send_request(options)
728
- end
763
+ # Returns the current status of an existing association or
764
+ # disassociation request.
765
+ #
766
+ # A `ResourceNotFoundException` is thrown when no recent association or
767
+ # disassociation request with the specified token is found, or when the
768
+ # server does not exist. A `ValidationException` is raised when
769
+ # parameters of the request are not valid.
770
+ #
771
+ # @option params [required, String] :node_association_status_token
772
+ #
773
+ # @option params [required, String] :server_name
774
+ # The name of the server from which to disassociate the node.
775
+ #
776
+ # @return [Types::DescribeNodeAssociationStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
777
+ #
778
+ # * {Types::DescribeNodeAssociationStatusResponse#node_association_status #node_association_status} => String
779
+ #
780
+ # @example Request syntax with placeholder values
781
+ #
782
+ # resp = client.describe_node_association_status({
783
+ # node_association_status_token: "NodeAssociationStatusToken", # required
784
+ # server_name: "ServerName", # required
785
+ # })
786
+ #
787
+ # @example Response structure
788
+ #
789
+ # resp.node_association_status #=> String, one of "SUCCESS", "FAILED", "IN_PROGRESS"
790
+ #
791
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatus AWS API Documentation
792
+ #
793
+ # @overload describe_node_association_status(params = {})
794
+ # @param [Hash] params ({})
795
+ def describe_node_association_status(params = {}, options = {})
796
+ req = build_request(:describe_node_association_status, params)
797
+ req.send_request(options)
798
+ end
729
799
 
730
- # @option params [required, String] :server_name
731
- # @option params [required, String] :node_name
732
- # @option params [Array<Types::EngineAttribute>] :engine_attributes
733
- # @return [Types::DisassociateNodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
734
- #
735
- # * {Types::DisassociateNodeResponse#node_association_status_token #NodeAssociationStatusToken} => String
736
- #
737
- # @example Request syntax with placeholder values
738
- # resp = client.disassociate_node({
739
- # server_name: "ServerName", # required
740
- # node_name: "NodeName", # required
741
- # engine_attributes: [
742
- # {
743
- # name: "String",
744
- # value: "String",
745
- # },
746
- # ],
747
- # })
748
- #
749
- # @example Response structure
750
- # resp.node_association_status_token #=> String
751
- # @overload disassociate_node(params = {})
752
- # @param [Hash] params ({})
753
- def disassociate_node(params = {}, options = {})
754
- req = build_request(:disassociate_node, params)
755
- req.send_request(options)
756
- end
800
+ # Lists all configuration management servers that are identified with
801
+ # your account. Only the stored results from Amazon DynamoDB are
802
+ # returned. AWS OpsWorks for Chef Automate does not query other
803
+ # services.
804
+ #
805
+ # This operation is synchronous.
806
+ #
807
+ # A `ResourceNotFoundException` is thrown when the server does not
808
+ # exist. A `ValidationException` is raised when parameters of the
809
+ # request are not valid.
810
+ #
811
+ # @option params [String] :server_name
812
+ # Describes the server with the specified ServerName.
813
+ #
814
+ # @option params [String] :next_token
815
+ # NextToken is a string that is returned in some command responses. It
816
+ # indicates that not all entries have been returned, and that you must
817
+ # run at least one more request to get remaining items. To get remaining
818
+ # results, call `DescribeServers` again, and assign the token from the
819
+ # previous results as the value of the `nextToken` parameter. If there
820
+ # are no more results, the response object's `nextToken` parameter
821
+ # value is `null`. Setting a `nextToken` value that was not returned in
822
+ # your previous results causes an `InvalidNextTokenException` to occur.
823
+ #
824
+ # @option params [Integer] :max_results
825
+ # To receive a paginated response, use this parameter to specify the
826
+ # maximum number of results to be returned with a single call. If the
827
+ # number of available results exceeds this maximum, the response
828
+ # includes a `NextToken` value that you can assign to the `NextToken`
829
+ # request parameter to get the next set of results.
830
+ #
831
+ # @return [Types::DescribeServersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
832
+ #
833
+ # * {Types::DescribeServersResponse#servers #servers} => Array&lt;Types::Server&gt;
834
+ # * {Types::DescribeServersResponse#next_token #next_token} => String
835
+ #
836
+ # @example Request syntax with placeholder values
837
+ #
838
+ # resp = client.describe_servers({
839
+ # server_name: "ServerName",
840
+ # next_token: "NextToken",
841
+ # max_results: 1,
842
+ # })
843
+ #
844
+ # @example Response structure
845
+ #
846
+ # resp.servers #=> Array
847
+ # resp.servers[0].associate_public_ip_address #=> Boolean
848
+ # resp.servers[0].backup_retention_count #=> Integer
849
+ # resp.servers[0].server_name #=> String
850
+ # resp.servers[0].created_at #=> Time
851
+ # resp.servers[0].cloud_formation_stack_arn #=> String
852
+ # resp.servers[0].disable_automated_backup #=> Boolean
853
+ # resp.servers[0].endpoint #=> String
854
+ # resp.servers[0].engine #=> String
855
+ # resp.servers[0].engine_model #=> String
856
+ # resp.servers[0].engine_attributes #=> Array
857
+ # resp.servers[0].engine_attributes[0].name #=> String
858
+ # resp.servers[0].engine_attributes[0].value #=> String
859
+ # resp.servers[0].engine_version #=> String
860
+ # resp.servers[0].instance_profile_arn #=> String
861
+ # resp.servers[0].instance_type #=> String
862
+ # resp.servers[0].key_pair #=> String
863
+ # resp.servers[0].maintenance_status #=> String, one of "SUCCESS", "FAILED"
864
+ # resp.servers[0].preferred_maintenance_window #=> String
865
+ # resp.servers[0].preferred_backup_window #=> String
866
+ # resp.servers[0].security_group_ids #=> Array
867
+ # resp.servers[0].security_group_ids[0] #=> String
868
+ # resp.servers[0].service_role_arn #=> String
869
+ # resp.servers[0].status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "RESTORING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY", "TERMINATED"
870
+ # resp.servers[0].status_reason #=> String
871
+ # resp.servers[0].subnet_ids #=> Array
872
+ # resp.servers[0].subnet_ids[0] #=> String
873
+ # resp.servers[0].server_arn #=> String
874
+ # resp.next_token #=> String
875
+ #
876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeServers AWS API Documentation
877
+ #
878
+ # @overload describe_servers(params = {})
879
+ # @param [Hash] params ({})
880
+ def describe_servers(params = {}, options = {})
881
+ req = build_request(:describe_servers, params)
882
+ req.send_request(options)
883
+ end
757
884
 
758
- # Restores a backup to a server that is in a `RUNNING`, `FAILED`, or
759
- # `HEALTHY` state. When you run RestoreServer, the server's EC2
760
- # instance is deleted, and a new EC2 instance is configured.
761
- # RestoreServer maintains the existing server endpoint, so configuration
762
- # management of all of the server's client devices should continue to
763
- # work.
764
- #
765
- # This operation is asynchronous.
766
- #
767
- # A `InvalidStateException` is thrown when the server is not in a valid
768
- # state. A `ResourceNotFoundException` is thrown when the server does
769
- # not exist. A `ValidationException` is raised when parameters of the
770
- # request are invalid.
771
- # @option params [required, String] :backup_id
772
- # The ID of the backup that you want to use to restore a server.
773
- # @option params [required, String] :server_name
774
- # The name of the server that you want to restore.
775
- # @option params [String] :instance_type
776
- # The type of the instance to create. Valid values must be specified in
777
- # the following format: `^([cm][34]|t2).*` For example, `c3.large`. If
778
- # you do not specify this parameter, RestoreServer uses the instance
779
- # type from the specified backup.
780
- # @option params [String] :key_pair
781
- # The name of the key pair to set on the new EC2 instance. This can be
782
- # helpful if any of the administrators who manage the server no longer
783
- # have the SSH key.
784
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
785
- #
786
- # @example Request syntax with placeholder values
787
- # resp = client.restore_server({
788
- # backup_id: "BackupId", # required
789
- # server_name: "ServerName", # required
790
- # instance_type: "String",
791
- # key_pair: "KeyPair",
792
- # })
793
- # @overload restore_server(params = {})
794
- # @param [Hash] params ({})
795
- def restore_server(params = {}, options = {})
796
- req = build_request(:restore_server, params)
797
- req.send_request(options)
798
- end
885
+ # Disassociates a node from a Chef server, and removes the node from the
886
+ # Chef server's managed nodes. After a node is disassociated, the node
887
+ # key pair is no longer valid for accessing the Chef API. For more
888
+ # information about how to associate a node, see AssociateNode.
889
+ #
890
+ # A node can can only be disassociated from a server that is in a
891
+ # `HEALTHY` state. Otherwise, an `InvalidStateException` is thrown. A
892
+ # `ResourceNotFoundException` is thrown when the server does not exist.
893
+ # A `ValidationException` is raised when parameters of the request are
894
+ # not valid.
895
+ #
896
+ # @option params [required, String] :server_name
897
+ # The name of the server from which to disassociate the node.
898
+ #
899
+ # @option params [required, String] :node_name
900
+ # The name of the Chef client node.
901
+ #
902
+ # @option params [Array<Types::EngineAttribute>] :engine_attributes
903
+ # Engine attributes used for disassociating the node.
904
+ #
905
+ # **Attributes accepted in a DisassociateNode request:**
906
+ #
907
+ # * `CHEF_ORGANIZATION`\: The Chef organization with which the node was
908
+ # associated. By default only one organization named `default` can
909
+ # exist.
910
+ #
911
+ # ^
912
+ #
913
+ # @return [Types::DisassociateNodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
914
+ #
915
+ # * {Types::DisassociateNodeResponse#node_association_status_token #node_association_status_token} => String
916
+ #
917
+ # @example Request syntax with placeholder values
918
+ #
919
+ # resp = client.disassociate_node({
920
+ # server_name: "ServerName", # required
921
+ # node_name: "NodeName", # required
922
+ # engine_attributes: [
923
+ # {
924
+ # name: "EngineAttributeName",
925
+ # value: "EngineAttributeValue",
926
+ # },
927
+ # ],
928
+ # })
929
+ #
930
+ # @example Response structure
931
+ #
932
+ # resp.node_association_status_token #=> String
933
+ #
934
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DisassociateNode AWS API Documentation
935
+ #
936
+ # @overload disassociate_node(params = {})
937
+ # @param [Hash] params ({})
938
+ def disassociate_node(params = {}, options = {})
939
+ req = build_request(:disassociate_node, params)
940
+ req.send_request(options)
941
+ end
799
942
 
800
- # Manually starts server maintenance. This command can be useful if an
801
- # earlier maintenance attempt failed, and the underlying cause of
802
- # maintenance failure has been resolved. The server will switch to
803
- # `UNDER_MAINTENANCE` state, while maintenace is in progress.
804
- #
805
- # Maintenace can only be started for `HEALTHY` and `UNHEALTHY` servers.
806
- # A `InvalidStateException` is thrown otherwise. A
807
- # `ResourceNotFoundException` is thrown when the server does not exist.
808
- # A `ValidationException` is raised when parameters of the request are
809
- # invalid.
810
- # @option params [required, String] :server_name
811
- # The name of the server on which to run maintenance.
812
- # @return [Types::StartMaintenanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
813
- #
814
- # * {Types::StartMaintenanceResponse#server #Server} => Types::Server
815
- #
816
- # @example Request syntax with placeholder values
817
- # resp = client.start_maintenance({
818
- # server_name: "ServerName", # required
819
- # })
820
- #
821
- # @example Response structure
822
- # resp.server.backup_retention_count #=> Integer
823
- # resp.server.server_name #=> String
824
- # resp.server.created_at #=> Time
825
- # resp.server.disable_automated_backup #=> Boolean
826
- # resp.server.endpoint #=> String
827
- # resp.server.engine #=> String
828
- # resp.server.engine_model #=> String
829
- # resp.server.engine_attributes #=> Array
830
- # resp.server.engine_attributes[0].name #=> String
831
- # resp.server.engine_attributes[0].value #=> String
832
- # resp.server.engine_version #=> String
833
- # resp.server.instance_profile_arn #=> String
834
- # resp.server.instance_type #=> String
835
- # resp.server.key_pair #=> String
836
- # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
837
- # resp.server.preferred_maintenance_window #=> String
838
- # resp.server.preferred_backup_window #=> String
839
- # resp.server.security_group_ids #=> Array
840
- # resp.server.security_group_ids[0] #=> String
841
- # resp.server.service_role_arn #=> String
842
- # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY"
843
- # resp.server.status_reason #=> String
844
- # resp.server.subnet_ids #=> Array
845
- # resp.server.subnet_ids[0] #=> String
846
- # resp.server.server_arn #=> String
847
- # @overload start_maintenance(params = {})
848
- # @param [Hash] params ({})
849
- def start_maintenance(params = {}, options = {})
850
- req = build_request(:start_maintenance, params)
851
- req.send_request(options)
852
- end
943
+ # Restores a backup to a server that is in a `CONNECTION_LOST`,
944
+ # `HEALTHY`, `RUNNING`, `UNHEALTHY`, or `TERMINATED` state. When you run
945
+ # RestoreServer, the server's EC2 instance is deleted, and a new EC2
946
+ # instance is configured. RestoreServer maintains the existing server
947
+ # endpoint, so configuration management of the server's client devices
948
+ # (nodes) should continue to work.
949
+ #
950
+ # This operation is asynchronous.
951
+ #
952
+ # An `InvalidStateException` is thrown when the server is not in a valid
953
+ # state. A `ResourceNotFoundException` is thrown when the server does
954
+ # not exist. A `ValidationException` is raised when parameters of the
955
+ # request are not valid.
956
+ #
957
+ # @option params [required, String] :backup_id
958
+ # The ID of the backup that you want to use to restore a server.
959
+ #
960
+ # @option params [required, String] :server_name
961
+ # The name of the server that you want to restore.
962
+ #
963
+ # @option params [String] :instance_type
964
+ # The type of the instance to create. Valid values must be specified in
965
+ # the following format: `^([cm][34]|t2).*` For example, `m4.large`.
966
+ # Valid values are `t2.medium`, `m4.large`, and `m4.2xlarge`. If you do
967
+ # not specify this parameter, RestoreServer uses the instance type from
968
+ # the specified backup.
969
+ #
970
+ # @option params [String] :key_pair
971
+ # The name of the key pair to set on the new EC2 instance. This can be
972
+ # helpful if the administrator no longer has the SSH key.
973
+ #
974
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
975
+ #
976
+ # @example Request syntax with placeholder values
977
+ #
978
+ # resp = client.restore_server({
979
+ # backup_id: "BackupId", # required
980
+ # server_name: "ServerName", # required
981
+ # instance_type: "String",
982
+ # key_pair: "KeyPair",
983
+ # })
984
+ #
985
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/RestoreServer AWS API Documentation
986
+ #
987
+ # @overload restore_server(params = {})
988
+ # @param [Hash] params ({})
989
+ def restore_server(params = {}, options = {})
990
+ req = build_request(:restore_server, params)
991
+ req.send_request(options)
992
+ end
853
993
 
854
- # Updates settings for a server.
855
- #
856
- # This operation is synchronous.
857
- # @option params [Boolean] :disable_automated_backup
858
- # Setting DisableAutomatedBackup to `true` disables automated or
859
- # scheduled backups. Automated backups are enabled by default.
860
- # @option params [Integer] :backup_retention_count
861
- # Sets the number of automated backups that you want to keep.
862
- # @option params [required, String] :server_name
863
- # The name of the server to update.
864
- # @option params [String] :preferred_maintenance_window
865
- # `DDD:HH:MM` (weekly start time) or `HH:MM` (daily start time).
866
- #
867
- # Time windows always use coordinated universal time (UTC).
868
- #
869
- # Valid strings for day of week (`DDD`) are: Mon, Tue, Wed, Thr, Fri,
870
- # Sat, Sun.
871
- # @option params [String] :preferred_backup_window
872
- # `DDD:HH:MM` (weekly start time) or `HH:MM` (daily start time).
873
- #
874
- # Time windows always use coordinated universal time (UTC).
875
- #
876
- # Valid strings for day of week (`DDD`) are: Mon, Tue, Wed, Thr, Fri,
877
- # Sat, Sun.
878
- # @return [Types::UpdateServerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
879
- #
880
- # * {Types::UpdateServerResponse#server #Server} => Types::Server
881
- #
882
- # @example Request syntax with placeholder values
883
- # resp = client.update_server({
884
- # disable_automated_backup: false,
885
- # backup_retention_count: 1,
886
- # server_name: "ServerName", # required
887
- # preferred_maintenance_window: "TimeWindowDefinition",
888
- # preferred_backup_window: "TimeWindowDefinition",
889
- # })
890
- #
891
- # @example Response structure
892
- # resp.server.backup_retention_count #=> Integer
893
- # resp.server.server_name #=> String
894
- # resp.server.created_at #=> Time
895
- # resp.server.disable_automated_backup #=> Boolean
896
- # resp.server.endpoint #=> String
897
- # resp.server.engine #=> String
898
- # resp.server.engine_model #=> String
899
- # resp.server.engine_attributes #=> Array
900
- # resp.server.engine_attributes[0].name #=> String
901
- # resp.server.engine_attributes[0].value #=> String
902
- # resp.server.engine_version #=> String
903
- # resp.server.instance_profile_arn #=> String
904
- # resp.server.instance_type #=> String
905
- # resp.server.key_pair #=> String
906
- # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
907
- # resp.server.preferred_maintenance_window #=> String
908
- # resp.server.preferred_backup_window #=> String
909
- # resp.server.security_group_ids #=> Array
910
- # resp.server.security_group_ids[0] #=> String
911
- # resp.server.service_role_arn #=> String
912
- # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY"
913
- # resp.server.status_reason #=> String
914
- # resp.server.subnet_ids #=> Array
915
- # resp.server.subnet_ids[0] #=> String
916
- # resp.server.server_arn #=> String
917
- # @overload update_server(params = {})
918
- # @param [Hash] params ({})
919
- def update_server(params = {}, options = {})
920
- req = build_request(:update_server, params)
921
- req.send_request(options)
922
- end
994
+ # Manually starts server maintenance. This command can be useful if an
995
+ # earlier maintenance attempt failed, and the underlying cause of
996
+ # maintenance failure has been resolved. The server is in an
997
+ # `UNDER_MAINTENANCE` state while maintenance is in progress.
998
+ #
999
+ # Maintenance can only be started on servers in `HEALTHY` and
1000
+ # `UNHEALTHY` states. Otherwise, an `InvalidStateException` is thrown. A
1001
+ # `ResourceNotFoundException` is thrown when the server does not exist.
1002
+ # A `ValidationException` is raised when parameters of the request are
1003
+ # not valid.
1004
+ #
1005
+ # @option params [required, String] :server_name
1006
+ # The name of the server on which to run maintenance.
1007
+ #
1008
+ # @return [Types::StartMaintenanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1009
+ #
1010
+ # * {Types::StartMaintenanceResponse#server #server} => Types::Server
1011
+ #
1012
+ # @example Request syntax with placeholder values
1013
+ #
1014
+ # resp = client.start_maintenance({
1015
+ # server_name: "ServerName", # required
1016
+ # })
1017
+ #
1018
+ # @example Response structure
1019
+ #
1020
+ # resp.server.associate_public_ip_address #=> Boolean
1021
+ # resp.server.backup_retention_count #=> Integer
1022
+ # resp.server.server_name #=> String
1023
+ # resp.server.created_at #=> Time
1024
+ # resp.server.cloud_formation_stack_arn #=> String
1025
+ # resp.server.disable_automated_backup #=> Boolean
1026
+ # resp.server.endpoint #=> String
1027
+ # resp.server.engine #=> String
1028
+ # resp.server.engine_model #=> String
1029
+ # resp.server.engine_attributes #=> Array
1030
+ # resp.server.engine_attributes[0].name #=> String
1031
+ # resp.server.engine_attributes[0].value #=> String
1032
+ # resp.server.engine_version #=> String
1033
+ # resp.server.instance_profile_arn #=> String
1034
+ # resp.server.instance_type #=> String
1035
+ # resp.server.key_pair #=> String
1036
+ # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
1037
+ # resp.server.preferred_maintenance_window #=> String
1038
+ # resp.server.preferred_backup_window #=> String
1039
+ # resp.server.security_group_ids #=> Array
1040
+ # resp.server.security_group_ids[0] #=> String
1041
+ # resp.server.service_role_arn #=> String
1042
+ # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "RESTORING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY", "TERMINATED"
1043
+ # resp.server.status_reason #=> String
1044
+ # resp.server.subnet_ids #=> Array
1045
+ # resp.server.subnet_ids[0] #=> String
1046
+ # resp.server.server_arn #=> String
1047
+ #
1048
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/StartMaintenance AWS API Documentation
1049
+ #
1050
+ # @overload start_maintenance(params = {})
1051
+ # @param [Hash] params ({})
1052
+ def start_maintenance(params = {}, options = {})
1053
+ req = build_request(:start_maintenance, params)
1054
+ req.send_request(options)
1055
+ end
923
1056
 
924
- # Updates engine specific attributes on a specified server. Server will
925
- # enter the `MODIFYING` state when this operation is in progress. Only
926
- # one update can take place at a time.
927
- #
928
- # This operation can be use to reset Chef Server main API key
929
- # (`CHEF_PIVOTAL_KEY`).
930
- #
931
- # This operation is asynchronous.
932
- #
933
- #
934
- #
935
- # This operation can only be called for `HEALTHY` and `UNHEALTHY`
936
- # servers. Otherwise a `InvalidStateException` is raised. A
937
- # `ResourceNotFoundException` is thrown when the server does not exist.
938
- # A `ValidationException` is raised when parameters of the request are
939
- # invalid.
940
- # @option params [required, String] :server_name
941
- # The name of the server to update.
942
- # @option params [required, String] :attribute_name
943
- # The name of the engine attribute to update.
944
- # @option params [String] :attribute_value
945
- # The value to set for the attribute.
946
- # @return [Types::UpdateServerEngineAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
947
- #
948
- # * {Types::UpdateServerEngineAttributesResponse#server #Server} => Types::Server
949
- #
950
- # @example Request syntax with placeholder values
951
- # resp = client.update_server_engine_attributes({
952
- # server_name: "ServerName", # required
953
- # attribute_name: "AttributeName", # required
954
- # attribute_value: "AttributeValue",
955
- # })
956
- #
957
- # @example Response structure
958
- # resp.server.backup_retention_count #=> Integer
959
- # resp.server.server_name #=> String
960
- # resp.server.created_at #=> Time
961
- # resp.server.disable_automated_backup #=> Boolean
962
- # resp.server.endpoint #=> String
963
- # resp.server.engine #=> String
964
- # resp.server.engine_model #=> String
965
- # resp.server.engine_attributes #=> Array
966
- # resp.server.engine_attributes[0].name #=> String
967
- # resp.server.engine_attributes[0].value #=> String
968
- # resp.server.engine_version #=> String
969
- # resp.server.instance_profile_arn #=> String
970
- # resp.server.instance_type #=> String
971
- # resp.server.key_pair #=> String
972
- # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
973
- # resp.server.preferred_maintenance_window #=> String
974
- # resp.server.preferred_backup_window #=> String
975
- # resp.server.security_group_ids #=> Array
976
- # resp.server.security_group_ids[0] #=> String
977
- # resp.server.service_role_arn #=> String
978
- # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY"
979
- # resp.server.status_reason #=> String
980
- # resp.server.subnet_ids #=> Array
981
- # resp.server.subnet_ids[0] #=> String
982
- # resp.server.server_arn #=> String
983
- # @overload update_server_engine_attributes(params = {})
984
- # @param [Hash] params ({})
985
- def update_server_engine_attributes(params = {}, options = {})
986
- req = build_request(:update_server_engine_attributes, params)
987
- req.send_request(options)
988
- end
1057
+ # Updates settings for a server.
1058
+ #
1059
+ # This operation is synchronous.
1060
+ #
1061
+ # @option params [Boolean] :disable_automated_backup
1062
+ # Setting DisableAutomatedBackup to `true` disables automated or
1063
+ # scheduled backups. Automated backups are enabled by default.
1064
+ #
1065
+ # @option params [Integer] :backup_retention_count
1066
+ # Sets the number of automated backups that you want to keep.
1067
+ #
1068
+ # @option params [required, String] :server_name
1069
+ # The name of the server to update.
1070
+ #
1071
+ # @option params [String] :preferred_maintenance_window
1072
+ # `DDD:HH:MM` (weekly start time) or `HH:MM` (daily start time).
1073
+ #
1074
+ # Time windows always use coordinated universal time (UTC). Valid
1075
+ # strings for day of week (`DDD`) are: `Mon`, `Tue`, `Wed`, `Thr`,
1076
+ # `Fri`, `Sat`, or `Sun`.
1077
+ #
1078
+ # @option params [String] :preferred_backup_window
1079
+ # `DDD:HH:MM` (weekly start time) or `HH:MM` (daily start time).
1080
+ #
1081
+ # Time windows always use coordinated universal time (UTC). Valid
1082
+ # strings for day of week (`DDD`) are: `Mon`, `Tue`, `Wed`, `Thr`,
1083
+ # `Fri`, `Sat`, or `Sun`.
1084
+ #
1085
+ # @return [Types::UpdateServerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1086
+ #
1087
+ # * {Types::UpdateServerResponse#server #server} => Types::Server
1088
+ #
1089
+ # @example Request syntax with placeholder values
1090
+ #
1091
+ # resp = client.update_server({
1092
+ # disable_automated_backup: false,
1093
+ # backup_retention_count: 1,
1094
+ # server_name: "ServerName", # required
1095
+ # preferred_maintenance_window: "TimeWindowDefinition",
1096
+ # preferred_backup_window: "TimeWindowDefinition",
1097
+ # })
1098
+ #
1099
+ # @example Response structure
1100
+ #
1101
+ # resp.server.associate_public_ip_address #=> Boolean
1102
+ # resp.server.backup_retention_count #=> Integer
1103
+ # resp.server.server_name #=> String
1104
+ # resp.server.created_at #=> Time
1105
+ # resp.server.cloud_formation_stack_arn #=> String
1106
+ # resp.server.disable_automated_backup #=> Boolean
1107
+ # resp.server.endpoint #=> String
1108
+ # resp.server.engine #=> String
1109
+ # resp.server.engine_model #=> String
1110
+ # resp.server.engine_attributes #=> Array
1111
+ # resp.server.engine_attributes[0].name #=> String
1112
+ # resp.server.engine_attributes[0].value #=> String
1113
+ # resp.server.engine_version #=> String
1114
+ # resp.server.instance_profile_arn #=> String
1115
+ # resp.server.instance_type #=> String
1116
+ # resp.server.key_pair #=> String
1117
+ # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
1118
+ # resp.server.preferred_maintenance_window #=> String
1119
+ # resp.server.preferred_backup_window #=> String
1120
+ # resp.server.security_group_ids #=> Array
1121
+ # resp.server.security_group_ids[0] #=> String
1122
+ # resp.server.service_role_arn #=> String
1123
+ # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "RESTORING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY", "TERMINATED"
1124
+ # resp.server.status_reason #=> String
1125
+ # resp.server.subnet_ids #=> Array
1126
+ # resp.server.subnet_ids[0] #=> String
1127
+ # resp.server.server_arn #=> String
1128
+ #
1129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServer AWS API Documentation
1130
+ #
1131
+ # @overload update_server(params = {})
1132
+ # @param [Hash] params ({})
1133
+ def update_server(params = {}, options = {})
1134
+ req = build_request(:update_server, params)
1135
+ req.send_request(options)
1136
+ end
989
1137
 
990
- # @!endgroup
1138
+ # Updates engine-specific attributes on a specified server. The server
1139
+ # enters the `MODIFYING` state when this operation is in progress. Only
1140
+ # one update can occur at a time. You can use this command to reset the
1141
+ # Chef server's private key (`CHEF_PIVOTAL_KEY`).
1142
+ #
1143
+ # This operation is asynchronous.
1144
+ #
1145
+ # This operation can only be called for servers in `HEALTHY` or
1146
+ # `UNHEALTHY` states. Otherwise, an `InvalidStateException` is raised. A
1147
+ # `ResourceNotFoundException` is thrown when the server does not exist.
1148
+ # A `ValidationException` is raised when parameters of the request are
1149
+ # not valid.
1150
+ #
1151
+ # @option params [required, String] :server_name
1152
+ # The name of the server to update.
1153
+ #
1154
+ # @option params [required, String] :attribute_name
1155
+ # The name of the engine attribute to update.
1156
+ #
1157
+ # @option params [String] :attribute_value
1158
+ # The value to set for the attribute.
1159
+ #
1160
+ # @return [Types::UpdateServerEngineAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1161
+ #
1162
+ # * {Types::UpdateServerEngineAttributesResponse#server #server} => Types::Server
1163
+ #
1164
+ # @example Request syntax with placeholder values
1165
+ #
1166
+ # resp = client.update_server_engine_attributes({
1167
+ # server_name: "ServerName", # required
1168
+ # attribute_name: "AttributeName", # required
1169
+ # attribute_value: "AttributeValue",
1170
+ # })
1171
+ #
1172
+ # @example Response structure
1173
+ #
1174
+ # resp.server.associate_public_ip_address #=> Boolean
1175
+ # resp.server.backup_retention_count #=> Integer
1176
+ # resp.server.server_name #=> String
1177
+ # resp.server.created_at #=> Time
1178
+ # resp.server.cloud_formation_stack_arn #=> String
1179
+ # resp.server.disable_automated_backup #=> Boolean
1180
+ # resp.server.endpoint #=> String
1181
+ # resp.server.engine #=> String
1182
+ # resp.server.engine_model #=> String
1183
+ # resp.server.engine_attributes #=> Array
1184
+ # resp.server.engine_attributes[0].name #=> String
1185
+ # resp.server.engine_attributes[0].value #=> String
1186
+ # resp.server.engine_version #=> String
1187
+ # resp.server.instance_profile_arn #=> String
1188
+ # resp.server.instance_type #=> String
1189
+ # resp.server.key_pair #=> String
1190
+ # resp.server.maintenance_status #=> String, one of "SUCCESS", "FAILED"
1191
+ # resp.server.preferred_maintenance_window #=> String
1192
+ # resp.server.preferred_backup_window #=> String
1193
+ # resp.server.security_group_ids #=> Array
1194
+ # resp.server.security_group_ids[0] #=> String
1195
+ # resp.server.service_role_arn #=> String
1196
+ # resp.server.status #=> String, one of "BACKING_UP", "CONNECTION_LOST", "CREATING", "DELETING", "MODIFYING", "FAILED", "HEALTHY", "RUNNING", "RESTORING", "SETUP", "UNDER_MAINTENANCE", "UNHEALTHY", "TERMINATED"
1197
+ # resp.server.status_reason #=> String
1198
+ # resp.server.subnet_ids #=> Array
1199
+ # resp.server.subnet_ids[0] #=> String
1200
+ # resp.server.server_arn #=> String
1201
+ #
1202
+ # @see http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerEngineAttributes AWS API Documentation
1203
+ #
1204
+ # @overload update_server_engine_attributes(params = {})
1205
+ # @param [Hash] params ({})
1206
+ def update_server_engine_attributes(params = {}, options = {})
1207
+ req = build_request(:update_server_engine_attributes, params)
1208
+ req.send_request(options)
1209
+ end
991
1210
 
992
- # @param params ({})
993
- # @api private
994
- def build_request(operation_name, params = {})
995
- handlers = @handlers.for(operation_name)
996
- context = Seahorse::Client::RequestContext.new(
997
- operation_name: operation_name,
998
- operation: config.api.operation(operation_name),
999
- client: self,
1000
- params: params,
1001
- config: config)
1002
- context[:gem_name] = 'aws-sdk-opsworkscm'
1003
- context[:gem_version] = '1.0.0.rc2'
1004
- Seahorse::Client::Request.new(handlers, context)
1005
- end
1211
+ # @!endgroup
1006
1212
 
1007
- # @api private
1008
- # @deprecated
1009
- def waiter_names
1010
- []
1011
- end
1213
+ # @param params ({})
1214
+ # @api private
1215
+ def build_request(operation_name, params = {})
1216
+ handlers = @handlers.for(operation_name)
1217
+ context = Seahorse::Client::RequestContext.new(
1218
+ operation_name: operation_name,
1219
+ operation: config.api.operation(operation_name),
1220
+ client: self,
1221
+ params: params,
1222
+ config: config)
1223
+ context[:gem_name] = 'aws-sdk-opsworkscm'
1224
+ context[:gem_version] = '1.0.0.rc3'
1225
+ Seahorse::Client::Request.new(handlers, context)
1226
+ end
1012
1227
 
1013
- class << self
1228
+ # @api private
1229
+ # @deprecated
1230
+ def waiter_names
1231
+ []
1232
+ end
1014
1233
 
1015
- # @api private
1016
- attr_reader :identifier
1234
+ class << self
1017
1235
 
1018
- # @api private
1019
- def errors_module
1020
- Errors
1021
- end
1236
+ # @api private
1237
+ attr_reader :identifier
1022
1238
 
1239
+ # @api private
1240
+ def errors_module
1241
+ Errors
1023
1242
  end
1243
+
1024
1244
  end
1025
1245
  end
1026
1246
  end