Class LoggingState.Builder

  • Enclosing class:
    LoggingState

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

      • Builder

        public Builder()
    • Method Detail

      • bucketName

        public LoggingState.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 LoggingState.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 LoggingState.Builder clusterIdentifier​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> clusterIdentifier)
        Parameters:
        clusterIdentifier - Identifier of the source cluster. The following arguments are optional:
        Returns:
        builder
      • clusterIdentifier

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

        public LoggingState.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 LoggingState.Builder logDestinationType​(java.lang.String logDestinationType)
        Parameters:
        logDestinationType - Log destination type. Valid values are `s3` and `cloudwatch`.
        Returns:
        builder
      • logExports

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

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