amazonka-sns-1.6.0: 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 # 
Data GetTopicAttributes Source # 

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 # 
Show GetTopicAttributes Source # 
Generic GetTopicAttributes Source # 
Hashable GetTopicAttributes Source # 
NFData GetTopicAttributes Source # 

Methods

rnf :: GetTopicAttributes -> () #

AWSRequest GetTopicAttributes Source # 
ToHeaders GetTopicAttributes Source # 
ToPath GetTopicAttributes Source # 
ToQuery GetTopicAttributes Source # 
type Rep GetTopicAttributes Source # 
type Rep GetTopicAttributes = D1 * (MetaData "GetTopicAttributes" "Network.AWS.SNS.GetTopicAttributes" "amazonka-sns-1.6.0-9aFI2fxVFLPtYIjs5ltfP" True) (C1 * (MetaCons "GetTopicAttributes'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gtaTopicARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetTopicAttributes Source # 

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 # 
Data GetTopicAttributesResponse Source # 

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 # 
Show GetTopicAttributesResponse Source # 
Generic GetTopicAttributesResponse Source # 
NFData GetTopicAttributesResponse Source # 
type Rep GetTopicAttributesResponse Source # 
type Rep GetTopicAttributesResponse = D1 * (MetaData "GetTopicAttributesResponse" "Network.AWS.SNS.GetTopicAttributes" "amazonka-sns-1.6.0-9aFI2fxVFLPtYIjs5ltfP" False) (C1 * (MetaCons "GetTopicAttributesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gtarsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text)))) (S1 * (MetaSel (Just Symbol "_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