aws-sdk-applicationdiscoveryservice 1.8.0 → 1.9.0

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: '02379685b1205a399300b24a87916dc61371628b'
4
- data.tar.gz: a2160a6f8d5c15cf2ff9ad34b99f9cb341bca939
3
+ metadata.gz: b4b6410511bead2cbb0dfd97f880180cba91fb93
4
+ data.tar.gz: a2479abc3885e65e856d4d364242a332075e1ecb
5
5
  SHA512:
6
- metadata.gz: cb0a3807012bedbe8c6427106effde4a91301bacddd7727d2590f91097737bcaffd3f2bd3fb39a074dc4542c1c19879178a21dd4f87b29821ba7e7f5463c2f7a
7
- data.tar.gz: 2783b64ea0d7f1fb3d3bc71dc5d16e0222f1f6c0359f56857d19d10269f8ae72c3362583a57b2e9ca3f80e14fc9a5d0d7cd5794a224a01ad5dcd1c33b172f4f4
6
+ metadata.gz: fd633732394ea5f037c8c0ea3ab31bfa315117fefac22f9c37f3159d94a146c9993cdb0c8db8b4d53fb3c29f44004836443718033a4dc89e55ac7a06d0dd925f
7
+ data.tar.gz: 3201bfa2127e1e2a647db517ba9f903ec789ec34425f46ec9ab79234969b549cf910ba939f4d9a021d92d5419412dbf21c1e6afc29ea1b68093fe3685d89b508
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-applicationdiscoveryservice/customizations'
42
42
  # @service
43
43
  module Aws::ApplicationDiscoveryService
44
44
 
45
- GEM_VERSION = '1.8.0'
45
+ GEM_VERSION = '1.9.0'
46
46
 
47
47
  end
@@ -241,6 +241,45 @@ module Aws::ApplicationDiscoveryService
241
241
  req.send_request(options)
242
242
  end
243
243
 
244
+ # Deletes one or more import tasks, each identified by their import ID.
245
+ # Each import task has a number of records that can identify servers or
246
+ # applications.
247
+ #
248
+ # AWS Application Discovery Service has built-in matching logic that
249
+ # will identify when discovered servers match existing entries that
250
+ # you've previously discovered, the information for the
251
+ # already-existing discovered server is updated. When you delete an
252
+ # import task that contains records that were used to match, the
253
+ # information in those matched records that comes from the deleted
254
+ # records will also be deleted.
255
+ #
256
+ # @option params [required, Array<String>] :import_task_ids
257
+ # The IDs for the import tasks that you want to delete.
258
+ #
259
+ # @return [Types::BatchDeleteImportDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
260
+ #
261
+ # * {Types::BatchDeleteImportDataResponse#errors #errors} => Array&lt;Types::BatchDeleteImportDataError&gt;
262
+ #
263
+ # @example Request syntax with placeholder values
264
+ #
265
+ # resp = client.batch_delete_import_data({
266
+ # import_task_ids: ["ImportTaskIdentifier"], # required
267
+ # })
268
+ #
269
+ # @example Response structure
270
+ #
271
+ # resp.errors #=> Array
272
+ # resp.errors[0].import_task_id #=> String
273
+ # resp.errors[0].error_code #=> String, one of "NOT_FOUND", "INTERNAL_SERVER_ERROR"
274
+ # resp.errors[0].error_description #=> String
275
+ #
276
+ # @overload batch_delete_import_data(params = {})
277
+ # @param [Hash] params ({})
278
+ def batch_delete_import_data(params = {}, options = {})
279
+ req = build_request(:batch_delete_import_data, params)
280
+ req.send_request(options)
281
+ end
282
+
244
283
  # Creates an application with the given name and description.
245
284
  #
246
285
  # @option params [required, String] :name
@@ -434,7 +473,7 @@ module Aws::ApplicationDiscoveryService
434
473
  # Retrieves attributes for a list of configuration item IDs.
435
474
  #
436
475
  # <note markdown="1"> All of the supplied IDs must be for the same asset type from one of
437
- # the follwoing:
476
+ # the following:
438
477
  #
439
478
  # * server
440
479
  #
@@ -650,6 +689,65 @@ module Aws::ApplicationDiscoveryService
650
689
  req.send_request(options)
651
690
  end
652
691
 
