| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AuditManager.CreateAssessment
Description
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.
Constructors
| CreateAssessment' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateAssessment, createAssessment_description - The optional description of the assessment to be created.
CreateAssessment, createAssessment_tags - The tags that are associated with the assessment.
CreateAssessment, createAssessment_name - The name of the assessment to be created.
CreateAssessment, createAssessment_assessmentReportsDestination - The assessment report storage destination for the assessment that's
being created.
CreateAssessment, createAssessment_scope - Undocumented member.
CreateAssessment, createAssessment_roles - The list of roles for the assessment.
CreateAssessment, createAssessment_frameworkId - The identifier for the framework that the assessment will be created
from.
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 that are 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 assessment that's being created.
createAssessment_scope :: Lens' CreateAssessment Scope Source #
Undocumented member.
createAssessment_roles :: Lens' CreateAssessment [Role] Source #
The list of roles for the assessment.
createAssessment_frameworkId :: Lens' CreateAssessment Text Source #
The identifier for the framework that the assessment will be created from.
Destructuring the Response
data CreateAssessmentResponse Source #
See: newCreateAssessmentResponse smart constructor.
Constructors
| CreateAssessmentResponse' | |
Fields
| |
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.