AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.rds.getCluster
Explore with Pulumi AI
Provides information about an RDS cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const clusterName = aws.rds.getCluster({
    clusterIdentifier: "clusterName",
});
import pulumi
import pulumi_aws as aws
cluster_name = aws.rds.get_cluster(cluster_identifier="clusterName")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := rds.LookupCluster(ctx, &rds.LookupClusterArgs{
			ClusterIdentifier: "clusterName",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var clusterName = Aws.Rds.GetCluster.Invoke(new()
    {
        ClusterIdentifier = "clusterName",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.RdsFunctions;
import com.pulumi.aws.rds.inputs.GetClusterArgs;
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 clusterName = RdsFunctions.getCluster(GetClusterArgs.builder()
            .clusterIdentifier("clusterName")
            .build());
    }
}
variables:
  clusterName:
    fn::invoke:
      Function: aws:rds:getCluster
      Arguments:
        clusterIdentifier: clusterName
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:rds/getCluster:getCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ClusterIdentifier string
- Cluster identifier of the RDS cluster.
- Dictionary<string, string>
- A map of tags assigned to the resource.
- ClusterIdentifier string
- Cluster identifier of the RDS cluster.
- map[string]string
- A map of tags assigned to the resource.
- clusterIdentifier String
- Cluster identifier of the RDS cluster.
- Map<String,String>
- A map of tags assigned to the resource.
- clusterIdentifier string
- Cluster identifier of the RDS cluster.
- {[key: string]: string}
- A map of tags assigned to the resource.
- cluster_identifier str
- Cluster identifier of the RDS cluster.
- Mapping[str, str]
- A map of tags assigned to the resource.
- clusterIdentifier String
- Cluster identifier of the RDS cluster.
- Map<String>
- A map of tags assigned to the resource.
getCluster Result
The following output properties are available:
- Arn string
- AvailabilityZones List<string>
- BacktrackWindow int
- BackupRetention intPeriod 
- ClusterIdentifier string
- ClusterMembers List<string>
- ClusterResource stringId 
- DatabaseName string
- DbCluster stringParameter Group Name 
- DbSubnet stringGroup Name 
- DbSystem stringId 
- EnabledCloudwatch List<string>Logs Exports 
- Endpoint string
- Engine string
- EngineMode string
- EngineVersion string
- FinalSnapshot stringIdentifier 
- HostedZone stringId 
- IamDatabase boolAuthentication Enabled 
- IamRoles List<string>
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- MasterUser List<GetSecrets Cluster Master User Secret> 
- MasterUsername string
- NetworkType string
- Port int
- PreferredBackup stringWindow 
- PreferredMaintenance stringWindow 
- ReaderEndpoint string
- ReplicationSource stringIdentifier 
- StorageEncrypted bool
- Dictionary<string, string>
- A map of tags assigned to the resource.
- VpcSecurity List<string>Group Ids 
- Arn string
- AvailabilityZones []string
- BacktrackWindow int
- BackupRetention intPeriod 
- ClusterIdentifier string
- ClusterMembers []string
- ClusterResource stringId 
- DatabaseName string
- DbCluster stringParameter Group Name 
- DbSubnet stringGroup Name 
- DbSystem stringId 
- EnabledCloudwatch []stringLogs Exports 
- Endpoint string
- Engine string
- EngineMode string
- EngineVersion string
- FinalSnapshot stringIdentifier 
- HostedZone stringId 
- IamDatabase boolAuthentication Enabled 
- IamRoles []string
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- MasterUser []GetSecrets Cluster Master User Secret 
- MasterUsername string
- NetworkType string
- Port int
- PreferredBackup stringWindow 
- PreferredMaintenance stringWindow 
- ReaderEndpoint string
- ReplicationSource stringIdentifier 
- StorageEncrypted bool
- map[string]string
- A map of tags assigned to the resource.
- VpcSecurity []stringGroup Ids 
- arn String
- availabilityZones List<String>
- backtrackWindow Integer
- backupRetention IntegerPeriod 
- clusterIdentifier String
- clusterMembers List<String>
- clusterResource StringId 
- databaseName String
- dbCluster StringParameter Group Name 
- dbSubnet StringGroup Name 
- dbSystem StringId 
- enabledCloudwatch List<String>Logs Exports 
- endpoint String
- engine String
- engineMode String
- engineVersion String
- finalSnapshot StringIdentifier 
- hostedZone StringId 
- iamDatabase BooleanAuthentication Enabled 
- iamRoles List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- masterUser List<GetSecrets Cluster Master User Secret> 
- masterUsername String
- networkType String
- port Integer
- preferredBackup StringWindow 
- preferredMaintenance StringWindow 
- readerEndpoint String
- replicationSource StringIdentifier 
- storageEncrypted Boolean
- Map<String,String>
- A map of tags assigned to the resource.
- vpcSecurity List<String>Group Ids 
- arn string
- availabilityZones string[]
- backtrackWindow number
- backupRetention numberPeriod 
- clusterIdentifier string
- clusterMembers string[]
- clusterResource stringId 
- databaseName string
- dbCluster stringParameter Group Name 
- dbSubnet stringGroup Name 
- dbSystem stringId 
- enabledCloudwatch string[]Logs Exports 
- endpoint string
- engine string
- engineMode string
- engineVersion string
- finalSnapshot stringIdentifier 
- hostedZone stringId 
- iamDatabase booleanAuthentication Enabled 
- iamRoles string[]
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringId 
- masterUser GetSecrets Cluster Master User Secret[] 
- masterUsername string
- networkType string
- port number
- preferredBackup stringWindow 
- preferredMaintenance stringWindow 
- readerEndpoint string
- replicationSource stringIdentifier 
- storageEncrypted boolean
- {[key: string]: string}
- A map of tags assigned to the resource.
- vpcSecurity string[]Group Ids 
- arn str
- availability_zones Sequence[str]
- backtrack_window int
- backup_retention_ intperiod 
- cluster_identifier str
- cluster_members Sequence[str]
- cluster_resource_ strid 
- database_name str
- db_cluster_ strparameter_ group_ name 
- db_subnet_ strgroup_ name 
- db_system_ strid 
- enabled_cloudwatch_ Sequence[str]logs_ exports 
- endpoint str
- engine str
- engine_mode str
- engine_version str
- final_snapshot_ stridentifier 
- hosted_zone_ strid 
- iam_database_ boolauthentication_ enabled 
- iam_roles Sequence[str]
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strid 
- master_user_ Sequence[Getsecrets Cluster Master User Secret] 
- master_username str
- network_type str
- port int
- preferred_backup_ strwindow 
- preferred_maintenance_ strwindow 
- reader_endpoint str
- replication_source_ stridentifier 
- storage_encrypted bool
- Mapping[str, str]
- A map of tags assigned to the resource.
- vpc_security_ Sequence[str]group_ ids 
- arn String
- availabilityZones List<String>
- backtrackWindow Number
- backupRetention NumberPeriod 
- clusterIdentifier String
- clusterMembers List<String>
- clusterResource StringId 
- databaseName String
- dbCluster StringParameter Group Name 
- dbSubnet StringGroup Name 
- dbSystem StringId 
- enabledCloudwatch List<String>Logs Exports 
- endpoint String
- engine String
- engineMode String
- engineVersion String
- finalSnapshot StringIdentifier 
- hostedZone StringId 
- iamDatabase BooleanAuthentication Enabled 
- iamRoles List<String>
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- masterUser List<Property Map>Secrets 
- masterUsername String
- networkType String
- port Number
- preferredBackup StringWindow 
- preferredMaintenance StringWindow 
- readerEndpoint String
- replicationSource StringIdentifier 
- storageEncrypted Boolean
- Map<String>
- A map of tags assigned to the resource.
- vpcSecurity List<String>Group Ids 
Supporting Types
GetClusterMasterUserSecret    
- KmsKey stringId 
- SecretArn string
- SecretStatus string
- KmsKey stringId 
- SecretArn string
- SecretStatus string
- kmsKey StringId 
- secretArn String
- secretStatus String
- kmsKey stringId 
- secretArn string
- secretStatus string
- kms_key_ strid 
- secret_arn str
- secret_status str
- kmsKey StringId 
- secretArn String
- secretStatus String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.