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).

AWS::APS::RuleGroupsNamespace

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.

Syntax

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

JSON

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

YAML

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

Properties

Data

The rules definition file for this namespace.

Required: Yes

Type: String

Update requires: No interruption

Name

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

Required: Yes

Type: String

Minimum: 1

Maximum: 64

Update requires: Replacement

Tags

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

Required: No

Type: Array of Tag

Update requires: No interruption

Workspace

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

Ref

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.

Fn::GetAtt

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.

Arn

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