wal_workspaces
Creates, updates, deletes or gets a wal_workspace
resource or lists wal_workspaces
in a region
Overview
Name | wal_workspaces |
Type | Resource |
Description | Resource schema for AWS::EMR::WALWorkspace Type |
Id | aws.emr.wal_workspaces |
Fields
Name | Datatype | Description |
---|---|---|
wal_workspace_name | string | The name of the emrwal container |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | 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 wal_workspaces
in a region.
SELECT
region,
wal_workspace_name,
tags
FROM aws.emr.wal_workspaces
WHERE region = 'us-east-1';
Gets all properties from an individual wal_workspace
.
SELECT
region,
wal_workspace_name,
tags
FROM aws.emr.wal_workspaces
WHERE region = 'us-east-1' AND data__Identifier = '<WALWorkspaceName>';
INSERT
example
Use the following StackQL query and manifest file to create a new wal_workspace
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.emr.wal_workspaces (
WALWorkspaceName,
Tags,
region
)
SELECT
'{{ WALWorkspaceName }}',
'{{ Tags }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.emr.wal_workspaces (
WALWorkspaceName,
Tags,
region
)
SELECT
'{{ WALWorkspaceName }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: wal_workspace
props:
- name: WALWorkspaceName
value: '{{ WALWorkspaceName }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.emr.wal_workspaces
WHERE data__Identifier = '<WALWorkspaceName>'
AND region = 'us-east-1';
Permissions
To operate on the wal_workspaces
resource, the following permissions are required:
Create
emrwal:CreateWorkspace,
emrwal:TagResource,
iam:CreateServiceLinkedRole
Read
emrwal:ListTagsForResource
Delete
emrwal:DeleteWorkspace
List
emrwal:ListWorkspaces
Update
emrwal:TagResource,
emrwal:UntagResource,
emrwal:ListTagsForResource