amazonka-config-1.6.1: Amazon Config 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.Config.PutConfigRule

Contents

Description

Adds or updates an AWS Config rule for evaluating whether your AWS resources comply with your desired configurations.

You can use this action for custom AWS Config rules and AWS managed Config rules. A custom AWS Config rule is a rule that you develop and maintain. An AWS managed Config rule is a customizable, predefined rule that AWS Config provides.

If you are adding a new custom AWS Config rule, you must first create the AWS Lambda function that the rule invokes to evaluate your resources. When you use the PutConfigRule action to add the rule to AWS Config, you must specify the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify the ARN for the SourceIdentifier key. This key is part of the Source object, which is part of the ConfigRule object.

If you are adding an AWS managed Config rule, specify the rule's identifier for the SourceIdentifier key. To reference AWS managed Config rule identifiers, see About AWS Managed Config Rules .

For any new rule that you add, specify the ConfigRuleName in the ConfigRule object. Do not specify the ConfigRuleArn or the ConfigRuleId . These values are generated by AWS Config for new rules.

If you are updating a rule that you added previously, you can specify the rule by ConfigRuleName , ConfigRuleId , or ConfigRuleArn in the ConfigRule data type that you use in this request.

The maximum number of rules that AWS Config supports is 50.

For information about requesting a rule limit increase, see AWS Config Limits in the AWS General Reference Guide .

For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide .

Synopsis

Creating a Request

putConfigRule Source #

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

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

data PutConfigRule Source #

See: putConfigRule smart constructor.

Instances
Eq PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Data PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Methods

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

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

toConstr :: PutConfigRule -> Constr #

dataTypeOf :: PutConfigRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Show PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Generic PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Associated Types

type Rep PutConfigRule :: Type -> Type #

Hashable PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

ToJSON PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

AWSRequest PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Associated Types

type Rs PutConfigRule :: Type #

ToHeaders PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

ToPath PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

ToQuery PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

NFData PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Methods

rnf :: PutConfigRule -> () #

type Rep PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

type Rep PutConfigRule = D1 (MetaData "PutConfigRule" "Network.AWS.Config.PutConfigRule" "amazonka-config-1.6.1-7ZYB8js37ntD2x5LWqLcCi" True) (C1 (MetaCons "PutConfigRule'" PrefixI True) (S1 (MetaSel (Just "_pcrConfigRule") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ConfigRule)))
type Rs PutConfigRule Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Request Lenses

pcrConfigRule :: Lens' PutConfigRule ConfigRule Source #

The rule that you want to add to your account.

Destructuring the Response

putConfigRuleResponse :: PutConfigRuleResponse Source #

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

data PutConfigRuleResponse Source #

See: putConfigRuleResponse smart constructor.

Instances
Eq PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Data PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Methods

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

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

toConstr :: PutConfigRuleResponse -> Constr #

dataTypeOf :: PutConfigRuleResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Show PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Generic PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Associated Types

type Rep PutConfigRuleResponse :: Type -> Type #

NFData PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

Methods

rnf :: PutConfigRuleResponse -> () #

type Rep PutConfigRuleResponse Source # 
Instance details

Defined in Network.AWS.Config.PutConfigRule

type Rep PutConfigRuleResponse = D1 (MetaData "PutConfigRuleResponse" "Network.AWS.Config.PutConfigRule" "amazonka-config-1.6.1-7ZYB8js37ntD2x5LWqLcCi" False) (C1 (MetaCons "PutConfigRuleResponse'" PrefixI False) (U1 :: Type -> Type))