ConfigurationSetEventDestinationEventDestination.fromMap constructor

ConfigurationSetEventDestinationEventDestination.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ConfigurationSetEventDestinationEventDestination.fromMap(Map<String, dynamic> map) {
  return ConfigurationSetEventDestinationEventDestination(
    cloudWatchDestination: (() { final guardedValue = map['cloudWatchDestination']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConfigurationSetEventDestinationEventDestinationCloudWatchDestination.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    enabled: (() { final guardedValue = map['enabled']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    eventBridgeDestination: (() { final guardedValue = map['eventBridgeDestination']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConfigurationSetEventDestinationEventDestinationEventBridgeDestination.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    kinesisFirehoseDestination: (() { final guardedValue = map['kinesisFirehoseDestination']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConfigurationSetEventDestinationEventDestinationKinesisFirehoseDestination.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    matchingEventTypes: pulumi.Input.fromValue((map['matchingEventTypes'] as List).cast<String>()),
    pinpointDestination: (() { final guardedValue = map['pinpointDestination']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConfigurationSetEventDestinationEventDestinationPinpointDestination.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    snsDestination: (() { final guardedValue = map['snsDestination']; if (guardedValue == null) return null; return pulumi.Input.fromValue(ConfigurationSetEventDestinationEventDestinationSnsDestination.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}