amazonka-iot-1.6.1: Amazon IoT 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.IoT.GetPolicyVersion

Contents

Description

Gets information about the specified policy version.

Synopsis

Creating a Request

getPolicyVersion Source #

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

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

data GetPolicyVersion Source #

The input for the GetPolicyVersion operation.

See: getPolicyVersion smart constructor.

Instances
Eq GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Data GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Methods

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

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

toConstr :: GetPolicyVersion -> Constr #

dataTypeOf :: GetPolicyVersion -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Show GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Generic GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Associated Types

type Rep GetPolicyVersion :: Type -> Type #

Hashable GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

AWSRequest GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Associated Types

type Rs GetPolicyVersion :: Type #

ToHeaders GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

ToPath GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

ToQuery GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

NFData GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Methods

rnf :: GetPolicyVersion -> () #

type Rep GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

type Rep GetPolicyVersion = D1 (MetaData "GetPolicyVersion" "Network.AWS.IoT.GetPolicyVersion" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "GetPolicyVersion'" PrefixI True) (S1 (MetaSel (Just "_gpvPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gpvPolicyVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetPolicyVersion Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Request Lenses

gpvPolicyName :: Lens' GetPolicyVersion Text Source #

The name of the policy.

Destructuring the Response

getPolicyVersionResponse Source #

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

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

data GetPolicyVersionResponse Source #

The output from the GetPolicyVersion operation.

See: getPolicyVersionResponse smart constructor.

Instances
Eq GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Data GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Methods

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

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

toConstr :: GetPolicyVersionResponse -> Constr #

dataTypeOf :: GetPolicyVersionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Show GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Generic GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

Associated Types

type Rep GetPolicyVersionResponse :: Type -> Type #

NFData GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

type Rep GetPolicyVersionResponse Source # 
Instance details

Defined in Network.AWS.IoT.GetPolicyVersion

type Rep GetPolicyVersionResponse = D1 (MetaData "GetPolicyVersionResponse" "Network.AWS.IoT.GetPolicyVersion" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "GetPolicyVersionResponse'" PrefixI True) (((S1 (MetaSel (Just "_gpvrsLastModifiedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_gpvrsPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_gpvrsPolicyDocument") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gpvrsPolicyVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_gpvrsPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gpvrsCreationDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_gpvrsGenerationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gpvrsIsDefaultVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_gpvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

gpvrsLastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #

The date the policy version was last modified.

gpvrsPolicyDocument :: Lens' GetPolicyVersionResponse (Maybe Text) Source #

The JSON document that describes the policy.

gpvrsCreationDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #

The date the policy version was created.

gpvrsGenerationId :: Lens' GetPolicyVersionResponse (Maybe Text) Source #

The generation ID of the policy version.

gpvrsIsDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool) Source #

Specifies whether the policy version is the default.