createTopicRuleDestination method

Future<CreateTopicRuleDestinationResponse> createTopicRuleDestination({
  1. required TopicRuleDestinationConfiguration destinationConfiguration,
})

Creates a topic rule destination. The destination must be confirmed prior to use.

May throw InternalException. May throw InvalidRequestException. May throw ResourceAlreadyExistsException. May throw ServiceUnavailableException. May throw ConflictingResourceUpdateException.

Parameter destinationConfiguration : The topic rule destination configuration.

Implementation

Future<CreateTopicRuleDestinationResponse> createTopicRuleDestination({
  required TopicRuleDestinationConfiguration destinationConfiguration,
}) async {
  ArgumentError.checkNotNull(
      destinationConfiguration, 'destinationConfiguration');
  final $payload = <String, dynamic>{
    'destinationConfiguration': destinationConfiguration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/destinations',
    exceptionFnMap: _exceptionFns,
  );
  return CreateTopicRuleDestinationResponse.fromJson(response);
}