692
+ # Returns an array of import tasks for your account, including status
693
+ # information, times, IDs, the Amazon S3 Object URL for the import file,
694
+ # and more.
695
+ #
696
+ # @option params [Array<Types::ImportTaskFilter>] :filters
697
+ # An array of name-value pairs that you provide to filter the results
698
+ # for the `DescribeImportTask` request to a specific subset of results.
699
+ # Currently, wildcard values aren't supported for filters.
700
+ #
701
+ # @option params [Integer] :max_results
702
+ # The maximum number of results that you want this request to return, up
703
+ # to 100.
704
+ #
705
+ # @option params [String] :next_token
706
+ # The token to request a specific page of results.
707
+ #
708
+ # @return [Types::DescribeImportTasksResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
709
+ #
710
+ # * {Types::DescribeImportTasksResponse#next_token #next_token} => String
711
+ # * {Types::DescribeImportTasksResponse#tasks #tasks} => Array&lt;Types::ImportTask&gt;
712
+ #
713
+ # @example Request syntax with placeholder values
714
+ #
715
+ # resp = client.describe_import_tasks({
716
+ # filters: [
717
+ # {
718
+ # name: "IMPORT_TASK_ID", # accepts IMPORT_TASK_ID, STATUS, NAME
719
+ # values: ["ImportTaskFilterValue"],
720
+ # },
721
+ # ],
722
+ # max_results: 1,
723
+ # next_token: "NextToken",
724
+ # })
725
+ #
726
+ # @example Response structure
727
+ #
728
+ # resp.next_token #=> String
729
+ # resp.tasks #=> Array
730
+ # resp.tasks[0].import_task_id #=> String
731
+ # resp.tasks[0].client_request_token #=> String
732
+ # resp.tasks[0].name #=> String
733
+ # resp.tasks[0].import_url #=> String
734
+ # resp.tasks[0].status #=> String, one of "IMPORT_IN_PROGRESS", "IMPORT_COMPLETE", "IMPORT_FAILED", "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED", "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "DELETE_FAILED_LIMIT_EXCEEDED"
735
+ # resp.tasks[0].import_request_time #=> Time
736
+ # resp.tasks[0].import_completion_time #=> Time
737
+ # resp.tasks[0].import_deleted_time #=> Time
738
+ # resp.tasks[0].server_import_success #=> Integer
739
+ # resp.tasks[0].server_import_failure #=> Integer
740
+ # resp.tasks[0].application_import_success #=> Integer
741
+ # resp.tasks[0].application_import_failure #=> Integer
742
+ # resp.tasks[0].errors_and_failed_entries_zip #=> String
743
+ #
744
+ # @overload describe_import_tasks(params = {})
745
+ # @param [Hash] params ({})
746
+ def describe_import_tasks(params = {}, options = {})
747
+ req = build_request(:describe_import_tasks, params)
748
+ req.send_request(options)
749
+ end
750
+
653
751
  # Retrieves a list of configuration items that have tags as specified by
654
752
  # the key-value pairs, name and value, passed to the optional parameter
655
753
  # `filters`.
@@ -1071,6 +1169,106 @@ module Aws::ApplicationDiscoveryService
1071
1169
  req.send_request(options)
1072
1170
  end
1073
1171
 
1172
+ # Starts an import task, which allows you to import details of your
1173
+ # on-premises environment directly into AWS without having to use the
1174
+ # Application Discovery Service (ADS) tools such as the Discovery
1175
+ # Connector or Discovery Agent. This gives you the option to perform
1176
+ # migration assessment and planning directly from your imported data,
1177
+ # including the ability to group your devices as applications and track
1178
+ # their migration status.
1179
+ #
1180
+ # To start an import request, do this:
1181
+ #
1182
+ # 1. Download the specially formatted comma separated value (CSV)
1183
+ # import template, which you can find here:
1184
+ # [https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import\_template.csv][1].
1185
+ #
1186
+ # 2. Fill out the template with your server and application data.
1187
+ #
1188
+ # 3. Upload your import file to an Amazon S3 bucket, and make a note of
1189
+ # it's Object URL. Your import file must be in the CSV format.
1190
+ #
1191
+ # 4. Use the console or the `StartImportTask` command with the AWS CLI
1192
+ # or one of the AWS SDKs to import the records from your file.
1193
+ #
1194
+ # For more information, including step-by-step procedures, see
1195
+ # [Migration Hub Import][2] in the *AWS Application Discovery Service
1196
+ # User Guide*.
1197
+ #
1198
+ # <note markdown="1"> There are limits to the number of import tasks you can create (and
1199
+ # delete) in an AWS account. For more information, see [AWS Application
1200
+ # Discovery Service Limits][3] in the *AWS Application Discovery Service
1201
+ # User Guide*.
1202
+ #
1203
+ # </note>
1204
+ #
1205
+ #
1206
+ #
1207
+ # [1]: https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv
1208
+ # [2]: http://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html
1209
+ # [3]: http://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html
1210
+ #
1211
+ # @option params [String] :client_request_token
1212
+ # Optional. A unique token that you can provide to prevent the same
1213
+ # import request from occurring more than once. If you don't provide a
1214
+ # token, a token is automatically generated.
1215
+ #
1216
+ # Sending more than one `StartImportTask` request with the same client
1217
+ # request token will return information about the original import task
1218
+ # with that client request token.
1219
+ #
1220
+ # **A suitable default value is auto-generated.** You should normally
1221
+ # not need to pass this option.**
1222
+ #
1223
+ # @option params [required, String] :name
1224
+ # A descriptive name for this request. You can use this name to filter
1225
+ # future requests related to this import task, such as identifying
1226
+ # applications and servers that were included in this import task. We
1227
+ # recommend that you use a meaningful name for each import task.
1228
+ #
1229
+ # @option params [required, String] :import_url
1230
+ # The URL for your import file that you've uploaded to Amazon S3.
1231
+ #
1232
+ # <note markdown="1"> If you're using the AWS CLI, this URL is structured as follows:
1233
+ # `s3://BucketName/ImportFileName.CSV`
1234
+ #
1235
+ # </note>
1236
+ #
1237
+ # @return [Types::StartImportTaskResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1238
+ #
1239
+ # * {Types::StartImportTaskResponse#task #task} => Types::ImportTask
1240
+ #
1241
+ # @example Request syntax with placeholder values
1242
+ #
1243
+ # resp = client.start_import_task({
1244
+ # client_request_token: "ClientRequestToken",
1245
+ # name: "ImportTaskName", # required
1246
+ # import_url: "ImportURL", # required
1247
+ # })
1248
+ #
1249
+ # @example Response structure
1250
+ #
1251
+ # resp.task.import_task_id #=> String
1252
+ # resp.task.client_request_token #=> String
1253
+ # resp.task.name #=> String
1254
+ # resp.task.import_url #=> String
1255
+ # resp.task.status #=> String, one of "IMPORT_IN_PROGRESS", "IMPORT_COMPLETE", "IMPORT_FAILED", "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED", "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "DELETE_FAILED_LIMIT_EXCEEDED"
1256
+ # resp.task.import_request_time #=> Time
1257
+ # resp.task.import_completion_time #=> Time
1258
+ # resp.task.import_deleted_time #=> Time
1259
+ # resp.task.server_import_success #=> Integer
1260
+ # resp.task.server_import_failure #=> Integer
1261
+ # resp.task.application_import_success #=> Integer
1262
+ # resp.task.application_import_failure #=> Integer
1263
+ # resp.task.errors_and_failed_entries_zip #=> String
1264
+ #
1265
+ # @overload start_import_task(params = {})
1266
+ # @param [Hash] params ({})
1267
+ def start_import_task(params = {}, options = {})
1268
+ req = build_request(:start_import_task, params)
1269
+ req.send_request(options)
1270
+ end
1271
+
1074
1272
  # Stop the continuous flow of agent's discovered data into Amazon
