createTopicRuleDestination method
Future<CreateTopicRuleDestinationResponse>
createTopicRuleDestination({
- required TopicRuleDestinationConfiguration destinationConfiguration,
Creates a topic rule destination. The destination must be confirmed prior to use.
Requires permission to access the CreateTopicRuleDestination action.
May throw ConflictingResourceUpdateException.
May throw InternalException.
May throw InvalidRequestException.
May throw ResourceAlreadyExistsException.
May throw ServiceUnavailableException.
May throw UnauthorizedException.
Parameter destinationConfiguration :
The topic rule destination configuration.
Implementation
Future<CreateTopicRuleDestinationResponse> createTopicRuleDestination({
required TopicRuleDestinationConfiguration destinationConfiguration,
}) async {
final $payload = <String, dynamic>{
'destinationConfiguration': destinationConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/destinations',
exceptionFnMap: _exceptionFns,
);
return CreateTopicRuleDestinationResponse.fromJson(response);
}