Skip to main content

ip_access_settings

Creates, updates, deletes or gets an ip_access_setting resource or lists ip_access_settings in a region

Overview

Nameip_access_settings
TypeResource
DescriptionDefinition of AWS::WorkSpacesWeb::IpAccessSettings Resource Type
Idawscc.workspacesweb.ip_access_settings

Fields

NameDatatypeDescription
additional_encryption_contextobject
associated_portal_arnsarray
creation_datestring
customer_managed_keystring
descriptionstring
display_namestring
ip_access_settings_arnstring
ip_rulesarray
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceip_access_settingsINSERTIpRules, region
delete_resourceip_access_settingsDELETEIdentifier, region
update_resourceip_access_settingsUPDATEIdentifier, PatchDocument, region
list_resourcesip_access_settings_list_onlySELECTregion
get_resourceip_access_settingsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual ip_access_setting.

SELECT
region,
additional_encryption_context,
associated_portal_arns,
creation_date,
customer_managed_key,
description,
display_name,
ip_access_settings_arn,
ip_rules,
tags
FROM awscc.workspacesweb.ip_access_settings
WHERE
region = 'us-east-1' AND
Identifier = '{{ ip_access_settings_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.workspacesweb.ip_access_settings (
IpRules,
region
)
SELECT
'{{ ip_rules }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.workspacesweb.ip_access_settings
SET PatchDocument = string('{{ {
"Description": description,
"DisplayName": display_name,
"IpRules": ip_rules,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ ip_access_settings_arn }}';

DELETE example

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

Permissions

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

workspaces-web:CreateIpAccessSettings,
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt,
kms:GenerateDataKeyWithoutPlaintext,
kms:ReEncryptTo,
kms:ReEncryptFrom