startBatchDeleteConfigurationTask method
Takes a list of configurationId as input and starts an asynchronous deletion task to remove the configurationItems. Returns a unique deletion task identifier.
May throw AuthorizationErrorException.
May throw HomeRegionNotSetException.
May throw InvalidParameterException.
May throw InvalidParameterValueException.
May throw LimitExceededException.
May throw OperationNotPermittedException.
May throw ServerInternalErrorException.
Parameter configurationIds :
The list of configuration IDs that will be deleted by the task.
Parameter configurationType :
The type of configuration item to delete. Supported types are: SERVER.
Implementation
Future<StartBatchDeleteConfigurationTaskResponse>
startBatchDeleteConfigurationTask({
required List<String> configurationIds,
required DeletionConfigurationItemType configurationType,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSPoseidonService_V2015_11_01.StartBatchDeleteConfigurationTask'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'configurationIds': configurationIds,
'configurationType': configurationType.value,
},
);
return StartBatchDeleteConfigurationTaskResponse.fromJson(
jsonResponse.body);
}