Class CfnNotificationRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.codestarnotifications.CfnNotificationRule
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:28.385Z")
@Stability(Stable)
public class CfnNotificationRule
extends CfnResource
implements IInspectable, ITaggable
Creates a notification rule for a resource.
The rule specifies the events you want notifications about and the targets (such as Amazon Simple Notification Service topics or AWS Chatbot clients configured for Slack) where you want to receive them.
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.codestarnotifications.*; CfnNotificationRule cfnNotificationRule = CfnNotificationRule.Builder.create(this, "MyCfnNotificationRule") .detailType("detailType") .eventTypeIds(List.of("eventTypeIds")) .name("name") .resource("resource") .targets(List.of(TargetProperty.builder() .targetAddress("targetAddress") .targetType("targetType") .build())) // the properties below are optional .createdBy("createdBy") .eventTypeId("eventTypeId") .status("status") .tags(Map.of( "tagsKey", "tags")) .targetAddress("targetAddress") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnNotificationRule
.static interface
Information about the AWS Chatbot topics or AWS Chatbot clients associated with a notification rule.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnNotificationRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnNotificationRule
(software.amazon.jsii.JsiiObjectRef objRef) CfnNotificationRule
(software.constructs.Construct scope, String id, CfnNotificationRuleProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the notification rule.The name or email alias of the person who created the notification rule.The level of detail to include in the notifications for this resource.The event type associated with this notification rule.A list of event types associated with this notification rule.getName()
The name for the notification rule.The Amazon Resource Name (ARN) of the resource to associate with the notification rule.The status of the notification rule.getTags()
Tag Manager which manages the tags for this resource.A list of tags to apply to this notification rule.The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCreatedBy
(String value) The name or email alias of the person who created the notification rule.void
setDetailType
(String value) The level of detail to include in the notifications for this resource.void
setEventTypeId
(String value) The event type associated with this notification rule.void
setEventTypeIds
(List<String> value) A list of event types associated with this notification rule.void
The name for the notification rule.void
setResource
(String value) The Amazon Resource Name (ARN) of the resource to associate with the notification rule.void
The status of the notification rule.void
setTagsRaw
(Map<String, String> value) A list of tags to apply to this notification rule.void
setTargetAddress
(String value) The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.void
setTargets
(List<Object> value) A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.void
setTargets
(IResolvable value) A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnNotificationRule
protected CfnNotificationRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnNotificationRule
protected CfnNotificationRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnNotificationRule
@Stability(Stable) public CfnNotificationRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnNotificationRuleProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the notification rule. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getDetailType
The level of detail to include in the notifications for this resource. -
setDetailType
The level of detail to include in the notifications for this resource. -
getEventTypeIds
A list of event types associated with this notification rule. -
setEventTypeIds
A list of event types associated with this notification rule. -
getName
The name for the notification rule. -
setName
The name for the notification rule. -
getResource
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. -
setResource
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. -
getTargets
A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. -
setTargets
A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. -
setTargets
A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. -
getCreatedBy
The name or email alias of the person who created the notification rule. -
setCreatedBy
The name or email alias of the person who created the notification rule. -
getEventTypeId
The event type associated with this notification rule. -
setEventTypeId
The event type associated with this notification rule. -
getStatus
The status of the notification rule. -
setStatus
The status of the notification rule. -
getTagsRaw
A list of tags to apply to this notification rule. -
setTagsRaw
A list of tags to apply to this notification rule. -
getTargetAddress
The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client. -
setTargetAddress
The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.
-