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
Idaws.workspacesweb.network_settings

Fields

NameDatatypeDescription
associated_portal_arnsarray
network_settings_arnstring
security_group_idsarray
subnet_idsarray
tagsarray
vpc_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSecurityGroupIds, SubnetIds, VpcId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all network_settings in a region.

SELECT
region,
associated_portal_arns,
network_settings_arn,
security_group_ids,
subnet_ids,
tags,
vpc_id
FROM aws.workspacesweb.network_settings
WHERE region = 'us-east-1';

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 aws.workspacesweb.network_settings
WHERE region = 'us-east-1' AND data__Identifier = '<NetworkSettingsArn>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.workspacesweb.network_settings
WHERE data__Identifier = '<NetworkSettingsArn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

workspaces-web:GetNetworkSettings,
workspaces-web:ListTagsForResource

Update

workspaces-web:UpdateNetworkSettings,
workspaces-web:UpdateResource,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetNetworkSettings,
workspaces-web:ListTagsForResource

Delete

workspaces-web:GetNetworkSettings,
workspaces-web:DeleteNetworkSettings

List

workspaces-web:ListNetworkSettings