Skip to content

Commit 9588015

Browse files
author
awstools
committed
feat(client-database-migration-service): Added support for tagging in StartReplicationTaskAssessmentRun API and introduced IsLatestTaskAssessmentRun and ResultStatistic fields for enhanced tracking and assessment result statistics.
1 parent e4411e6 commit 9588015

15 files changed

+232
-28
lines changed

clients/client-database-migration-service/src/commands/CancelReplicationTaskAssessmentRunCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ export interface CancelReplicationTaskAssessmentRunCommandOutput
7272
* // ResultEncryptionMode: "STRING_VALUE",
7373
* // ResultKmsKeyArn: "STRING_VALUE",
7474
* // AssessmentRunName: "STRING_VALUE",
75+
* // IsLatestTaskAssessmentRun: true || false,
76+
* // ResultStatistic: { // ReplicationTaskAssessmentRunResultStatistic
77+
* // Passed: Number("int"),
78+
* // Failed: Number("int"),
79+
* // Error: Number("int"),
80+
* // Warning: Number("int"),
81+
* // Cancelled: Number("int"),
82+
* // },
7583
* // },
7684
* // };
7785
*

clients/client-database-migration-service/src/commands/CreateDataMigrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ export interface CreateDataMigrationCommandOutput extends CreateDataMigrationRes
108108
* // PublicIpAddresses: [ // PublicIpAddressList
109109
* // "STRING_VALUE",
110110
* // ],
111+
* // DataMigrationCidrBlocks: [ // DataMigrationCidrBlock
112+
* // "STRING_VALUE",
113+
* // ],
111114
* // LastFailureMessage: "STRING_VALUE",
112115
* // StopReason: "STRING_VALUE",
113116
* // },

clients/client-database-migration-service/src/commands/DeleteDataMigrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export interface DeleteDataMigrationCommandOutput extends DeleteDataMigrationRes
8686
* // PublicIpAddresses: [ // PublicIpAddressList
8787
* // "STRING_VALUE",
8888
* // ],
89+
* // DataMigrationCidrBlocks: [ // DataMigrationCidrBlock
90+
* // "STRING_VALUE",
91+
* // ],
8992
* // LastFailureMessage: "STRING_VALUE",
9093
* // StopReason: "STRING_VALUE",
9194
* // },

clients/client-database-migration-service/src/commands/DeleteReplicationTaskAssessmentRunCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ export interface DeleteReplicationTaskAssessmentRunCommandOutput
7272
* // ResultEncryptionMode: "STRING_VALUE",
7373
* // ResultKmsKeyArn: "STRING_VALUE",
7474
* // AssessmentRunName: "STRING_VALUE",
75+
* // IsLatestTaskAssessmentRun: true || false,
76+
* // ResultStatistic: { // ReplicationTaskAssessmentRunResultStatistic
77+
* // Passed: Number("int"),
78+
* // Failed: Number("int"),
79+
* // Error: Number("int"),
80+
* // Warning: Number("int"),
81+
* // Cancelled: Number("int"),
82+
* // },
7583
* // },
7684
* // };
7785
*

clients/client-database-migration-service/src/commands/DescribeDataMigrationsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ export interface DescribeDataMigrationsCommandOutput extends DescribeDataMigrati
9898
* // PublicIpAddresses: [ // PublicIpAddressList
9999
* // "STRING_VALUE",
100100
* // ],
101+
* // DataMigrationCidrBlocks: [ // DataMigrationCidrBlock
102+
* // "STRING_VALUE",
103+
* // ],
101104
* // LastFailureMessage: "STRING_VALUE",
102105
* // StopReason: "STRING_VALUE",
103106
* // },

clients/client-database-migration-service/src/commands/DescribeReplicationTaskAssessmentRunsCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ export interface DescribeReplicationTaskAssessmentRunsCommandOutput
8989
* // ResultEncryptionMode: "STRING_VALUE",
9090
* // ResultKmsKeyArn: "STRING_VALUE",
9191
* // AssessmentRunName: "STRING_VALUE",
92+
* // IsLatestTaskAssessmentRun: true || false,
93+
* // ResultStatistic: { // ReplicationTaskAssessmentRunResultStatistic
94+
* // Passed: Number("int"),
95+
* // Failed: Number("int"),
96+
* // Error: Number("int"),
97+
* // Warning: Number("int"),
98+
* // Cancelled: Number("int"),
99+
* // },
92100
* // },
93101
* // ],
94102
* // };