1075
1273
  # Athena.
1076
1274
  #
@@ -1171,7 +1369,7 @@ module Aws::ApplicationDiscoveryService
1171
1369
  params: params,
1172
1370
  config: config)
1173
1371
  context[:gem_name] = 'aws-sdk-applicationdiscoveryservice'
1174
- context[:gem_version] = '1.8.0'
1372
+ context[:gem_version] = '1.9.0'
1175
1373
  Seahorse::Client::Request.new(handlers, context)
1176
1374
  end
1177
1375
 
@@ -25,8 +25,15 @@ module Aws::ApplicationDiscoveryService
25
25
  AssociateConfigurationItemsToApplicationRequest = Shapes::StructureShape.new(name: 'AssociateConfigurationItemsToApplicationRequest')
26
26
  AssociateConfigurationItemsToApplicationResponse = Shapes::StructureShape.new(name: 'AssociateConfigurationItemsToApplicationResponse')
27
27
  AuthorizationErrorException = Shapes::StructureShape.new(name: 'AuthorizationErrorException')
28
+ BatchDeleteImportDataError = Shapes::StructureShape.new(name: 'BatchDeleteImportDataError')
29
+ BatchDeleteImportDataErrorCode = Shapes::StringShape.new(name: 'BatchDeleteImportDataErrorCode')
30
+ BatchDeleteImportDataErrorDescription = Shapes::StringShape.new(name: 'BatchDeleteImportDataErrorDescription')
31
+ BatchDeleteImportDataErrorList = Shapes::ListShape.new(name: 'BatchDeleteImportDataErrorList')
32
+ BatchDeleteImportDataRequest = Shapes::StructureShape.new(name: 'BatchDeleteImportDataRequest')
33
+ BatchDeleteImportDataResponse = Shapes::StructureShape.new(name: 'BatchDeleteImportDataResponse')
28
34
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
29
35
  BoxedInteger = Shapes::IntegerShape.new(name: 'BoxedInteger')
36
+ ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
30
37
  Condition = Shapes::StringShape.new(name: 'Condition')
31
38
  Configuration = Shapes::MapShape.new(name: 'Configuration')
32
39
  ConfigurationId = Shapes::StringShape.new(name: 'ConfigurationId')
@@ -67,6 +74,10 @@ module Aws::ApplicationDiscoveryService
67
74
  DescribeExportConfigurationsResponse = Shapes::StructureShape.new(name: 'DescribeExportConfigurationsResponse')
68
75
  DescribeExportTasksRequest = Shapes::StructureShape.new(name: 'DescribeExportTasksRequest')
69
76
  DescribeExportTasksResponse = Shapes::StructureShape.new(name: 'DescribeExportTasksResponse')
77
+ DescribeImportTasksFilterList = Shapes::ListShape.new(name: 'DescribeImportTasksFilterList')
78
+ DescribeImportTasksMaxResults = Shapes::IntegerShape.new(name: 'DescribeImportTasksMaxResults')
79
+ DescribeImportTasksRequest = Shapes::StructureShape.new(name: 'DescribeImportTasksRequest')
80
+ DescribeImportTasksResponse = Shapes::StructureShape.new(name: 'DescribeImportTasksResponse')
70
81
  DescribeTagsRequest = Shapes::StructureShape.new(name: 'DescribeTagsRequest')
71
82
  DescribeTagsResponse = Shapes::StructureShape.new(name: 'DescribeTagsResponse')
72
83
  DisassociateConfigurationItemsFromApplicationRequest = Shapes::StructureShape.new(name: 'DisassociateConfigurationItemsFromApplicationRequest')
@@ -89,6 +100,16 @@ module Aws::ApplicationDiscoveryService
89
100
  Filters = Shapes::ListShape.new(name: 'Filters')
90
101
  GetDiscoverySummaryRequest = Shapes::StructureShape.new(name: 'GetDiscoverySummaryRequest')
91
102
  GetDiscoverySummaryResponse = Shapes::StructureShape.new(name: 'GetDiscoverySummaryResponse')
103
+ ImportStatus = Shapes::StringShape.new(name: 'ImportStatus')
104
+ ImportTask = Shapes::StructureShape.new(name: 'ImportTask')
105
+ ImportTaskFilter = Shapes::StructureShape.new(name: 'ImportTaskFilter')
106
+ ImportTaskFilterName = Shapes::StringShape.new(name: 'ImportTaskFilterName')
107
+ ImportTaskFilterValue = Shapes::StringShape.new(name: 'ImportTaskFilterValue')
108
+ ImportTaskFilterValueList = Shapes::ListShape.new(name: 'ImportTaskFilterValueList')
109
+ ImportTaskIdentifier = Shapes::StringShape.new(name: 'ImportTaskIdentifier')
110
+ ImportTaskList = Shapes::ListShape.new(name: 'ImportTaskList')
111
+ ImportTaskName = Shapes::StringShape.new(name: 'ImportTaskName')
112
+ ImportURL = Shapes::StringShape.new(name: 'ImportURL')
92
113
  Integer = Shapes::IntegerShape.new(name: 'Integer')
