associateProtectConfiguration method
Associate a protect configuration with a configuration set. This replaces the configuration sets current protect configuration. A configuration set can only be associated with one protect configuration at a time. A protect configuration can be associated with multiple configuration sets.
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<AssociateProtectConfigurationResult> associateProtectConfiguration({
required String configurationSetName,
required String protectConfigurationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.AssociateProtectConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationSetName': configurationSetName,
'ProtectConfigurationId': protectConfigurationId,
},
);
return AssociateProtectConfigurationResult.fromJson(jsonResponse.body);
}