Skip to content

Commit

Permalink
feat(client-drs): Added volume status to DescribeSourceServer replica…
Browse files Browse the repository at this point in the history
…ted volumes.
  • Loading branch information
awstools committed Feb 26, 2024
1 parent 29add4c commit fcd3aba
Show file tree
Hide file tree
Showing 10 changed files with 175 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export interface CreateExtendedSourceServerCommandOutput extends CreateExtendedS
* // replicatedStorageBytes: Number("long"),
* // rescannedStorageBytes: Number("long"),
* // backloggedStorageBytes: Number("long"),
* // volumeStatus: "STRING_VALUE",
* // },
* // ],
* // dataReplicationState: "STRING_VALUE",
Expand Down
8 changes: 8 additions & 0 deletions clients/client-drs/src/commands/DescribeJobLogItemsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ export interface DescribeJobLogItemsCommandOutput extends DescribeJobLogItemsRes
* // volumeToVolumeSize: { // VolumeToSizeMap
* // "<keys>": Number("long"),
* // },
* // volumeToProductCodes: { // VolumeToProductCodes
* // "<keys>": [ // ProductCodes
* // { // ProductCode
* // productCodeId: "STRING_VALUE",
* // productCodeMode: "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // eventResourceData: { // EventResourceData Union: only one key present
* // sourceNetworkData: { // SourceNetworkData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface DescribeSourceServersCommandOutput extends DescribeSourceServer
* // replicatedStorageBytes: Number("long"),
* // rescannedStorageBytes: Number("long"),
* // backloggedStorageBytes: Number("long"),
* // volumeStatus: "STRING_VALUE",
* // },
* // ],
* // dataReplicationState: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface DisconnectSourceServerCommandOutput extends SourceServer, __Met
* // replicatedStorageBytes: Number("long"),
* // rescannedStorageBytes: Number("long"),
* // backloggedStorageBytes: Number("long"),
* // volumeStatus: "STRING_VALUE",
* // },
* // ],
* // dataReplicationState: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface RetryDataReplicationCommandOutput extends SourceServer, __Metad
* // replicatedStorageBytes: Number("long"),
* // rescannedStorageBytes: Number("long"),
* // backloggedStorageBytes: Number("long"),
* // volumeStatus: "STRING_VALUE",
* // },
* // ],
* // dataReplicationState: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-drs/src/commands/StartReplicationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export interface StartReplicationCommandOutput extends StartReplicationResponse,
* // replicatedStorageBytes: Number("long"),
* // rescannedStorageBytes: Number("long"),
* // backloggedStorageBytes: Number("long"),
* // volumeStatus: "STRING_VALUE",
* // },
* // ],
* // dataReplicationState: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-drs/src/commands/StopReplicationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export interface StopReplicationCommandOutput extends StopReplicationResponse, _
* // replicatedStorageBytes: Number("long"),
* // rescannedStorageBytes: Number("long"),
* // backloggedStorageBytes: Number("long"),
* // volumeStatus: "STRING_VALUE",
* // },
* // ],
* // dataReplicationState: "STRING_VALUE",
Expand Down
60 changes: 60 additions & 0 deletions clients/client-drs/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,38 @@ export class ValidationException extends __BaseException {
}
}

/**
* @public
* @enum
*/
export const ProductCodeMode = {
DISABLED: "DISABLED",
ENABLED: "ENABLED",
} as const;

/**
* @public
*/
export type ProductCodeMode = (typeof ProductCodeMode)[keyof typeof ProductCodeMode];

/**
* @public
* <p>Properties of a product code associated with a volume.</p>
*/
export interface ProductCode {
/**
* @public
* <p>Id of a product code associated with a volume.</p>
*/
productCodeId?: string;

/**
* @public
* <p>Mode of a product code associated with a volume.</p>
*/
productCodeMode?: ProductCodeMode;
}

/**
* @public
* <p>Properties of a conversion job</p>
Expand Down Expand Up @@ -801,6 +833,12 @@ export interface ConversionProperties {
* <p>A mapping between the volumes and their sizes</p>
*/
volumeToVolumeSize?: Record<string, number>;

/**
* @public
* <p>A mapping between the volumes being converted and the product codes associated with them</p>
*/
volumeToProductCodes?: Record<string, ProductCode[]>;
}

/**
Expand Down Expand Up @@ -988,6 +1026,22 @@ export const DataReplicationState = {
*/
export type DataReplicationState = (typeof DataReplicationState)[keyof typeof DataReplicationState];

