Skip to content

Commit fcd3aba

Browse files
author
awstools
committed
feat(client-drs): Added volume status to DescribeSourceServer replicated volumes.
1 parent 29add4c commit fcd3aba

File tree

10 files changed

+175
-0
lines changed

10 files changed

+175
-0
lines changed

clients/client-drs/src/commands/CreateExtendedSourceServerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface CreateExtendedSourceServerCommandOutput extends CreateExtendedS
6767
* // replicatedStorageBytes: Number("long"),
6868
* // rescannedStorageBytes: Number("long"),
6969
* // backloggedStorageBytes: Number("long"),
70+
* // volumeStatus: "STRING_VALUE",
7071
* // },
7172
* // ],
7273
* // dataReplicationState: "STRING_VALUE",

clients/client-drs/src/commands/DescribeJobLogItemsCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ export interface DescribeJobLogItemsCommandOutput extends DescribeJobLogItemsRes
6464
* // volumeToVolumeSize: { // VolumeToSizeMap
6565
* // "<keys>": Number("long"),
6666
* // },
67+
* // volumeToProductCodes: { // VolumeToProductCodes
68+
* // "<keys>": [ // ProductCodes
69+
* // { // ProductCode
70+
* // productCodeId: "STRING_VALUE",
71+
* // productCodeMode: "STRING_VALUE",
72+
* // },
73+
* // ],
74+
* // },
6775
* // },
6876
* // eventResourceData: { // EventResourceData Union: only one key present
6977
* // sourceNetworkData: { // SourceNetworkData

clients/client-drs/src/commands/DescribeSourceServersCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface DescribeSourceServersCommandOutput extends DescribeSourceServer
7474
* // replicatedStorageBytes: Number("long"),
7575
* // rescannedStorageBytes: Number("long"),
7676
* // backloggedStorageBytes: Number("long"),
77+
* // volumeStatus: "STRING_VALUE",
7778
* // },
7879
* // ],
7980
* // dataReplicationState: "STRING_VALUE",

clients/client-drs/src/commands/DisconnectSourceServerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export interface DisconnectSourceServerCommandOutput extends SourceServer, __Met
5858
* // replicatedStorageBytes: Number("long"),
5959
* // rescannedStorageBytes: Number("long"),
6060
* // backloggedStorageBytes: Number("long"),
61+
* // volumeStatus: "STRING_VALUE",
6162
* // },
6263
* // ],
6364
* // dataReplicationState: "STRING_VALUE",

clients/client-drs/src/commands/RetryDataReplicationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface RetryDataReplicationCommandOutput extends SourceServer, __Metad
6262
* // replicatedStorageBytes: Number("long"),
6363
* // rescannedStorageBytes: Number("long"),
6464
* // backloggedStorageBytes: Number("long"),
65+
* // volumeStatus: "STRING_VALUE",
6566
* // },
6667
* // ],
6768
* // dataReplicationState: "STRING_VALUE",

clients/client-drs/src/commands/StartReplicationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface StartReplicationCommandOutput extends StartReplicationResponse,
6363
* // replicatedStorageBytes: Number("long"),
6464
* // rescannedStorageBytes: Number("long"),
6565
* // backloggedStorageBytes: Number("long"),
66+
* // volumeStatus: "STRING_VALUE",
6667
* // },
6768
* // ],
6869
* // dataReplicationState: "STRING_VALUE",

clients/client-drs/src/commands/StopReplicationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface StopReplicationCommandOutput extends StopReplicationResponse, _
6363
* // replicatedStorageBytes: Number("long"),
6464
* // rescannedStorageBytes: Number("long"),
6565
* // backloggedStorageBytes: Number("long"),
66+
* // volumeStatus: "STRING_VALUE",
6667
* // },
6768
* // ],
6869
* // dataReplicationState: "STRING_VALUE",

clients/client-drs/src/models/models_0.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,38 @@ export class ValidationException extends __BaseException {
767767
}
768768
}
769769

