Skip to content

Commit 6702dbb

Browse files
author
awstools
committed
feat(client-device-farm): Add an optional configuration to the ScheduleRun and CreateRemoteAccessSession API to set a device level http/s proxy.
1 parent 5f12083 commit 6702dbb

File tree

12 files changed

+160
-0
lines changed

12 files changed

+160
-0
lines changed

clients/client-device-farm/src/commands/CreateRemoteAccessSessionCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export interface CreateRemoteAccessSessionCommandOutput extends CreateRemoteAcce
5050
* vpceConfigurationArns: [ // AmazonResourceNames
5151
* "STRING_VALUE",
5252
* ],
53+
* deviceProxy: { // DeviceProxy
54+
* host: "STRING_VALUE", // required
55+
* port: Number("int"), // required
56+
* },
5357
* },
5458
* interactionMode: "INTERACTIVE" || "NO_VIDEO" || "VIDEO_ONLY",
5559
* skipAppResign: true || false,
@@ -141,6 +145,10 @@ export interface CreateRemoteAccessSessionCommandOutput extends CreateRemoteAcce
141145
* // ],
142146
* // vpcId: "STRING_VALUE", // required
143147
* // },
148+
* // deviceProxy: { // DeviceProxy
149+
* // host: "STRING_VALUE", // required
150+
* // port: Number("int"), // required
151+
* // },
144152
* // },
145153
* // };
146154
*

