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

Contents

Description

Creates an AWS Firewall Manager policy.

Synopsis

Creating a Request

putPolicy Source #

Arguments

:: Policy

ppPolicy

-> PutPolicy 

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

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

  • ppPolicy - The details of the AWS Firewall Manager policy to be created.

data PutPolicy Source #

See: putPolicy smart constructor.

Instances
Eq PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Data PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Methods

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

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

toConstr :: PutPolicy -> Constr #

dataTypeOf :: PutPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Show PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Generic PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Associated Types

type Rep PutPolicy :: Type -> Type #

Hashable PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

ToJSON PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

AWSRequest PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Associated Types

type Rs PutPolicy :: Type #

ToHeaders PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Methods

toHeaders :: PutPolicy -> [Header] #

ToPath PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

ToQuery PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

NFData PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Methods

rnf :: PutPolicy -> () #

type Rep PutPolicy Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

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

Defined in Network.AWS.FMS.PutPolicy

Request Lenses

ppPolicy :: Lens' PutPolicy Policy Source #

The details of the AWS Firewall Manager policy to be created.

Destructuring the Response

putPolicyResponse Source #

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

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

  • pprsPolicyARN - The Amazon Resource Name (ARN) of the policy that was created.
  • pprsPolicy - The details of the AWS Firewall Manager policy that was created.
  • pprsResponseStatus - -- | The response status code.

data PutPolicyResponse Source #

See: putPolicyResponse smart constructor.

Instances
Eq PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Data PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Methods

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

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

toConstr :: PutPolicyResponse -> Constr #

dataTypeOf :: PutPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Show PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Generic PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Associated Types

type Rep PutPolicyResponse :: Type -> Type #

NFData PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

Methods

rnf :: PutPolicyResponse -> () #

type Rep PutPolicyResponse Source # 
Instance details

Defined in Network.AWS.FMS.PutPolicy

type Rep PutPolicyResponse = D1 (MetaData "PutPolicyResponse" "Network.AWS.FMS.PutPolicy" "amazonka-fms-1.6.1-Jqf0mlmXXTcC8Iu5gYWu1a" False) (C1 (MetaCons "PutPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_pprsPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pprsPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Policy)) :*: S1 (MetaSel (Just "_pprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

pprsPolicyARN :: Lens' PutPolicyResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the policy that was created.

pprsPolicy :: Lens' PutPolicyResponse (Maybe Policy) Source #

The details of the AWS Firewall Manager policy that was created.

pprsResponseStatus :: Lens' PutPolicyResponse Int Source #

  • - | The response status code.