@aws-sdk/client-device-farm 3.288.0 → 3.289.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-types/commands/CreateDevicePoolCommand.d.ts +19 -0
  2. package/dist-types/commands/CreateProjectCommand.d.ts +20 -0
  3. package/dist-types/commands/CreateRemoteAccessSessionCommand.d.ts +21 -0
  4. package/dist-types/commands/CreateUploadCommand.d.ts +25 -0
  5. package/dist-types/commands/DeleteDevicePoolCommand.d.ts +11 -0
  6. package/dist-types/commands/DeleteProjectCommand.d.ts +11 -0
  7. package/dist-types/commands/DeleteRemoteAccessSessionCommand.d.ts +11 -0
  8. package/dist-types/commands/DeleteRunCommand.d.ts +11 -0
  9. package/dist-types/commands/DeleteUploadCommand.d.ts +11 -0
  10. package/dist-types/commands/GetAccountSettingsCommand.d.ts +20 -0
  11. package/dist-types/commands/GetDeviceCommand.d.ts +36 -0
  12. package/dist-types/commands/GetDevicePoolCommand.d.ts +16 -0
  13. package/dist-types/commands/GetDevicePoolCompatibilityCommand.d.ts +19 -0
  14. package/dist-types/commands/GetJobCommand.d.ts +16 -0
  15. package/dist-types/commands/GetOfferingStatusCommand.d.ts +38 -0
  16. package/dist-types/commands/GetProjectCommand.d.ts +20 -0
  17. package/dist-types/commands/GetRemoteAccessSessionCommand.d.ts +16 -0
  18. package/dist-types/commands/GetRunCommand.d.ts +41 -0
  19. package/dist-types/commands/GetSuiteCommand.d.ts +16 -0
  20. package/dist-types/commands/GetTestCommand.d.ts +16 -0
  21. package/dist-types/commands/GetUploadCommand.d.ts +16 -0
  22. package/dist-types/commands/InstallToRemoteAccessSessionCommand.d.ts +17 -0
  23. package/dist-types/commands/ListArtifactsCommand.d.ts +12 -0
  24. package/dist-types/commands/ListDevicePoolsCommand.d.ts +42 -0
  25. package/dist-types/commands/ListDevicesCommand.d.ts +11 -0
  26. package/dist-types/commands/ListJobsCommand.d.ts +11 -0
  27. package/dist-types/commands/ListOfferingTransactionsCommand.d.ts +93 -0
  28. package/dist-types/commands/ListOfferingsCommand.d.ts +77 -0
  29. package/dist-types/commands/ListProjectsCommand.d.ts +28 -0
  30. package/dist-types/commands/ListRemoteAccessSessionsCommand.d.ts +17 -0
  31. package/dist-types/commands/ListRunsCommand.d.ts +44 -0
  32. package/dist-types/commands/ListSamplesCommand.d.ts +17 -0
  33. package/dist-types/commands/ListSuitesCommand.d.ts +17 -0
  34. package/dist-types/commands/ListTestsCommand.d.ts +17 -0
  35. package/dist-types/commands/ListUniqueProblemsCommand.d.ts +17 -0
  36. package/dist-types/commands/ListUploadsCommand.d.ts +17 -0
  37. package/dist-types/commands/PurchaseOfferingCommand.d.ts +35 -0
  38. package/dist-types/commands/RenewOfferingCommand.d.ts +35 -0
  39. package/dist-types/commands/ScheduleRunCommand.d.ts +22 -0
  40. package/dist-types/commands/StopRunCommand.d.ts +16 -0
  41. package/dist-types/commands/UpdateDevicePoolCommand.d.ts +25 -0
  42. package/dist-types/commands/UpdateProjectCommand.d.ts +21 -0
  43. package/package.json +29 -29
