Skip to content

Commit 2cc0b79

Browse files
author
awstools
committed
feat(client-application-discovery-service): Add support to import data from commercially available discovery tools without file manipulation.
1 parent dc6c77d commit 2cc0b79

File tree

8 files changed

+125
-9
lines changed

8 files changed

+125
-9
lines changed

clients/client-application-discovery-service/src/commands/CreateApplicationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
4242
* const input = { // CreateApplicationRequest
4343
* name: "STRING_VALUE", // required
4444
* description: "STRING_VALUE",
45+
* wave: "STRING_VALUE",
4546
* };
4647
* const command = new CreateApplicationCommand(input);
4748
* const response = await client.send(command);

clients/client-application-discovery-service/src/commands/DescribeImportTasksCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface DescribeImportTasksCommandOutput extends DescribeImportTasksRes
4343
* const input = { // DescribeImportTasksRequest
4444
* filters: [ // DescribeImportTasksFilterList
4545
* { // ImportTaskFilter
46-
* name: "IMPORT_TASK_ID" || "STATUS" || "NAME",
46+
* name: "IMPORT_TASK_ID" || "STATUS" || "NAME" || "FILE_CLASSIFICATION",
4747
* values: [ // ImportTaskFilterValueList
4848
* "STRING_VALUE",
4949
* ],
@@ -62,10 +62,11 @@ export interface DescribeImportTasksCommandOutput extends DescribeImportTasksRes
6262
* // clientRequestToken: "STRING_VALUE",
6363
* // name: "STRING_VALUE",
6464
* // importUrl: "STRING_VALUE",
65-
* // status: "IMPORT_IN_PROGRESS" || "IMPORT_COMPLETE" || "IMPORT_COMPLETE_WITH_ERRORS" || "IMPORT_FAILED" || "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED" || "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" || "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "DELETE_FAILED_LIMIT_EXCEEDED" || "INTERNAL_ERROR",
65+
* // status: "IMPORT_IN_PROGRESS" || "IMPORT_COMPLETE" || "IMPORT_COMPLETE_WITH_ERRORS" || "IMPORT_FAILED" || "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED" || "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" || "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE" || "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "DELETE_FAILED_LIMIT_EXCEEDED" || "INTERNAL_ERROR",
6666
* // importRequestTime: new Date("TIMESTAMP"),
6767
* // importCompletionTime: new Date("TIMESTAMP"),
6868
* // importDeletedTime: new Date("TIMESTAMP"),
69+
* // fileClassification: "MODELIZEIT_EXPORT" || "RVTOOLS_EXPORT" || "VMWARE_NSX_EXPORT" || "IMPORT_TEMPLATE",
6970
* // serverImportSuccess: Number("int"),
7071
* // serverImportFailure: Number("int"),
7172
* // applicationImportSuccess: Number("int"),

clients/client-application-discovery-service/src/commands/StartBatchDeleteConfigurationTaskCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export interface StartBatchDeleteConfigurationTaskCommandOutput
7777
* @throws {@link HomeRegionNotSetException} (client fault)
7878
* <p>The home Region is not set. Set the home Region to continue.</p>
7979
*
80+
* @throws {@link InvalidParameterException} (client fault)
81+
* <p>One or more parameters are not valid. Verify the parameters and try again.</p>
82+
*
8083
* @throws {@link InvalidParameterValueException} (client fault)
8184
* <p>The value of one or more parameters are either invalid or out of range. Verify the
8285
* parameter values and try again.</p>

clients/client-application-discovery-service/src/commands/StartImportTaskCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ export interface StartImportTaskCommandOutput extends StartImportTaskResponse, _
8484
* // clientRequestToken: "STRING_VALUE",
8585
* // name: "STRING_VALUE",
8686
* // importUrl: "STRING_VALUE",
87-
* // status: "IMPORT_IN_PROGRESS" || "IMPORT_COMPLETE" || "IMPORT_COMPLETE_WITH_ERRORS" || "IMPORT_FAILED" || "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED" || "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" || "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "DELETE_FAILED_LIMIT_EXCEEDED" || "INTERNAL_ERROR",
87+
* // status: "IMPORT_IN_PROGRESS" || "IMPORT_COMPLETE" || "IMPORT_COMPLETE_WITH_ERRORS" || "IMPORT_FAILED" || "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED" || "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED" || "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE" || "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "DELETE_FAILED_LIMIT_EXCEEDED" || "INTERNAL_ERROR",
8888
* // importRequestTime: new Date("TIMESTAMP"),
8989
* // importCompletionTime: new Date("TIMESTAMP"),
9090
* // importDeletedTime: new Date("TIMESTAMP"),
91+
* // fileClassification: "MODELIZEIT_EXPORT" || "RVTOOLS_EXPORT" || "VMWARE_NSX_EXPORT" || "IMPORT_TEMPLATE",
9192
* // serverImportSuccess: Number("int"),
9293
* // serverImportFailure: Number("int"),
9394
* // applicationImportSuccess: Number("int"),

clients/client-application-discovery-service/src/commands/UpdateApplicationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
4343
* configurationId: "STRING_VALUE", // required
4444
* name: "STRING_VALUE",
4545
* description: "STRING_VALUE",
46+
* wave: "STRING_VALUE",
4647
* };
4748
* const command = new UpdateApplicationCommand(input);
4849
* const response = await client.send(command);

clients/client-application-discovery-service/src/models/models_0.ts

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,24 +442,30 @@ export interface BatchDeleteImportDataResponse {
442442
*/
443443
export interface CreateApplicationRequest {
444444
/**
445-
* <p>Name of the application to be created.</p>
445+
* <p>The name of the application to be created.</p>
446446
* @public
447447
*/
448448
name: string | undefined;
449449

450450
/**
451-
* <p>Description of the application to be created.</p>
451+
* <p>The description of the application to be created.</p>
452452
* @public
453453
*/
454454
description?: string | undefined;
455+
456+
/**
457+
* <p>The name of the migration wave of the application to be created.</p>
458+
* @public
459+
*/
460+
wave?: string | undefined;
455461
}
456462

457463
/**
458464
* @public
459465
*/
460466
export interface CreateApplicationResponse {
461467
/**
462-
* <p>Configuration ID of an application to be created.</p>
468+
* <p>The configuration ID of an application to be created.</p>
463469
* @public
464470
*/
465471
configurationId?: string | undefined;
@@ -1374,6 +1380,7 @@ export interface DescribeExportTasksResponse {
13741380
* @enum
13751381
*/
13761382
export const ImportTaskFilterName = {
1383+
FILE_CLASSIFICATION: "FILE_CLASSIFICATION",
13771384
IMPORT_TASK_ID: "IMPORT_TASK_ID",
13781385
NAME: "NAME",
13791386
STATUS: "STATUS",
@@ -1432,6 +1439,22 @@ export interface DescribeImportTasksRequest {
14321439
nextToken?: string | undefined;
14331440
}
14341441

1442+
/**
1443+
* @public
1444+
* @enum
1445+
*/
1446+
export const FileClassification = {
1447+
IMPORT_TEMPLATE: "IMPORT_TEMPLATE",
1448+
MODELIZEIT_EXPORT: "MODELIZEIT_EXPORT",
1449+
RVTOOLS_EXPORT: "RVTOOLS_EXPORT",
1450+
VMWARE_NSX_EXPORT: "VMWARE_NSX_EXPORT",
1451+
} as const;
1452+
1453+
/**
1454+
* @public
1455+
*/
1456+
export type FileClassification = (typeof FileClassification)[keyof typeof FileClassification];
1457+
14351458
/**
14361459
* @public
14371460
* @enum
@@ -1446,6 +1469,7 @@ export const ImportStatus = {
14461469
IMPORT_FAILED: "IMPORT_FAILED",
14471470
IMPORT_FAILED_RECORD_LIMIT_EXCEEDED: "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED",
14481471
IMPORT_FAILED_SERVER_LIMIT_EXCEEDED: "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED",
1472+
IMPORT_FAILED_UNSUPPORTED_FILE_TYPE: "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE",
14491473
IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
14501474
INTERNAL_ERROR: "INTERNAL_ERROR",
14511475
} as const;
@@ -1521,6 +1545,12 @@ export interface ImportTask {
15211545
*/
15221546
importDeletedTime?: Date | undefined;
15231547

1548+
/**
1549+
* <p>The type of file detected by the import task.</p>
1550+
* @public
1551+
*/
1552+
fileClassification?: FileClassification | undefined;
1553+
15241554
/**
15251555
* <p>The total number of server records in the import file that were successfully
15261556
* imported.</p>
@@ -2794,6 +2824,12 @@ export interface UpdateApplicationRequest {
27942824
* @public
27952825
*/
27962826
description?: string | undefined;
2827+
2828+
/**
2829+
* <p>The new migration wave of the application that you want to update.</p>
2830+
* @public
2831+
*/
2832+
wave?: string | undefined;
27972833
}
27982834

27992835
/**

clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,6 +1717,7 @@ const de_ImportTask = (output: any, context: __SerdeContext): ImportTask => {
17171717
applicationImportSuccess: __expectInt32,
17181718
clientRequestToken: __expectString,
17191719
errorsAndFailedEntriesZip: __expectString,
1720+
fileClassification: __expectString,
17201721
importCompletionTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
17211722
importDeletedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
17221723
importRequestTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),

codegen/sdk-codegen/aws-models/application-discovery-service.json

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,16 @@
10711071
"smithy.api#pattern": "^[\\s\\S]*\\S[\\s\\S]*$"
10721072
}
10731073
},
1074+
"com.amazonaws.applicationdiscoveryservice#ApplicationWave": {
1075+
"type": "string",
1076+
"traits": {
1077+
"smithy.api#length": {
1078+
"min": 0,
1079+
"max": 256
1080+
},
1081+
"smithy.api#pattern": "^($|[^\\s\\x00]( *[^\\s\\x00])*$)$"
1082+
}
1083+
},
10741084
"com.amazonaws.applicationdiscoveryservice#AssociateConfigurationItemsToApplication": {
10751085
"type": "operation",
10761086
"input": {
@@ -1763,14 +1773,20 @@
17631773
"name": {
17641774
"target": "com.amazonaws.applicationdiscoveryservice#ApplicationName",
17651775
"traits": {
1766-
"smithy.api#documentation": "<p>Name of the application to be created.</p>",
1776+
"smithy.api#documentation": "<p>The name of the application to be created.</p>",
17671777
"smithy.api#required": {}
17681778
}
17691779
},
17701780
"description": {
17711781
"target": "com.amazonaws.applicationdiscoveryservice#ApplicationDescription",
17721782
"traits": {
1773-
"smithy.api#documentation": "<p>Description of the application to be created.</p>"
1783+
"smithy.api#documentation": "<p>The description of the application to be created.</p>"
1784+
}
1785+
},
1786+
"wave": {
1787+
"target": "com.amazonaws.applicationdiscoveryservice#ApplicationWave",
1788+
"traits": {
1789+
"smithy.api#documentation": "<p>The name of the migration wave of the application to be created.</p>"
17741790
}
17751791
}
17761792
},
@@ -1784,7 +1800,7 @@
17841800
"configurationId": {
17851801
"target": "com.amazonaws.applicationdiscoveryservice#String",
17861802
"traits": {
1787-
"smithy.api#documentation": "<p>Configuration ID of an application to be created.</p>"
1803+
"smithy.api#documentation": "<p>The configuration ID of an application to be created.</p>"
17881804
}
17891805
}
17901806
},
@@ -3409,6 +3425,35 @@
34093425
"target": "com.amazonaws.applicationdiscoveryservice#FailedConfiguration"
34103426
}
34113427
},
3428+
"com.amazonaws.applicationdiscoveryservice#FileClassification": {
3429+
"type": "enum",
3430+
"members": {
3431+
"MODELIZEIT_EXPORT": {
3432+
"target": "smithy.api#Unit",
3433+
"traits": {
3434+
"smithy.api#enumValue": "MODELIZEIT_EXPORT"
3435+
}
3436+
},
3437+
"RVTOOLS_EXPORT": {
3438+
"target": "smithy.api#Unit",
3439+
"traits": {
3440+
"smithy.api#enumValue": "RVTOOLS_EXPORT"
3441+
}
3442+
},
3443+
"VMWARE_NSX_EXPORT": {
3444+
"target": "smithy.api#Unit",
3445+
"traits": {
3446+
"smithy.api#enumValue": "VMWARE_NSX_EXPORT"
3447+
}
3448+
},
3449+
"IMPORT_TEMPLATE": {
3450+
"target": "smithy.api#Unit",
3451+
"traits": {
3452+
"smithy.api#enumValue": "IMPORT_TEMPLATE"
3453+
}
3454+
}
3455+
}
3456+
},
34123457
"com.amazonaws.applicationdiscoveryservice#Filter": {
34133458
"type": "structure",
34143459
"members": {
@@ -3621,6 +3666,12 @@
36213666
"smithy.api#enumValue": "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"
36223667
}
36233668
},
3669+
"IMPORT_FAILED_UNSUPPORTED_FILE_TYPE": {
3670+
"target": "smithy.api#Unit",
3671+
"traits": {
3672+
"smithy.api#enumValue": "IMPORT_FAILED_UNSUPPORTED_FILE_TYPE"
3673+
}
3674+
},
36243675
"DELETE_IN_PROGRESS": {
36253676
"target": "smithy.api#Unit",
36263677
"traits": {
@@ -3704,6 +3755,12 @@
37043755
"smithy.api#documentation": "<p>The time that the import task request was deleted, presented in the Unix time stamp\n format.</p>"
37053756
}
37063757
},
3758+
"fileClassification": {
3759+
"target": "com.amazonaws.applicationdiscoveryservice#FileClassification",
3760+
"traits": {
3761+
"smithy.api#documentation": "<p>The type of file detected by the import task.</p>"
3762+
}
3763+
},
37073764
"serverImportSuccess": {
37083765
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
37093766
"traits": {
@@ -3783,6 +3840,12 @@
37833840
"traits": {
37843841
"smithy.api#enumValue": "NAME"
37853842
}
3843+
},
3844+
"FILE_CLASSIFICATION": {
3845+
"target": "smithy.api#Unit",
3846+
"traits": {
3847+
"smithy.api#enumValue": "FILE_CLASSIFICATION"
3848+
}
37863849
}
37873850
}
37883851
},
@@ -4332,6 +4395,9 @@
43324395
{
43334396
"target": "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException"
43344397
},
4398+
{
4399+
"target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterException"
4400+
},
43354401
{
43364402
"target": "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException"
43374403
},
@@ -5006,6 +5072,12 @@
50065072
"traits": {
50075073
"smithy.api#documentation": "<p>New description of the application to be updated.</p>"
50085074
}
5075+
},
5076+
"wave": {
5077+
"target": "com.amazonaws.applicationdiscoveryservice#ApplicationWave",
5078+
"traits": {
5079+
"smithy.api#documentation": "<p>The new migration wave of the application that you want to update.</p>"
5080+
}
50095081
}
50105082
},
50115083
"traits": {

0 commit comments

Comments
 (0)