amazonka-iot-1.4.5: Amazon IoT SDK.

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

Network.AWS.IoT.GetPolicy

Contents

Description

Gets information about the specified policy with the policy document of the default version.

Synopsis

Creating a Request

getPolicy Source #

Arguments

:: Text

gpPolicyName

-> GetPolicy 

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

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

data GetPolicy Source #

The input for the GetPolicy operation.

See: getPolicy smart constructor.

Instances

Eq GetPolicy Source # 
Data GetPolicy Source # 

Methods

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

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

toConstr :: GetPolicy -> Constr #

dataTypeOf :: GetPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPolicy Source # 
Show GetPolicy Source # 
Generic GetPolicy Source # 

Associated Types

type Rep GetPolicy :: * -> * #

Hashable GetPolicy Source # 
NFData GetPolicy Source # 

Methods

rnf :: GetPolicy -> () #

AWSRequest GetPolicy Source # 
ToPath GetPolicy Source # 
ToHeaders GetPolicy Source # 

Methods

toHeaders :: GetPolicy -> [Header] #

ToQuery GetPolicy Source # 
type Rep GetPolicy Source # 
type Rep GetPolicy = D1 (MetaData "GetPolicy" "Network.AWS.IoT.GetPolicy" "amazonka-iot-1.4.5-LdiOpNMei3PDsbsABUTj6X" True) (C1 (MetaCons "GetPolicy'" PrefixI True) (S1 (MetaSel (Just Symbol "_gpPolicyName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetPolicy Source # 

Request Lenses

gpPolicyName :: Lens' GetPolicy Text Source #

The name of the policy.

Destructuring the Response

getPolicyResponse Source #

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

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

data GetPolicyResponse Source #

The output from the GetPolicy operation.

See: getPolicyResponse smart constructor.

Instances

Eq GetPolicyResponse Source # 
Data GetPolicyResponse Source # 

Methods

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

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

toConstr :: GetPolicyResponse -> Constr #

dataTypeOf :: GetPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPolicyResponse Source # 
Show GetPolicyResponse Source # 
Generic GetPolicyResponse Source # 
NFData GetPolicyResponse Source # 

Methods

rnf :: GetPolicyResponse -> () #

type Rep GetPolicyResponse Source # 
type Rep GetPolicyResponse = D1 (MetaData "GetPolicyResponse" "Network.AWS.IoT.GetPolicy" "amazonka-iot-1.4.5-LdiOpNMei3PDsbsABUTj6X" False) (C1 (MetaCons "GetPolicyResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gprsPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gprsPolicyDocument") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_gprsDefaultVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gprsPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))))

Response Lenses

gprsPolicyDocument :: Lens' GetPolicyResponse (Maybe Text) Source #

The JSON document that describes the policy.

gprsDefaultVersionId :: Lens' GetPolicyResponse (Maybe Text) Source #

The default policy version ID.

gprsResponseStatus :: Lens' GetPolicyResponse Int Source #

  • - | The response status code.