Skip to content

Commit 01b2633

Browse files
author
awstools
committed
feat(client-drs): Adding AgentVersion to SourceServer and RecoveryInstance structures
1 parent a12b2eb commit 01b2633

10 files changed

+39
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export interface CreateExtendedSourceServerCommandOutput extends CreateExtendedS
159159
* // replicationDirection: "STRING_VALUE",
160160
* // reversedDirectionSourceServerArn: "STRING_VALUE",
161161
* // sourceNetworkID: "STRING_VALUE",
162+
* // agentVersion: "STRING_VALUE",
162163
* // },
163164
* // };
164165
*

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export interface DescribeRecoveryInstancesCommandOutput extends DescribeRecovery
154154
* // isDrill: true || false,
155155
* // originEnvironment: "STRING_VALUE",
156156
* // originAvailabilityZone: "STRING_VALUE",
157+
* // agentVersion: "STRING_VALUE",
157158
* // },
158159
* // ],
159160
* // };

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export interface DescribeSourceServersCommandOutput extends DescribeSourceServer
166166
* // replicationDirection: "STRING_VALUE",
167167
* // reversedDirectionSourceServerArn: "STRING_VALUE",
168168
* // sourceNetworkID: "STRING_VALUE",
169+
* // agentVersion: "STRING_VALUE",
169170
* // },
170171
* // ],
171172
* // nextToken: "STRING_VALUE",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export interface DisconnectSourceServerCommandOutput extends SourceServer, __Met
150150
* // replicationDirection: "STRING_VALUE",
151151
* // reversedDirectionSourceServerArn: "STRING_VALUE",
152152
* // sourceNetworkID: "STRING_VALUE",
153+
* // agentVersion: "STRING_VALUE",
153154
* // };
154155
*
155156
* ```

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export interface RetryDataReplicationCommandOutput extends SourceServer, __Metad
154154
* // replicationDirection: "STRING_VALUE",
155155
* // reversedDirectionSourceServerArn: "STRING_VALUE",
156156
* // sourceNetworkID: "STRING_VALUE",
157+
* // agentVersion: "STRING_VALUE",
157158
* // };
158159
*
159160
* ```

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export interface StartReplicationCommandOutput extends StartReplicationResponse,
155155
* // replicationDirection: "STRING_VALUE",
156156
* // reversedDirectionSourceServerArn: "STRING_VALUE",
157157
* // sourceNetworkID: "STRING_VALUE",
158+
* // agentVersion: "STRING_VALUE",
158159
* // },
159160
* // };
160161
*

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export interface StopReplicationCommandOutput extends StopReplicationResponse, _
155155
* // replicationDirection: "STRING_VALUE",
156156
* // reversedDirectionSourceServerArn: "STRING_VALUE",
157157
* // sourceNetworkID: "STRING_VALUE",
158+
* // agentVersion: "STRING_VALUE",
158159
* // },
159160
* // };
160161
*

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,12 @@ export interface SourceServer {
14911491
* <p>ID of the Source Network which is protecting this Source Server's network.</p>
14921492
*/
14931493
sourceNetworkID?: string;
1494+
1495+
/**
1496+
* @public
1497+
* <p>The version of the DRS agent installed on the source server</p>
1498+
*/
1499+
agentVersion?: string;
14941500
}
14951501

14961502
/**
@@ -3039,6 +3045,12 @@ export interface RecoveryInstance {
30393045
* <p>AWS availability zone associated with the recovery instance.</p>
30403046
*/
30413047
originAvailabilityZone?: string;
3048+
3049+
/**
3050+
* @public
3051+
* <p>The version of the DRS agent installed on the recovery instance</p>
3052+
*/
3053+
agentVersion?: string;
30423054
}
30433055

30443056
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3052,6 +3052,7 @@ export const de_DisconnectSourceServerCommand = async (
30523052
});
30533053
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
30543054
const doc = take(data, {
3055+
agentVersion: __expectString,
30553056
arn: __expectString,
30563057
dataReplicationInfo: _json,
30573058
lastLaunchResult: __expectString,
@@ -3748,6 +3749,7 @@ export const de_RetryDataReplicationCommand = async (
37483749
});
37493750
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
37503751
const doc = take(data, {
3752+
agentVersion: __expectString,
37513753
arn: __expectString,
37523754
dataReplicationInfo: _json,
37533755
lastLaunchResult: __expectString,

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
}
8787
}
8888
},
89+
"com.amazonaws.drs#AgentVersion": {
90+
"type": "string",
91+
"traits": {
92+
"smithy.api#pattern": "^[0-9]{1,5}.[0-9]{1,5}.[0-9]{1,5}(.[0-9]{4}.[0-9]{3}.[0-9]{4})?$"
93+
}
94+
},
8995
"com.amazonaws.drs#AssociateSourceNetworkStack": {
9096
"type": "operation",
9197
"input": {
@@ -5975,6 +5981,12 @@
59755981
"traits": {
59765982
"smithy.api#documentation": "<p>AWS availability zone associated with the recovery instance.</p>"
59775983
}
5984+
},
5985+
"agentVersion": {
5986+
"target": "com.amazonaws.drs#AgentVersion",
5987+
"traits": {
5988+
"smithy.api#documentation": "<p>The version of the DRS agent installed on the recovery instance</p>"
5989+
}
59785990
}
59795991
},
59805992
"traits": {
@@ -7715,6 +7727,12 @@
77157727
"traits": {
77167728
"smithy.api#documentation": "<p>ID of the Source Network which is protecting this Source Server's network.</p>"
77177729
}
7730+
},
7731+
"agentVersion": {
7732+
"target": "com.amazonaws.drs#AgentVersion",
7733+
"traits": {
7734+
"smithy.api#documentation": "<p>The version of the DRS agent installed on the source server</p>"
7735+
}
77187736
}
77197737
},
77207738
"traits": {

0 commit comments

Comments
 (0)