93
114
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
94
115
  InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
@@ -107,6 +128,7 @@ module Aws::ApplicationDiscoveryService
107
128
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
108
129
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
109
130
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
131
+ S3PresignedUrl = Shapes::StringShape.new(name: 'S3PresignedUrl')
110
132
  SchemaStorageConfig = Shapes::MapShape.new(name: 'SchemaStorageConfig')
111
133
  ServerInternalErrorException = Shapes::StructureShape.new(name: 'ServerInternalErrorException')
112
134
  StartContinuousExportRequest = Shapes::StructureShape.new(name: 'StartContinuousExportRequest')
@@ -115,6 +137,8 @@ module Aws::ApplicationDiscoveryService
115
137
  StartDataCollectionByAgentIdsResponse = Shapes::StructureShape.new(name: 'StartDataCollectionByAgentIdsResponse')
116
138
  StartExportTaskRequest = Shapes::StructureShape.new(name: 'StartExportTaskRequest')
117
139
  StartExportTaskResponse = Shapes::StructureShape.new(name: 'StartExportTaskResponse')
140
+ StartImportTaskRequest = Shapes::StructureShape.new(name: 'StartImportTaskRequest')
141
+ StartImportTaskResponse = Shapes::StructureShape.new(name: 'StartImportTaskResponse')
118
142
  StopContinuousExportRequest = Shapes::StructureShape.new(name: 'StopContinuousExportRequest')
119
143
  StopContinuousExportResponse = Shapes::StructureShape.new(name: 'StopContinuousExportResponse')
120
144
  StopDataCollectionByAgentIdsRequest = Shapes::StructureShape.new(name: 'StopDataCollectionByAgentIdsRequest')
@@ -128,6 +152,7 @@ module Aws::ApplicationDiscoveryService
128
152
  TagSet = Shapes::ListShape.new(name: 'TagSet')
129
153
  TagValue = Shapes::StringShape.new(name: 'TagValue')
130
154
  TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
155
+ ToDeleteIdentifierList = Shapes::ListShape.new(name: 'ToDeleteIdentifierList')
131
156
  UpdateApplicationRequest = Shapes::StructureShape.new(name: 'UpdateApplicationRequest')
132
157
  UpdateApplicationResponse = Shapes::StructureShape.new(name: 'UpdateApplicationResponse')
133
158
  orderString = Shapes::StringShape.new(name: 'orderString')
@@ -169,6 +194,19 @@ module Aws::ApplicationDiscoveryService
169
194
 
170
195
  AssociateConfigurationItemsToApplicationResponse.struct_class = Types::AssociateConfigurationItemsToApplicationResponse
171
196
 
197
+ BatchDeleteImportDataError.add_member(:import_task_id, Shapes::ShapeRef.new(shape: ImportTaskIdentifier, location_name: "importTaskId"))
198
+ BatchDeleteImportDataError.add_member(:error_code, Shapes::ShapeRef.new(shape: BatchDeleteImportDataErrorCode, location_name: "errorCode"))
199
+ BatchDeleteImportDataError.add_member(:error_description, Shapes::ShapeRef.new(shape: BatchDeleteImportDataErrorDescription, location_name: "errorDescription"))
200
+ BatchDeleteImportDataError.struct_class = Types::BatchDeleteImportDataError
201
+
202
+ BatchDeleteImportDataErrorList.member = Shapes::ShapeRef.new(shape: BatchDeleteImportDataError)
203
+
204
+ BatchDeleteImportDataRequest.add_member(:import_task_ids, Shapes::ShapeRef.new(shape: ToDeleteIdentifierList, required: true, location_name: "importTaskIds"))
205
+ BatchDeleteImportDataRequest.struct_class = Types::BatchDeleteImportDataRequest
206
+
207
+ BatchDeleteImportDataResponse.add_member(:errors, Shapes::ShapeRef.new(shape: BatchDeleteImportDataErrorList, location_name: "errors"))
208
+ BatchDeleteImportDataResponse.struct_class = Types::BatchDeleteImportDataResponse
209
+
172
210
  Configuration.key = Shapes::ShapeRef.new(shape: String)
173
211
  Configuration.value = Shapes::ShapeRef.new(shape: String)
174
212
 
@@ -290,6 +328,17 @@ module Aws::ApplicationDiscoveryService
290
328
  DescribeExportTasksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
291
329
  DescribeExportTasksResponse.struct_class = Types::DescribeExportTasksResponse
292
330
 
331
+ DescribeImportTasksFilterList.member = Shapes::ShapeRef.new(shape: ImportTaskFilter)
332
+
333
+ DescribeImportTasksRequest.add_member(:filters, Shapes::ShapeRef.new(shape: DescribeImportTasksFilterList, location_name: "filters"))
334
+ DescribeImportTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeImportTasksMaxResults, location_name: "maxResults"))
335
+ DescribeImportTasksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
336
+ DescribeImportTasksRequest.struct_class = Types::DescribeImportTasksRequest
337
+
338
+ DescribeImportTasksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
339
+ DescribeImportTasksResponse.add_member(:tasks, Shapes::ShapeRef.new(shape: ImportTaskList, location_name: "tasks"))
340
+ DescribeImportTasksResponse.struct_class = Types::DescribeImportTasksResponse
341
+
293
342
  DescribeTagsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: TagFilters, location_name: "filters"))
294
343
  DescribeTagsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
295
344
  DescribeTagsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -350,6 +399,29 @@ module Aws::ApplicationDiscoveryService
