disassociateProtectConfiguration method
Disassociate a protect configuration from a configuration set.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter configurationSetName :
The name of the ConfigurationSet.
Parameter protectConfigurationId :
The unique identifier for the protect configuration.
Implementation
Future<DisassociateProtectConfigurationResult>
disassociateProtectConfiguration({
required String configurationSetName,
required String protectConfigurationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.DisassociateProtectConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationSetName': configurationSetName,
'ProtectConfigurationId': protectConfigurationId,
},
);
return DisassociateProtectConfigurationResult.fromJson(jsonResponse.body);
}