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 | awscc.emr.wal_workspaces |
Fields
- get (all properties)
- list (identifiers only)
| 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. |
| Name | Datatype | Description |
|---|---|---|
wal_workspace_name | string | The name of the emrwal container |
region | string | AWS region. |
For more information, see AWS::EMR::WALWorkspace.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | wal_workspaces | INSERT | region |
delete_resource | wal_workspaces | DELETE | Identifier, region |
update_resource | wal_workspaces | UPDATE | Identifier, PatchDocument, region |
list_resources | wal_workspaces_list_only | SELECT | region |
get_resource | wal_workspaces | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual wal_workspace.
SELECT
region,
wal_workspace_name,
tags
FROM awscc.emr.wal_workspaces
WHERE
region = 'us-east-1' AND
Identifier = '{{ wal_workspace_name }}';
Lists all wal_workspaces in a region.
SELECT
region,
wal_workspace_name
FROM awscc.emr.wal_workspaces_list_only
WHERE
region = 'us-east-1';
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 awscc.emr.wal_workspaces (
WALWorkspaceName,
Tags,
region
)
SELECT
'{{ wal_workspace_name }}',
'{{ tags }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.emr.wal_workspaces (
WALWorkspaceName,
Tags,
region
)
SELECT
'{{ wal_workspace_name }}',
'{{ 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: wal_workspace_name
value: '{{ wal_workspace_name }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a wal_workspace resource, using stack-deploy.
/*+ update */
UPDATE awscc.emr.wal_workspaces
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ wal_workspace_name }}';
DELETE example
/*+ delete */
DELETE FROM awscc.emr.wal_workspaces
WHERE
Identifier = '{{ wal_workspace_name }}' AND
region = 'us-east-1';
Permissions
To operate on the wal_workspaces resource, the following permissions are required:
- Create
- Read
- Delete
- List
- Update
emrwal:CreateWorkspace,
emrwal:TagResource,
iam:CreateServiceLinkedRole
emrwal:ListTagsForResource
emrwal:DeleteWorkspace
emrwal:ListWorkspaces
emrwal:TagResource,
emrwal:UntagResource,
emrwal:ListTagsForResource