Skip to main content

rule_groups_namespaces

Creates, updates, deletes or gets a rule_groups_namespace resource or lists rule_groups_namespaces in a region

Overview

Namerule_groups_namespaces
TypeResource
DescriptionRuleGroupsNamespace schema for cloudformation.
Idaws.aps.rule_groups_namespaces

Fields

NameDatatypeDescription
workspacestringRequired to identify a specific APS Workspace associated with this RuleGroupsNamespace.
namestringThe RuleGroupsNamespace name.
datastringThe RuleGroupsNamespace data.
arnstringThe RuleGroupsNamespace ARN.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTWorkspace, Data, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all rule_groups_namespaces in a region.

SELECT
region,
workspace,
name,
data,
arn,
tags
FROM aws.aps.rule_groups_namespaces
WHERE region = 'us-east-1';

Gets all properties from an individual rule_groups_namespace.

SELECT
region,
workspace,
name,
data,
arn,
tags
FROM aws.aps.rule_groups_namespaces
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new rule_groups_namespace resource, using stack-deploy.

/*+ create */
INSERT INTO aws.aps.rule_groups_namespaces (
Workspace,
Name,
Data,
region
)
SELECT
'{{ Workspace }}',
'{{ Name }}',
'{{ Data }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.aps.rule_groups_namespaces
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the rule_groups_namespaces resource, the following permissions are required:

Create

aps:CreateRuleGroupsNamespace,
aps:DescribeRuleGroupsNamespace,
aps:TagResource

Read

aps:DescribeRuleGroupsNamespace,
aps:ListTagsForResource

Update

aps:PutRuleGroupsNamespace,
aps:DescribeRuleGroupsNamespace,
aps:TagResource,
aps:UntagResource,
aps:ListTagsForResource

Delete

aps:DeleteRuleGroupsNamespace,
aps:DescribeRuleGroupsNamespace

List

aps:ListRuleGroupsNamespaces,
aps:ListTagsForResource