deleteInstanceProfile method
Future<DeleteInstanceProfileResponse>
deleteInstanceProfile({
- required String instanceProfileIdentifier,
Deletes the specified instance profile.
May throw AccessDeniedFault.
May throw FailedDependencyFault.
May throw InvalidResourceStateFault.
May throw ResourceNotFoundFault.
Parameter instanceProfileIdentifier :
The identifier of the instance profile to delete.
Implementation
Future<DeleteInstanceProfileResponse> deleteInstanceProfile({
required String instanceProfileIdentifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.DeleteInstanceProfile'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'InstanceProfileIdentifier': instanceProfileIdentifier,
},
);
return DeleteInstanceProfileResponse.fromJson(jsonResponse.body);
}