ip_access_settings
Creates, updates, deletes or gets an ip_access_setting
resource or lists ip_access_settings
in a region
Overview
Name | ip_access_settings |
Type | Resource |
Description | Definition of AWS::WorkSpacesWeb::IpAccessSettings Resource Type |
Id | aws.workspacesweb.ip_access_settings |
Fields
Name | Datatype | Description |
---|---|---|
additional_encryption_context | object | |
associated_portal_arns | array | |
creation_date | string | |
customer_managed_key | string | |
description | string | |
display_name | string | |
ip_access_settings_arn | string | |
ip_rules | array | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | IpRules, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all ip_access_settings
in a region.
SELECT
region,
additional_encryption_context,
associated_portal_arns,
creation_date,
customer_managed_key,
description,
display_name,
ip_access_settings_arn,
ip_rules,
tags
FROM aws.workspacesweb.ip_access_settings
WHERE region = 'us-east-1';
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 aws.workspacesweb.ip_access_settings
WHERE region = 'us-east-1' AND data__Identifier = '<IpAccessSettingsArn>';
INSERT
example
Use the following StackQL query and manifest file to create a new ip_access_setting
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.workspacesweb.ip_access_settings (
IpRules,
region
)
SELECT
'{{ IpRules }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.workspacesweb.ip_access_settings (
AdditionalEncryptionContext,
CustomerManagedKey,
Description,
DisplayName,
IpRules,
Tags,
region
)
SELECT
'{{ AdditionalEncryptionContext }}',
'{{ CustomerManagedKey }}',
'{{ Description }}',
'{{ DisplayName }}',
'{{ IpRules }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: ip_access_setting
props:
- name: AdditionalEncryptionContext
value: {}
- name: CustomerManagedKey
value: '{{ CustomerManagedKey }}'
- name: Description
value: '{{ Description }}'
- name: DisplayName
value: '{{ DisplayName }}'
- name: IpRules
value:
- IpRange: '{{ IpRange }}'
Description: '{{ Description }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.workspacesweb.ip_access_settings
WHERE data__Identifier = '<IpAccessSettingsArn>'
AND region = 'us-east-1';
Permissions
To operate on the ip_access_settings
resource, the following permissions are required:
Create
workspaces-web:CreateIpAccessSettings,
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
Read
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
Update
workspaces-web:UpdateIpAccessSettings,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
Delete
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:DeleteIpAccessSettings,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
List
workspaces-web:ListIpAccessSettings