Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates an assessment in Audit Manager.
Synopsis
- data CreateAssessment = CreateAssessment' {
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- name :: Text
- assessmentReportsDestination :: AssessmentReportsDestination
- scope :: Scope
- roles :: [Role]
- frameworkId :: Text
- newCreateAssessment :: Text -> AssessmentReportsDestination -> Scope -> Text -> CreateAssessment
- createAssessment_description :: Lens' CreateAssessment (Maybe Text)
- createAssessment_tags :: Lens' CreateAssessment (Maybe (HashMap Text Text))
- createAssessment_name :: Lens' CreateAssessment Text
- createAssessment_assessmentReportsDestination :: Lens' CreateAssessment AssessmentReportsDestination
- createAssessment_scope :: Lens' CreateAssessment Scope
- createAssessment_roles :: Lens' CreateAssessment [Role]
- createAssessment_frameworkId :: Lens' CreateAssessment Text
- data CreateAssessmentResponse = CreateAssessmentResponse' {}
- newCreateAssessmentResponse :: Int -> CreateAssessmentResponse
- createAssessmentResponse_assessment :: Lens' CreateAssessmentResponse (Maybe Assessment)
- createAssessmentResponse_httpStatus :: Lens' CreateAssessmentResponse Int
Creating a Request
data CreateAssessment Source #
See: newCreateAssessment
smart constructor.
CreateAssessment' | |
|
Instances
:: Text | |
-> AssessmentReportsDestination | |
-> Scope | |
-> Text | |
-> CreateAssessment |
Create a value of CreateAssessment
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:description:CreateAssessment'
, createAssessment_description
- The optional description of the assessment to be created.
$sel:tags:CreateAssessment'
, createAssessment_tags
- The tags associated with the assessment.
$sel:name:CreateAssessment'
, createAssessment_name
- The name of the assessment to be created.
$sel:assessmentReportsDestination:CreateAssessment'
, createAssessment_assessmentReportsDestination
- The assessment report storage destination for the specified assessment
that is being created.
$sel:scope:CreateAssessment'
, createAssessment_scope
- Undocumented member.
$sel:roles:CreateAssessment'
, createAssessment_roles
- The list of roles for the specified assessment.
$sel:frameworkId:CreateAssessment'
, createAssessment_frameworkId
- The identifier for the specified framework.
Request Lenses
createAssessment_description :: Lens' CreateAssessment (Maybe Text) Source #
The optional description of the assessment to be created.
createAssessment_tags :: Lens' CreateAssessment (Maybe (HashMap Text Text)) Source #
The tags associated with the assessment.
createAssessment_name :: Lens' CreateAssessment Text Source #
The name of the assessment to be created.
createAssessment_assessmentReportsDestination :: Lens' CreateAssessment AssessmentReportsDestination Source #
The assessment report storage destination for the specified assessment that is being created.
createAssessment_scope :: Lens' CreateAssessment Scope Source #
Undocumented member.
createAssessment_roles :: Lens' CreateAssessment [Role] Source #
The list of roles for the specified assessment.
createAssessment_frameworkId :: Lens' CreateAssessment Text Source #
The identifier for the specified framework.
Destructuring the Response
data CreateAssessmentResponse Source #
See: newCreateAssessmentResponse
smart constructor.
CreateAssessmentResponse' | |
|
Instances
newCreateAssessmentResponse Source #
Create a value of CreateAssessmentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:assessment:CreateAssessmentResponse'
, createAssessmentResponse_assessment
- Undocumented member.
$sel:httpStatus:CreateAssessmentResponse'
, createAssessmentResponse_httpStatus
- The response's http status code.
Response Lenses
createAssessmentResponse_assessment :: Lens' CreateAssessmentResponse (Maybe Assessment) Source #
Undocumented member.
createAssessmentResponse_httpStatus :: Lens' CreateAssessmentResponse Int Source #
The response's http status code.