770+
/**
771+
* @public
772+
* @enum
773+
*/
774+
export const ProductCodeMode = {
775+
DISABLED: "DISABLED",
776+
ENABLED: "ENABLED",
777+
} as const;
778+
779+
/**
780+
* @public
781+
*/
782+
export type ProductCodeMode = (typeof ProductCodeMode)[keyof typeof ProductCodeMode];
783+
784+
/**
785+
* @public
786+
* <p>Properties of a product code associated with a volume.</p>
787+
*/
788+
export interface ProductCode {
789+
/**
790+
* @public
791+
* <p>Id of a product code associated with a volume.</p>
792+
*/
793+
productCodeId?: string;
794+
795+
/**
796+
* @public
797+
* <p>Mode of a product code associated with a volume.</p>
798+
*/
799+
productCodeMode?: ProductCodeMode;
800+
}
801+
770802
/**
771803
* @public
772804
* <p>Properties of a conversion job</p>
@@ -801,6 +833,12 @@ export interface ConversionProperties {
801833
* <p>A mapping between the volumes and their sizes</p>
802834
*/
803835
volumeToVolumeSize?: Record<string, number>;
836+
837+
/**
838+
* @public
839+
* <p>A mapping between the volumes being converted and the product codes associated with them</p>
840+
*/
841+
volumeToProductCodes?: Record<string, ProductCode[]>;
804842
}
805843

806844
/**
@@ -988,6 +1026,22 @@ export const DataReplicationState = {
9881026
*/
9891027
export type DataReplicationState = (typeof DataReplicationState)[keyof typeof DataReplicationState];
9901028

1029+
/**
1030+
* @public
1031+
* @enum
1032+
*/
1033+
export const VolumeStatus = {
1034+
CONTAINS_MARKETPLACE_PRODUCT_CODES: "CONTAINS_MARKETPLACE_PRODUCT_CODES",
1035+
MISSING_VOLUME_ATTRIBUTES: "MISSING_VOLUME_ATTRIBUTES",
1036+
MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE: "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE",
1037+
REGULAR: "REGULAR",
1038+
} as const;
1039+
1040+
/**
1041+
* @public
1042+
*/
1043+
export type VolumeStatus = (typeof VolumeStatus)[keyof typeof VolumeStatus];
1044+
9911045
/**
9921046
* @public
9931047
* <p>A disk that should be replicated.</p>
@@ -1022,6 +1076,12 @@ export interface DataReplicationInfoReplicatedDisk {
10221076
* <p>The size of the replication backlog in bytes.</p>
10231077
*/
10241078
backloggedStorageBytes?: number;
1079+
1080+
/**
1081+
* @public
1082+
* <p>The status of the volume.</p>
1083+
*/
1084+
volumeStatus?: VolumeStatus;
10251085
}
10261086

