updateDetectorVersionMetadata method
Updates the detector version's description. You can update the metadata
for any detector version (DRAFT, ACTIVE, or
INACTIVE).
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter description :
The description.
Parameter detectorId :
The detector ID.
Parameter detectorVersionId :
The detector version ID.
Implementation
Future<void> updateDetectorVersionMetadata({
required String description,
required String detectorId,
required String detectorVersionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.UpdateDetectorVersionMetadata'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'description': description,
'detectorId': detectorId,
'detectorVersionId': detectorVersionId,
},
);
}