Class CfnRuleGroupsNamespace
A CloudFormation AWS::APS::RuleGroupsNamespace
.
Inherited Members
Namespace: Amazon.CDK.AWS.APS
Assembly: Amazon.CDK.AWS.APS.dll
Syntax (csharp)
public class CfnRuleGroupsNamespace : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnRuleGroupsNamespace
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
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 .
CloudformationResource: AWS::APS::RuleGroupsNamespace
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APS;
var cfnRuleGroupsNamespace = new CfnRuleGroupsNamespace(this, "MyCfnRuleGroupsNamespace", new CfnRuleGroupsNamespaceProps {
Data = "data",
Name = "name",
Workspace = "workspace",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnRuleGroupsNamespace(Construct, String, ICfnRuleGroupsNamespaceProps) | Create a new |
CfnRuleGroupsNamespace(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRuleGroupsNamespace(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | The ARN of the rules group namespace. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Data | The rules definition file for this namespace. |
Name | The name of the rule groups namespace. |
Tags | A list of key and value pairs for the workspace resources. |
Workspace | The ARN of the workspace that contains this rule groups namespace. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnRuleGroupsNamespace(Construct, String, ICfnRuleGroupsNamespaceProps)
Create a new AWS::APS::RuleGroupsNamespace
.
public CfnRuleGroupsNamespace(Construct scope, string id, ICfnRuleGroupsNamespaceProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnRuleGroupsNamespaceProps
- resource properties.
CfnRuleGroupsNamespace(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRuleGroupsNamespace(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRuleGroupsNamespace(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRuleGroupsNamespace(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
The ARN of the rules group namespace.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
For example, arn:aws:aps:us-west-2:123456789012:rulegroupsnamespace/ws-EXAMPLE-3687-4ac9-853c-EXAMPLEe8f/amp=rules
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Data
The rules definition file for this namespace.
public virtual string Data { get; set; }
Property Value
System.String
Remarks
Name
The name of the rule groups namespace.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
Tags
A list of key and value pairs for the workspace resources.
public virtual TagManager Tags { get; }
Property Value
Remarks
Workspace
The ARN of the workspace that contains this rule groups namespace.
public virtual string Workspace { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>