LogDelivery constructor

LogDelivery(
  1. String name, {
  2. LogDeliveryArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

LogDelivery(
  String name, {
  LogDeliveryArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:cloudwatch/logDelivery:LogDelivery',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  deliveryDestinationArn = registerOutput<String>('deliveryDestinationArn');
  deliverySourceName = registerOutput<String>('deliverySourceName');
  fieldDelimiter = registerOutput<String>('fieldDelimiter');
  recordFields = registerOutput<List<String>>('recordFields', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  region = registerOutput<String>('region');
  s3DeliveryConfigurations = registerOutput<List<LogDeliveryS3DeliveryConfiguration>>('s3DeliveryConfigurations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<LogDeliveryS3DeliveryConfiguration>(guardedValue, (value) => LogDeliveryS3DeliveryConfiguration.fromMap((value as Map).cast<String, dynamic>())); });
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}