amazonka-sns-1.6.1: Amazon Simple Notification Service SDK.

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

Network.AWS.SNS.GetTopicAttributes

Contents

Description

Returns all of the properties of a topic. Topic properties returned might differ based on the authorization of the user.

Synopsis

Creating a Request

getTopicAttributes Source #

Creates a value of GetTopicAttributes with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gtaTopicARN - The ARN of the topic whose properties you want to get.

data GetTopicAttributes Source #

Input for GetTopicAttributes action.

See: getTopicAttributes smart constructor.

Instances
Eq GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Data GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetTopicAttributes -> c GetTopicAttributes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetTopicAttributes #

toConstr :: GetTopicAttributes -> Constr #

dataTypeOf :: GetTopicAttributes -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetTopicAttributes) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetTopicAttributes) #

gmapT :: (forall b. Data b => b -> b) -> GetTopicAttributes -> GetTopicAttributes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetTopicAttributes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetTopicAttributes -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetTopicAttributes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetTopicAttributes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetTopicAttributes -> m GetTopicAttributes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetTopicAttributes -> m GetTopicAttributes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetTopicAttributes -> m GetTopicAttributes #

Read GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Show GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Generic GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Associated Types

type Rep GetTopicAttributes :: Type -> Type #

Hashable GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

AWSRequest GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Associated Types

type Rs GetTopicAttributes :: Type #

ToHeaders GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

ToPath GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

ToQuery GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

NFData GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Methods

rnf :: GetTopicAttributes -> () #

type Rep GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

type Rep GetTopicAttributes = D1 (MetaData "GetTopicAttributes" "Network.AWS.SNS.GetTopicAttributes" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" True) (C1 (MetaCons "GetTopicAttributes'" PrefixI True) (S1 (MetaSel (Just "_gtaTopicARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetTopicAttributes Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Request Lenses

gtaTopicARN :: Lens' GetTopicAttributes Text Source #

The ARN of the topic whose properties you want to get.

Destructuring the Response

getTopicAttributesResponse Source #

Creates a value of GetTopicAttributesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gtarsAttributes - A map of the topic's attributes. Attributes in this map include the following: * TopicArn -- the topic's ARN * Owner -- the AWS account ID of the topic's owner * Policy -- the JSON serialization of the topic's access control policy * DisplayName -- the human-readable name used in the From field for notifications to email and email-json endpoints * SubscriptionsPending -- the number of subscriptions pending confirmation on this topic * SubscriptionsConfirmed -- the number of confirmed subscriptions on this topic * SubscriptionsDeleted -- the number of deleted subscriptions on this topic * DeliveryPolicy -- the JSON serialization of the topic's delivery policy * EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery policy that takes into account system defaults
  • gtarsResponseStatus - -- | The response status code.

data GetTopicAttributesResponse Source #

Response for GetTopicAttributes action.

See: getTopicAttributesResponse smart constructor.

Instances
Eq GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Data GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetTopicAttributesResponse -> c GetTopicAttributesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetTopicAttributesResponse #

toConstr :: GetTopicAttributesResponse -> Constr #

dataTypeOf :: GetTopicAttributesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetTopicAttributesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetTopicAttributesResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetTopicAttributesResponse -> GetTopicAttributesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetTopicAttributesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetTopicAttributesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetTopicAttributesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetTopicAttributesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetTopicAttributesResponse -> m GetTopicAttributesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetTopicAttributesResponse -> m GetTopicAttributesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetTopicAttributesResponse -> m GetTopicAttributesResponse #

Read GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Show GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Generic GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

Associated Types

type Rep GetTopicAttributesResponse :: Type -> Type #

NFData GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

type Rep GetTopicAttributesResponse Source # 
Instance details

Defined in Network.AWS.SNS.GetTopicAttributes

type Rep GetTopicAttributesResponse = D1 (MetaData "GetTopicAttributesResponse" "Network.AWS.SNS.GetTopicAttributes" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "GetTopicAttributesResponse'" PrefixI True) (S1 (MetaSel (Just "_gtarsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_gtarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

gtarsAttributes :: Lens' GetTopicAttributesResponse (HashMap Text Text) Source #

A map of the topic's attributes. Attributes in this map include the following: * TopicArn -- the topic's ARN * Owner -- the AWS account ID of the topic's owner * Policy -- the JSON serialization of the topic's access control policy * DisplayName -- the human-readable name used in the From field for notifications to email and email-json endpoints * SubscriptionsPending -- the number of subscriptions pending confirmation on this topic * SubscriptionsConfirmed -- the number of confirmed subscriptions on this topic * SubscriptionsDeleted -- the number of deleted subscriptions on this topic * DeliveryPolicy -- the JSON serialization of the topic's delivery policy * EffectiveDeliveryPolicy -- the JSON serialization of the effective delivery policy that takes into account system defaults