/**
* @public
* @enum
*/
export const VolumeStatus = {
CONTAINS_MARKETPLACE_PRODUCT_CODES: "CONTAINS_MARKETPLACE_PRODUCT_CODES",
MISSING_VOLUME_ATTRIBUTES: "MISSING_VOLUME_ATTRIBUTES",
MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE: "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE",
REGULAR: "REGULAR",
} as const;

/**
* @public
*/
export type VolumeStatus = (typeof VolumeStatus)[keyof typeof VolumeStatus];

/**
* @public
* <p>A disk that should be replicated.</p>
Expand Down Expand Up @@ -1022,6 +1076,12 @@ export interface DataReplicationInfoReplicatedDisk {
* <p>The size of the replication backlog in bytes.</p>
*/
backloggedStorageBytes?: number;

/**
* @public
* <p>The status of the volume.</p>
*/
volumeStatus?: VolumeStatus;
}

/**
Expand Down
6 changes: 6 additions & 0 deletions clients/client-drs/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2923,6 +2923,10 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont

// de_PITPolicyRule omitted.

// de_ProductCode omitted.

// de_ProductCodes omitted.

// de_RecoveryInstance omitted.

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

// de_VolumeToConversionMap omitted.

// de_VolumeToProductCodes omitted.

// de_VolumeToSizeMap omitted.

const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
Expand Down
95 changes: 95 additions & 0 deletions codegen/sdk-codegen/aws-models/drs.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@
"traits": {
"smithy.api#documentation": "<p>A mapping between the volumes and their sizes</p>"
}
},
"volumeToProductCodes": {
"target": "com.amazonaws.drs#VolumeToProductCodes",
"traits": {
"smithy.api#documentation": "<p>A mapping between the volumes being converted and the product codes associated with them</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -908,6 +914,12 @@
"smithy.api#default": 0,
"smithy.api#documentation": "<p>The size of the replication backlog in bytes.</p>"
}
},
"volumeStatus": {
"target": "com.amazonaws.drs#VolumeStatus",
"traits": {
"smithy.api#documentation": "<p>The status of the volume.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -5707,6 +5719,57 @@
}
}
},
"com.amazonaws.drs#ProductCode": {
"type": "structure",
"members": {
"productCodeId": {
"target": "com.amazonaws.drs#ProductCodeId",
"traits": {
"smithy.api#documentation": "<p>Id of a product code associated with a volume.</p>"
}
},
"productCodeMode": {
"target": "com.amazonaws.drs#ProductCodeMode",
"traits": {
"smithy.api#documentation": "<p>Mode of a product code associated with a volume.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Properties of a product code associated with a volume.</p>"
}
},
"com.amazonaws.drs#ProductCodeId": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 25,
"max": 25
},
"smithy.api#pattern": "^([A-Za-z0-9])+$"
}
},
"com.amazonaws.drs#ProductCodeMode": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"name": "ENABLED",
"value": "ENABLED"
},
{
"name": "DISABLED",
"value": "DISABLED"
}
]
}
},
"com.amazonaws.drs#ProductCodes": {
"type": "list",
"member": {
"target": "com.amazonaws.drs#ProductCode"
}
},
"com.amazonaws.drs#PutLaunchAction": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -9456,6 +9519,29 @@
]
}
},
"com.amazonaws.drs#VolumeStatus": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"value": "REGULAR",
"name": "REGULAR"
},
{
"value": "CONTAINS_MARKETPLACE_PRODUCT_CODES",
"name": "CONTAINS_MARKETPLACE_PRODUCT_CODES"
},
{
"value": "MISSING_VOLUME_ATTRIBUTES",
"name": "MISSING_VOLUME_ATTRIBUTES"
},
{
"value": "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE",
"name": "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE"
}
]
}
},
"com.amazonaws.drs#VolumeToConversionMap": {
"type": "map",
"key": {
Expand All @@ -9465,6 +9551,15 @@
"target": "com.amazonaws.drs#ConversionMap"
}
},
"com.amazonaws.drs#VolumeToProductCodes": {
"type": "map",
"key": {
"target": "com.amazonaws.drs#LargeBoundedString"
},
"value": {
"target": "com.amazonaws.drs#ProductCodes"
}
},
"com.amazonaws.drs#VolumeToSizeMap": {
"type": "map",
"key": {
Expand Down

0 comments on commit fcd3aba

Please sign in to comment.