@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.476Z") public class CfnRuleGroupsNamespace extends CfnResource implements IInspectable
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 .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.aps.*; CfnRuleGroupsNamespace cfnRuleGroupsNamespace = CfnRuleGroupsNamespace.Builder.create(this, "MyCfnRuleGroupsNamespace") .data("data") .name("name") .workspace("workspace") // the properties below are optional .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnRuleGroupsNamespace.Builder
A fluent builder for
CfnRuleGroupsNamespace . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnRuleGroupsNamespace(Construct scope,
java.lang.String id,
CfnRuleGroupsNamespaceProps props)
Create a new `AWS::APS::RuleGroupsNamespace`.
|
protected |
CfnRuleGroupsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnRuleGroupsNamespace(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The ARN of the rules group namespace.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getData()
The rules definition file for this namespace.
|
java.lang.String |
getName()
The name of the rule groups namespace.
|
TagManager |
getTags()
A list of key and value pairs for the workspace resources.
|
java.lang.String |
getWorkspace()
The ARN of the workspace that contains this rule groups namespace.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setData(java.lang.String value)
The rules definition file for this namespace.
|
void |
setName(java.lang.String value)
The name of the rule groups namespace.
|
void |
setWorkspace(java.lang.String value)
The ARN of the workspace that contains this rule groups namespace.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnRuleGroupsNamespace(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRuleGroupsNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnRuleGroupsNamespace(Construct scope, java.lang.String id, CfnRuleGroupsNamespaceProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
For example, arn:aws:aps:us-west-2:123456789012:rulegroupsnamespace/ws-EXAMPLE-3687-4ac9-853c-EXAMPLEe8f/amp=rules
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getData()
public void setData(java.lang.String value)
public java.lang.String getName()
This property is required.
public void setName(java.lang.String value)
This property is required.
public java.lang.String getWorkspace()
public void setWorkspace(java.lang.String value)