@@ -29,6 +29,25 @@ export interface CreateDevicePoolCommandOutput extends CreateDevicePoolResult, _
29
29
  * @see {@link CreateDevicePoolCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To create a new device pool
33
+ * ```javascript
34
+ * // The following example creates a new device pool named MyDevicePool inside an existing project.
35
+ * const input = {
36
+ * "name": "MyDevicePool",
37
+ * "description": "My Android devices",
38
+ * "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
39
+ * "rules": []
40
+ * };
41
+ * const command = new CreateDevicePoolCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "devicePool": {}
46
+ * }
47
+ * *\/
48
+ * // example id: createdevicepool-example-1470862210860
49
+ * ```
50
+ *
32
51
  */
33
52
  export declare class CreateDevicePoolCommand extends $Command<CreateDevicePoolCommandInput, CreateDevicePoolCommandOutput, DeviceFarmClientResolvedConfig> {
34
53
  readonly input: CreateDevicePoolCommandInput;
@@ -29,6 +29,26 @@ export interface CreateProjectCommandOutput extends CreateProjectResult, __Metad
29
29
  * @see {@link CreateProjectCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To create a new project
33
+ * ```javascript
34
+ * // The following example creates a new project named MyProject.
35
+ * const input = {
36
+ * "name": "MyProject"
37
+ * };
38
+ * const command = new CreateProjectCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "project": {
43
+ * "name": "MyProject",
44
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE",
45
+ * "created": "1472660939.152"
46
+ * }
47
+ * }
48
+ * *\/
49
+ * // example id: createproject-example-1470862210860
50
+ * ```
51
+ *
32
52
  */
33
53
  export declare class CreateProjectCommand extends $Command<CreateProjectCommandInput, CreateProjectCommandOutput, DeviceFarmClientResolvedConfig> {
34
54
  readonly input: CreateProjectCommandInput;
@@ -29,6 +29,27 @@ export interface CreateRemoteAccessSessionCommandOutput extends CreateRemoteAcce
29
29
  * @see {@link CreateRemoteAccessSessionCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To create a remote access session
33
+ * ```javascript
34
+ * // The following example creates a remote access session named MySession.
35
+ * const input = {
36
+ * "name": "MySession",
37
+ * "configuration": {
38
+ * "billingMethod": "METERED"
39
+ * },
40
+ * "deviceArn": "arn:aws:devicefarm:us-west-2::device:123EXAMPLE",
41
+ * "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
42
+ * };
43
+ * const command = new CreateRemoteAccessSessionCommand(input);
44
+ * const response = await client.send(command);
45
+ * /* response ==
46
+ * {
47
+ * "remoteAccessSession": {}
48
+ * }
49
+ * *\/
50
+ * // example id: to-create-a-remote-access-session-1470970668274
51
+ * ```
52
+ *
32
53
  */
33
54
  export declare class CreateRemoteAccessSessionCommand extends $Command<CreateRemoteAccessSessionCommandInput, CreateRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig> {
34
55
  readonly input: CreateRemoteAccessSessionCommandInput;
@@ -29,6 +29,31 @@ export interface CreateUploadCommandOutput extends CreateUploadResult, __Metadat
29
29
  * @see {@link CreateUploadCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To create a new test package upload
33
+ * ```javascript
34
+ * // The following example creates a new Appium Python test package upload inside an existing project.
35
+ * const input = {
36
+ * "name": "MyAppiumPythonUpload",
37
+ * "type": "APPIUM_PYTHON_TEST_PACKAGE",
38
+ * "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
39
+ * };
40
+ * const command = new CreateUploadCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "upload": {
45
+ * "name": "MyAppiumPythonUpload",
46
+ * "type": "APPIUM_PYTHON_TEST_PACKAGE",
47
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:upload:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/b5340a65-3da7-4da6-a26e-12345EXAMPLE",
48
+ * "created": "1472661404.186",
49
+ * "status": "INITIALIZED",
50
+ * "url": "https://prod-us-west-2-uploads.s3-us-west-2.amazonaws.com/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A123456789101%3Aproject%3A5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE/uploads/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A123456789101%3Aupload%3A5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/b5340a65-3da7-4da6-a26e-12345EXAMPLE/MyAppiumPythonUpload?AWSAccessKeyId=1234567891011EXAMPLE&Expires=1472747804&Signature=1234567891011EXAMPLE"
51
+ * }
52
+ * }
53
+ * *\/
54
+ * // example id: createupload-example-1470864711775
55
+ * ```
56
+ *
32
57
  */
33
58
  export declare class CreateUploadCommand extends $Command<CreateUploadCommandInput, CreateUploadCommandOutput, DeviceFarmClientResolvedConfig> {
34
59
  readonly input: CreateUploadCommandInput;
@@ -30,6 +30,17 @@ export interface DeleteDevicePoolCommandOutput extends DeleteDevicePoolResult, _
30
30
  * @see {@link DeleteDevicePoolCommandOutput} for command's `response` shape.
31
31
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
32
32
  *
33
+ * @example To delete a device pool
34
+ * ```javascript
35
+ * // The following example deletes a specific device pool.
36
+ * const input = {
37
+ * "arn": "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID"
38
+ * };
39
+ * const command = new DeleteDevicePoolCommand(input);
40
+ * await client.send(command);
41
+ * // example id: deletedevicepool-example-1470866975494
42
+ * ```
43
+ *
33
44
  */
34
45
  export declare class DeleteDevicePoolCommand extends $Command<DeleteDevicePoolCommandInput, DeleteDevicePoolCommandOutput, DeviceFarmClientResolvedConfig> {
35
46
  readonly input: DeleteDevicePoolCommandInput;
@@ -30,6 +30,17 @@ export interface DeleteProjectCommandOutput extends DeleteProjectResult, __Metad
30
30
  * @see {@link DeleteProjectCommandOutput} for command's `response` shape.
31
31
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
32
32
  *
33
+ * @example To delete a project
34
+ * ```javascript
35
+ * // The following example deletes a specific project.
36
+ * const input = {
37
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
38
+ * };
39
+ * const command = new DeleteProjectCommand(input);
40
+ * await client.send(command);
41
+ * // example id: deleteproject-example-1470867374212
42
+ * ```
43
+ *
33
44
  */
34
45
  export declare class DeleteProjectCommand extends $Command<DeleteProjectCommandInput, DeleteProjectCommandOutput, DeviceFarmClientResolvedConfig> {
35
46
  readonly input: DeleteProjectCommandInput;
@@ -29,6 +29,17 @@ export interface DeleteRemoteAccessSessionCommandOutput extends DeleteRemoteAcce
29
29
  * @see {@link DeleteRemoteAccessSessionCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To delete a specific remote access session
33
+ * ```javascript
34
+ * // The following example deletes a specific remote access session.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new DeleteRemoteAccessSessionCommand(input);
39
+ * await client.send(command);
40
+ * // example id: to-delete-a-specific-remote-access-session-1470971431677
41
+ * ```
42
+ *
32
43
  */
33
44
  export declare class DeleteRemoteAccessSessionCommand extends $Command<DeleteRemoteAccessSessionCommandInput, DeleteRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig> {
34
45
  readonly input: DeleteRemoteAccessSessionCommandInput;
@@ -30,6 +30,17 @@ export interface DeleteRunCommandOutput extends DeleteRunResult, __MetadataBeare
30
30
  * @see {@link DeleteRunCommandOutput} for command's `response` shape.
31
31
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
32
32
  *
33
+ * @example To delete a run
34
+ * ```javascript
35
+ * // The following example deletes a specific test run.
36
+ * const input = {
37
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"
38
+ * };
39
+ * const command = new DeleteRunCommand(input);
40
+ * await client.send(command);
41
+ * // example id: deleterun-example-1470867905129
42
+ * ```
43
+ *
33
44
  */
34
45
  export declare class DeleteRunCommand extends $Command<DeleteRunCommandInput, DeleteRunCommandOutput, DeviceFarmClientResolvedConfig> {
35
46
  readonly input: DeleteRunCommandInput;
@@ -29,6 +29,17 @@ export interface DeleteUploadCommandOutput extends DeleteUploadResult, __Metadat
29
29
  * @see {@link DeleteUploadCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To delete a specific upload
33
+ * ```javascript
34
+ * // The following example deletes a specific upload.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new DeleteUploadCommand(input);
39
+ * await client.send(command);
40
+ * // example id: deleteupload-example-1470868363942
41
+ * ```
42
+ *
32
43
  */
33
44
  export declare class DeleteUploadCommand extends $Command<DeleteUploadCommandInput, DeleteUploadCommandOutput, DeviceFarmClientResolvedConfig> {
34
45
  readonly input: DeleteUploadCommandInput;
@@ -30,6 +30,26 @@ export interface GetAccountSettingsCommandOutput extends GetAccountSettingsResul
30
30
  * @see {@link GetAccountSettingsCommandOutput} for command's `response` shape.
31
31
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
32
32
  *
33
+ * @example To get information about account settings
34
+ * ```javascript
35
+ * // The following example returns information about your Device Farm account settings.
36
+ * const input = {};
37
+ * const command = new GetAccountSettingsCommand(input);
38
+ * const response = await client.send(command);
39
+ * /* response ==
40
+ * {
41
+ * "accountSettings": {
42
+ * "awsAccountNumber": "123456789101",
43
+ * "unmeteredDevices": {
44
+ * "ANDROID": 1,
45
+ * "IOS": 2
46
+ * }
47
+ * }
48
+ * }
49
+ * *\/
50
+ * // example id: to-get-information-about-account-settings-1472567568189
51
+ * ```
52
+ *
33
53
  */
34
54
  export declare class GetAccountSettingsCommand extends $Command<GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput, DeviceFarmClientResolvedConfig> {
35
55
  readonly input: GetAccountSettingsCommandInput;
@@ -29,6 +29,42 @@ export interface GetDeviceCommandOutput extends GetDeviceResult, __MetadataBeare
29
29
  * @see {@link GetDeviceCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a device
33
+ * ```javascript
34
+ * // The following example returns information about a specific device.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2::device:123EXAMPLE"
37
+ * };
38
+ * const command = new GetDeviceCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "device": {
43
+ * "name": "LG G2 (Sprint)",
44
+ * "arn": "arn:aws:devicefarm:us-west-2::device:A0E6E6E1059E45918208DF75B2B7EF6C",
45
+ * "cpu": {
46
+ * "architecture": "armeabi-v7a",
47
+ * "clock": 2265.6,
48
+ * "frequency": "MHz"
49
+ * },
50
+ * "formFactor": "PHONE",
51
+ * "heapSize": 256000000,
52
+ * "image": "75B2B7EF6C12345EXAMPLE",
53
+ * "manufacturer": "LG",
54
+ * "memory": 16000000000,
55
+ * "model": "G2 (Sprint)",
56
+ * "os": "4.2.2",
57
+ * "platform": "ANDROID",
58
+ * "resolution": {
59
+ * "height": 1920,
60
+ * "width": 1080
61
+ * }
62
+ * }
63
+ * }
64
+ * *\/
65
+ * // example id: getdevice-example-1470870602173
66
+ * ```
67
+ *
32
68
  */
33
69
  export declare class GetDeviceCommand extends $Command<GetDeviceCommandInput, GetDeviceCommandOutput, DeviceFarmClientResolvedConfig> {
34
70
  readonly input: GetDeviceCommandInput;
@@ -29,6 +29,22 @@ export interface GetDevicePoolCommandOutput extends GetDevicePoolResult, __Metad
29
29
  * @see {@link GetDevicePoolCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a device pool
33
+ * ```javascript
34
+ * // The following example returns information about a specific device pool, given a project ARN.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new GetDevicePoolCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "devicePool": {}
43
+ * }
44
+ * *\/
45
+ * // example id: getdevicepool-example-1470870873136
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class GetDevicePoolCommand extends $Command<GetDevicePoolCommandInput, GetDevicePoolCommandOutput, DeviceFarmClientResolvedConfig> {
34
50
  readonly input: GetDevicePoolCommandInput;
@@ -29,6 +29,25 @@ export interface GetDevicePoolCompatibilityCommandOutput extends GetDevicePoolCo
29
29
  * @see {@link GetDevicePoolCompatibilityCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about the compatibility of a device pool
33
+ * ```javascript
34
+ * // The following example returns information about the compatibility of a specific device pool, given its ARN.
35
+ * const input = {
36
+ * "appArn": "arn:aws:devicefarm:us-west-2::app:123-456-EXAMPLE-GUID",
37
+ * "devicePoolArn": "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID",
38
+ * "testType": "APPIUM_PYTHON"
39
+ * };
40
+ * const command = new GetDevicePoolCompatibilityCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "compatibleDevices": [],
45
+ * "incompatibleDevices": []
46
+ * }
47
+ * *\/
48
+ * // example id: getdevicepoolcompatibility-example-1470925003466
49
+ * ```
50
+ *
32
51
  */
33
52
  export declare class GetDevicePoolCompatibilityCommand extends $Command<GetDevicePoolCompatibilityCommandInput, GetDevicePoolCompatibilityCommandOutput, DeviceFarmClientResolvedConfig> {
34
53
  readonly input: GetDevicePoolCompatibilityCommandInput;
@@ -29,6 +29,22 @@ export interface GetJobCommandOutput extends GetJobResult, __MetadataBearer {
29
29
  * @see {@link GetJobCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a job
33
+ * ```javascript
34
+ * // The following example returns information about a specific job.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2::job:123-456-EXAMPLE-GUID"
37
+ * };
38
+ * const command = new GetJobCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "job": {}
43
+ * }
44
+ * *\/
45
+ * // example id: getjob-example-1470928294268
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class GetJobCommand extends $Command<GetJobCommandInput, GetJobCommandOutput, DeviceFarmClientResolvedConfig> {
34
50
  readonly input: GetJobCommandInput;
@@ -32,6 +32,44 @@ export interface GetOfferingStatusCommandOutput extends GetOfferingStatusResult,
32
32
  * @see {@link GetOfferingStatusCommandOutput} for command's `response` shape.
33
33
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
34
34
  *
35
+ * @example To get status information about device offerings
36
+ * ```javascript
37
+ * // The following example returns information about Device Farm offerings available to your account.
38
+ * const input = {
39
+ * "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
40
+ * };
41
+ * const command = new GetOfferingStatusCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "current": {
46
+ * "D68B3C05-1BA6-4360-BC69-12345EXAMPLE": {
47
+ * "offering": {
48
+ * "type": "RECURRING",
49
+ * "description": "Android Remote Access Unmetered Device Slot",
50
+ * "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
51
+ * "platform": "ANDROID"
52
+ * },
53
+ * "quantity": 1
54
+ * }
55
+ * },
56
+ * "nextPeriod": {
57
+ * "D68B3C05-1BA6-4360-BC69-12345EXAMPLE": {
58
+ * "effectiveOn": "1472688000",
59
+ * "offering": {
60
+ * "type": "RECURRING",
61
+ * "description": "Android Remote Access Unmetered Device Slot",
62
+ * "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
63
+ * "platform": "ANDROID"
64
+ * },
65
+ * "quantity": 1
66
+ * }
67
+ * }
68
+ * }
69
+ * *\/
70
+ * // example id: to-get-status-information-about-device-offerings-1472568124402
71
+ * ```
72
+ *
35
73
  */
36
74
  export declare class GetOfferingStatusCommand extends $Command<GetOfferingStatusCommandInput, GetOfferingStatusCommandOutput, DeviceFarmClientResolvedConfig> {
37
75
  readonly input: GetOfferingStatusCommandInput;
@@ -29,6 +29,26 @@ export interface GetProjectCommandOutput extends GetProjectResult, __MetadataBea
29
29
  * @see {@link GetProjectCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a project
33
+ * ```javascript
34
+ * // The following example gets information about a specific project.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE"
37
+ * };
38
+ * const command = new GetProjectCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "project": {
43
+ * "name": "My Project",
44
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE",
45
+ * "created": "1472660939.152"
46
+ * }
47
+ * }
48
+ * *\/
49
+ * // example id: to-get-a-project-1470975038449
50
+ * ```
51
+ *
32
52
  */
33
53
  export declare class GetProjectCommand extends $Command<GetProjectCommandInput, GetProjectCommandOutput, DeviceFarmClientResolvedConfig> {
34
54
  readonly input: GetProjectCommandInput;
@@ -29,6 +29,22 @@ export interface GetRemoteAccessSessionCommandOutput extends GetRemoteAccessSess
29
29
  * @see {@link GetRemoteAccessSessionCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get a remote access session
33
+ * ```javascript
34
+ * // The following example gets a specific remote access session.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new GetRemoteAccessSessionCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "remoteAccessSession": {}
43
+ * }
44
+ * *\/
45
+ * // example id: to-get-a-remote-access-session-1471014119414
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class GetRemoteAccessSessionCommand extends $Command<GetRemoteAccessSessionCommandInput, GetRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig> {
34
50
  readonly input: GetRemoteAccessSessionCommandInput;
@@ -29,6 +29,47 @@ export interface GetRunCommandOutput extends GetRunResult, __MetadataBearer {
29
29
  * @see {@link GetRunCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a test run
33
+ * ```javascript
34
+ * // The following example gets information about a specific test run.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE"
37
+ * };
38
+ * const command = new GetRunCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "run": {
43
+ * "name": "My Test Run",
44
+ * "type": "BUILTIN_EXPLORER",
45
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
46
+ * "billingMethod": "METERED",
47
+ * "completedJobs": 0,
48
+ * "counters": {
49
+ * "errored": 0,
50
+ * "failed": 0,
51
+ * "passed": 0,
52
+ * "skipped": 0,
53
+ * "stopped": 0,
54
+ * "total": 0,
55
+ * "warned": 0
56
+ * },
57
+ * "created": "1472667509.852",
58
+ * "deviceMinutes": {
59
+ * "metered": 0,
60
+ * "total": 0,
61
+ * "unmetered": 0
62
+ * },
63
+ * "platform": "ANDROID",
64
+ * "result": "PENDING",
65
+ * "status": "RUNNING",
66
+ * "totalJobs": 3
67
+ * }
68
+ * }
69
+ * *\/
70
+ * // example id: to-get-a-test-run-1471015895657
71
+ * ```
72
+ *
32
73
  */
33
74
  export declare class GetRunCommand extends $Command<GetRunCommandInput, GetRunCommandOutput, DeviceFarmClientResolvedConfig> {
34
75
  readonly input: GetRunCommandInput;
@@ -29,6 +29,22 @@ export interface GetSuiteCommandOutput extends GetSuiteResult, __MetadataBearer
29
29
  * @see {@link GetSuiteCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a test suite
33
+ * ```javascript
34
+ * // The following example gets information about a specific test suite.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:suite:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new GetSuiteCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "suite": {}
43
+ * }
44
+ * *\/
45
+ * // example id: to-get-information-about-a-test-suite-1471016525008
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class GetSuiteCommand extends $Command<GetSuiteCommandInput, GetSuiteCommandOutput, DeviceFarmClientResolvedConfig> {
34
50
  readonly input: GetSuiteCommandInput;
@@ -29,6 +29,22 @@ export interface GetTestCommandOutput extends GetTestResult, __MetadataBearer {
29
29
  * @see {@link GetTestCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a specific test
33
+ * ```javascript
34
+ * // The following example gets information about a specific test.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new GetTestCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "test": {}
43
+ * }
44
+ * *\/
45
+ * // example id: to-get-information-about-a-specific-test-1471025744238
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class GetTestCommand extends $Command<GetTestCommandInput, GetTestCommandOutput, DeviceFarmClientResolvedConfig> {
34
50
  readonly input: GetTestCommandInput;
@@ -29,6 +29,22 @@ export interface GetUploadCommandOutput extends GetUploadResult, __MetadataBeare
29
29
  * @see {@link GetUploadCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To get information about a specific upload
33
+ * ```javascript
34
+ * // The following example gets information about a specific upload.
35
+ * const input = {
36
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456"
37
+ * };
38
+ * const command = new GetUploadCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "upload": {}
43
+ * }
44
+ * *\/
45
+ * // example id: to-get-information-about-a-specific-upload-1471025996221
46
+ * ```
47
+ *
32
48
  */
33
49
  export declare class GetUploadCommand extends $Command<GetUploadCommandInput, GetUploadCommandOutput, DeviceFarmClientResolvedConfig> {
34
50
  readonly input: GetUploadCommandInput;
@@ -31,6 +31,23 @@ export interface InstallToRemoteAccessSessionCommandOutput extends InstallToRemo
31
31
  * @see {@link InstallToRemoteAccessSessionCommandOutput} for command's `response` shape.
32
32
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
33
33
  *
34
+ * @example To install to a remote access session
35
+ * ```javascript
36
+ * // The following example installs a specific app to a device in a specific remote access session.
37
+ * const input = {
38
+ * "appArn": "arn:aws:devicefarm:us-west-2:123456789101:app:EXAMPLE-GUID-123-456",
39
+ * "remoteAccessSessionArn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"
40
+ * };
41
+ * const command = new InstallToRemoteAccessSessionCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "appUpload": {}
46
+ * }
47
+ * *\/
48
+ * // example id: to-install-to-a-remote-access-session-1471634453818
49
+ * ```
50
+ *
34
51
  */
35
52
  export declare class InstallToRemoteAccessSessionCommand extends $Command<InstallToRemoteAccessSessionCommandInput, InstallToRemoteAccessSessionCommandOutput, DeviceFarmClientResolvedConfig> {
36
53
  readonly input: InstallToRemoteAccessSessionCommandInput;
@@ -29,6 +29,18 @@ export interface ListArtifactsCommandOutput extends ListArtifactsResult, __Metad
29
29
  * @see {@link ListArtifactsCommandOutput} for command's `response` shape.
30
30
  * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape.
31
31
  *
32
+ * @example To list artifacts for a resource
33
+ * ```javascript
34
+ * // The following example lists screenshot artifacts for a specific run.
35
+ * const input = {
36
+ * "type": "SCREENSHOT",
37
+ * "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"
38
+ * };
39
+ * const command = new ListArtifactsCommand(input);
40
+ * await client.send(command);
41
+ * // example id: to-list-artifacts-for-a-resource-1471635409527
42
+ * ```
43
+ *
32
44
  */
33
45
  export declare class ListArtifactsCommand extends $Command<ListArtifactsCommandInput, ListArtifactsCommandOutput, DeviceFarmClientResolvedConfig> {
34
46
  readonly input: ListArtifactsCommandInput;