Interface ICfnEventSubscriptionProps
Properties for defining a CfnEventSubscription
.
Namespace: Amazon.CDK.AWS.Redshift
Assembly: Amazon.CDK.AWS.Redshift.dll
Syntax (csharp)
public interface ICfnEventSubscriptionProps
Syntax (vb)
Public Interface ICfnEventSubscriptionProps
Remarks
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.Redshift;
var cfnEventSubscriptionProps = new CfnEventSubscriptionProps {
SubscriptionName = "subscriptionName",
// the properties below are optional
Enabled = false,
EventCategories = new [] { "eventCategories" },
Severity = "severity",
SnsTopicArn = "snsTopicArn",
SourceIds = new [] { "sourceIds" },
SourceType = "sourceType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
Enabled | A boolean value; |
EventCategories | Specifies the Amazon Redshift event categories to be published by the event notification subscription. |
Severity | Specifies the Amazon Redshift event severity to be published by the event notification subscription. |
SnsTopicArn | The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications. |
SourceIds | A list of one or more identifiers of Amazon Redshift source objects. |
SourceType | The type of source that will be generating the events. |
SubscriptionName | The name of the event subscription to be created. |
Tags | A list of tag instances. |
Properties
Enabled
A boolean value;
virtual object Enabled { get; }
Property Value
System.Object
Remarks
set to true
to activate the subscription, and set to false
to create the subscription but not activate it.
EventCategories
Specifies the Amazon Redshift event categories to be published by the event notification subscription.
virtual string[] EventCategories { get; }
Property Value
System.String[]
Remarks
Values: configuration, management, monitoring, security, pending
Severity
Specifies the Amazon Redshift event severity to be published by the event notification subscription.
virtual string Severity { get; }
Property Value
System.String
Remarks
SnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.
virtual string SnsTopicArn { get; }
Property Value
System.String
Remarks
The ARN is created by Amazon SNS when you create a topic and subscribe to it.
SourceIds
A list of one or more identifiers of Amazon Redshift source objects.
virtual string[] SourceIds { get; }
Property Value
System.String[]
Remarks
All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified.
Example: my-cluster-1, my-cluster-2
Example: my-snapshot-20131010
SourceType
The type of source that will be generating the events.
virtual string SourceType { get; }
Property Value
System.String
Remarks
For example, if you want to be notified of events generated by a cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your AWS account . You must specify a source type in order to specify source IDs.
Valid values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and scheduled-action.
SubscriptionName
The name of the event subscription to be created.
string SubscriptionName { get; }
Property Value
System.String