Skip to main content

ip_access_settings

Creates, updates, deletes, gets or lists an ip_access_settings resource.

Overview

Nameip_access_settings
TypeResource
Idaws.workspaces_web.ip_access_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
additional_encryption_contextobjectThe additional encryption context of the IP access settings.
associated_portal_arnsarrayA list of web portal ARNs that this IP access settings resource is associated with.
creation_datestring (date-time)The creation date timestamp of the IP access settings.
customer_managed_keystringThe customer managed key used to encrypt sensitive information in the IP access settings. (pattern: <code>arn:[\w+=/,.@-]+:kms:[a-zA-Z0-9-]*:[a-zA-Z0-9]{1,12}:key/[a-zA-Z0-9-]+</code>)
descriptionstringThe description of the IP access settings. (pattern: <code>.+</code>)
display_namestringThe display name of the IP access settings. (pattern: <code>.+</code>)
ip_access_settings_arnstringThe ARN of the IP access settings resource. (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>)
ip_rulesarrayThe IP rules of the IP access settings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ip_access_settingsselectip_access_settings_arn, regionGets the IP access settings.
list_ip_access_settingsselectregionnextToken, maxResultsRetrieves a list of IP access settings.
create_ip_access_settingsinsertregion, ipRulesCreates an IP access settings resource that can be associated with a web portal.
associate_ip_access_settingsupdateportal_arn, ipAccessSettingsArn, regionAssociates an IP access settings resource with a web portal.
disassociate_ip_access_settingsupdateportal_arn, regionDisassociates IP access settings from a web portal.
update_ip_access_settingsupdateip_access_settings_arn, regionUpdates IP access settings.
delete_ip_access_settingsdeleteip_access_settings_arn, regionDeletes IP access 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
ipAccessSettingsArnstringThe ARN of the IP access settings.
ip_access_settings_arnstringThe ARN of the IP access 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 IP access settings.

SELECT
additional_encryption_context,
associated_portal_arns,
creation_date,
customer_managed_key,
description,
display_name,
ip_access_settings_arn,
ip_rules
FROM aws.workspaces_web.ip_access_settings
WHERE ip_access_settings_arn = '{{ ip_access_settings_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an IP access settings resource that can be associated with a web portal.

INSERT INTO aws.workspaces_web.ip_access_settings (
displayName,
description,
tags,
customerManagedKey,
additionalEncryptionContext,
ipRules,
clientToken,
region
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ tags }}',
'{{ customerManagedKey }}',
'{{ additionalEncryptionContext }}',
'{{ ipRules }}' /* required */,
'{{ clientToken }}',
'{{ region }}'
RETURNING
ip_access_settings_arn
;

UPDATE examples

Associates an IP access settings resource with a web portal.

UPDATE aws.workspaces_web.ip_access_settings
SET
-- No updatable properties
WHERE
portal_arn = '{{ portal_arn }}' --required
AND ipAccessSettingsArn = '{{ ipAccessSettingsArn }}' --required
AND region = '{{ region }}' --required
RETURNING
ip_access_settings_arn,
portal_arn;

DELETE examples

Deletes IP access settings.

DELETE FROM aws.workspaces_web.ip_access_settings
WHERE ip_access_settings_arn = '{{ ip_access_settings_arn }}' --required
AND region = '{{ region }}' --required
;