Skip to content

Commit

Permalink
feat(client-drs): Adding AgentVersion to SourceServer and RecoveryIns…
Browse files Browse the repository at this point in the history
…tance structures
  • Loading branch information
awstools committed Dec 13, 2023
1 parent a12b2eb commit 01b2633
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export interface CreateExtendedSourceServerCommandOutput extends CreateExtendedS
* // replicationDirection: "STRING_VALUE",
* // reversedDirectionSourceServerArn: "STRING_VALUE",
* // sourceNetworkID: "STRING_VALUE",
* // agentVersion: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export interface DescribeRecoveryInstancesCommandOutput extends DescribeRecovery
* // isDrill: true || false,
* // originEnvironment: "STRING_VALUE",
* // originAvailabilityZone: "STRING_VALUE",
* // agentVersion: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export interface DescribeSourceServersCommandOutput extends DescribeSourceServer
* // replicationDirection: "STRING_VALUE",
* // reversedDirectionSourceServerArn: "STRING_VALUE",
* // sourceNetworkID: "STRING_VALUE",
* // agentVersion: "STRING_VALUE",
* // },
* // ],
* // nextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export interface DisconnectSourceServerCommandOutput extends SourceServer, __Met
* // replicationDirection: "STRING_VALUE",
* // reversedDirectionSourceServerArn: "STRING_VALUE",
* // sourceNetworkID: "STRING_VALUE",
* // agentVersion: "STRING_VALUE",
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export interface RetryDataReplicationCommandOutput extends SourceServer, __Metad
* // replicationDirection: "STRING_VALUE",
* // reversedDirectionSourceServerArn: "STRING_VALUE",
* // sourceNetworkID: "STRING_VALUE",
* // agentVersion: "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 @@ -155,6 +155,7 @@ export interface StartReplicationCommandOutput extends StartReplicationResponse,
* // replicationDirection: "STRING_VALUE",
* // reversedDirectionSourceServerArn: "STRING_VALUE",
* // sourceNetworkID: "STRING_VALUE",
* // agentVersion: "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 @@ -155,6 +155,7 @@ export interface StopReplicationCommandOutput extends StopReplicationResponse, _
* // replicationDirection: "STRING_VALUE",
* // reversedDirectionSourceServerArn: "STRING_VALUE",
* // sourceNetworkID: "STRING_VALUE",
* // agentVersion: "STRING_VALUE",
* // },
* // };
*
Expand Down
12 changes: 12 additions & 0 deletions clients/client-drs/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,12 @@ export interface SourceServer {
* <p>ID of the Source Network which is protecting this Source Server's network.</p>
*/
sourceNetworkID?: string;

/**
* @public
* <p>The version of the DRS agent installed on the source server</p>
*/
agentVersion?: string;
}

/**
Expand Down Expand Up @@ -3039,6 +3045,12 @@ export interface RecoveryInstance {
* <p>AWS availability zone associated with the recovery instance.</p>
*/
originAvailabilityZone?: string;

/**
* @public
* <p>The version of the DRS agent installed on the recovery instance</p>
*/
agentVersion?: string;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-drs/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3052,6 +3052,7 @@ export const de_DisconnectSourceServerCommand = async (
});
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
agentVersion: __expectString,
arn: __expectString,
dataReplicationInfo: _json,
lastLaunchResult: __expectString,
Expand Down Expand Up @@ -3748,6 +3749,7 @@ export const de_RetryDataReplicationCommand = async (
});
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
agentVersion: __expectString,
arn: __expectString,
dataReplicationInfo: _json,
lastLaunchResult: __expectString,
Expand Down
18 changes: 18 additions & 0 deletions codegen/sdk-codegen/aws-models/drs.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
}
}
},
"com.amazonaws.drs#AgentVersion": {
"type": "string",
"traits": {
"smithy.api#pattern": "^[0-9]{1,5}.[0-9]{1,5}.[0-9]{1,5}(.[0-9]{4}.[0-9]{3}.[0-9]{4})?$"
}
},
"com.amazonaws.drs#AssociateSourceNetworkStack": {
"type": "operation",
"input": {
Expand Down Expand Up @@ -5975,6 +5981,12 @@
"traits": {
"smithy.api#documentation": "<p>AWS availability zone associated with the recovery instance.</p>"
}
},
"agentVersion": {
"target": "com.amazonaws.drs#AgentVersion",
"traits": {
"smithy.api#documentation": "<p>The version of the DRS agent installed on the recovery instance</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -7715,6 +7727,12 @@
"traits": {
"smithy.api#documentation": "<p>ID of the Source Network which is protecting this Source Server's network.</p>"
}
},
"agentVersion": {
"target": "com.amazonaws.drs#AgentVersion",
"traits": {
"smithy.api#documentation": "<p>The version of the DRS agent installed on the source server</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 01b2633

Please sign in to comment.