Class CfnNotificationChannel
Adds a notification channel to DevOps Guru.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.DevOpsGuru
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNotificationChannel : CfnResource, IInspectable
Syntax (vb)
Public Class CfnNotificationChannel
Inherits CfnResource
Implements IInspectable
Remarks
A notification channel is used to notify you about important DevOps Guru events, such as when an insight is generated.
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics .
If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for AWS KMS–encrypted Amazon SNS topics .
CloudformationResource: AWS::DevOpsGuru::NotificationChannel
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.DevOpsGuru;
var cfnNotificationChannel = new CfnNotificationChannel(this, "MyCfnNotificationChannel", new CfnNotificationChannelProps {
Config = new NotificationChannelConfigProperty {
Filters = new NotificationFilterConfigProperty {
MessageTypes = new [] { "messageTypes" },
Severities = new [] { "severities" }
},
Sns = new SnsChannelConfigProperty {
TopicArn = "topicArn"
}
}
});
Synopsis
Constructors
CfnNotificationChannel(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnNotificationChannel(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnNotificationChannel(Construct, String, ICfnNotificationChannelProps) |
Properties
AttrId | The ID of the notification channel. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Config | A |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnNotificationChannel(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnNotificationChannel(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnNotificationChannel(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnNotificationChannel(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnNotificationChannel(Construct, String, ICfnNotificationChannelProps)
public CfnNotificationChannel(Construct scope, string id, ICfnNotificationChannelProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnNotificationChannelProps
Resource properties.
Properties
AttrId
The ID of the notification channel.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
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
Config
A NotificationChannelConfig
object that contains information about configured notification channels.
public virtual object Config { get; set; }
Property Value
System.Object
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>