LogSubscriptionFilterArgs constructor

const LogSubscriptionFilterArgs({
  1. Input<bool?>? applyOnTransformedLogs,
  2. required Input<String> destinationArn,
  3. Input<String?>? distribution,
  4. Input<List<String>?>? emitSystemFields,
  5. required Input<String> filterPattern,
  6. required Input logGroup,
  7. Input<String?>? name,
  8. Input<String?>? region,
  9. Input<String?>? roleArn,
})

Creates a new LogSubscriptionFilterArgs. applyOnTransformedLogs Boolean to indicate whether to apply the subscription filter on the transformed version of the log events instead of the original ingested log events. Defaults to false. Valid only for log groups that have an active log transformer. destinationArn ARN of the destination to deliver matching log events to. Kinesis stream or Lambda function ARN. distribution Method used to distribute log data to the destination. By default log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream. Valid values are "Random" and "ByLogStream". emitSystemFields List of system fields to include in the log events sent to the subscription destination. These fields provide source information for centralized log data in the forwarded payload. Valid values: "@aws.account", "@aws.region", "@source.log". To remove this argument after it has been set, specify an empty list [] explicitly to avoid perpetual differences. filterPattern Valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events. Use empty string "" to match everything. For more information, see the Amazon CloudWatch Logs User Guide. logGroup Name of the log group to associate the subscription filter with. name Name for the subscription filter. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. roleArn ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery. If you use Lambda as a destination, you should skip this argument and use aws.lambda.Permission resource for granting access from CloudWatch logs to the destination Lambda function.

Implementation

const LogSubscriptionFilterArgs({
  this.applyOnTransformedLogs,
  required this.destinationArn,
  this.distribution,
  this.emitSystemFields,
  required this.filterPattern,
  required this.logGroup,
  this.name,
  this.region,
  this.roleArn,
});