Skip to main content

network_settings

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

Overview​

Namenetwork_settings
TypeResource
Idaws.workspaces_web.network_settings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_portal_arnsarrayA list of web portal ARNs that this network settings is associated with.
network_settings_arnstringThe ARN of the network settings. (pattern: <code>arn:[\w+=/,.@-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(/[a-fA-F0-9-]{36})+</code>)
security_group_idsarrayOne or more security groups used to control access from streaming instances to your VPC.
subnet_idsarrayThe subnets in which network interfaces are created to connect streaming instances to your VPC. At least two of these subnets must be in different availability zones.
vpc_idstringThe VPC that streaming instances will connect to. (pattern: <code>vpc-[0-9a-z]*</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_network_settingsselectnetwork_settings_arn, regionGets the network settings.
list_network_settingsselectregionnextToken, maxResultsRetrieves a list of network settings.
create_network_settingsinsertregion, vpcId, subnetIds, securityGroupIdsCreates a network settings resource that can be associated with a web portal. Once associated with a web portal, network settings define how streaming instances will connect with your specified VPC.
associate_network_settingsupdateportal_arn, networkSettingsArn, regionAssociates a network settings resource with a web portal.
disassociate_network_settingsupdateportal_arn, regionDisassociates network settings from a web portal.
update_network_settingsupdatenetwork_settings_arn, regionUpdates network settings.
delete_network_settingsdeletenetwork_settings_arn, regionDeletes network settings.

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
networkSettingsArnstringThe ARN of the network settings.
network_settings_arnstringThe ARN of the network settings.
portal_arnstringThe ARN of the web portal.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to be included in the next page.
nextTokenstringThe pagination token used to retrieve the next page of results for this operation.

SELECT examples​

Gets the network settings.

SELECT
associated_portal_arns,
network_settings_arn,
security_group_ids,
subnet_ids,
vpc_id
FROM aws.workspaces_web.network_settings
WHERE network_settings_arn = '{{ network_settings_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a network settings resource that can be associated with a web portal. Once associated with a web portal, network settings define how streaming instances will connect with your specified VPC.

INSERT INTO aws.workspaces_web.network_settings (
vpcId,
subnetIds,
securityGroupIds,
tags,
clientToken,
region
)
SELECT
'{{ vpcId }}' /* required */,
'{{ subnetIds }}' /* required */,
'{{ securityGroupIds }}' /* required */,
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
network_settings_arn
;

UPDATE examples​

Associates a network settings resource with a web portal.

UPDATE aws.workspaces_web.network_settings
SET
-- No updatable properties
WHERE
portal_arn = '{{ portal_arn }}' --required
AND networkSettingsArn = '{{ networkSettingsArn }}' --required
AND region = '{{ region }}' --required
RETURNING
network_settings_arn,
portal_arn;

DELETE examples​

Deletes network settings.

DELETE FROM aws.workspaces_web.network_settings
WHERE network_settings_arn = '{{ network_settings_arn }}' --required
AND region = '{{ region }}' --required
;