Class LogSubscriptionFilterState.Builder

  • Enclosing class:
    LogSubscriptionFilterState

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

      • applyOnTransformedLogs

        public LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.Builder destinationArn​(@Nullable
                                                                 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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.Builder filterPattern​(@Nullable
                                                                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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.Builder logGroup​(@Nullable
                                                           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 LogSubscriptionFilterState.Builder logGroup​(java.lang.String logGroup)
        Parameters:
        logGroup - Name of the log group to associate the subscription filter with.
        Returns:
        builder
      • name

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

        public LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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 LogSubscriptionFilterState.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