Skip to main content

wal_workspaces

Creates, updates, deletes or gets a wal_workspace resource or lists wal_workspaces in a region

Overview

Namewal_workspaces
TypeResource
DescriptionResource schema for AWS::EMR::WALWorkspace Type
Idaws.emr.wal_workspaces

Fields

NameDatatypeDescription
wal_workspace_namestringThe name of the emrwal container
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.emr.wal_workspaces (
WALWorkspaceName,
Tags,
region
)
SELECT
'{{ WALWorkspaceName }}',
'{{ Tags }}',
'{{ region }}';

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