libZSservicesZSamazonka-redshiftZSamazonka-redshift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Redshift.Types.EventSubscription

Description

 
Synopsis

Documentation

data EventSubscription Source #

Describes event subscriptions.

See: newEventSubscription smart constructor.

Constructors

EventSubscription' 

Fields

  • status :: Maybe Text

    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.
  • customerAwsId :: Maybe Text

    The Amazon Web Services account associated with the Amazon Redshift event notification subscription.

  • custSubscriptionId :: Maybe Text

    The name of the Amazon Redshift event notification subscription.

  • snsTopicArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.

  • enabled :: Maybe Bool

    A boolean value indicating whether the subscription is enabled; true indicates that the subscription is enabled.

  • sourceType :: Maybe Text

    The source type of the events returned by the Amazon Redshift event notification, such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, or scheduled-action.

  • severity :: Maybe Text

    The event severity specified in the Amazon Redshift event notification subscription.

    Values: ERROR, INFO

  • subscriptionCreationTime :: Maybe ISO8601

    The date and time the Amazon Redshift event notification subscription was created.

  • eventCategoriesList :: Maybe [Text]

    The list of Amazon Redshift event categories specified in the event notification subscription.

    Values: Configuration, Management, Monitoring, Security, Pending

  • tags :: Maybe [Tag]

    The list of tags for the event subscription.

  • sourceIdsList :: Maybe [Text]

    A list of the sources that publish events to the Amazon Redshift event notification subscription.

Instances

Instances details
Eq EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

Read EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

Show EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

Generic EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

Associated Types

type Rep EventSubscription :: Type -> Type #

NFData EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

Methods

rnf :: EventSubscription -> () #

Hashable EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

FromXML EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

type Rep EventSubscription Source # 
Instance details

Defined in Amazonka.Redshift.Types.EventSubscription

type Rep EventSubscription = D1 ('MetaData "EventSubscription" "Amazonka.Redshift.Types.EventSubscription" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "EventSubscription'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "customerAwsId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "custSubscriptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "snsTopicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "sourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "severity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subscriptionCreationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: (S1 ('MetaSel ('Just "eventCategoriesList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "sourceIdsList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))))

newEventSubscription :: EventSubscription Source #

Create a value of EventSubscription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:status:EventSubscription', eventSubscription_status - 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.

$sel:customerAwsId:EventSubscription', eventSubscription_customerAwsId - The Amazon Web Services account associated with the Amazon Redshift event notification subscription.

$sel:custSubscriptionId:EventSubscription', eventSubscription_custSubscriptionId - The name of the Amazon Redshift event notification subscription.

$sel:snsTopicArn:EventSubscription', eventSubscription_snsTopicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.

$sel:enabled:EventSubscription', eventSubscription_enabled - A boolean value indicating whether the subscription is enabled; true indicates that the subscription is enabled.

$sel:sourceType:EventSubscription', eventSubscription_sourceType - The source type of the events returned by the Amazon Redshift event notification, such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, or scheduled-action.

$sel:severity:EventSubscription', eventSubscription_severity - The event severity specified in the Amazon Redshift event notification subscription.

Values: ERROR, INFO

$sel:subscriptionCreationTime:EventSubscription', eventSubscription_subscriptionCreationTime - The date and time the Amazon Redshift event notification subscription was created.

$sel:eventCategoriesList:EventSubscription', eventSubscription_eventCategoriesList - The list of Amazon Redshift event categories specified in the event notification subscription.

Values: Configuration, Management, Monitoring, Security, Pending

$sel:tags:EventSubscription', eventSubscription_tags - The list of tags for the event subscription.

$sel:sourceIdsList:EventSubscription', eventSubscription_sourceIdsList - A list of the sources that publish events to the Amazon Redshift event notification subscription.

eventSubscription_status :: Lens' EventSubscription (Maybe Text) Source #

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.

eventSubscription_customerAwsId :: Lens' EventSubscription (Maybe Text) Source #

The Amazon Web Services account associated with the Amazon Redshift event notification subscription.

eventSubscription_custSubscriptionId :: Lens' EventSubscription (Maybe Text) Source #

The name of the Amazon Redshift event notification subscription.

eventSubscription_snsTopicArn :: Lens' EventSubscription (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event notification subscription.

eventSubscription_enabled :: Lens' EventSubscription (Maybe Bool) Source #

A boolean value indicating whether the subscription is enabled; true indicates that the subscription is enabled.

eventSubscription_sourceType :: Lens' EventSubscription (Maybe Text) Source #

The source type of the events returned by the Amazon Redshift event notification, such as cluster, cluster-snapshot, cluster-parameter-group, cluster-security-group, or scheduled-action.

eventSubscription_severity :: Lens' EventSubscription (Maybe Text) Source #

The event severity specified in the Amazon Redshift event notification subscription.

Values: ERROR, INFO

eventSubscription_subscriptionCreationTime :: Lens' EventSubscription (Maybe UTCTime) Source #

The date and time the Amazon Redshift event notification subscription was created.

eventSubscription_eventCategoriesList :: Lens' EventSubscription (Maybe [Text]) Source #

The list of Amazon Redshift event categories specified in the event notification subscription.

Values: Configuration, Management, Monitoring, Security, Pending

eventSubscription_tags :: Lens' EventSubscription (Maybe [Tag]) Source #

The list of tags for the event subscription.

eventSubscription_sourceIdsList :: Lens' EventSubscription (Maybe [Text]) Source #

A list of the sources that publish events to the Amazon Redshift event notification subscription.