Esempio n. 1
0
        public void DeviceFarmGetRemoteAccessSession()
        {
            #region to-get-a-remote-access-session-1471014119414

            var response = client.GetRemoteAccessSession(new GetRemoteAccessSessionRequest
            {
                Arn = "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456" // You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
            });

            RemoteAccessSession remoteAccessSession = response.RemoteAccessSession;

            #endregion
        }
Esempio n. 2
0
        public void DeviceFarmCreateRemoteAccessSession()
        {
            #region to-create-a-remote-access-session-1470970668274

            var response = client.CreateRemoteAccessSession(new CreateRemoteAccessSessionRequest
            {
                Name          = "MySession",
                Configuration = new CreateRemoteAccessSessionConfiguration {
                    BillingMethod = "METERED"
                },
                DeviceArn  = "arn:aws:devicefarm:us-west-2::device:123EXAMPLE",                       // You can get the device ARN by using the list-devices CLI command.
                ProjectArn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456" // You can get the project ARN by using the list-projects CLI command.
            });

            RemoteAccessSession remoteAccessSession = response.RemoteAccessSession;

            #endregion
        }