EventDestination constructor

EventDestination(
  1. String name, {
  2. EventDestinationArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new EventDestination. name The Pulumi resource name. args Arguments used to configure this EventDestination. The set of arguments for EventDestination. options Resource options controlling this resource's behavior.

Implementation

EventDestination(
  String name, {
  EventDestinationArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:ses/eventDestination:EventDestination',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  cloudwatchDestinations = registerOutput<List<EventDestinationCloudwatchDestination>?>('cloudwatchDestinations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<EventDestinationCloudwatchDestination>(guardedValue, (value) => EventDestinationCloudwatchDestination.fromMap((value as Map).cast<String, dynamic>())); });
  configurationSetName = registerOutput<String>('configurationSetName');
  enabled = registerOutput<bool?>('enabled');
  kinesisDestination = registerOutput<EventDestinationKinesisDestination?>('kinesisDestination', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return EventDestinationKinesisDestination.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  matchingTypes = registerOutput<List<String>>('matchingTypes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  this.name = registerOutput<String>('name');
  region = registerOutput<String>('region');
  snsDestination = registerOutput<EventDestinationSnsDestination?>('snsDestination', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return EventDestinationSnsDestination.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}