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 for the application specified by the application ARN. You can create up to 500 assessments per AWS account.
- createAssessment :: Text -> Text -> Int -> CreateAssessment
- data CreateAssessment
- caUserAttributesForFindings :: Lens' CreateAssessment [Attribute]
- caApplicationARN :: Lens' CreateAssessment Text
- caAssessmentName :: Lens' CreateAssessment Text
- caDurationInSeconds :: Lens' CreateAssessment Int
- createAssessmentResponse :: Int -> CreateAssessmentResponse
- data CreateAssessmentResponse
- crsAssessmentARN :: Lens' CreateAssessmentResponse (Maybe Text)
- crsResponseStatus :: Lens' CreateAssessmentResponse Int
Creating a Request
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
caUserAttributesForFindings :: Lens' CreateAssessment [Attribute] Source
The user-defined attributes that are assigned to every finding generated by running this assessment.
caApplicationARN :: Lens' CreateAssessment Text Source
The ARN specifying the application for which you want to create an assessment.
caAssessmentName :: Lens' CreateAssessment 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.
caDurationInSeconds :: Lens' CreateAssessment 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).
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.