clients/client-database-migration-service/src/commands/DescribeTableStatisticsCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import {
1010
ServiceOutputTypes,
1111
} from "../DatabaseMigrationServiceClient";
1212
import { commonParams } from "../endpoint/EndpointParameters";
13-
import { DescribeTableStatisticsMessage, DescribeTableStatisticsResponse } from "../models/models_0";
13+
import { DescribeTableStatisticsMessage } from "../models/models_0";
14+
import { DescribeTableStatisticsResponse } from "../models/models_1";
1415
import { de_DescribeTableStatisticsCommand, se_DescribeTableStatisticsCommand } from "../protocols/Aws_json1_1";
1516

1617
/**

clients/client-database-migration-service/src/commands/ModifyDataMigrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export interface ModifyDataMigrationCommandOutput extends ModifyDataMigrationRes
101101
* // PublicIpAddresses: [ // PublicIpAddressList
102102
* // "STRING_VALUE",
103103
* // ],
104+
* // DataMigrationCidrBlocks: [ // DataMigrationCidrBlock
105+
* // "STRING_VALUE",
106+
* // ],
104107
* // LastFailureMessage: "STRING_VALUE",
105108
* // StopReason: "STRING_VALUE",
106109
* // },

clients/client-database-migration-service/src/commands/StartDataMigrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export interface StartDataMigrationCommandOutput extends StartDataMigrationRespo
8787
* // PublicIpAddresses: [ // PublicIpAddressList
8888
* // "STRING_VALUE",
8989
* // ],
90+
* // DataMigrationCidrBlocks: [ // DataMigrationCidrBlock
91+
* // "STRING_VALUE",
92+
* // ],
9093
* // LastFailureMessage: "STRING_VALUE",
9194
* // StopReason: "STRING_VALUE",
9295
* // },

clients/client-database-migration-service/src/commands/StartReplicationTaskAssessmentRunCommand.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ export interface StartReplicationTaskAssessmentRunCommandOutput
6767
* Exclude: [ // ExcludeTestList
6868
* "STRING_VALUE",
6969
* ],
70+
* Tags: [ // TagList
71+
* { // Tag
72+
* Key: "STRING_VALUE",
73+
* Value: "STRING_VALUE",
74+
* ResourceArn: "STRING_VALUE",
75+
* },
76+
* ],
7077
* };
7178
* const command = new StartReplicationTaskAssessmentRunCommand(input);
7279
* const response = await client.send(command);
@@ -87,6 +94,14 @@ export interface StartReplicationTaskAssessmentRunCommandOutput
8794
* // ResultEncryptionMode: "STRING_VALUE",
8895
* // ResultKmsKeyArn: "STRING_VALUE",
8996
* // AssessmentRunName: "STRING_VALUE",
97+
* // IsLatestTaskAssessmentRun: true || false,
98+
* // ResultStatistic: { // ReplicationTaskAssessmentRunResultStatistic
99+
* // Passed: Number("int"),
100+
* // Failed: Number("int"),
101+
* // Error: Number("int"),
102+
* // Warning: Number("int"),
103+
* // Cancelled: Number("int"),
104+
* // },
90105
* // },
91106
* // };
92107
*

clients/client-database-migration-service/src/commands/StopDataMigrationCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export interface StopDataMigrationCommandOutput extends StopDataMigrationRespons
8686
* // PublicIpAddresses: [ // PublicIpAddressList
8787
* // "STRING_VALUE",
8888
* // ],
89+
* // DataMigrationCidrBlocks: [ // DataMigrationCidrBlock
90+
* // "STRING_VALUE",
91+
* // ],
8992
* // LastFailureMessage: "STRING_VALUE",
9093
* // StopReason: "STRING_VALUE",
9194
* // },

clients/client-database-migration-service/src/models/models_0.ts

Lines changed: 58 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,44 @@ export interface ReplicationTaskAssessmentRunProgress {
415415
IndividualAssessmentCompletedCount?: number;
416416
}
417417

418+
/**
419+
* <p>The object containing the result statistics for a completed assessment run.</p>
420+
* @public
421+
*/
422+
export interface ReplicationTaskAssessmentRunResultStatistic {
423+
/**
424+
* <p>The number of individual assessments that successfully passed all checks in the assessment run.</p>
425+
* @public
426+
*/
427+
Passed?: number;
428+
429+
/**
430+
* <p>The number of individual assessments that failed to meet the criteria defined in the assessment run.</p>
431+
* @public
432+
*/
433+
Failed?: number;
434+
435+
/**
436+
* <p>The number of individual assessments that encountered a critical error and could not complete properly.</p>
437+
* @public
438+
*/
439+
Error?: number;
440+
441+
/**
442+
* <p>Indicates that the recent completed AssessmentRun triggered a warning.</p>
443+
* @public
444+
*/
445+
Warning?: number;
446+
447+
/**
448+
* <p>
449+
* The number of individual assessments that were cancelled during the assessment run.
450+
* </p>
451+
* @public
452+
*/
453+
Cancelled?: number;
454+
}
455+
418456
/**
419457
* <p>Provides information that describes a premigration assessment run that you have started
420458
* using the <code>StartReplicationTaskAssessmentRun</code> operation.</p>
@@ -550,6 +588,20 @@ export interface ReplicationTaskAssessmentRun {
550588
* @public
551589
*/
552590
AssessmentRunName?: string;
591+
592+
/**
593+
* <p>Indicates that the following PreflightAssessmentRun is the latest for the ReplicationTask. The status is either true or false.</p>
594+
* @public
595+
*/
596+
IsLatestTaskAssessmentRun?: boolean;
597+
598+
/**
599+
* <p>
600+
* Result statistics for a completed assessment run, showing aggregated statistics of IndividualAssessments for how many assessments were passed, failed, or encountered issues such as errors or warnings.
601+
* </p>
602+
* @public
603+
*/
604+
ResultStatistic?: ReplicationTaskAssessmentRunResultStatistic;
553605
}
554606

