Class LogSubscriptionFilterArgs.Builder

  • Enclosing class:
    LogSubscriptionFilterArgs

    public static final class LogSubscriptionFilterArgs.Builder
    extends java.lang.Object
    • Method Detail

      • applyOnTransformedLogs

        public LogSubscriptionFilterArgs.Builder applyOnTransformedLogs​(@Nullable
                                                                        com.pulumi.core.Output<java.lang.Boolean> applyOnTransformedLogs)
        Parameters:
        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.
        Returns:
        builder
      • applyOnTransformedLogs

        public LogSubscriptionFilterArgs.Builder applyOnTransformedLogs​(java.lang.Boolean applyOnTransformedLogs)
        Parameters:
        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.
        Returns:
        builder
      • destinationArn

        public LogSubscriptionFilterArgs.Builder destinationArn​(com.pulumi.core.Output<java.lang.String> destinationArn)
        Parameters:
        destinationArn - ARN of the destination to deliver matching log events to. Kinesis stream or Lambda function ARN.
        Returns:
        builder
      • destinationArn

        public LogSubscriptionFilterArgs.Builder destinationArn​(java.lang.String destinationArn)
        Parameters:
        destinationArn - ARN of the destination to deliver matching log events to. Kinesis stream or Lambda function ARN.
        Returns:
        builder
      • distribution

        public LogSubscriptionFilterArgs.Builder distribution​(@Nullable
                                                              com.pulumi.core.Output<java.lang.String> distribution)
        Parameters:
        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".
        Returns:
        builder
      • distribution

        public LogSubscriptionFilterArgs.Builder distribution​(java.lang.String distribution)
        Parameters:
        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".
        Returns:
        builder
      • emitSystemFields

        public LogSubscriptionFilterArgs.Builder emitSystemFields​(@Nullable
                                                                  com.pulumi.core.Output<java.util.List<java.lang.String>> emitSystemFields)
        Parameters:
        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.
        Returns:
        builder
      • emitSystemFields

        public LogSubscriptionFilterArgs.Builder emitSystemFields​(java.util.List<java.lang.String> emitSystemFields)
        Parameters:
        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.
        Returns:
        builder
      • emitSystemFields

        public LogSubscriptionFilterArgs.Builder emitSystemFields​(java.lang.String... emitSystemFields)
        Parameters:
        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.
        Returns:
        builder
      • filterPattern

        public LogSubscriptionFilterArgs.Builder filterPattern​(com.pulumi.core.Output<java.lang.String> filterPattern)
        Parameters:
        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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
        Returns:
        builder
      • filterPattern

        public LogSubscriptionFilterArgs.Builder filterPattern​(java.lang.String filterPattern)
        Parameters:
        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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
        Returns:
        builder
      • logGroup

        public LogSubscriptionFilterArgs.Builder logGroup​(com.pulumi.core.Output<java.lang.String> logGroup)
        Parameters:
        logGroup - Name of the log group to associate the subscription filter with.
        Returns:
        builder
      • logGroup

        public LogSubscriptionFilterArgs.Builder logGroup​(java.lang.String logGroup)
        Parameters:
        logGroup - Name of the log group to associate the subscription filter with.
        Returns:
        builder
      • name

        public LogSubscriptionFilterArgs.Builder name​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name for the subscription filter.
        Returns:
        builder
      • region

        public LogSubscriptionFilterArgs.Builder region​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public LogSubscriptionFilterArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • roleArn

        public LogSubscriptionFilterArgs.Builder roleArn​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> roleArn)
        Parameters:
        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.
        Returns:
        builder
      • roleArn

        public LogSubscriptionFilterArgs.Builder roleArn​(java.lang.String roleArn)
        Parameters:
        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.
        Returns:
        builder