amazonka-ds-2.0: Amazon Directory Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DirectoryService.DescribeEventTopics

Description

Obtains information about which Amazon SNS topics receive status messages from the specified directory.

If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

Synopsis

Creating a Request

data DescribeEventTopics Source #

Describes event topics.

See: newDescribeEventTopics smart constructor.

Constructors

DescribeEventTopics' 

Fields

  • directoryId :: Maybe Text

    The Directory ID for which to get the list of associated Amazon SNS topics. If this member is null, associations for all Directory IDs are returned.

  • topicNames :: Maybe [Text]

    A list of Amazon SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.

    An empty list results in an InvalidParameterException being thrown.

Instances

Instances details
ToJSON DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

ToHeaders DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

ToPath DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

ToQuery DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

AWSRequest DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Associated Types

type AWSResponse DescribeEventTopics #

Generic DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Associated Types

type Rep DescribeEventTopics :: Type -> Type #

Read DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Show DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

NFData DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Methods

rnf :: DescribeEventTopics -> () #

Eq DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Hashable DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

type AWSResponse DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

type Rep DescribeEventTopics Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

type Rep DescribeEventTopics = D1 ('MetaData "DescribeEventTopics" "Amazonka.DirectoryService.DescribeEventTopics" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "DescribeEventTopics'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "topicNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

newDescribeEventTopics :: DescribeEventTopics Source #

Create a value of DescribeEventTopics 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:

DescribeEventTopics, describeEventTopics_directoryId - The Directory ID for which to get the list of associated Amazon SNS topics. If this member is null, associations for all Directory IDs are returned.

$sel:topicNames:DescribeEventTopics', describeEventTopics_topicNames - A list of Amazon SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.

An empty list results in an InvalidParameterException being thrown.

Request Lenses

describeEventTopics_directoryId :: Lens' DescribeEventTopics (Maybe Text) Source #

The Directory ID for which to get the list of associated Amazon SNS topics. If this member is null, associations for all Directory IDs are returned.

describeEventTopics_topicNames :: Lens' DescribeEventTopics (Maybe [Text]) Source #

A list of Amazon SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.

An empty list results in an InvalidParameterException being thrown.

Destructuring the Response

data DescribeEventTopicsResponse Source #

The result of a DescribeEventTopic request.

See: newDescribeEventTopicsResponse smart constructor.

Constructors

DescribeEventTopicsResponse' 

Fields

Instances

Instances details
Generic DescribeEventTopicsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Associated Types

type Rep DescribeEventTopicsResponse :: Type -> Type #

Read DescribeEventTopicsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Show DescribeEventTopicsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

NFData DescribeEventTopicsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

Eq DescribeEventTopicsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

type Rep DescribeEventTopicsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeEventTopics

type Rep DescribeEventTopicsResponse = D1 ('MetaData "DescribeEventTopicsResponse" "Amazonka.DirectoryService.DescribeEventTopics" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "DescribeEventTopicsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventTopics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventTopic])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeEventTopicsResponse Source #

Create a value of DescribeEventTopicsResponse 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:eventTopics:DescribeEventTopicsResponse', describeEventTopicsResponse_eventTopics - A list of Amazon SNS topic names that receive status messages from the specified Directory ID.

$sel:httpStatus:DescribeEventTopicsResponse', describeEventTopicsResponse_httpStatus - The response's http status code.

Response Lenses

describeEventTopicsResponse_eventTopics :: Lens' DescribeEventTopicsResponse (Maybe [EventTopic]) Source #

A list of Amazon SNS topic names that receive status messages from the specified Directory ID.