10271087
/**

clients/client-drs/src/protocols/Aws_restJson1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,10 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
29232923

29242924
// de_PITPolicyRule omitted.
29252925

2926+
// de_ProductCode omitted.
2927+
2928+
// de_ProductCodes omitted.
2929+
29262930
// de_RecoveryInstance omitted.
29272931

29282932
// de_RecoveryInstanceDataReplicationError omitted.
@@ -3027,6 +3031,8 @@ const de_SourceNetworksList = (output: any, context: __SerdeContext): SourceNetw
30273031

30283032
// de_VolumeToConversionMap omitted.
30293033

3034+
// de_VolumeToProductCodes omitted.
3035+
30303036
// de_VolumeToSizeMap omitted.
30313037

30323038
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({

codegen/sdk-codegen/aws-models/drs.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@
310310
"traits": {
311311
"smithy.api#documentation": "<p>A mapping between the volumes and their sizes</p>"
312312
}
313+
},
314+
"volumeToProductCodes": {
315+
"target": "com.amazonaws.drs#VolumeToProductCodes",
316+
"traits": {
317+
"smithy.api#documentation": "<p>A mapping between the volumes being converted and the product codes associated with them</p>"
318+
}
313319
}
314320
},
315321
"traits": {
@@ -908,6 +914,12 @@
908914
"smithy.api#default": 0,
909915
"smithy.api#documentation": "<p>The size of the replication backlog in bytes.</p>"
910916
}
917+
},
918+
"volumeStatus": {
919+
"target": "com.amazonaws.drs#VolumeStatus",
920+
"traits": {
921+
"smithy.api#documentation": "<p>The status of the volume.</p>"
922+
}
911923
}
912924
},
913925
"traits": {
@@ -5707,6 +5719,57 @@
57075719
}
57085720
}
57095721
},
5722+
"com.amazonaws.drs#ProductCode": {
5723+
"type": "structure",
5724+
"members": {
5725+
"productCodeId": {
5726+
"target": "com.amazonaws.drs#ProductCodeId",
5727+
"traits": {
5728+
"smithy.api#documentation": "<p>Id of a product code associated with a volume.</p>"
5729+
}
5730+
},
5731+
"productCodeMode": {
5732+
"target": "com.amazonaws.drs#ProductCodeMode",
5733+
"traits": {
5734+
"smithy.api#documentation": "<p>Mode of a product code associated with a volume.</p>"
5735+
}
5736+
}
5737+
},
5738+
"traits": {
5739+
"smithy.api#documentation": "<p>Properties of a product code associated with a volume.</p>"
5740+
}
5741+
},
5742+
"com.amazonaws.drs#ProductCodeId": {
5743+
"type": "string",
5744+
"traits": {
5745+
"smithy.api#length": {
5746+
"min": 25,
5747+
"max": 25
5748+
},
5749+
"smithy.api#pattern": "^([A-Za-z0-9])+$"
5750+
}
5751+
},
5752+
"com.amazonaws.drs#ProductCodeMode": {
5753+
"type": "string",
5754+
"traits": {
5755+
"smithy.api#enum": [
5756+
{
5757+
"name": "ENABLED",
5758+
"value": "ENABLED"
5759+
},
5760+
{
5761+
"name": "DISABLED",
5762+
"value": "DISABLED"
5763+
}
5764+
]
5765+
}
5766+
},
5767+
"com.amazonaws.drs#ProductCodes": {
5768+
"type": "list",
5769+
"member": {
5770+
"target": "com.amazonaws.drs#ProductCode"
5771+
}
5772+
},
57105773
"com.amazonaws.drs#PutLaunchAction": {
57115774
"type": "operation",
57125775
"input": {
@@ -9456,6 +9519,29 @@
94569519
]
94579520
}
94589521
},
9522+
"com.amazonaws.drs#VolumeStatus": {
9523+
"type": "string",
9524+
"traits": {
9525+
"smithy.api#enum": [
9526+
{
9527+
"value": "REGULAR",
9528+
"name": "REGULAR"
9529+
},
9530+
{
9531+
"value": "CONTAINS_MARKETPLACE_PRODUCT_CODES",
9532+
"name": "CONTAINS_MARKETPLACE_PRODUCT_CODES"
9533+
},
9534+
{
9535+
"value": "MISSING_VOLUME_ATTRIBUTES",
9536+
"name": "MISSING_VOLUME_ATTRIBUTES"
9537+
},
9538+
{
9539+
"value": "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE",
9540+
"name": "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE"
9541+
}
9542+
]
9543+
}
9544+
},
94599545
"com.amazonaws.drs#VolumeToConversionMap": {
94609546
"type": "map",
94619547
"key": {
@@ -9465,6 +9551,15 @@
94659551
"target": "com.amazonaws.drs#ConversionMap"
94669552
}
94679553
},
9554+
"com.amazonaws.drs#VolumeToProductCodes": {
9555+
"type": "map",
9556+
"key": {
9557+
"target": "com.amazonaws.drs#LargeBoundedString"
9558+
},
9559+
"value": {
9560+
"target": "com.amazonaws.drs#ProductCodes"
9561+
}
9562+
},
94689563
"com.amazonaws.drs#VolumeToSizeMap": {
94699564
"type": "map",
94709565
"key": {

0 commit comments

Comments
 (0)