amazonka-inspector-1.4.5: Amazon Inspector 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.Inspector.CreateAssessmentTarget

Contents

Description

Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup . You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets .

Synopsis

Creating a Request

createAssessmentTarget Source #

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

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

  • catAssessmentTargetName - The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.
  • catResourceGroupARN - The ARN that specifies the resource group that is used to create the assessment target.

data CreateAssessmentTarget Source #

See: createAssessmentTarget smart constructor.

Instances

Eq CreateAssessmentTarget Source # 
Data CreateAssessmentTarget Source # 

Methods

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

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

toConstr :: CreateAssessmentTarget -> Constr #

dataTypeOf :: CreateAssessmentTarget -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAssessmentTarget Source # 
Show CreateAssessmentTarget Source # 
Generic CreateAssessmentTarget Source # 
Hashable CreateAssessmentTarget Source # 
ToJSON CreateAssessmentTarget Source # 
NFData CreateAssessmentTarget Source # 

Methods

rnf :: CreateAssessmentTarget -> () #

AWSRequest CreateAssessmentTarget Source # 
ToPath CreateAssessmentTarget Source # 
ToHeaders CreateAssessmentTarget Source # 
ToQuery CreateAssessmentTarget Source # 
type Rep CreateAssessmentTarget Source # 
type Rep CreateAssessmentTarget = D1 (MetaData "CreateAssessmentTarget" "Network.AWS.Inspector.CreateAssessmentTarget" "amazonka-inspector-1.4.5-BnaqKobvF4QDYYHQ4DKRGB" False) (C1 (MetaCons "CreateAssessmentTarget'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_catAssessmentTargetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_catResourceGroupARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateAssessmentTarget Source # 

Request Lenses

catAssessmentTargetName :: Lens' CreateAssessmentTarget Text Source #

The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.

catResourceGroupARN :: Lens' CreateAssessmentTarget Text Source #

The ARN that specifies the resource group that is used to create the assessment target.

Destructuring the Response

createAssessmentTargetResponse Source #

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

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

data CreateAssessmentTargetResponse Source #

See: createAssessmentTargetResponse smart constructor.

Instances

Eq CreateAssessmentTargetResponse Source # 
Data CreateAssessmentTargetResponse Source # 

Methods

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

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

toConstr :: CreateAssessmentTargetResponse -> Constr #

dataTypeOf :: CreateAssessmentTargetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAssessmentTargetResponse Source # 
Show CreateAssessmentTargetResponse Source # 
Generic CreateAssessmentTargetResponse Source # 
NFData CreateAssessmentTargetResponse Source # 
type Rep CreateAssessmentTargetResponse Source # 
type Rep CreateAssessmentTargetResponse = D1 (MetaData "CreateAssessmentTargetResponse" "Network.AWS.Inspector.CreateAssessmentTarget" "amazonka-inspector-1.4.5-BnaqKobvF4QDYYHQ4DKRGB" False) (C1 (MetaCons "CreateAssessmentTargetResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_catrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_catrsAssessmentTargetARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

Response Lenses

catrsAssessmentTargetARN :: Lens' CreateAssessmentTargetResponse Text Source #

The ARN that specifies the assessment target that is created.