Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
- createAssessmentTemplate :: Text -> Text -> Natural -> CreateAssessmentTemplate
- data CreateAssessmentTemplate
- catUserAttributesForFindings :: Lens' CreateAssessmentTemplate [Attribute]
- catAssessmentTargetARN :: Lens' CreateAssessmentTemplate Text
- catAssessmentTemplateName :: Lens' CreateAssessmentTemplate Text
- catDurationInSeconds :: Lens' CreateAssessmentTemplate Natural
- catRulesPackageARNs :: Lens' CreateAssessmentTemplate [Text]
- createAssessmentTemplateResponse :: Int -> Text -> CreateAssessmentTemplateResponse
- data CreateAssessmentTemplateResponse
- crsResponseStatus :: Lens' CreateAssessmentTemplateResponse Int
- crsAssessmentTemplateARN :: Lens' CreateAssessmentTemplateResponse Text
Creating a Request
createAssessmentTemplate Source #
:: Text | |
-> Text | |
-> Natural | |
-> CreateAssessmentTemplate |
Creates a value of CreateAssessmentTemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateAssessmentTemplate Source #
See: createAssessmentTemplate
smart constructor.
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.
Response Lenses
crsResponseStatus :: Lens' CreateAssessmentTemplateResponse Int Source #
The response status code.
crsAssessmentTemplateARN :: Lens' CreateAssessmentTemplateResponse Text Source #
The ARN that specifies the assessment template that is created.