Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.redshift.getCluster
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides details about a specific redshift cluster.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.RedshiftFunctions;
import com.pulumi.aws.redshift.inputs.GetClusterArgs;
import com.pulumi.aws.kinesis.FirehoseDeliveryStream;
import com.pulumi.aws.kinesis.FirehoseDeliveryStreamArgs;
import com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamRedshiftConfigurationArgs;
import com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamRedshiftConfigurationS3ConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = RedshiftFunctions.getCluster(GetClusterArgs.builder()
.clusterIdentifier("example-cluster")
.build());
var exampleStream = new FirehoseDeliveryStream("exampleStream", FirehoseDeliveryStreamArgs.builder()
.name("kinesis-firehose-example-stream")
.destination("redshift")
.redshiftConfiguration(FirehoseDeliveryStreamRedshiftConfigurationArgs.builder()
.roleArn(firehoseRole.arn())
.clusterJdbcurl(String.format("jdbc:redshift://%s/%s", example.applyValue(getClusterResult -> getClusterResult.endpoint()),example.applyValue(getClusterResult -> getClusterResult.databaseName())))
.username("exampleuser")
.password("Exampl3Pass")
.dataTableName("example-table")
.copyOptions("delimiter '|'")
.dataTableColumns("example-col")
.s3Configuration(FirehoseDeliveryStreamRedshiftConfigurationS3ConfigurationArgs.builder()
.roleArn(firehoseRole.arn())
.bucketArn(bucket.arn())
.bufferSize(10)
.bufferInterval(400)
.compressionFormat("GZIP")
.build())
.build())
.build());
}
}
resources:
exampleStream:
type: aws:kinesis:FirehoseDeliveryStream
name: example_stream
properties:
name: kinesis-firehose-example-stream
destination: redshift
redshiftConfiguration:
roleArn: ${firehoseRole.arn}
clusterJdbcurl: jdbc:redshift://${example.endpoint}/${example.databaseName}
username: exampleuser
password: Exampl3Pass
dataTableName: example-table
copyOptions: delimiter '|'
dataTableColumns: example-col
s3Configuration:
roleArn: ${firehoseRole.arn}
bucketArn: ${bucket.arn}
bufferSize: 10
bufferInterval: 400
compressionFormat: GZIP
variables:
example:
fn::invoke:
Function: aws:redshift:getCluster
Arguments:
clusterIdentifier: example-cluster
Using getCluster
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>
def get_cluster(cluster_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(cluster_identifier: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]
func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput
> Note: This function is named LookupCluster
in the Go SDK.
public static class GetCluster
{
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:redshift/getCluster:getCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Identifier string - Cluster identifier
- Dictionary<string, string>
- Tags associated to the cluster
- Cluster
Identifier string - Cluster identifier
- map[string]string
- Tags associated to the cluster
- cluster
Identifier String - Cluster identifier
- Map<String,String>
- Tags associated to the cluster
- cluster
Identifier string - Cluster identifier
- {[key: string]: string}
- Tags associated to the cluster
- cluster_
identifier str - Cluster identifier
- Mapping[str, str]
- Tags associated to the cluster
- cluster
Identifier String - Cluster identifier
- Map<String>
- Tags associated to the cluster
getCluster Result
The following output properties are available:
- Allow
Version boolUpgrade - Whether major version upgrades can be applied during maintenance period
- Aqua
Configuration stringStatus - The value represents how the cluster is configured to use AQUA.
- Arn string
- ARN of cluster.
- Automated
Snapshot intRetention Period - The backup retention period
- Availability
Zone string - Availability zone of the cluster
- Availability
Zone boolRelocation Enabled - Indicates whether the cluster is able to be relocated to another availability zone.
- Bucket
Name string - Name of the S3 bucket where the log files are to be stored
- Cluster
Identifier string - Cluster identifier
- Cluster
Namespace stringArn - The namespace Amazon Resource Name (ARN) of the cluster
- Cluster
Nodes List<Pulumi.Aws. Red Shift. Outputs. Get Cluster Cluster Node> - Nodes in the cluster. Cluster node blocks are documented below
- Cluster
Parameter stringGroup Name - The name of the parameter group to be associated with this cluster
- Cluster
Public stringKey - Public key for the cluster
- Cluster
Revision stringNumber - The cluster revision number
- Cluster
Subnet stringGroup Name - The name of a cluster subnet group to be associated with this cluster
- Cluster
Type string - Cluster type
- Cluster
Version string - Database
Name string - Name of the default database in the cluster
- Default
Iam stringRole Arn - The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- Elastic
Ip string - Elastic IP of the cluster
- Enable
Logging bool - Whether cluster logging is enabled
- Encrypted bool
- Whether the cluster data is encrypted
- Endpoint string
- Cluster endpoint
- Enhanced
Vpc boolRouting - Whether enhanced VPC routing is enabled
- Iam
Roles List<string> - IAM roles associated to the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - KMS encryption key associated to the cluster
- Log
Destination stringType - The log destination type.
- Log
Exports List<string> - Collection of exported log types. Log types include the connection log, user log and user activity log.
- Maintenance
Track stringName - The name of the maintenance track for the restored cluster.
- Manual
Snapshot intRetention Period - (Optional) The default number of days to retain a manual snapshot.
- Master
Username string - Username for the master DB user
- Multi
Az bool - If the cluster is a Multi-AZ deployment
- Node
Type string - Cluster node type
- Number
Of intNodes - Number of nodes in the cluster
- Port int
- Port the cluster responds on
- Preferred
Maintenance stringWindow - The maintenance window
- Publicly
Accessible bool - Whether the cluster is publicly accessible
- S3Key
Prefix string - Folder inside the S3 bucket where the log files are stored
- Dictionary<string, string>
- Tags associated to the cluster
- Vpc
Id string - VPC Id associated with the cluster
- Vpc
Security List<string>Group Ids - The VPC security group Ids associated with the cluster
- Allow
Version boolUpgrade - Whether major version upgrades can be applied during maintenance period
- Aqua
Configuration stringStatus - The value represents how the cluster is configured to use AQUA.
- Arn string
- ARN of cluster.
- Automated
Snapshot intRetention Period - The backup retention period
- Availability
Zone string - Availability zone of the cluster
- Availability
Zone boolRelocation Enabled - Indicates whether the cluster is able to be relocated to another availability zone.
- Bucket
Name string - Name of the S3 bucket where the log files are to be stored
- Cluster
Identifier string - Cluster identifier
- Cluster
Namespace stringArn - The namespace Amazon Resource Name (ARN) of the cluster
- Cluster
Nodes []GetCluster Cluster Node - Nodes in the cluster. Cluster node blocks are documented below
- Cluster
Parameter stringGroup Name - The name of the parameter group to be associated with this cluster
- Cluster
Public stringKey - Public key for the cluster
- Cluster
Revision stringNumber - The cluster revision number
- Cluster
Subnet stringGroup Name - The name of a cluster subnet group to be associated with this cluster
- Cluster
Type string - Cluster type
- Cluster
Version string - Database
Name string - Name of the default database in the cluster
- Default
Iam stringRole Arn - The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- Elastic
Ip string - Elastic IP of the cluster
- Enable
Logging bool - Whether cluster logging is enabled
- Encrypted bool
- Whether the cluster data is encrypted
- Endpoint string
- Cluster endpoint
- Enhanced
Vpc boolRouting - Whether enhanced VPC routing is enabled
- Iam
Roles []string - IAM roles associated to the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - KMS encryption key associated to the cluster
- Log
Destination stringType - The log destination type.
- Log
Exports []string - Collection of exported log types. Log types include the connection log, user log and user activity log.
- Maintenance
Track stringName - The name of the maintenance track for the restored cluster.
- Manual
Snapshot intRetention Period - (Optional) The default number of days to retain a manual snapshot.
- Master
Username string - Username for the master DB user
- Multi
Az bool - If the cluster is a Multi-AZ deployment
- Node
Type string - Cluster node type
- Number
Of intNodes - Number of nodes in the cluster
- Port int
- Port the cluster responds on
- Preferred
Maintenance stringWindow - The maintenance window
- Publicly
Accessible bool - Whether the cluster is publicly accessible
- S3Key
Prefix string - Folder inside the S3 bucket where the log files are stored
- map[string]string
- Tags associated to the cluster
- Vpc
Id string - VPC Id associated with the cluster
- Vpc
Security []stringGroup Ids - The VPC security group Ids associated with the cluster
- allow
Version BooleanUpgrade - Whether major version upgrades can be applied during maintenance period
- aqua
Configuration StringStatus - The value represents how the cluster is configured to use AQUA.
- arn String
- ARN of cluster.
- automated
Snapshot IntegerRetention Period - The backup retention period
- availability
Zone String - Availability zone of the cluster
- availability
Zone BooleanRelocation Enabled - Indicates whether the cluster is able to be relocated to another availability zone.
- bucket
Name String - Name of the S3 bucket where the log files are to be stored
- cluster
Identifier String - Cluster identifier
- cluster
Namespace StringArn - The namespace Amazon Resource Name (ARN) of the cluster
- cluster
Nodes List<GetCluster Cluster Node> - Nodes in the cluster. Cluster node blocks are documented below
- cluster
Parameter StringGroup Name - The name of the parameter group to be associated with this cluster
- cluster
Public StringKey - Public key for the cluster
- cluster
Revision StringNumber - The cluster revision number
- cluster
Subnet StringGroup Name - The name of a cluster subnet group to be associated with this cluster
- cluster
Type String - Cluster type
- cluster
Version String - database
Name String - Name of the default database in the cluster
- default
Iam StringRole Arn - The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elastic
Ip String - Elastic IP of the cluster
- enable
Logging Boolean - Whether cluster logging is enabled
- encrypted Boolean
- Whether the cluster data is encrypted
- endpoint String
- Cluster endpoint
- enhanced
Vpc BooleanRouting - Whether enhanced VPC routing is enabled
- iam
Roles List<String> - IAM roles associated to the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - KMS encryption key associated to the cluster
- log
Destination StringType - The log destination type.
- log
Exports List<String> - Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenance
Track StringName - The name of the maintenance track for the restored cluster.
- manual
Snapshot IntegerRetention Period - (Optional) The default number of days to retain a manual snapshot.
- master
Username String - Username for the master DB user
- multi
Az Boolean - If the cluster is a Multi-AZ deployment
- node
Type String - Cluster node type
- number
Of IntegerNodes - Number of nodes in the cluster
- port Integer
- Port the cluster responds on
- preferred
Maintenance StringWindow - The maintenance window
- publicly
Accessible Boolean - Whether the cluster is publicly accessible
- s3Key
Prefix String - Folder inside the S3 bucket where the log files are stored
- Map<String,String>
- Tags associated to the cluster
- vpc
Id String - VPC Id associated with the cluster
- vpc
Security List<String>Group Ids - The VPC security group Ids associated with the cluster
- allow
Version booleanUpgrade - Whether major version upgrades can be applied during maintenance period
- aqua
Configuration stringStatus - The value represents how the cluster is configured to use AQUA.
- arn string
- ARN of cluster.
- automated
Snapshot numberRetention Period - The backup retention period
- availability
Zone string - Availability zone of the cluster
- availability
Zone booleanRelocation Enabled - Indicates whether the cluster is able to be relocated to another availability zone.
- bucket
Name string - Name of the S3 bucket where the log files are to be stored
- cluster
Identifier string - Cluster identifier
- cluster
Namespace stringArn - The namespace Amazon Resource Name (ARN) of the cluster
- cluster
Nodes GetCluster Cluster Node[] - Nodes in the cluster. Cluster node blocks are documented below
- cluster
Parameter stringGroup Name - The name of the parameter group to be associated with this cluster
- cluster
Public stringKey - Public key for the cluster
- cluster
Revision stringNumber - The cluster revision number
- cluster
Subnet stringGroup Name - The name of a cluster subnet group to be associated with this cluster
- cluster
Type string - Cluster type
- cluster
Version string - database
Name string - Name of the default database in the cluster
- default
Iam stringRole Arn - The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elastic
Ip string - Elastic IP of the cluster
- enable
Logging boolean - Whether cluster logging is enabled
- encrypted boolean
- Whether the cluster data is encrypted
- endpoint string
- Cluster endpoint
- enhanced
Vpc booleanRouting - Whether enhanced VPC routing is enabled
- iam
Roles string[] - IAM roles associated to the cluster
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId - KMS encryption key associated to the cluster
- log
Destination stringType - The log destination type.
- log
Exports string[] - Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenance
Track stringName - The name of the maintenance track for the restored cluster.
- manual
Snapshot numberRetention Period - (Optional) The default number of days to retain a manual snapshot.
- master
Username string - Username for the master DB user
- multi
Az boolean - If the cluster is a Multi-AZ deployment
- node
Type string - Cluster node type
- number
Of numberNodes - Number of nodes in the cluster
- port number
- Port the cluster responds on
- preferred
Maintenance stringWindow - The maintenance window
- publicly
Accessible boolean - Whether the cluster is publicly accessible
- s3Key
Prefix string - Folder inside the S3 bucket where the log files are stored
- {[key: string]: string}
- Tags associated to the cluster
- vpc
Id string - VPC Id associated with the cluster
- vpc
Security string[]Group Ids - The VPC security group Ids associated with the cluster
- allow_
version_ boolupgrade - Whether major version upgrades can be applied during maintenance period
- aqua_
configuration_ strstatus - The value represents how the cluster is configured to use AQUA.
- arn str
- ARN of cluster.
- automated_
snapshot_ intretention_ period - The backup retention period
- availability_
zone str - Availability zone of the cluster
- availability_
zone_ boolrelocation_ enabled - Indicates whether the cluster is able to be relocated to another availability zone.
- bucket_
name str - Name of the S3 bucket where the log files are to be stored
- cluster_
identifier str - Cluster identifier
- cluster_
namespace_ strarn - The namespace Amazon Resource Name (ARN) of the cluster
- cluster_
nodes Sequence[GetCluster Cluster Node] - Nodes in the cluster. Cluster node blocks are documented below
- cluster_
parameter_ strgroup_ name - The name of the parameter group to be associated with this cluster
- cluster_
public_ strkey - Public key for the cluster
- cluster_
revision_ strnumber - The cluster revision number
- cluster_
subnet_ strgroup_ name - The name of a cluster subnet group to be associated with this cluster
- cluster_
type str - Cluster type
- cluster_
version str - database_
name str - Name of the default database in the cluster
- default_
iam_ strrole_ arn - The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elastic_
ip str - Elastic IP of the cluster
- enable_
logging bool - Whether cluster logging is enabled
- encrypted bool
- Whether the cluster data is encrypted
- endpoint str
- Cluster endpoint
- enhanced_
vpc_ boolrouting - Whether enhanced VPC routing is enabled
- iam_
roles Sequence[str] - IAM roles associated to the cluster
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strid - KMS encryption key associated to the cluster
- log_
destination_ strtype - The log destination type.
- log_
exports Sequence[str] - Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenance_
track_ strname - The name of the maintenance track for the restored cluster.
- manual_
snapshot_ intretention_ period - (Optional) The default number of days to retain a manual snapshot.
- master_
username str - Username for the master DB user
- multi_
az bool - If the cluster is a Multi-AZ deployment
- node_
type str - Cluster node type
- number_
of_ intnodes - Number of nodes in the cluster
- port int
- Port the cluster responds on
- preferred_
maintenance_ strwindow - The maintenance window
- publicly_
accessible bool - Whether the cluster is publicly accessible
- s3_
key_ strprefix - Folder inside the S3 bucket where the log files are stored
- Mapping[str, str]
- Tags associated to the cluster
- vpc_
id str - VPC Id associated with the cluster
- vpc_
security_ Sequence[str]group_ ids - The VPC security group Ids associated with the cluster
- allow
Version BooleanUpgrade - Whether major version upgrades can be applied during maintenance period
- aqua
Configuration StringStatus - The value represents how the cluster is configured to use AQUA.
- arn String
- ARN of cluster.
- automated
Snapshot NumberRetention Period - The backup retention period
- availability
Zone String - Availability zone of the cluster
- availability
Zone BooleanRelocation Enabled - Indicates whether the cluster is able to be relocated to another availability zone.
- bucket
Name String - Name of the S3 bucket where the log files are to be stored
- cluster
Identifier String - Cluster identifier
- cluster
Namespace StringArn - The namespace Amazon Resource Name (ARN) of the cluster
- cluster
Nodes List<Property Map> - Nodes in the cluster. Cluster node blocks are documented below
- cluster
Parameter StringGroup Name - The name of the parameter group to be associated with this cluster
- cluster
Public StringKey - Public key for the cluster
- cluster
Revision StringNumber - The cluster revision number
- cluster
Subnet StringGroup Name - The name of a cluster subnet group to be associated with this cluster
- cluster
Type String - Cluster type
- cluster
Version String - database
Name String - Name of the default database in the cluster
- default
Iam StringRole Arn - The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elastic
Ip String - Elastic IP of the cluster
- enable
Logging Boolean - Whether cluster logging is enabled
- encrypted Boolean
- Whether the cluster data is encrypted
- endpoint String
- Cluster endpoint
- enhanced
Vpc BooleanRouting - Whether enhanced VPC routing is enabled
- iam
Roles List<String> - IAM roles associated to the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - KMS encryption key associated to the cluster
- log
Destination StringType - The log destination type.
- log
Exports List<String> - Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenance
Track StringName - The name of the maintenance track for the restored cluster.
- manual
Snapshot NumberRetention Period - (Optional) The default number of days to retain a manual snapshot.
- master
Username String - Username for the master DB user
- multi
Az Boolean - If the cluster is a Multi-AZ deployment
- node
Type String - Cluster node type
- number
Of NumberNodes - Number of nodes in the cluster
- port Number
- Port the cluster responds on
- preferred
Maintenance StringWindow - The maintenance window
- publicly
Accessible Boolean - Whether the cluster is publicly accessible
- s3Key
Prefix String - Folder inside the S3 bucket where the log files are stored
- Map<String>
- Tags associated to the cluster
- vpc
Id String - VPC Id associated with the cluster
- vpc
Security List<String>Group Ids - The VPC security group Ids associated with the cluster
Supporting Types
GetClusterClusterNode
- Node
Role string - Whether the node is a leader node or a compute node
- Private
Ip stringAddress - Private IP address of a node within a cluster
- Public
Ip stringAddress - Public IP address of a node within a cluster
- Node
Role string - Whether the node is a leader node or a compute node
- Private
Ip stringAddress - Private IP address of a node within a cluster
- Public
Ip stringAddress - Public IP address of a node within a cluster
- node
Role String - Whether the node is a leader node or a compute node
- private
Ip StringAddress - Private IP address of a node within a cluster
- public
Ip StringAddress - Public IP address of a node within a cluster
- node
Role string - Whether the node is a leader node or a compute node
- private
Ip stringAddress - Private IP address of a node within a cluster
- public
Ip stringAddress - Public IP address of a node within a cluster
- node_
role str - Whether the node is a leader node or a compute node
- private_
ip_ straddress - Private IP address of a node within a cluster
- public_
ip_ straddress - Public IP address of a node within a cluster
- node
Role String - Whether the node is a leader node or a compute node
- private
Ip StringAddress - Private IP address of a node within a cluster
- public
Ip StringAddress - Public IP address of a node within a cluster
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi