Class CfnEventSubscription
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.redshift.CfnEventSubscription
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IEventSubscriptionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:13.483Z")
@Stability(Stable)
public class CfnEventSubscription
extends CfnResource
implements IInspectable, IEventSubscriptionRef, ITaggable
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-eventsubscription.html.
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.redshift.*;
CfnEventSubscription cfnEventSubscription = CfnEventSubscription.Builder.create(this, "MyCfnEventSubscription")
.subscriptionName("subscriptionName")
// the properties below are optional
.enabled(false)
.eventCategories(List.of("eventCategories"))
.severity("severity")
.snsTopicArn("snsTopicArn")
.sourceIds(List.of("sourceIds"))
.sourceType("sourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.IEventSubscriptionRef
IEventSubscriptionRef.Jsii$Default, IEventSubscriptionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEventSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEventSubscription(software.amazon.jsii.JsiiObjectRef objRef) CfnEventSubscription(software.constructs.Construct scope, String id, CfnEventSubscriptionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe AWS account associated with the Amazon Redshift event notification subscription.The name of the Amazon Redshift event notification subscription.The list of Amazon Redshift event categories specified in the event notification subscription.A list of the sources that publish events to the Amazon Redshift event notification subscription.The status of the Amazon Redshift event notification subscription.The date and time the Amazon Redshift event notification subscription was created.A boolean value;Specifies the Amazon Redshift event categories to be published by the event notification subscription.A reference to a EventSubscription resource.Specifies the Amazon Redshift event severity to be published by the event notification subscription.The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.A list of one or more identifiers of Amazon Redshift source objects.The type of source that will be generating the events.The name of the event subscription to be created.getTags()Tag Manager which manages the tags for this resource.A list of tag instances.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetEnabled(Boolean value) A boolean value;voidsetEnabled(IResolvable value) A boolean value;voidsetEventCategories(List<String> value) Specifies the Amazon Redshift event categories to be published by the event notification subscription.voidsetSeverity(String value) Specifies the Amazon Redshift event severity to be published by the event notification subscription.voidsetSnsTopicArn(String value) The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.voidsetSourceIds(List<String> value) A list of one or more identifiers of Amazon Redshift source objects.voidsetSourceType(String value) The type of source that will be generating the events.voidsetSubscriptionName(String value) The name of the event subscription to be created.voidsetTagsRaw(List<CfnTag> value) A list of tag instances.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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
-
CfnEventSubscription
protected CfnEventSubscription(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEventSubscription
protected CfnEventSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEventSubscription
@Stability(Stable) public CfnEventSubscription(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEventSubscriptionProps 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCustomerAwsId
The AWS account associated with the Amazon Redshift event notification subscription. -
getAttrCustSubscriptionId
The name of the Amazon Redshift event notification subscription. -
getAttrEventCategoriesList
The list of Amazon Redshift event categories specified in the event notification subscription.Values: Configuration, Management, Monitoring, Security, Pending
-
getAttrSourceIdsList
A list of the sources that publish events to the Amazon Redshift event notification subscription. -
getAttrStatus
The status of the Amazon Redshift event notification subscription.Constraints:
- Can be one of the following: active | no-permission | topic-not-exist
- The status "no-permission" indicates that Amazon Redshift no longer has permission to post to the Amazon SNS topic. The status "topic-not-exist" indicates that the topic was deleted after the subscription was created.
-
getAttrSubscriptionCreationTime
The date and time the Amazon Redshift event notification subscription was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEventSubscriptionRef
A reference to a EventSubscription resource.- Specified by:
getEventSubscriptionRefin interfaceIEventSubscriptionRef
-
getTags
Tag Manager which manages the tags for this resource. -
getSubscriptionName
The name of the event subscription to be created. -
setSubscriptionName
The name of the event subscription to be created. -
getEnabled
A boolean value;Returns union: either
BooleanorIResolvable -
setEnabled
A boolean value; -
setEnabled
A boolean value; -
getEventCategories
Specifies the Amazon Redshift event categories to be published by the event notification subscription. -
setEventCategories
Specifies the Amazon Redshift event categories to be published by the event notification subscription. -
getSeverity
Specifies the Amazon Redshift event severity to be published by the event notification subscription. -
setSeverity
Specifies the Amazon Redshift event severity to be published by the event notification subscription. -
getSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications. -
setSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications. -
getSourceIds
A list of one or more identifiers of Amazon Redshift source objects. -
setSourceIds
A list of one or more identifiers of Amazon Redshift source objects. -
getSourceType
The type of source that will be generating the events. -
setSourceType
The type of source that will be generating the events. -
getTagsRaw
A list of tag instances. -
setTagsRaw
A list of tag instances.
-