@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.540Z") @Stability(value=Stable) public class CfnEventSubscription extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEventSubscription.Builder
A fluent builder for
CfnEventSubscription. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEventSubscription(software.constructs.Construct scope,
String id,
CfnEventSubscriptionProps props)
Create a new `AWS::Redshift::EventSubscription`.
|
protected |
CfnEventSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEventSubscription(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCustomerAwsId()
The AWS account associated with the Amazon Redshift event notification subscription.
|
String |
getAttrCustSubscriptionId()
The name of the Amazon Redshift event notification subscription.
|
List<String> |
getAttrEventCategoriesList()
The list of Amazon Redshift event categories specified in the event notification subscription.
|
List<String> |
getAttrSourceIdsList()
A list of the sources that publish events to the Amazon Redshift event notification subscription.
|
String |
getAttrStatus()
The status of the Amazon Redshift event notification subscription.
|
String |
getAttrSubscriptionCreationTime()
The date and time the Amazon Redshift event notification subscription was created.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getEnabled()
A boolean value;
|
List<String> |
getEventCategories()
Specifies the Amazon Redshift event categories to be published by the event notification subscription.
|
String |
getSeverity()
Specifies the Amazon Redshift event severity to be published by the event notification subscription.
|
String |
getSnsTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the event notifications.
|
List<String> |
getSourceIds()
A list of one or more identifiers of Amazon Redshift source objects.
|
String |
getSourceType()
The type of source that will be generating the events.
|
String |
getSubscriptionName()
The name of the event subscription to be created.
|
TagManager |
getTags()
A list of tag instances.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEventSubscription(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEventSubscription(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEventSubscription(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEventSubscriptionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCustomerAwsId()
@Stability(value=Stable) @NotNull public String getAttrCustSubscriptionId()
@Stability(value=Stable) @NotNull public List<String> getAttrEventCategoriesList()
Values: Configuration, Management, Monitoring, Security, Pending
@Stability(value=Stable) @NotNull public List<String> getAttrSourceIdsList()
@Stability(value=Stable) @NotNull public String getAttrStatus()
Constraints:
@Stability(value=Stable) @NotNull public String getAttrSubscriptionCreationTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getSubscriptionName()
Constraints:
@Stability(value=Stable)
public void setSubscriptionName(@NotNull
String value)
Constraints:
@Stability(value=Stable) @Nullable public Object getEnabled()
set to true to activate the subscription, and set to false to create the subscription but not activate it.
@Stability(value=Stable)
public void setEnabled(@Nullable
Boolean value)
set to true to activate the subscription, and set to false to create the subscription but not activate it.
@Stability(value=Stable)
public void setEnabled(@Nullable
IResolvable value)
set to true to activate the subscription, and set to false to create the subscription but not activate it.
@Stability(value=Stable) @Nullable public List<String> getEventCategories()
Values: configuration, management, monitoring, security, pending
@Stability(value=Stable)
public void setEventCategories(@Nullable
List<String> value)
Values: configuration, management, monitoring, security, pending
@Stability(value=Stable) @Nullable public String getSeverity()
Values: ERROR, INFO
@Stability(value=Stable)
public void setSeverity(@Nullable
String value)
Values: ERROR, INFO
@Stability(value=Stable) @Nullable public String getSnsTopicArn()
The ARN is created by Amazon SNS when you create a topic and subscribe to it.
@Stability(value=Stable)
public void setSnsTopicArn(@Nullable
String value)
The ARN is created by Amazon SNS when you create a topic and subscribe to it.
@Stability(value=Stable) @Nullable public List<String> getSourceIds()
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
@Stability(value=Stable)
public void setSourceIds(@Nullable
List<String> value)
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
@Stability(value=Stable) @Nullable public String getSourceType()
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.
@Stability(value=Stable)
public void setSourceType(@Nullable
String value)
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.
Copyright © 2022. All rights reserved.