350
399
  GetDiscoverySummaryResponse.add_member(:connector_summary, Shapes::ShapeRef.new(shape: CustomerConnectorInfo, location_name: "connectorSummary"))
351
400
  GetDiscoverySummaryResponse.struct_class = Types::GetDiscoverySummaryResponse
352
401
 
402
+ ImportTask.add_member(:import_task_id, Shapes::ShapeRef.new(shape: ImportTaskIdentifier, location_name: "importTaskId"))
403
+ ImportTask.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientRequestToken"))
404
+ ImportTask.add_member(:name, Shapes::ShapeRef.new(shape: ImportTaskName, location_name: "name"))
405
+ ImportTask.add_member(:import_url, Shapes::ShapeRef.new(shape: ImportURL, location_name: "importUrl"))
406
+ ImportTask.add_member(:status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "status"))
407
+ ImportTask.add_member(:import_request_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "importRequestTime"))
408
+ ImportTask.add_member(:import_completion_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "importCompletionTime"))
409
+ ImportTask.add_member(:import_deleted_time, Shapes::ShapeRef.new(shape: TimeStamp, location_name: "importDeletedTime"))
410
+ ImportTask.add_member(:server_import_success, Shapes::ShapeRef.new(shape: Integer, location_name: "serverImportSuccess"))
411
+ ImportTask.add_member(:server_import_failure, Shapes::ShapeRef.new(shape: Integer, location_name: "serverImportFailure"))
412
+ ImportTask.add_member(:application_import_success, Shapes::ShapeRef.new(shape: Integer, location_name: "applicationImportSuccess"))
413
+ ImportTask.add_member(:application_import_failure, Shapes::ShapeRef.new(shape: Integer, location_name: "applicationImportFailure"))
414
+ ImportTask.add_member(:errors_and_failed_entries_zip, Shapes::ShapeRef.new(shape: S3PresignedUrl, location_name: "errorsAndFailedEntriesZip"))
415
+ ImportTask.struct_class = Types::ImportTask
416
+
417
+ ImportTaskFilter.add_member(:name, Shapes::ShapeRef.new(shape: ImportTaskFilterName, location_name: "name"))
418
+ ImportTaskFilter.add_member(:values, Shapes::ShapeRef.new(shape: ImportTaskFilterValueList, location_name: "values"))
419
+ ImportTaskFilter.struct_class = Types::ImportTaskFilter
420
+
421
+ ImportTaskFilterValueList.member = Shapes::ShapeRef.new(shape: ImportTaskFilterValue)
422
+
423
+ ImportTaskList.member = Shapes::ShapeRef.new(shape: ImportTask)
424
+
353
425
  ListConfigurationsRequest.add_member(:configuration_type, Shapes::ShapeRef.new(shape: ConfigurationItemType, required: true, location_name: "configurationType"))
354
426
  ListConfigurationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
355
427
  ListConfigurationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "maxResults"))
@@ -415,6 +487,14 @@ module Aws::ApplicationDiscoveryService
415
487
  StartExportTaskResponse.add_member(:export_id, Shapes::ShapeRef.new(shape: ConfigurationsExportId, location_name: "exportId"))
416
488
  StartExportTaskResponse.struct_class = Types::StartExportTaskResponse
417
489
 
490
+ StartImportTaskRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
491
+ StartImportTaskRequest.add_member(:name, Shapes::ShapeRef.new(shape: ImportTaskName, required: true, location_name: "name"))
492
+ StartImportTaskRequest.add_member(:import_url, Shapes::ShapeRef.new(shape: ImportURL, required: true, location_name: "importUrl"))
493
+ StartImportTaskRequest.struct_class = Types::StartImportTaskRequest
494
+
495
+ StartImportTaskResponse.add_member(:task, Shapes::ShapeRef.new(shape: ImportTask, location_name: "task"))
496
+ StartImportTaskResponse.struct_class = Types::StartImportTaskResponse
497
+
418
498
  StopContinuousExportRequest.add_member(:export_id, Shapes::ShapeRef.new(shape: ConfigurationsExportId, required: true, location_name: "exportId"))
419
499
  StopContinuousExportRequest.struct_class = Types::StopContinuousExportRequest
420
500
 
@@ -440,6 +520,8 @@ module Aws::ApplicationDiscoveryService
440
520
 
441
521
  TagSet.member = Shapes::ShapeRef.new(shape: Tag)
442
522
 
523
+ ToDeleteIdentifierList.member = Shapes::ShapeRef.new(shape: ImportTaskIdentifier)
524
+
443
525
  UpdateApplicationRequest.add_member(:configuration_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "configurationId"))
444
526
  UpdateApplicationRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
445
527
  UpdateApplicationRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
@@ -477,6 +559,17 @@ module Aws::ApplicationDiscoveryService
477
559
  o.errors << Shapes::ShapeRef.new(shape: ServerInternalErrorException)
478
560
  end)
479
561
 
562
+ api.add_operation(:batch_delete_import_data, Seahorse::Model::Operation.new.tap do |o|
563
+ o.name = "BatchDeleteImportData"
564
+ o.http_method = "POST"
565
+ o.http_request_uri = "/"
566
+ o.input = Shapes::ShapeRef.new(shape: BatchDeleteImportDataRequest)
567
+ o.output = Shapes::ShapeRef.new(shape: BatchDeleteImportDataResponse)
568
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
569
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
570
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalErrorException)
571
+ end)
572
+
480
573
  api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
481
574
  o.name = "CreateApplication"
482
575
  o.http_method = "POST"
@@ -597,6 +690,23 @@ module Aws::ApplicationDiscoveryService
597
690
  o.errors << Shapes::ShapeRef.new(shape: ServerInternalErrorException)
