amazonka-inspector-1.4.3: 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.CreateAssessmentTemplate

Contents

Description

Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.

Synopsis

Creating a Request

data CreateAssessmentTemplate Source #

See: createAssessmentTemplate smart constructor.

Instances

Eq CreateAssessmentTemplate Source # 
Data CreateAssessmentTemplate Source # 

Methods

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

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

toConstr :: CreateAssessmentTemplate -> Constr #

dataTypeOf :: CreateAssessmentTemplate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAssessmentTemplate Source # 
Show CreateAssessmentTemplate Source # 
Generic CreateAssessmentTemplate Source # 
ToJSON CreateAssessmentTemplate Source # 
Hashable CreateAssessmentTemplate Source # 
NFData CreateAssessmentTemplate Source # 
AWSRequest CreateAssessmentTemplate Source # 
ToPath CreateAssessmentTemplate Source # 
ToHeaders CreateAssessmentTemplate Source # 
ToQuery CreateAssessmentTemplate Source # 
type Rep CreateAssessmentTemplate Source # 
type Rep CreateAssessmentTemplate = D1 (MetaData "CreateAssessmentTemplate" "Network.AWS.Inspector.CreateAssessmentTemplate" "amazonka-inspector-1.4.3-AoGuICBaM0g4MKaNwH6mLK" False) (C1 (MetaCons "CreateAssessmentTemplate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_catUserAttributesForFindings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute]))) (S1 (MetaSel (Just Symbol "_catAssessmentTargetARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_catAssessmentTemplateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_catDurationInSeconds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)) (S1 (MetaSel (Just Symbol "_catRulesPackageARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))))
type Rs CreateAssessmentTemplate Source # 

Request Lenses

catUserAttributesForFindings :: Lens' CreateAssessmentTemplate [Attribute] Source #

The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.

catAssessmentTargetARN :: Lens' CreateAssessmentTemplate Text Source #

The ARN that specifies the assessment target for which you want to create the assessment template.

catAssessmentTemplateName :: Lens' CreateAssessmentTemplate Text Source #

The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.

catDurationInSeconds :: Lens' CreateAssessmentTemplate Natural Source #

The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).

catRulesPackageARNs :: Lens' CreateAssessmentTemplate [Text] Source #

The ARNs that specify the rules packages that you want to attach to the assessment template.

Destructuring the Response

createAssessmentTemplateResponse Source #

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

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

data CreateAssessmentTemplateResponse Source #

See: createAssessmentTemplateResponse smart constructor.

Instances

Eq CreateAssessmentTemplateResponse Source # 
Data CreateAssessmentTemplateResponse Source # 

Methods

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

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

toConstr :: CreateAssessmentTemplateResponse -> Constr #

dataTypeOf :: CreateAssessmentTemplateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAssessmentTemplateResponse Source # 
Show CreateAssessmentTemplateResponse Source # 
Generic CreateAssessmentTemplateResponse Source # 
NFData CreateAssessmentTemplateResponse Source # 
type Rep CreateAssessmentTemplateResponse Source # 
type Rep CreateAssessmentTemplateResponse = D1 (MetaData "CreateAssessmentTemplateResponse" "Network.AWS.Inspector.CreateAssessmentTemplate" "amazonka-inspector-1.4.3-AoGuICBaM0g4MKaNwH6mLK" False) (C1 (MetaCons "CreateAssessmentTemplateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_crsAssessmentTemplateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

Response Lenses

crsAssessmentTemplateARN :: Lens' CreateAssessmentTemplateResponse Text Source #

The ARN that specifies the assessment template that is created.