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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.network_settings
WHERE
Identifier = '{{ network_settings_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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