Skip to main content

network_profiles

Creates, updates, deletes, gets or lists a network_profiles resource.

Overview

Namenetwork_profiles
TypeResource
Idaws.devicefarm.network_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the network profile.
arnstringThe Amazon Resource Name (ARN) of the network profile. (pattern: <code>^arn:aws:devicefarm:.+</code>)
descriptionstringThe description of the network profile.
downlink_bandwidth_bitsinteger (int64)The data throughput rate in bits per second, as an integer from 0 to 104857600.
downlink_delay_msinteger (int64)Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
downlink_jitter_msinteger (int64)Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
downlink_loss_percentintegerProportion of received packets that fail to arrive from 0 to 100 percent.
type_stringThe type of network profile. Valid values are listed here. (CURATED, PRIVATE)
uplink_bandwidth_bitsinteger (int64)The data throughput rate in bits per second, as an integer from 0 to 104857600.
uplink_delay_msinteger (int64)Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
uplink_jitter_msinteger (int64)Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
uplink_loss_percentintegerProportion of transmitted packets that fail to arrive from 0 to 100 percent.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_network_profileselectregionReturns information about a network profile.
create_network_profileinsertregion, projectArn, nameCreates a network profile.
update_network_profileupdateregion, arnUpdates the network profile.
delete_network_profiledeleteregionDeletes a network profile.
list_network_profilesexecregion, arnReturns the list of available network profiles.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a network profile.

SELECT
name,
arn,
description,
downlink_bandwidth_bits,
downlink_delay_ms,
downlink_jitter_ms,
downlink_loss_percent,
type_,
uplink_bandwidth_bits,
uplink_delay_ms,
uplink_jitter_ms,
uplink_loss_percent
FROM aws.devicefarm.network_profiles
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a network profile.

INSERT INTO aws.devicefarm.network_profiles (
projectArn,
name,
description,
type,
uplinkBandwidthBits,
downlinkBandwidthBits,
uplinkDelayMs,
downlinkDelayMs,
uplinkJitterMs,
downlinkJitterMs,
uplinkLossPercent,
downlinkLossPercent,
region
)
SELECT
'{{ projectArn }}' /* required */,
'{{ name }}' /* required */,
'{{ description }}',
'{{ type }}',
{{ uplinkBandwidthBits }},
{{ downlinkBandwidthBits }},
{{ uplinkDelayMs }},
{{ downlinkDelayMs }},
{{ uplinkJitterMs }},
{{ downlinkJitterMs }},
{{ uplinkLossPercent }},
{{ downlinkLossPercent }},
'{{ region }}'
RETURNING
network_profile
;

UPDATE examples

Updates the network profile.

UPDATE aws.devicefarm.network_profiles
SET
arn = '{{ arn }}',
name = '{{ name }}',
description = '{{ description }}',
type = '{{ type }}',
uplinkBandwidthBits = {{ uplinkBandwidthBits }},
downlinkBandwidthBits = {{ downlinkBandwidthBits }},
uplinkDelayMs = {{ uplinkDelayMs }},
downlinkDelayMs = {{ downlinkDelayMs }},
uplinkJitterMs = {{ uplinkJitterMs }},
downlinkJitterMs = {{ downlinkJitterMs }},
uplinkLossPercent = {{ uplinkLossPercent }},
downlinkLossPercent = {{ downlinkLossPercent }}
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
network_profile;

DELETE examples

Deletes a network profile.

DELETE FROM aws.devicefarm.network_profiles
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Returns the list of available network profiles.

EXEC aws.devicefarm.network_profiles.list_network_profiles
@region='{{ region }}' --required
@@json=
'{
"arn": "{{ arn }}",
"type": "{{ type }}",
"nextToken": "{{ nextToken }}"
}'
;