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.AddPermission

Contents

Description

Adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.

Synopsis

Creating a Request

addPermission Source #

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

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

  • apTopicARN - The ARN of the topic whose access control policy you wish to modify.
  • apLabel - A unique identifier for the new policy statement.
  • apAWSAccountId - The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.
  • apActionName - The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.

data AddPermission Source #

See: addPermission smart constructor.

Instances
Eq AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Data AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Methods

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

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

toConstr :: AddPermission -> Constr #

dataTypeOf :: AddPermission -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Show AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Generic AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Associated Types

type Rep AddPermission :: Type -> Type #

Hashable AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

AWSRequest AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Associated Types

type Rs AddPermission :: Type #

ToHeaders AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

ToPath AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

ToQuery AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

NFData AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Methods

rnf :: AddPermission -> () #

type Rep AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

type Rep AddPermission = D1 (MetaData "AddPermission" "Network.AWS.SNS.AddPermission" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "AddPermission'" PrefixI True) ((S1 (MetaSel (Just "_apTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_apLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_apAWSAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_apActionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs AddPermission Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Request Lenses

apTopicARN :: Lens' AddPermission Text Source #

The ARN of the topic whose access control policy you wish to modify.

apLabel :: Lens' AddPermission Text Source #

A unique identifier for the new policy statement.

apAWSAccountId :: Lens' AddPermission [Text] Source #

The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.

apActionName :: Lens' AddPermission [Text] Source #

The action you want to allow for the specified principal(s). Valid values: any Amazon SNS action name.

Destructuring the Response

addPermissionResponse :: AddPermissionResponse Source #

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

data AddPermissionResponse Source #

See: addPermissionResponse smart constructor.

Instances
Eq AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Data AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Methods

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

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

toConstr :: AddPermissionResponse -> Constr #

dataTypeOf :: AddPermissionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Show AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Generic AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Associated Types

type Rep AddPermissionResponse :: Type -> Type #

NFData AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

Methods

rnf :: AddPermissionResponse -> () #

type Rep AddPermissionResponse Source # 
Instance details

Defined in Network.AWS.SNS.AddPermission

type Rep AddPermissionResponse = D1 (MetaData "AddPermissionResponse" "Network.AWS.SNS.AddPermission" "amazonka-sns-1.6.1-7GBYpIO1P7AJWNWtL33amk" False) (C1 (MetaCons "AddPermissionResponse'" PrefixI False) (U1 :: Type -> Type))