/
getCluster.go
58 lines (53 loc) · 2.99 KB
/
getCluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package rds
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Provides information about a RDS cluster.
func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error) {
var rv LookupClusterResult
err := ctx.Invoke("aws:rds/getCluster:getCluster", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getCluster.
type LookupClusterArgs struct {
// The cluster identifier of the RDS cluster.
ClusterIdentifier string `pulumi:"clusterIdentifier"`
Tags map[string]interface{} `pulumi:"tags"`
}
// A collection of values returned by getCluster.
type LookupClusterResult struct {
Arn string `pulumi:"arn"`
AvailabilityZones []string `pulumi:"availabilityZones"`
BackupRetentionPeriod int `pulumi:"backupRetentionPeriod"`
ClusterIdentifier string `pulumi:"clusterIdentifier"`
ClusterMembers []string `pulumi:"clusterMembers"`
ClusterResourceId string `pulumi:"clusterResourceId"`
DatabaseName string `pulumi:"databaseName"`
DbClusterParameterGroupName string `pulumi:"dbClusterParameterGroupName"`
DbSubnetGroupName string `pulumi:"dbSubnetGroupName"`
EnabledCloudwatchLogsExports []string `pulumi:"enabledCloudwatchLogsExports"`
Endpoint string `pulumi:"endpoint"`
Engine string `pulumi:"engine"`
EngineVersion string `pulumi:"engineVersion"`
FinalSnapshotIdentifier string `pulumi:"finalSnapshotIdentifier"`
HostedZoneId string `pulumi:"hostedZoneId"`
IamDatabaseAuthenticationEnabled bool `pulumi:"iamDatabaseAuthenticationEnabled"`
IamRoles []string `pulumi:"iamRoles"`
// id is the provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
KmsKeyId string `pulumi:"kmsKeyId"`
MasterUsername string `pulumi:"masterUsername"`
Port int `pulumi:"port"`
PreferredBackupWindow string `pulumi:"preferredBackupWindow"`
PreferredMaintenanceWindow string `pulumi:"preferredMaintenanceWindow"`
ReaderEndpoint string `pulumi:"readerEndpoint"`
ReplicationSourceIdentifier string `pulumi:"replicationSourceIdentifier"`
StorageEncrypted bool `pulumi:"storageEncrypted"`
Tags map[string]interface{} `pulumi:"tags"`
VpcSecurityGroupIds []string `pulumi:"vpcSecurityGroupIds"`
}