amazonka-fms-1.6.1: Amazon Firewall Management 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.FMS.GetPolicy

Contents

Description

Returns information about the specified AWS Firewall Manager policy.

Synopsis

Creating a Request

getPolicy Source #

Arguments

:: Text

gpPolicyId

-> 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:

  • gpPolicyId - The ID of the AWS Firewall Manager policy that you want the details for.

data GetPolicy Source #

See: getPolicy smart constructor.

Instances
Eq GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Data GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

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 # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Show GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Generic GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Associated Types

type Rep GetPolicy :: Type -> Type #

Hashable GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

ToJSON GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

AWSRequest GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Associated Types

type Rs GetPolicy :: Type #

ToHeaders GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Methods

toHeaders :: GetPolicy -> [Header] #

ToPath GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

ToQuery GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

NFData GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Methods

rnf :: GetPolicy -> () #

type Rep GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

type Rep GetPolicy = D1 (MetaData "GetPolicy" "Network.AWS.FMS.GetPolicy" "amazonka-fms-1.6.1-Jqf0mlmXXTcC8Iu5gYWu1a" True) (C1 (MetaCons "GetPolicy'" PrefixI True) (S1 (MetaSel (Just "_gpPolicyId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetPolicy Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Request Lenses

gpPolicyId :: Lens' GetPolicy Text Source #

The ID of the AWS Firewall Manager policy that you want the details for.

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 #

See: getPolicyResponse smart constructor.

Instances
Eq GetPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Data GetPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

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 # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Show GetPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Generic GetPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Associated Types

type Rep GetPolicyResponse :: Type -> Type #

NFData GetPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

Methods

rnf :: GetPolicyResponse -> () #

type Rep GetPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.GetPolicy

type Rep GetPolicyResponse = D1 (MetaData "GetPolicyResponse" "Network.AWS.FMS.GetPolicy" "amazonka-fms-1.6.1-Jqf0mlmXXTcC8Iu5gYWu1a" False) (C1 (MetaCons "GetPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_gprsPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Policy)) :*: S1 (MetaSel (Just "_gprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

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

The Amazon Resource Name (ARN) of the specified policy.

gprsPolicy :: Lens' GetPolicyResponse (Maybe Policy) Source #

Information about the specified AWS Firewall Manager policy.

gprsResponseStatus :: Lens' GetPolicyResponse Int Source #

  • - | The response status code.