| 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.BatchCreateDelegationByAssessment
Description
Creates a batch of delegations for an assessment in Audit Manager.
Synopsis
- data BatchCreateDelegationByAssessment = BatchCreateDelegationByAssessment' {}
- newBatchCreateDelegationByAssessment :: NonEmpty CreateDelegationRequest -> Text -> BatchCreateDelegationByAssessment
- batchCreateDelegationByAssessment_createDelegationRequests :: Lens' BatchCreateDelegationByAssessment (NonEmpty CreateDelegationRequest)
- batchCreateDelegationByAssessment_assessmentId :: Lens' BatchCreateDelegationByAssessment Text
- data BatchCreateDelegationByAssessmentResponse = BatchCreateDelegationByAssessmentResponse' {}
- newBatchCreateDelegationByAssessmentResponse :: Int -> BatchCreateDelegationByAssessmentResponse
- batchCreateDelegationByAssessmentResponse_delegations :: Lens' BatchCreateDelegationByAssessmentResponse (Maybe [Delegation])
- batchCreateDelegationByAssessmentResponse_errors :: Lens' BatchCreateDelegationByAssessmentResponse (Maybe [BatchCreateDelegationByAssessmentError])
- batchCreateDelegationByAssessmentResponse_httpStatus :: Lens' BatchCreateDelegationByAssessmentResponse Int
Creating a Request
data BatchCreateDelegationByAssessment Source #
See: newBatchCreateDelegationByAssessment smart constructor.
Constructors
| BatchCreateDelegationByAssessment' | |
Fields
| |
Instances
newBatchCreateDelegationByAssessment Source #
Arguments
| :: NonEmpty CreateDelegationRequest |
|
| -> Text | |
| -> BatchCreateDelegationByAssessment |
Create a value of BatchCreateDelegationByAssessment 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:createDelegationRequests:BatchCreateDelegationByAssessment', batchCreateDelegationByAssessment_createDelegationRequests - The API request to batch create delegations in Audit Manager.
BatchCreateDelegationByAssessment, batchCreateDelegationByAssessment_assessmentId - The identifier for the assessment.
Request Lenses
batchCreateDelegationByAssessment_createDelegationRequests :: Lens' BatchCreateDelegationByAssessment (NonEmpty CreateDelegationRequest) Source #
The API request to batch create delegations in Audit Manager.
batchCreateDelegationByAssessment_assessmentId :: Lens' BatchCreateDelegationByAssessment Text Source #
The identifier for the assessment.
Destructuring the Response
data BatchCreateDelegationByAssessmentResponse Source #
See: newBatchCreateDelegationByAssessmentResponse smart constructor.
Constructors
| BatchCreateDelegationByAssessmentResponse' | |
Fields
| |
Instances
newBatchCreateDelegationByAssessmentResponse Source #
Arguments
| :: Int | |
| -> BatchCreateDelegationByAssessmentResponse |
Create a value of BatchCreateDelegationByAssessmentResponse 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:
BatchCreateDelegationByAssessmentResponse, batchCreateDelegationByAssessmentResponse_delegations - The delegations that are associated with the assessment.
$sel:errors:BatchCreateDelegationByAssessmentResponse', batchCreateDelegationByAssessmentResponse_errors - A list of errors that the BatchCreateDelegationByAssessment API
returned.
$sel:httpStatus:BatchCreateDelegationByAssessmentResponse', batchCreateDelegationByAssessmentResponse_httpStatus - The response's http status code.
Response Lenses
batchCreateDelegationByAssessmentResponse_delegations :: Lens' BatchCreateDelegationByAssessmentResponse (Maybe [Delegation]) Source #
The delegations that are associated with the assessment.
batchCreateDelegationByAssessmentResponse_errors :: Lens' BatchCreateDelegationByAssessmentResponse (Maybe [BatchCreateDelegationByAssessmentError]) Source #
A list of errors that the BatchCreateDelegationByAssessment API
returned.
batchCreateDelegationByAssessmentResponse_httpStatus :: Lens' BatchCreateDelegationByAssessmentResponse Int Source #
The response's http status code.