555607
/**
@@ -853,6 +905,12 @@ export interface DataMigration {
853905
*/
854906
PublicIpAddresses?: string[];
855907

908+
/**
909+
* <p>The CIDR blocks of the endpoints for the data migration.</p>
910+
* @public
911+
*/
912+
DataMigrationCidrBlocks?: string[];
913+
856914
/**
857915
* <p>Information about the data migration's most recent error or failure.</p>
858916
* @public
@@ -12679,32 +12737,6 @@ export interface DescribeTableStatisticsMessage {
1267912737
Filters?: Filter[];
1268012738
}
1268112739

12682-
/**
12683-
* <p></p>
12684-
* @public
12685-
*/
12686-
export interface DescribeTableStatisticsResponse {
12687-
/**
12688-
* <p>The Amazon Resource Name (ARN) of the replication task.</p>
12689-
* @public
12690-
*/
12691-
ReplicationTaskArn?: string;
12692-
12693-
/**
12694-
* <p>The table statistics.</p>
12695-
* @public
12696-
*/
12697-
TableStatistics?: TableStatistics[];
12698-
12699-
/**
12700-
* <p> An optional pagination token provided by a previous request. If this parameter is
12701-
* specified, the response includes only records beyond the marker, up to the value specified
12702-
* by <code>MaxRecords</code>. </p>
12703-
* @public
12704-
*/
12705-
Marker?: string;
12706-
}
12707-
1270812740
/**
1270912741
* @internal
1271012742
*/

clients/client-database-migration-service/src/models/models_1.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,37 @@ import {
6060
SourceDataSetting,
6161
SybaseSettings,
6262
SybaseSettingsFilterSensitiveLog,
63+
TableStatistics,
6364
Tag,
6465
TimestreamSettings,
6566
} from "./models_0";
6667

