deleteResourceConfig method
Records the configuration state for a custom resource that has been deleted. This API records a new ConfigurationItem with a ResourceDeleted status. You can retrieve the ConfigurationItems recorded for this resource in your AWS Config History.
May throw ValidationException. May throw NoRunningConfigurationRecorderException.
Parameter resourceId
:
Unique identifier of the resource.
Parameter resourceType
:
The type of the resource.
Implementation
Future<void> deleteResourceConfig({
required String resourceId,
required String resourceType,
}) async {
ArgumentError.checkNotNull(resourceId, 'resourceId');
_s.validateStringLength(
'resourceId',
resourceId,
1,
768,
isRequired: true,
);
ArgumentError.checkNotNull(resourceType, 'resourceType');
_s.validateStringLength(
'resourceType',
resourceType,
1,
196,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DeleteResourceConfig'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceId': resourceId,
'ResourceType': resourceType,
},
);
}