Class CfnEventSubscription
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Redshift::EventSubscription
.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnEventSubscription
(Construct scope, String id, CfnEventSubscriptionProps props) Create a newAWS::Redshift::EventSubscription
.protected
CfnEventSubscription
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEventSubscription
(software.amazon.jsii.JsiiObjectRef objRef) -
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.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()
A list of tag instances.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setEnabled
(Boolean value) A boolean value;void
setEnabled
(IResolvable value) A boolean value;void
setEventCategories
(List<String> value) Specifies the Amazon Redshift event categories to be published by the event notification subscription.void
setSeverity
(String value) Specifies the Amazon Redshift event severity to be published by the event notification subscription.void
setSnsTopicArn
(String value) The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.void
setSourceIds
(List<String> value) A list of one or more identifiers of Amazon Redshift source objects.void
setSourceType
(String value) The type of source that will be generating the events.void
setSubscriptionName
(String value) The name of the event subscription to be created.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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
-
CfnEventSubscription
protected CfnEventSubscription(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEventSubscription
protected CfnEventSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEventSubscription
@Stability(Stable) public CfnEventSubscription(@NotNull Construct scope, @NotNull String id, @NotNull CfnEventSubscriptionProps props) Create a newAWS::Redshift::EventSubscription
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
A list of tag instances. -
getSubscriptionName
The name of the event subscription to be created.Constraints:
- Cannot be null, empty, or blank.
- Must contain from 1 to 255 alphanumeric characters or hyphens.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
-
setSubscriptionName
The name of the event subscription to be created.Constraints:
- Cannot be null, empty, or blank.
- Must contain from 1 to 255 alphanumeric characters or hyphens.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
-
getEnabled
A boolean value;set to
true
to activate the subscription, and set tofalse
to create the subscription but not activate it. -
setEnabled
A boolean value;set to
true
to activate the subscription, and set tofalse
to create the subscription but not activate it. -
setEnabled
A boolean value;set to
true
to activate the subscription, and set tofalse
to create the subscription but not activate it. -
getEventCategories
Specifies the Amazon Redshift event categories to be published by the event notification subscription.Values: configuration, management, monitoring, security, pending
-
setEventCategories
Specifies the Amazon Redshift event categories to be published by the event notification subscription.Values: configuration, management, monitoring, security, pending
-
getSeverity
Specifies the Amazon Redshift event severity to be published by the event notification subscription.Values: ERROR, INFO
-
setSeverity
Specifies the Amazon Redshift event severity to be published by the event notification subscription.Values: ERROR, INFO
-
getSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.The ARN is created by Amazon SNS when you create a topic and subscribe to it.
-
setSnsTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.The ARN is created by Amazon SNS when you create a topic and subscribe to it.
-
getSourceIds
A list of one or more identifiers of Amazon Redshift source objects.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
-
setSourceIds
A list of one or more identifiers of Amazon Redshift source objects.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
-
getSourceType
The type of source that will be generating the events.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.
-
setSourceType
The type of source that will be generating the events.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.
-