Package com.pulumi.aws.redshift
Class LoggingArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.redshift.LoggingArgs.Builder
-
- Enclosing class:
- LoggingArgs
public static final class LoggingArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(LoggingArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingArgs.BuilderbucketName(com.pulumi.core.Output<java.lang.String> bucketName)LoggingArgs.BuilderbucketName(java.lang.String bucketName)LoggingArgsbuild()LoggingArgs.BuilderclusterIdentifier(com.pulumi.core.Output<java.lang.String> clusterIdentifier)LoggingArgs.BuilderclusterIdentifier(java.lang.String clusterIdentifier)LoggingArgs.BuilderlogDestinationType(com.pulumi.core.Output<java.lang.String> logDestinationType)LoggingArgs.BuilderlogDestinationType(java.lang.String logDestinationType)LoggingArgs.BuilderlogExports(com.pulumi.core.Output<java.util.List<java.lang.String>> logExports)LoggingArgs.BuilderlogExports(java.lang.String... logExports)LoggingArgs.BuilderlogExports(java.util.List<java.lang.String> logExports)LoggingArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)LoggingArgs.Builderregion(java.lang.String region)LoggingArgs.Builders3KeyPrefix(com.pulumi.core.Output<java.lang.String> s3KeyPrefix)LoggingArgs.Builders3KeyPrefix(java.lang.String s3KeyPrefix)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(LoggingArgs defaults)
-
-
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
-
build
public LoggingArgs build()
-
-