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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnEventSubscription(Construct scope, String id, CfnEventSubscriptionProps props) Create a newAWS::Redshift::EventSubscription.protectedCfnEventSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEventSubscription(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.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.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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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:
inspectin 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:
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
-
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
trueto activate the subscription, and set tofalseto create the subscription but not activate it. -
setEnabled
A boolean value;set to
trueto activate the subscription, and set tofalseto create the subscription but not activate it. -
setEnabled
A boolean value;set to
trueto activate the subscription, and set tofalseto 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.
-