Class LoggingArgs.Builder

  • Enclosing class:
    LoggingArgs

    public static final class LoggingArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bucketName

        public LoggingArgs.Builder bucketName​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> bucketName)
        Parameters:
        bucketName - Name of an existing S3 bucket where the log files are to be stored. Required when `logDestinationType` is `s3`. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions. For more information on the permissions required for the bucket, please read the AWS [documentation](http://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-enable-logging)
        Returns:
        builder
      • bucketName

        public LoggingArgs.Builder bucketName​(java.lang.String bucketName)
        Parameters:
        bucketName - Name of an existing S3 bucket where the log files are to be stored. Required when `logDestinationType` is `s3`. Must be in the same region as the cluster and the cluster must have read bucket and put object permissions. For more information on the permissions required for the bucket, please read the AWS [documentation](http://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html#db-auditing-enable-logging)
        Returns:
        builder
      • clusterIdentifier

        public LoggingArgs.Builder clusterIdentifier​(com.pulumi.core.Output<java.lang.String> clusterIdentifier)
        Parameters:
        clusterIdentifier - Identifier of the source cluster. The following arguments are optional:
        Returns:
        builder
      • clusterIdentifier

        public LoggingArgs.Builder clusterIdentifier​(java.lang.String clusterIdentifier)
        Parameters:
        clusterIdentifier - Identifier of the source cluster. The following arguments are optional:
        Returns:
        builder
      • logDestinationType

        public LoggingArgs.Builder logDestinationType​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> logDestinationType)
        Parameters:
        logDestinationType - Log destination type. Valid values are `s3` and `cloudwatch`.
        Returns:
        builder
      • logDestinationType

        public LoggingArgs.Builder logDestinationType​(java.lang.String logDestinationType)
        Parameters:
        logDestinationType - Log destination type. Valid values are `s3` and `cloudwatch`.
        Returns:
        builder
      • logExports

        public LoggingArgs.Builder logExports​(@Nullable
                                              com.pulumi.core.Output<java.util.List<java.lang.String>> logExports)
        Parameters:
        logExports - Collection of exported log types. Required when `logDestinationType` is `cloudwatch`. Valid values are `connectionlog`, `useractivitylog`, and `userlog`.
        Returns:
        builder
      • logExports

        public LoggingArgs.Builder logExports​(java.util.List<java.lang.String> logExports)
        Parameters:
        logExports - Collection of exported log types. Required when `logDestinationType` is `cloudwatch`. Valid values are `connectionlog`, `useractivitylog`, and `userlog`.
        Returns:
        builder
      • logExports

        public LoggingArgs.Builder logExports​(java.lang.String... logExports)
        Parameters:
        logExports - Collection of exported log types. Required when `logDestinationType` is `cloudwatch`. Valid values are `connectionlog`, `useractivitylog`, and `userlog`.
        Returns:
        builder
      • region

        public LoggingArgs.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 LoggingArgs.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
      • s3KeyPrefix

        public LoggingArgs.Builder s3KeyPrefix​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> s3KeyPrefix)
        Parameters:
        s3KeyPrefix - Prefix applied to the log file names.
        Returns:
        builder
      • s3KeyPrefix

        public LoggingArgs.Builder s3KeyPrefix​(java.lang.String s3KeyPrefix)
        Parameters:
        s3KeyPrefix - Prefix applied to the log file names.
        Returns:
        builder