Copyright | (c) 2013-2015 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 for the application specified by the application ARN. You can create up to 500 assessments per AWS account.
See: AWS API Reference for CreateAssessment.
- createAssessment :: CreateAssessment
- data CreateAssessment
- caApplicationARN :: Lens' CreateAssessment (Maybe Text)
- caUserAttributesForFindings :: Lens' CreateAssessment [Attribute]
- caDurationInSeconds :: Lens' CreateAssessment (Maybe Int)
- caAssessmentName :: Lens' CreateAssessment (Maybe Text)
- createAssessmentResponse :: Int -> CreateAssessmentResponse
- data CreateAssessmentResponse
- crsAssessmentARN :: Lens' CreateAssessmentResponse (Maybe Text)
- crsResponseStatus :: Lens' CreateAssessmentResponse Int
Creating a Request
createAssessment :: CreateAssessment Source
Creates a value of CreateAssessment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateAssessment Source
See: createAssessment
smart constructor.
Request Lenses
caApplicationARN :: Lens' CreateAssessment (Maybe Text) Source
The ARN specifying the application for which you want to create an assessment.
caUserAttributesForFindings :: Lens' CreateAssessment [Attribute] Source
The user-defined attributes that are assigned to every finding generated by running this assessment.
caDurationInSeconds :: Lens' CreateAssessment (Maybe Int) Source
The duration of the assessment in seconds. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
caAssessmentName :: Lens' CreateAssessment (Maybe Text) Source
The user-defined name identifying the assessment that you want to create. You can create several assessments for an application. The names of the assessments corresponding to a particular application must be unique.
Destructuring the Response
createAssessmentResponse Source
Creates a value of CreateAssessmentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateAssessmentResponse Source
See: createAssessmentResponse
smart constructor.
Response Lenses
crsAssessmentARN :: Lens' CreateAssessmentResponse (Maybe Text) Source
The ARN specifying the assessment that is created.
crsResponseStatus :: Lens' CreateAssessmentResponse Int Source
The response status code.