aws-sdk-applicationdiscoveryservice 1.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/aws-sdk-applicationdiscoveryservice.rb +47 -0
- data/lib/aws-sdk-applicationdiscoveryservice/client.rb +510 -0
- data/lib/aws-sdk-applicationdiscoveryservice/client_api.rb +377 -0
- data/lib/aws-sdk-applicationdiscoveryservice/customizations.rb +7 -0
- data/lib/aws-sdk-applicationdiscoveryservice/errors.rb +23 -0
- data/lib/aws-sdk-applicationdiscoveryservice/resource.rb +25 -0
- data/lib/aws-sdk-applicationdiscoveryservice/types.rb +668 -0
- metadata +80 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9467c94a1c9533bd64adbce1f3af5dc10f6dbf15
|
4
|
+
data.tar.gz: 5fa16974059b675ef6d58825c00f9d0025554d20
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 53854cb16a583c9193da8f59d834fa986c44c9e08d3000edc54467e995af9b47d5ec4b876ee495f68ea290c16d11ea781bec3df025b1b9b9c21a61bdcc9544b9
|
7
|
+
data.tar.gz: e6ef35a6d22425978ed499be1f04f198cc5a3efb15113d84c3e533f9f76055147074ea2935818f9966b1d05878d42cacdb4fef7c5f5166492e8fb5a7707c23b3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'aws-sdk-core'
|
9
|
+
require 'aws-sigv4'
|
10
|
+
|
11
|
+
require_relative 'aws-sdk-applicationdiscoveryservice/types'
|
12
|
+
require_relative 'aws-sdk-applicationdiscoveryservice/client_api'
|
13
|
+
require_relative 'aws-sdk-applicationdiscoveryservice/client'
|
14
|
+
require_relative 'aws-sdk-applicationdiscoveryservice/errors'
|
15
|
+
require_relative 'aws-sdk-applicationdiscoveryservice/resource'
|
16
|
+
require_relative 'aws-sdk-applicationdiscoveryservice/customizations'
|
17
|
+
|
18
|
+
# This module provides support for AWS Application Discovery Service. This module is available in the
|
19
|
+
# `aws-sdk-applicationdiscoveryservice` gem.
|
20
|
+
#
|
21
|
+
# # Client
|
22
|
+
#
|
23
|
+
# The {Client} class provides one method for each API operation. Operation
|
24
|
+
# methods each accept a hash of request parameters and return a response
|
25
|
+
# structure.
|
26
|
+
#
|
27
|
+
# See {Client} for more information.
|
28
|
+
#
|
29
|
+
# # Errors
|
30
|
+
#
|
31
|
+
# Errors returned from AWS Application Discovery Service all
|
32
|
+
# extend {Errors::ServiceError}.
|
33
|
+
#
|
34
|
+
# begin
|
35
|
+
# # do stuff
|
36
|
+
# rescue Aws::ApplicationDiscoveryService::Errors::ServiceError
|
37
|
+
# # rescues all service API errors
|
38
|
+
# end
|
39
|
+
#
|
40
|
+
# See {Errors} for more information.
|
41
|
+
#
|
42
|
+
# @service
|
43
|
+
module Aws::ApplicationDiscoveryService
|
44
|
+
|
45
|
+
GEM_VERSION = '1.0.0.rc1'
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,510 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing for info on making contributions:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
require 'seahorse/client/plugins/content_length.rb'
|
9
|
+
require 'aws-sdk-core/plugins/credentials_configuration.rb'
|
10
|
+
require 'aws-sdk-core/plugins/logging.rb'
|
11
|
+
require 'aws-sdk-core/plugins/param_converter.rb'
|
12
|
+
require 'aws-sdk-core/plugins/param_validator.rb'
|
13
|
+
require 'aws-sdk-core/plugins/user_agent.rb'
|
14
|
+
require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
15
|
+
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
|
+
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
|
+
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
|
+
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
|
+
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/signature_v4.rb'
|
22
|
+
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
23
|
+
|
24
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:applicationdiscoveryservice)
|
25
|
+
|
26
|
+
module Aws
|
27
|
+
module ApplicationDiscoveryService
|
28
|
+
class Client < Seahorse::Client::Base
|
29
|
+
|
30
|
+
include Aws::ClientStubs
|
31
|
+
|
32
|
+
@identifier = :applicationdiscoveryservice
|
33
|
+
|
34
|
+
set_api(ClientApi::API)
|
35
|
+
|
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)
|
51
|
+
|
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
|
141
|
+
|
142
|
+
# Creates one or more tags for configuration items. Tags are metadata
|
143
|
+
# that help you categorize IT assets. This API accepts a list of
|
144
|
+
# multiple configuration items.
|
145
|
+
# @option params [required, Array<String>] :configuration_ids
|
146
|
+
# A list of configuration items that you want to tag.
|
147
|
+
# @option params [required, Array<Types::Tag>] :tags
|
148
|
+
# Tags that you want to associate with one or more configuration items.
|
149
|
+
# Specify the tags that you want to create in a *key*-*value* format.
|
150
|
+
# For example:
|
151
|
+
#
|
152
|
+
# `\{"key": "serverType", "value": "webServer"\}`
|
153
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
154
|
+
#
|
155
|
+
# @example Request syntax with placeholder values
|
156
|
+
# resp = client.create_tags({
|
157
|
+
# configuration_ids: ["ConfigurationId"], # required
|
158
|
+
# tags: [ # required
|
159
|
+
# {
|
160
|
+
# key: "TagKey", # required
|
161
|
+
# value: "TagValue", # required
|
162
|
+
# },
|
163
|
+
# ],
|
164
|
+
# })
|
165
|
+
# @overload create_tags(params = {})
|
166
|
+
# @param [Hash] params ({})
|
167
|
+
def create_tags(params = {}, options = {})
|
168
|
+
req = build_request(:create_tags, params)
|
169
|
+
req.send_request(options)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Deletes the association between configuration items and one or more
|
173
|
+
# tags. This API accepts a list of multiple configuration items.
|
174
|
+
# @option params [required, Array<String>] :configuration_ids
|
175
|
+
# A list of configuration items with tags that you want to delete.
|
176
|
+
# @option params [Array<Types::Tag>] :tags
|
177
|
+
# Tags that you want to delete from one or more configuration items.
|
178
|
+
# Specify the tags that you want to delete in a *key*-*value* format.
|
179
|
+
# For example:
|
180
|
+
#
|
181
|
+
# `\{"key": "serverType", "value": "webServer"\}`
|
182
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
183
|
+
#
|
184
|
+
# @example Request syntax with placeholder values
|
185
|
+
# resp = client.delete_tags({
|
186
|
+
# configuration_ids: ["ConfigurationId"], # required
|
187
|
+
# tags: [
|
188
|
+
# {
|
189
|
+
# key: "TagKey", # required
|
190
|
+
# value: "TagValue", # required
|
191
|
+
# },
|
192
|
+
# ],
|
193
|
+
# })
|
194
|
+
# @overload delete_tags(params = {})
|
195
|
+
# @param [Hash] params ({})
|
196
|
+
def delete_tags(params = {}, options = {})
|
197
|
+
req = build_request(:delete_tags, params)
|
198
|
+
req.send_request(options)
|
199
|
+
end
|
200
|
+
|
201
|
+
# Lists AWS agents by ID or lists all agents associated with your user
|
202
|
+
# account if you did not specify an agent ID.
|
203
|
+
# @option params [Array<String>] :agent_ids
|
204
|
+
# The agent IDs for which you want information. If you specify no IDs,
|
205
|
+
# the system returns information about all agents associated with your
|
206
|
+
# AWS user account.
|
207
|
+
# @option params [Integer] :max_results
|
208
|
+
# The total number of agents to return. The maximum value is 100.
|
209
|
+
# @option params [String] :next_token
|
210
|
+
# A token to start the list. Use this token to get the next set of
|
211
|
+
# results.
|
212
|
+
# @return [Types::DescribeAgentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
213
|
+
#
|
214
|
+
# * {Types::DescribeAgentsResponse#agents_info #agentsInfo} => Array<Types::AgentInfo>
|
215
|
+
# * {Types::DescribeAgentsResponse#next_token #nextToken} => String
|
216
|
+
#
|
217
|
+
# @example Request syntax with placeholder values
|
218
|
+
# resp = client.describe_agents({
|
219
|
+
# agent_ids: ["AgentId"],
|
220
|
+
# max_results: 1,
|
221
|
+
# next_token: "NextToken",
|
222
|
+
# })
|
223
|
+
#
|
224
|
+
# @example Response structure
|
225
|
+
# resp.agents_info #=> Array
|
226
|
+
# resp.agents_info[0].agent_id #=> String
|
227
|
+
# resp.agents_info[0].host_name #=> String
|
228
|
+
# resp.agents_info[0].agent_network_info_list #=> Array
|
229
|
+
# resp.agents_info[0].agent_network_info_list[0].ip_address #=> String
|
230
|
+
# resp.agents_info[0].agent_network_info_list[0].mac_address #=> String
|
231
|
+
# resp.agents_info[0].connector_id #=> String
|
232
|
+
# resp.agents_info[0].version #=> String
|
233
|
+
# resp.agents_info[0].health #=> String, one of "HEALTHY", "UNHEALTHY", "RUNNING", "UNKNOWN", "BLACKLISTED", "SHUTDOWN"
|
234
|
+
# resp.next_token #=> String
|
235
|
+
# @overload describe_agents(params = {})
|
236
|
+
# @param [Hash] params ({})
|
237
|
+
def describe_agents(params = {}, options = {})
|
238
|
+
req = build_request(:describe_agents, params)
|
239
|
+
req.send_request(options)
|
240
|
+
end
|
241
|
+
|
242
|
+
# Retrieves a list of attributes for a specific configuration ID. For
|
243
|
+
# example, the output for a *server* configuration item includes a list
|
244
|
+
# of attributes about the server, including host name, operating system,
|
245
|
+
# number of network cards, etc.
|
246
|
+
# @option params [required, Array<String>] :configuration_ids
|
247
|
+
# One or more configuration IDs.
|
248
|
+
# @return [Types::DescribeConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
249
|
+
#
|
250
|
+
# * {Types::DescribeConfigurationsResponse#configurations #configurations} => Array<Hash<String,String>>
|
251
|
+
#
|
252
|
+
# @example Request syntax with placeholder values
|
253
|
+
# resp = client.describe_configurations({
|
254
|
+
# configuration_ids: ["ConfigurationId"], # required
|
255
|
+
# })
|
256
|
+
#
|
257
|
+
# @example Response structure
|
258
|
+
# resp.configurations #=> Array
|
259
|
+
# resp.configurations[0] #=> Hash
|
260
|
+
# resp.configurations[0]["String"] #=> String
|
261
|
+
# @overload describe_configurations(params = {})
|
262
|
+
# @param [Hash] params ({})
|
263
|
+
def describe_configurations(params = {}, options = {})
|
264
|
+
req = build_request(:describe_configurations, params)
|
265
|
+
req.send_request(options)
|
266
|
+
end
|
267
|
+
|
268
|
+
# Retrieves the status of a given export process. You can retrieve
|
269
|
+
# status from a maximum of 100 processes.
|
270
|
+
# @option params [Array<String>] :export_ids
|
271
|
+
# A unique identifier that you can use to query the export status.
|
272
|
+
# @option params [Integer] :max_results
|
273
|
+
# The maximum number of results that you want to display as a part of
|
274
|
+
# the query.
|
275
|
+
# @option params [String] :next_token
|
276
|
+
# A token to get the next set of results. For example, if you specified
|
277
|
+
# 100 IDs for `DescribeConfigurationsRequest$configurationIds` but set
|
278
|
+
# `DescribeExportConfigurationsRequest$maxResults` to 10, you will get
|
279
|
+
# results in a set of 10. Use the token in the query to get the next set
|
280
|
+
# of 10.
|
281
|
+
# @return [Types::DescribeExportConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
282
|
+
#
|
283
|
+
# * {Types::DescribeExportConfigurationsResponse#exports_info #exportsInfo} => Array<Types::ExportInfo>
|
284
|
+
# * {Types::DescribeExportConfigurationsResponse#next_token #nextToken} => String
|
285
|
+
#
|
286
|
+
# @example Request syntax with placeholder values
|
287
|
+
# resp = client.describe_export_configurations({
|
288
|
+
# export_ids: ["ConfigurationsExportId"],
|
289
|
+
# max_results: 1,
|
290
|
+
# next_token: "NextToken",
|
291
|
+
# })
|
292
|
+
#
|
293
|
+
# @example Response structure
|
294
|
+
# resp.exports_info #=> Array
|
295
|
+
# resp.exports_info[0].export_id #=> String
|
296
|
+
# resp.exports_info[0].export_status #=> String, one of "FAILED", "SUCCEEDED", "IN_PROGRESS"
|
297
|
+
# resp.exports_info[0].status_message #=> String
|
298
|
+
# resp.exports_info[0].configurations_download_url #=> String
|
299
|
+
# resp.exports_info[0].export_request_time #=> Time
|
300
|
+
# resp.next_token #=> String
|
301
|
+
# @overload describe_export_configurations(params = {})
|
302
|
+
# @param [Hash] params ({})
|
303
|
+
def describe_export_configurations(params = {}, options = {})
|
304
|
+
req = build_request(:describe_export_configurations, params)
|
305
|
+
req.send_request(options)
|
306
|
+
end
|
307
|
+
|
308
|
+
# Retrieves a list of configuration items that are tagged with a
|
309
|
+
# specific tag. Or retrieves a list of all tags assigned to a specific
|
310
|
+
# configuration item.
|
311
|
+
# @option params [Array<Types::TagFilter>] :filters
|
312
|
+
# You can filter the list using a *key*-*value* format. You can separate
|
313
|
+
# these items by using logical operators. Allowed filters include
|
314
|
+
# `tagKey`, `tagValue`, and `configurationId`.
|
315
|
+
# @option params [Integer] :max_results
|
316
|
+
# The total number of items to return. The maximum value is 100.
|
317
|
+
# @option params [String] :next_token
|
318
|
+
# A token to start the list. Use this token to get the next set of
|
319
|
+
# results.
|
320
|
+
# @return [Types::DescribeTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
321
|
+
#
|
322
|
+
# * {Types::DescribeTagsResponse#tags #tags} => Array<Types::ConfigurationTag>
|
323
|
+
# * {Types::DescribeTagsResponse#next_token #nextToken} => String
|
324
|
+
#
|
325
|
+
# @example Request syntax with placeholder values
|
326
|
+
# resp = client.describe_tags({
|
327
|
+
# filters: [
|
328
|
+
# {
|
329
|
+
# name: "FilterName", # required
|
330
|
+
# values: ["FilterValue"], # required
|
331
|
+
# },
|
332
|
+
# ],
|
333
|
+
# max_results: 1,
|
334
|
+
# next_token: "NextToken",
|
335
|
+
# })
|
336
|
+
#
|
337
|
+
# @example Response structure
|
338
|
+
# resp.tags #=> Array
|
339
|
+
# resp.tags[0].configuration_type #=> String, one of "SERVER", "PROCESS", "CONNECTION"
|
340
|
+
# resp.tags[0].configuration_id #=> String
|
341
|
+
# resp.tags[0].key #=> String
|
342
|
+
# resp.tags[0].value #=> String
|
343
|
+
# resp.tags[0].time_of_creation #=> Time
|
344
|
+
# resp.next_token #=> String
|
345
|
+
# @overload describe_tags(params = {})
|
346
|
+
# @param [Hash] params ({})
|
347
|
+
def describe_tags(params = {}, options = {})
|
348
|
+
req = build_request(:describe_tags, params)
|
349
|
+
req.send_request(options)
|
350
|
+
end
|
351
|
+
|
352
|
+
# Exports all discovered configuration data to an Amazon S3 bucket or an
|
353
|
+
# application that enables you to view and evaluate the data. Data
|
354
|
+
# includes tags and tag associations, processes, connections, servers,
|
355
|
+
# and system performance. This API returns an export ID which you can
|
356
|
+
# query using the *GetExportStatus* API. The system imposes a limit of
|
357
|
+
# two configuration exports in six hours.
|
358
|
+
# @return [Types::ExportConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
359
|
+
#
|
360
|
+
# * {Types::ExportConfigurationsResponse#export_id #exportId} => String
|
361
|
+
#
|
362
|
+
# @example Response structure
|
363
|
+
# resp.export_id #=> String
|
364
|
+
# @overload export_configurations(params = {})
|
365
|
+
# @param [Hash] params ({})
|
366
|
+
def export_configurations(params = {}, options = {})
|
367
|
+
req = build_request(:export_configurations, params)
|
368
|
+
req.send_request(options)
|
369
|
+
end
|
370
|
+
|
371
|
+
# Retrieves a list of configurations items according to the criteria you
|
372
|
+
# specify in a filter. The filter criteria identify relationship
|
373
|
+
# requirements.
|
374
|
+
# @option params [required, String] :configuration_type
|
375
|
+
# A valid configuration identified by the Discovery Service.
|
376
|
+
# @option params [Array<Types::Filter>] :filters
|
377
|
+
# You can filter the list using a *key*-*value* format. For example:
|
378
|
+
#
|
379
|
+
# `\{"key": "serverType", "value": "webServer"\}`
|
380
|
+
#
|
381
|
+
# You can separate these items by using logical operators.
|
382
|
+
# @option params [Integer] :max_results
|
383
|
+
# The total number of items to return. The maximum value is 100.
|
384
|
+
# @option params [String] :next_token
|
385
|
+
# A token to start the list. Use this token to get the next set of
|
386
|
+
# results.
|
387
|
+
# @return [Types::ListConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
388
|
+
#
|
389
|
+
# * {Types::ListConfigurationsResponse#configurations #configurations} => Array<Hash<String,String>>
|
390
|
+
# * {Types::ListConfigurationsResponse#next_token #nextToken} => String
|
391
|
+
#
|
392
|
+
# @example Request syntax with placeholder values
|
393
|
+
# resp = client.list_configurations({
|
394
|
+
# configuration_type: "SERVER", # required, accepts SERVER, PROCESS, CONNECTION
|
395
|
+
# filters: [
|
396
|
+
# {
|
397
|
+
# name: "String", # required
|
398
|
+
# values: ["FilterValue"], # required
|
399
|
+
# condition: "Condition", # required
|
400
|
+
# },
|
401
|
+
# ],
|
402
|
+
# max_results: 1,
|
403
|
+
# next_token: "NextToken",
|
404
|
+
# })
|
405
|
+
#
|
406
|
+
# @example Response structure
|
407
|
+
# resp.configurations #=> Array
|
408
|
+
# resp.configurations[0] #=> Hash
|
409
|
+
# resp.configurations[0]["String"] #=> String
|
410
|
+
# resp.next_token #=> String
|
411
|
+
# @overload list_configurations(params = {})
|
412
|
+
# @param [Hash] params ({})
|
413
|
+
def list_configurations(params = {}, options = {})
|
414
|
+
req = build_request(:list_configurations, params)
|
415
|
+
req.send_request(options)
|
416
|
+
end
|
417
|
+
|
418
|
+
# Instructs the specified agents to start collecting data. Agents can
|
419
|
+
# reside on host servers or virtual machines in your data center.
|
420
|
+
# @option params [required, Array<String>] :agent_ids
|
421
|
+
# The IDs of the agents that you want to start collecting data. If you
|
422
|
+
# send a request to an AWS agent ID that you do not have permission to
|
423
|
+
# contact, according to your AWS account, the service does not throw an
|
424
|
+
# exception. Instead, it returns the error in the *Description* field.
|
425
|
+
# If you send a request to multiple agents and you do not have
|
426
|
+
# permission to contact some of those agents, the system does not throw
|
427
|
+
# an exception. Instead, the system shows `Failed` in the *Description*
|
428
|
+
# field.
|
429
|
+
# @return [Types::StartDataCollectionByAgentIdsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
430
|
+
#
|
431
|
+
# * {Types::StartDataCollectionByAgentIdsResponse#agents_configuration_status #agentsConfigurationStatus} => Array<Types::AgentConfigurationStatus>
|
432
|
+
#
|
433
|
+
# @example Request syntax with placeholder values
|
434
|
+
# resp = client.start_data_collection_by_agent_ids({
|
435
|
+
# agent_ids: ["AgentId"], # required
|
436
|
+
# })
|
437
|
+
#
|
438
|
+
# @example Response structure
|
439
|
+
# resp.agents_configuration_status #=> Array
|
440
|
+
# resp.agents_configuration_status[0].agent_id #=> String
|
441
|
+
# resp.agents_configuration_status[0].operation_succeeded #=> Boolean
|
442
|
+
# resp.agents_configuration_status[0].description #=> String
|
443
|
+
# @overload start_data_collection_by_agent_ids(params = {})
|
444
|
+
# @param [Hash] params ({})
|
445
|
+
def start_data_collection_by_agent_ids(params = {}, options = {})
|
446
|
+
req = build_request(:start_data_collection_by_agent_ids, params)
|
447
|
+
req.send_request(options)
|
448
|
+
end
|
449
|
+
|
450
|
+
# Instructs the specified agents to stop collecting data.
|
451
|
+
# @option params [required, Array<String>] :agent_ids
|
452
|
+
# The IDs of the agents that you want to stop collecting data.
|
453
|
+
# @return [Types::StopDataCollectionByAgentIdsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
454
|
+
#
|
455
|
+
# * {Types::StopDataCollectionByAgentIdsResponse#agents_configuration_status #agentsConfigurationStatus} => Array<Types::AgentConfigurationStatus>
|
456
|
+
#
|
457
|
+
# @example Request syntax with placeholder values
|
458
|
+
# resp = client.stop_data_collection_by_agent_ids({
|
459
|
+
# agent_ids: ["AgentId"], # required
|
460
|
+
# })
|
461
|
+
#
|
462
|
+
# @example Response structure
|
463
|
+
# resp.agents_configuration_status #=> Array
|
464
|
+
# resp.agents_configuration_status[0].agent_id #=> String
|
465
|
+
# resp.agents_configuration_status[0].operation_succeeded #=> Boolean
|
466
|
+
# resp.agents_configuration_status[0].description #=> String
|
467
|
+
# @overload stop_data_collection_by_agent_ids(params = {})
|
468
|
+
# @param [Hash] params ({})
|
469
|
+
def stop_data_collection_by_agent_ids(params = {}, options = {})
|
470
|
+
req = build_request(:stop_data_collection_by_agent_ids, params)
|
471
|
+
req.send_request(options)
|
472
|
+
end
|
473
|
+
|
474
|
+
# @!endgroup
|
475
|
+
|
476
|
+
# @param params ({})
|
477
|
+
# @api private
|
478
|
+
def build_request(operation_name, params = {})
|
479
|
+
handlers = @handlers.for(operation_name)
|
480
|
+
context = Seahorse::Client::RequestContext.new(
|
481
|
+
operation_name: operation_name,
|
482
|
+
operation: config.api.operation(operation_name),
|
483
|
+
client: self,
|
484
|
+
params: params,
|
485
|
+
config: config)
|
486
|
+
context[:gem_name] = 'aws-sdk-applicationdiscoveryservice'
|
487
|
+
context[:gem_version] = '1.0.0.rc1'
|
488
|
+
Seahorse::Client::Request.new(handlers, context)
|
489
|
+
end
|
490
|
+
|
491
|
+
# @api private
|
492
|
+
# @deprecated
|
493
|
+
def waiter_names
|
494
|
+
[]
|
495
|
+
end
|
496
|
+
|
497
|
+
class << self
|
498
|
+
|
499
|
+
# @api private
|
500
|
+
attr_reader :identifier
|
501
|
+
|
502
|
+
# @api private
|
503
|
+
def errors_module
|
504
|
+
Errors
|
505
|
+
end
|
506
|
+
|
507
|
+
end
|
508
|
+
end
|
509
|
+
end
|
510
|
+
end
|