clients/client-device-farm/src/commands/GetDevicePoolCompatibilityCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export interface GetDevicePoolCompatibilityCommandOutput extends GetDevicePoolCo
5959
* vpceConfigurationArns: [ // AmazonResourceNames
6060
* "STRING_VALUE",
6161
* ],
62+
* deviceProxy: { // DeviceProxy
63+
* host: "STRING_VALUE", // required
64+
* port: Number("int"), // required
65+
* },
6266
* customerArtifactPaths: { // CustomerArtifactPaths
6367
* iosPaths: [ // IosPaths
6468
* "STRING_VALUE",

clients/client-device-farm/src/commands/GetRemoteAccessSessionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export interface GetRemoteAccessSessionCommandOutput extends GetRemoteAccessSess
125125
* // ],
126126
* // vpcId: "STRING_VALUE", // required
127127
* // },
128+
* // deviceProxy: { // DeviceProxy
129+
* // host: "STRING_VALUE", // required
130+
* // port: Number("int"), // required
131+
* // },
128132
* // },
129133
* // };
130134
*

clients/client-device-farm/src/commands/GetRunCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export interface GetRunCommandOutput extends GetRunResult, __MetadataBearer {}
8383
* // uplinkLossPercent: Number("int"),
8484
* // downlinkLossPercent: Number("int"),
8585
* // },
86+
* // deviceProxy: { // DeviceProxy
87+
* // host: "STRING_VALUE", // required
88+
* // port: Number("int"), // required
89+
* // },
8690
* // parsingResultUrl: "STRING_VALUE",
8791
* // resultCode: "PARSING_FAILED" || "VPC_ENDPOINT_SETUP_FAILED",
8892
* // seed: Number("int"),

clients/client-device-farm/src/commands/ListRemoteAccessSessionsCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ export interface ListRemoteAccessSessionsCommandOutput extends ListRemoteAccessS
127127
* // ],
128128
* // vpcId: "STRING_VALUE", // required
129129
* // },
130+
* // deviceProxy: { // DeviceProxy
131+
* // host: "STRING_VALUE", // required
132+
* // port: Number("int"), // required
133+
* // },
130134
* // },
131135
* // ],
132136
* // nextToken: "STRING_VALUE",

clients/client-device-farm/src/commands/ListRunsCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ export interface ListRunsCommandOutput extends ListRunsResult, __MetadataBearer
8585
* // uplinkLossPercent: Number("int"),
8686
* // downlinkLossPercent: Number("int"),
8787
* // },
88+
* // deviceProxy: { // DeviceProxy
89+
* // host: "STRING_VALUE", // required
90+
* // port: Number("int"), // required
91+
* // },
8892
* // parsingResultUrl: "STRING_VALUE",
8993
* // resultCode: "PARSING_FAILED" || "VPC_ENDPOINT_SETUP_FAILED",
9094
* // seed: Number("int"),

clients/client-device-farm/src/commands/ScheduleRunCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export interface ScheduleRunCommandOutput extends ScheduleRunResult, __MetadataB
7272
* vpceConfigurationArns: [ // AmazonResourceNames
7373
* "STRING_VALUE",
7474
* ],
75+
* deviceProxy: { // DeviceProxy
76+
* host: "STRING_VALUE", // required
77+
* port: Number("int"), // required
78+
* },
7579
* customerArtifactPaths: { // CustomerArtifactPaths
7680
* iosPaths: [ // IosPaths
7781
* "STRING_VALUE",
@@ -147,6 +151,10 @@ export interface ScheduleRunCommandOutput extends ScheduleRunResult, __MetadataB
147151
* // uplinkLossPercent: Number("int"),
148152
* // downlinkLossPercent: Number("int"),
149153
* // },
154+
* // deviceProxy: { // DeviceProxy
155+
* // host: "STRING_VALUE", // required
156+
* // port: Number("int"), // required
157+
* // },
150158
* // parsingResultUrl: "STRING_VALUE",
151159
* // resultCode: "PARSING_FAILED" || "VPC_ENDPOINT_SETUP_FAILED",
152160
* // seed: Number("int"),

clients/client-device-farm/src/commands/StopRemoteAccessSessionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export interface StopRemoteAccessSessionCommandOutput extends StopRemoteAccessSe
125125
* // ],
126126
* // vpcId: "STRING_VALUE", // required
127127
* // },
128+
* // deviceProxy: { // DeviceProxy
129+
* // host: "STRING_VALUE", // required
130+
* // port: Number("int"), // required
131+
* // },
128132
* // },
129133
* // };
130134
*

clients/client-device-farm/src/commands/StopRunCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export interface StopRunCommandOutput extends StopRunResult, __MetadataBearer {}
8686
* // uplinkLossPercent: Number("int"),
8787
* // downlinkLossPercent: Number("int"),
8888
* // },
89+
* // deviceProxy: { // DeviceProxy
90+
* // host: "STRING_VALUE", // required
91+
* // port: Number("int"), // required
92+
* // },
8993
* // parsingResultUrl: "STRING_VALUE",
9094
* // resultCode: "PARSING_FAILED" || "VPC_ENDPOINT_SETUP_FAILED",
9195
* // seed: Number("int"),

clients/client-device-farm/src/models/models_0.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,24 @@ export class TagOperationException extends __BaseException {
11551155
}
11561156
}
11571157

1158+
/**
1159+
* <p>Represents the http/s proxy configuration that will be applied to a device during a run.</p>
1160+
* @public
1161+
*/
1162+
export interface DeviceProxy {
1163+
/**
1164+
* <p>Hostname or IPv4 address of the proxy.</p>
1165+
* @public
1166+
*/
1167+
host: string | undefined;
1168+
1169+
/**
1170+
* <p>The port number on which the http/s proxy is listening.</p>
1171+
* @public
1172+
*/
1173+
port: number | undefined;
1174+
}
1175+
11581176
/**
11591177
* <p>Configuration settings for a remote access session, including billing
11601178
* method.</p>
@@ -1172,6 +1190,12 @@ export interface CreateRemoteAccessSessionConfiguration {
11721190
* @public
11731191
*/
11741192
vpceConfigurationArns?: string[] | undefined;
1193+
1194+
/**
1195+
* <p>The device proxy to be configured on the device for the remote access session.</p>
1196+
* @public
1197+
*/
1198+
deviceProxy?: DeviceProxy | undefined;
11751199
}
11761200

11771201
/**
@@ -1853,6 +1877,12 @@ export interface RemoteAccessSession {
18531877
* @public
18541878
*/
18551879
vpcConfig?: VpcConfig | undefined;
1880+
1881+
/**
1882+
* <p>The device proxy configured for the remote access session.</p>
1883+
* @public
1884+
*/
1885+
deviceProxy?: DeviceProxy | undefined;
18561886
}
18571887

18581888
/**
@@ -2895,6 +2925,12 @@ export interface ScheduleRunConfiguration {
28952925
*/
28962926
vpceConfigurationArns?: string[] | undefined;
28972927

2928+
/**
2929+
* <p>The device proxy to be configured on the device for the run.</p>
2930+
* @public
2931+
*/
2932+
deviceProxy?: DeviceProxy | undefined;
2933+
28982934
/**
28992935
* <p>Input <code>CustomerArtifactPaths</code> object for the scheduled run
29002936
* configuration.</p>
@@ -4248,6 +4284,12 @@ export interface Run {
42484284
*/
42494285
networkProfile?: NetworkProfile | undefined;
42504286

4287+
/**
4288+
* <p>The device proxy configured for the devices in the run.</p>
4289+
* @public
4290+
*/
4291+
deviceProxy?: DeviceProxy | undefined;
4292+
42514293
/**
42524294
* <p>Read-only URL for an object in an S3 bucket where you can get the parsing results of the test package.
42534295
* If the test package doesn't parse, the reason why it doesn't parse appears in the file that this URL points

0 commit comments

Comments
 (0)