68+
/**
69+
* <p></p>
70+
* @public
71+
*/
72+
export interface DescribeTableStatisticsResponse {
73+
/**
74+
* <p>The Amazon Resource Name (ARN) of the replication task.</p>
75+
* @public
76+
*/
77+
ReplicationTaskArn?: string;
78+
79+
/**
80+
* <p>The table statistics.</p>
81+
* @public
82+
*/
83+
TableStatistics?: TableStatistics[];
84+
85+
/**
86+
* <p> An optional pagination token provided by a previous request. If this parameter is
87+
* specified, the response includes only records beyond the marker, up to the value specified
88+
* by <code>MaxRecords</code>. </p>
89+
* @public
90+
*/
91+
Marker?: string;
92+
}
93+
6794
/**
6895
* @public
6996
* @enum
@@ -2139,6 +2166,12 @@ export interface StartReplicationTaskAssessmentRunMessage {
21392166
* @public
21402167
*/
21412168
Exclude?: string[];
2169+
2170+
/**
2171+
* <p>One or more tags to be assigned to the premigration assessment run that you want to start.</p>
2172+
* @public
2173+
*/
2174+
Tags?: Tag[];
21422175
}
21432176

21442177
/**

clients/client-database-migration-service/src/protocols/Aws_json1_1.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,6 @@ import {
540540
DescribeReplicationTasksResponse,
541541
DescribeSchemasMessage,
542542
DescribeTableStatisticsMessage,
543-
DescribeTableStatisticsResponse,
544543
DmsTransferSettings,
545544
DocDbDataProviderSettings,
546545
DocDbSettings,
@@ -621,6 +620,7 @@ import {
621620
} from "../models/models_0";
622621
import {
623622
AssessmentReportType,
623+
DescribeTableStatisticsResponse,
624624
ExportMetadataModelAssessmentMessage,
625625
ImportCertificateMessage,
626626
ImportCertificateResponse,
@@ -5504,6 +5504,7 @@ const de_CreateReplicationTaskResponse = (output: any, context: __SerdeContext):
55045504
const de_DataMigration = (output: any, context: __SerdeContext): DataMigration => {
55055505
return take(output, {
55065506
DataMigrationArn: __expectString,
5507+
DataMigrationCidrBlocks: _json,
55075508
DataMigrationCreateTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
55085509
DataMigrationEndTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
55095510
DataMigrationName: __expectString,
@@ -5521,6 +5522,8 @@ const de_DataMigration = (output: any, context: __SerdeContext): DataMigration =
55215522
}) as any;
55225523
};
55235524

5525+
// de_DataMigrationCidrBlock omitted.
5526+
55245527
/**
55255528
* deserializeAws_json1_1DataMigrations
55265529
*/
@@ -6714,6 +6717,7 @@ const de_ReplicationTaskAssessmentRun = (output: any, context: __SerdeContext):
67146717
return take(output, {
67156718
AssessmentProgress: _json,
67166719
AssessmentRunName: __expectString,
6720+
IsLatestTaskAssessmentRun: __expectBoolean,
67176721
LastFailureMessage: __expectString,
67186722
ReplicationTaskArn: __expectString,
67196723
ReplicationTaskAssessmentRunArn: __expectString,
@@ -6722,6 +6726,7 @@ const de_ReplicationTaskAssessmentRun = (output: any, context: __SerdeContext):
67226726
ResultKmsKeyArn: __expectString,
67236727
ResultLocationBucket: __expectString,
67246728
ResultLocationFolder: __expectString,
6729+
ResultStatistic: _json,
67256730
ServiceAccessRoleArn: __expectString,
67266731
Status: __expectString,
67276732
}) as any;
@@ -6741,6 +6746,8 @@ const de_ReplicationTaskAssessmentRunList = (output: any, context: __SerdeContex
67416746

67426747
// de_ReplicationTaskAssessmentRunProgress omitted.
67436748

6749+
// de_ReplicationTaskAssessmentRunResultStatistic omitted.
6750+
67446751
/**
67456752
* deserializeAws_json1_1ReplicationTaskIndividualAssessment
67466753
*/

0 commit comments

Comments
 (0)