598
691
  end)
599
692
 
693
+ api.add_operation(:describe_import_tasks, Seahorse::Model::Operation.new.tap do |o|
694
+ o.name = "DescribeImportTasks"
695
+ o.http_method = "POST"
696
+ o.http_request_uri = "/"
697
+ o.input = Shapes::ShapeRef.new(shape: DescribeImportTasksRequest)
698
+ o.output = Shapes::ShapeRef.new(shape: DescribeImportTasksResponse)
699
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
700
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
701
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalErrorException)
702
+ o[:pager] = Aws::Pager.new(
703
+ limit_key: "max_results",
704
+ tokens: {
705
+ "next_token" => "next_token"
706
+ }
707
+ )
708
+ end)
709
+
600
710
  api.add_operation(:describe_tags, Seahorse::Model::Operation.new.tap do |o|
601
711
  o.name = "DescribeTags"
602
712
  o.http_method = "POST"
@@ -713,6 +823,18 @@ module Aws::ApplicationDiscoveryService
713
823
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
714
824
  end)
715
825
 
826
+ api.add_operation(:start_import_task, Seahorse::Model::Operation.new.tap do |o|
827
+ o.name = "StartImportTask"
828
+ o.http_method = "POST"
829
+ o.http_request_uri = "/"
830
+ o.input = Shapes::ShapeRef.new(shape: StartImportTaskRequest)
831
+ o.output = Shapes::ShapeRef.new(shape: StartImportTaskResponse)
832
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
833
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
834
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
835
+ o.errors << Shapes::ShapeRef.new(shape: ServerInternalErrorException)
836
+ end)
837
+
716
838
  api.add_operation(:stop_continuous_export, Seahorse::Model::Operation.new.tap do |o|
717
839
  o.name = "StopContinuousExport"
718
840
  o.http_method = "POST"
@@ -138,6 +138,55 @@ module Aws::ApplicationDiscoveryService
138
138
 
139
139
  class AssociateConfigurationItemsToApplicationResponse < Aws::EmptyStructure; end
140
140
 
141
+ # Error messages returned for each import task that you deleted as a
142
+ # response for this command.
143
+ #
144
+ # @!attribute [rw] import_task_id
145
+ # The unique import ID associated with the error that occurred.
146
+ # @return [String]
147
+ #
148
+ # @!attribute [rw] error_code
149
+ # The type of error that occurred for a specific import task.
150
+ # @return [String]
151
+ #
152
+ # @!attribute [rw] error_description
153
+ # The description of the error that occurred for a specific import
154
+ # task.
155
+ # @return [String]
156
+ #
157
+ class BatchDeleteImportDataError < Struct.new(
158
+ :import_task_id,
159
+ :error_code,
160
+ :error_description)
161
+ include Aws::Structure
162
+ end
163
+
164
+ # @note When making an API call, you may pass BatchDeleteImportDataRequest
165
+ # data as a hash:
166
+ #
167
+ # {
168
+ # import_task_ids: ["ImportTaskIdentifier"], # required
169
+ # }
170
+ #
171
+ # @!attribute [rw] import_task_ids
172
+ # The IDs for the import tasks that you want to delete.
173
+ # @return [Array<String>]
174
+ #
175
+ class BatchDeleteImportDataRequest < Struct.new(
176
+ :import_task_ids)
177
+ include Aws::Structure
178
+ end
179
+
180
+ # @!attribute [rw] errors
181
+ # Error messages returned for each import task that you deleted as a
182
+ # response for this command.
183
+ # @return [Array<Types::BatchDeleteImportDataError>]
184
+ #
185
+ class BatchDeleteImportDataResponse < Struct.new(
186
+ :errors)
187
+ include Aws::Structure
188
+ end
189
+
141
190
  # Tags for a configuration item. Tags are metadata that help you
142
191
  # categorize IT assets.
143
192
  #
@@ -204,7 +253,49 @@ module Aws::ApplicationDiscoveryService
204
253
  # @return [String]
205
254
  #
206
255
  # @!attribute [rw] status_detail
207
- # Contains information about any errors that may have occurred.
256
+ # Contains information about any errors that have occurred. This data
257
+ # type can have the following values:
258
+ #
259
+ # * ACCESS\_DENIED - You don’t have permission to start Data
260
+ # Exploration in Amazon Athena. Contact your AWS administrator for
261
+ # help. For more information, see [Setting Up AWS Application
262
+ # Discovery Service][1] in the Application Discovery Service User
263
+ # Guide.
264
+ #
265
+ # * DELIVERY\_STREAM\_LIMIT\_FAILURE - You reached the limit for
266
+ # Amazon Kinesis Data Firehose delivery streams. Reduce the number
267
+ # of streams or request a limit increase and try again. For more
268
+ # information, see [Kinesis Data Streams Limits][2] in the Amazon
269
+ # Kinesis Data Streams Developer Guide.
270
+ #
271
+ # * FIREHOSE\_ROLE\_MISSING - The Data Exploration feature is in an
272
+ # error state because your IAM User is missing the
273
+ # AWSApplicationDiscoveryServiceFirehose role. Turn on Data
274
+ # Exploration in Amazon Athena and try again. For more information,
275
+ # see [Step 3: Provide Application Discovery Service Access to
276
+ # Non-Administrator Users by Attaching Policies][3] in the
277
+ # Application Discovery Service User Guide.
278
+ #
279
+ # * FIREHOSE\_STREAM\_DOES\_NOT\_EXIST - The Data Exploration feature
280
+ # is in an error state because your IAM User is missing one or more
281
+ # of the Kinesis data delivery streams.
282
+ #
283
+ # * INTERNAL\_FAILURE - The Data Exploration feature is in an error
284
+ # state because of an internal failure. Try again later. If this
285
+ # problem persists, contact AWS Support.
286
+ #
287
+ # * S3\_BUCKET\_LIMIT\_FAILURE - You reached the limit for Amazon S3
288
+ # buckets. Reduce the number of Amazon S3 buckets or request a limit
289
+ # increase and try again. For more information, see [Bucket
290
+ # Restrictions and Limitations][4] in the Amazon Simple Storage
291
+ # Service Developer Guide.
292
+ #
293
+ #
294
+ #
295
+ # [1]: http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html
296
+ # [2]: http://docs.aws.amazon.com/streams/latest/dev/service-sizes-and-limits.html
297
+ # [3]: http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html#setting-up-user-policy
298
+ # [4]: http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html
208
299
  # @return [String]
209
300
  #
210
301
  # @!attribute [rw] s3_bucket
@@ -699,6 +790,57 @@ module Aws::ApplicationDiscoveryService
699
790
  include Aws::Structure
700
791
  end
701
792
 
793
+ # @note When making an API call, you may pass DescribeImportTasksRequest
794
+ # data as a hash:
795
+ #
796
+ # {
797
+ # filters: [
798
+ # {
799
+ # name: "IMPORT_TASK_ID", # accepts IMPORT_TASK_ID, STATUS, NAME
800
+ # values: ["ImportTaskFilterValue"],
801
+ # },
802
+ # ],
803
+ # max_results: 1,
804
+ # next_token: "NextToken",
805
+ # }
806
+ #
807
+ # @!attribute [rw] filters
808
+ # An array of name-value pairs that you provide to filter the results
809
+ # for the `DescribeImportTask` request to a specific subset of
810
+ # results. Currently, wildcard values aren't supported for filters.
811
+ # @return [Array<Types::ImportTaskFilter>]
812
+ #
813
+ # @!attribute [rw] max_results
814
+ # The maximum number of results that you want this request to return,
815
+ # up to 100.
816
+ # @return [Integer]
817
+ #
818
+ # @!attribute [rw] next_token
819
+ # The token to request a specific page of results.
820
+ # @return [String]
821
+ #
822
+ class DescribeImportTasksRequest < Struct.new(
823
+ :filters,
824
+ :max_results,
825
+ :next_token)
826
+ include Aws::Structure
827
+ end
828
+
829
+ # @!attribute [rw] next_token
830
+ # The token to request the next page of results.
831
+ # @return [String]
832
+ #
833
+ # @!attribute [rw] tasks
834
+ # A returned array of import tasks that match any applied filters, up
835
+ # to the specified number of maximum results.
836
+ # @return [Array<Types::ImportTask>]
837
+ #
838
+ class DescribeImportTasksResponse < Struct.new(
839
+ :next_token,
840
+ :tasks)
841
+ include Aws::Structure
842
+ end
843
+
702
844
  # @note When making an API call, you may pass DescribeTagsRequest
703
845
  # data as a hash:
704
846
  #
@@ -967,6 +1109,143 @@ module Aws::ApplicationDiscoveryService
967
1109
  include Aws::Structure
968
1110
  end
969
1111
 
1112
+ # An array of information related to the import task request that
1113
+ # includes status information, times, IDs, the Amazon S3 Object URL for
1114
+ # the import file, and more.
1115
+ #
1116
+ # @!attribute [rw] import_task_id
1117
+ # The unique ID for a specific import task. These IDs aren't globally
1118
+ # unique, but they are unique within an AWS account.
1119
+ # @return [String]
1120
+ #
1121
+ # @!attribute [rw] client_request_token
1122
+ # A unique token used to prevent the same import request from
1123
+ # occurring more than once. If you didn't provide a token, a token
1124
+ # was automatically generated when the import task request was sent.
1125
+ # @return [String]
1126
+ #
1127
+ # @!attribute [rw] name
1128
+ # A descriptive name for an import task. You can use this name to
1129
+ # filter future requests related to this import task, such as
1130
+ # identifying applications and servers that were included in this
1131
+ # import task. We recommend that you use a meaningful name for each
1132
+ # import task.
1133
+ # @return [String]
1134
+ #
1135
+ # @!attribute [rw] import_url
1136
+ # The URL for your import file that you've uploaded to Amazon S3.
1137
+ # @return [String]
1138
+ #
1139
+ # @!attribute [rw] status
1140
+ # The status of the import task. An import can have the status of
1141
+ # `IMPORT_COMPLETE` and still have some records fail to import from
1142
+ # the overall request. More information can be found in the
1143
+ # downloadable archive defined in the `errorsAndFailedEntriesZip`
1144
+ # field, or in the Migration Hub management console.
1145
+ # @return [String]
1146
+ #
1147
+ # @!attribute [rw] import_request_time
1148
+ # The time that the import task request was made, presented in the
1149
+ # Unix time stamp format.
1150
+ # @return [Time]
1151
+ #
1152
+ # @!attribute [rw] import_completion_time
1153
+ # The time that the import task request finished, presented in the
1154
+ # Unix time stamp format.
1155
+ # @return [Time]
1156
+ #
1157
+ # @!attribute [rw] import_deleted_time
1158
+ # The time that the import task request was deleted, presented in the
1159
+ # Unix time stamp format.
1160
+ # @return [Time]
1161
+ #
1162
+ # @!attribute [rw] server_import_success
1163
+ # The total number of server records in the import file that were
1164
+ # successfully imported.
1165
+ # @return [Integer]
1166
+ #
1167
+ # @!attribute [rw] server_import_failure
1168
+ # The total number of server records in the import file that failed to
1169
+ # be imported.
1170
+ # @return [Integer]
1171
+ #
1172
+ # @!attribute [rw] application_import_success
1173
+ # The total number of application records in the import file that were
1174
+ # successfully imported.
1175
+ # @return [Integer]
1176
+ #
1177
+ # @!attribute [rw] application_import_failure
1178
+ # The total number of application records in the import file that
1179
+ # failed to be imported.
1180
+ # @return [Integer]
1181
+ #
1182
+ # @!attribute [rw] errors_and_failed_entries_zip
1183
+ # A link to a compressed archive folder (in the ZIP format) that
1184
+ # contains an error log and a file of failed records. You can use
1185
+ # these two files to quickly identify records that failed, why they
1186
+ # failed, and correct those records. Afterward, you can upload the
1187
+ # corrected file to your Amazon S3 bucket and create another import
1188
+ # task request.
1189
+ #
1190
+ # This field also includes authorization information so you can
1191
+ # confirm the authenticity of the compressed archive before you
1192
+ # download it.
1193
+ #
1194
+ # If some records failed to be imported we recommend that you correct
1195
+ # the records in the failed entries file and then imports that failed
1196
+ # entries file. This prevents you frmo having to correct and update
1197
+ # the larger original file and attempt importing it again.
1198
+ # @return [String]
1199
+ #
1200
+ class ImportTask < Struct.new(
1201
+ :import_task_id,
1202
+ :client_request_token,
1203
+ :name,
1204
+ :import_url,
1205
+ :status,
1206
+ :import_request_time,
1207
+ :import_completion_time,
1208
+ :import_deleted_time,
1209
+ :server_import_success,
1210
+ :server_import_failure,
1211
+ :application_import_success,
1212
+ :application_import_failure,
1213
+ :errors_and_failed_entries_zip)
1214
+ include Aws::Structure
1215
+ end
1216
+
1217
+ # A name-values pair of elements you can use to filter the results when
1218
+ # querying your import tasks. Currently, wildcards are not supported for
1219
+ # filters.
1220
+ #
1221
+ # <note markdown="1"> When filtering by import status, all other filter values are ignored.
1222
+ #
1223
+ # </note>
1224
+ #
1225
+ # @note When making an API call, you may pass ImportTaskFilter
1226
+ # data as a hash:
1227
+ #
1228
+ # {
1229
+ # name: "IMPORT_TASK_ID", # accepts IMPORT_TASK_ID, STATUS, NAME
1230
+ # values: ["ImportTaskFilterValue"],
1231
+ # }
1232
+ #
1233
+ # @!attribute [rw] name
1234
+ # The name, status, or import task ID for a specific import task.
1235
+ # @return [String]
1236
+ #
1237
+ # @!attribute [rw] values
1238
+ # An array of strings that you can provide to match against a specific
1239
+ # name, status, or import task ID to filter the results for your
1240
+ # import task queries.
1241
+ # @return [Array<String>]
1242
+ #
1243
+ class ImportTaskFilter < Struct.new(
1244
+ :name,
1245
+ :values)
1246
+ include Aws::Structure
1247
+ end
1248
+
970
1249
  # @note When making an API call, you may pass ListConfigurationsRequest
971
1250
  # data as a hash:
972
1251
  #
@@ -1319,6 +1598,62 @@ module Aws::ApplicationDiscoveryService
1319
1598
  include Aws::Structure
1320
1599
  end
1321
1600
 
1601
+ # @note When making an API call, you may pass StartImportTaskRequest
1602
+ # data as a hash:
1603
+ #
1604
+ # {
1605
+ # client_request_token: "ClientRequestToken",
1606
+ # name: "ImportTaskName", # required
1607
+ # import_url: "ImportURL", # required
1608
+ # }
1609
+ #
1610
+ # @!attribute [rw] client_request_token
1611
+ # Optional. A unique token that you can provide to prevent the same
1612
+ # import request from occurring more than once. If you don't provide
1613
+ # a token, a token is automatically generated.
1614
+ #
1615
+ # Sending more than one `StartImportTask` request with the same client
1616
+ # request token will return information about the original import task
1617
+ # with that client request token.
1618
+ #
1619
+ # **A suitable default value is auto-generated.** You should normally
1620
+ # not need to pass this option.
1621
+ # @return [String]
1622
+ #
1623
+ # @!attribute [rw] name
1624
+ # A descriptive name for this request. You can use this name to filter
1625
+ # future requests related to this import task, such as identifying
1626
+ # applications and servers that were included in this import task. We
1627
+ # recommend that you use a meaningful name for each import task.
1628
+ # @return [String]
1629
+ #
1630
+ # @!attribute [rw] import_url
1631
+ # The URL for your import file that you've uploaded to Amazon S3.
1632
+ #
1633
+ # <note markdown="1"> If you're using the AWS CLI, this URL is structured as follows:
1634
+ # `s3://BucketName/ImportFileName.CSV`
1635
+ #
1636
+ # </note>
1637
+ # @return [String]
1638
+ #
1639
+ class StartImportTaskRequest < Struct.new(
1640
+ :client_request_token,
1641
+ :name,
1642
+ :import_url)
1643
+ include Aws::Structure
1644
+ end
1645
+
1646
+ # @!attribute [rw] task
1647
+ # An array of information related to the import task request including
1648
+ # status information, times, IDs, the Amazon S3 Object URL for the
1649
+ # import file, and more.
1650
+ # @return [Types::ImportTask]
1651
+ #
1652
+ class StartImportTaskResponse < Struct.new(
1653
+ :task)
1654
+ include Aws::Structure
1655
+ end
1656
+
1322
1657
  # @note When making an API call, you may pass StopContinuousExportRequest
1323
1658
  # data as a hash:
1324
1659
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-applicationdiscoveryservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core