Skip to main content

network_settings

Creates, updates, deletes or gets a network_setting resource or lists network_settings in a region

Overview

Namenetwork_settings
TypeResource
DescriptionDefinition of AWS::WorkSpacesWeb::NetworkSettings Resource Type
Idawscc.workspacesweb.network_settings

Fields

NameDatatypeDescription
associated_portal_arnsarray
network_settings_arnstring
security_group_idsarray
subnet_idsarray
tagsarray
vpc_idstring
regionstringAWS region.

For more information, see AWS::WorkSpacesWeb::NetworkSettings.

Methods

NameResourceAccessible byRequired Params
create_resourcenetwork_settingsINSERTSecurityGroupIds, SubnetIds, VpcId, region
delete_resourcenetwork_settingsDELETEIdentifier, region
update_resourcenetwork_settingsUPDATEIdentifier, PatchDocument, region
list_resourcesnetwork_settings_list_onlySELECTregion
get_resourcenetwork_settingsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual network_setting.

SELECT
region,
associated_portal_arns,
network_settings_arn,
security_group_ids,
subnet_ids,
tags,
vpc_id
FROM awscc.workspacesweb.network_settings
WHERE
region = 'us-east-1' AND
Identifier = '{{ network_settings_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new network_setting resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.workspacesweb.network_settings (
SecurityGroupIds,
SubnetIds,
VpcId,
region
)
SELECT
'{{ security_group_ids }}',
'{{ subnet_ids }}',
'{{ vpc_id }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a network_setting resource, using stack-deploy.

/*+ update */
UPDATE awscc.workspacesweb.network_settings
SET PatchDocument = string('{{ {
"SecurityGroupIds": security_group_ids,
"SubnetIds": subnet_ids,
"Tags": tags,
"VpcId": vpc_id
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ network_settings_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.network_settings
WHERE
Identifier = '{{ network_settings_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the network_settings resource, the following permissions are required:

workspaces-web:CreateNetworkSettings,
workspaces-web:GetNetworkSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource