| 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 |
Amazonka.AuditManager.BatchCreateDelegationByAssessment
Description
Create a batch of delegations for a specified 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.
$sel:assessmentId:BatchCreateDelegationByAssessment', batchCreateDelegationByAssessment_assessmentId - The identifier for the specified 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 specified 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:
$sel:delegations:BatchCreateDelegationByAssessmentResponse', batchCreateDelegationByAssessmentResponse_delegations - The delegations associated with the assessment.
$sel:errors:BatchCreateDelegationByAssessmentResponse', batchCreateDelegationByAssessmentResponse_errors - A list of errors returned by the BatchCreateDelegationByAssessment
API.
$sel:httpStatus:BatchCreateDelegationByAssessmentResponse', batchCreateDelegationByAssessmentResponse_httpStatus - The response's http status code.
Response Lenses
batchCreateDelegationByAssessmentResponse_delegations :: Lens' BatchCreateDelegationByAssessmentResponse (Maybe [Delegation]) Source #
The delegations associated with the assessment.
batchCreateDelegationByAssessmentResponse_errors :: Lens' BatchCreateDelegationByAssessmentResponse (Maybe [BatchCreateDelegationByAssessmentError]) Source #
A list of errors returned by the BatchCreateDelegationByAssessment
API.
batchCreateDelegationByAssessmentResponse_httpStatus :: Lens' BatchCreateDelegationByAssessmentResponse Int Source #
The response's http status code.