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 | awscc.workspacesweb.ip_access_settings |
Fields
- get (all properties)
- list (identifiers only)
| 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. |
| Name | Datatype | Description |
|---|---|---|
ip_access_settings_arn | string | |
region | string | AWS region. |
For more information, see AWS::WorkSpacesWeb::IpAccessSettings.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | ip_access_settings | INSERT | IpRules, region |
delete_resource | ip_access_settings | DELETE | Identifier, region |
update_resource | ip_access_settings | UPDATE | Identifier, PatchDocument, region |
list_resources | ip_access_settings_list_only | SELECT | region |
get_resource | ip_access_settings | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all ip_access_settings in a region.
SELECT
region,
ip_access_settings_arn
FROM awscc.workspacesweb.ip_access_settings_list_only
WHERE
region = 'us-east-1';
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 awscc.workspacesweb.ip_access_settings (
IpRules,
region
)
SELECT
'{{ ip_rules }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.workspacesweb.ip_access_settings (
AdditionalEncryptionContext,
CustomerManagedKey,
Description,
DisplayName,
IpRules,
Tags,
region
)
SELECT
'{{ additional_encryption_context }}',
'{{ customer_managed_key }}',
'{{ description }}',
'{{ display_name }}',
'{{ ip_rules }}',
'{{ 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: additional_encryption_context
value: {}
- name: customer_managed_key
value: '{{ customer_managed_key }}'
- name: description
value: '{{ description }}'
- name: display_name
value: '{{ display_name }}'
- name: ip_rules
value:
- ip_range: '{{ ip_range }}'
description: '{{ description }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
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
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
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
workspaces-web:GetIpAccessSettings,
workspaces-web:ListIpAccessSettings,
workspaces-web:DeleteIpAccessSettings,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
workspaces-web:ListIpAccessSettings,
kms:Decrypt,
kms:DescribeKey