create_remote_access_session
async
¶
create_remote_access_session(
project_arn: AmazonResourceName,
device_arn: AmazonResourceName,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
app_arn: Optional[AmazonResourceName] = None,
instance_arn: Optional[AmazonResourceName] = None,
name: Optional[Name] = None,
configuration: Optional[CreateRemoteAccessSessionConfiguration] = None,
interaction_mode: Optional[InteractionMode] = None,
skip_app_resign: Optional[Boolean] = None,
) -> CreateRemoteAccessSessionResult
Specifies and starts a remote access session.
Parameters:
-
project_arn(AmazonResourceName) –The Amazon Resource Name (ARN) of the project for which you want to create a remote access session.
-
device_arn(AmazonResourceName) –The ARN of the device for which you want to create a remote access session.
-
app_arn(Optional[AmazonResourceName], default:None) –The Amazon Resource Name (ARN) of the app to create the remote access session.
-
instance_arn(Optional[AmazonResourceName], default:None) –The Amazon Resource Name (ARN) of the device instance for which you want to create a remote access session.
-
name(Optional[Name], default:None) –The name of the remote access session to create.
-
configuration(Optional[CreateRemoteAccessSessionConfiguration], default:None) –The configuration information for the remote access session request.
-
interaction_mode(Optional[InteractionMode], default:None) –The interaction mode of the remote access session. Changing the interactive mode of remote access sessions is no longer available.
-
skip_app_resign(Optional[Boolean], default:None) –When set to
true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.For more information on how Device Farm modifies your uploads during tests, see Do you modify my app?
Raises:
-
ArgumentException–An invalid argument was specified.
-
LimitExceededException–A limit was exceeded.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a remote access session The following example creates a remote access session named MySession.
>>> await client.create_remote_access_session(project_arn='arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456', device_arn='arn:aws:devicefarm:us-west-2::device:123EXAMPLE', name='MySession', configuration={'billingMethod': 'METERED'})
Source code in docs_src/capo_device_farm/_services/async_device_farm.py
667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 | |