AWS::APS::RuleGroupsNamespace - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


The AWS::APS::RuleGroupsNamespace resource creates or updates a rule groups namespace within a Amazon Managed Service for Prometheus workspace. For more information, see Recording rules and alerting rules.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Type" : "AWS::APS::RuleGroupsNamespace", "Properties" : { "Data" : String, "Name" : String, "Tags" : [ Tag, ... ], "Workspace" : String } }


Type: AWS::APS::RuleGroupsNamespace Properties: Data: String Name: String Tags: - Tag Workspace: String



The rules definition file for this namespace.

Required: Yes

Type: String

Update requires: No interruption


The name of the rule groups namespace. This property is required.

Required: Yes

Type: String

Minimum: 1

Maximum: 64

Update requires: Replacement


A list of key and value pairs for the workspace resources.

Required: No

Type: Array of Tag

Update requires: No interruption


The ARN of the workspace that contains this rule groups namespace.

Required: Yes

Type: String

Pattern: ^arn:(aws|aws-us-gov|aws-cn):aps:[a-z0-9-]+:[0-9]+:workspace/[a-zA-Z0-9-]+$

Update requires: Replacement

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ARN of the rules group namespace. For example, arn:aws:aps:us-west-2:123456789012:rulegroupsnamespace/ws-EXAMPLE-3687-4ac9-853c-EXAMPLEe8f/amp-rules.


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The ARN of the rules group namespace. For example, arn:aws:aps:us-west-2:123456789012:rulegroupsnamespace/ws-EXAMPLE-3687-4ac9-853c-EXAMPLEe8f/amp=rules