Try AWS Native preview for resources not in the classic version.
aws.redshift.getOrderableCluster
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Information about Redshift Orderable Clusters and valid parameter combinations.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.RedShift.GetOrderableCluster.Invoke(new()
{
ClusterType = "multi-node",
PreferredNodeTypes = new[]
{
"dc2.large",
"ds2.xlarge",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshift.GetOrderableCluster(ctx, &redshift.GetOrderableClusterArgs{
ClusterType: pulumi.StringRef("multi-node"),
PreferredNodeTypes: []string{
"dc2.large",
"ds2.xlarge",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetOrderableClusterArgs;
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 test = RedshiftFunctions.getOrderableCluster(GetOrderableClusterArgs.builder()
.clusterType("multi-node")
.preferredNodeTypes(
"dc2.large",
"ds2.xlarge")
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.redshift.get_orderable_cluster(cluster_type="multi-node",
preferred_node_types=[
"dc2.large",
"ds2.xlarge",
])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.redshift.getOrderableCluster({
clusterType: "multi-node",
preferredNodeTypes: [
"dc2.large",
"ds2.xlarge",
],
});
variables:
test:
fn::invoke:
Function: aws:redshift:getOrderableCluster
Arguments:
clusterType: multi-node
preferredNodeTypes:
- dc2.large
- ds2.xlarge
Using getOrderableCluster
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 getOrderableCluster(args: GetOrderableClusterArgs, opts?: InvokeOptions): Promise<GetOrderableClusterResult>
function getOrderableClusterOutput(args: GetOrderableClusterOutputArgs, opts?: InvokeOptions): Output<GetOrderableClusterResult>
def get_orderable_cluster(cluster_type: Optional[str] = None,
cluster_version: Optional[str] = None,
node_type: Optional[str] = None,
preferred_node_types: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetOrderableClusterResult
def get_orderable_cluster_output(cluster_type: Optional[pulumi.Input[str]] = None,
cluster_version: Optional[pulumi.Input[str]] = None,
node_type: Optional[pulumi.Input[str]] = None,
preferred_node_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrderableClusterResult]
func GetOrderableCluster(ctx *Context, args *GetOrderableClusterArgs, opts ...InvokeOption) (*GetOrderableClusterResult, error)
func GetOrderableClusterOutput(ctx *Context, args *GetOrderableClusterOutputArgs, opts ...InvokeOption) GetOrderableClusterResultOutput
> Note: This function is named GetOrderableCluster
in the Go SDK.
public static class GetOrderableCluster
{
public static Task<GetOrderableClusterResult> InvokeAsync(GetOrderableClusterArgs args, InvokeOptions? opts = null)
public static Output<GetOrderableClusterResult> Invoke(GetOrderableClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrderableClusterResult> getOrderableCluster(GetOrderableClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:redshift/getOrderableCluster:getOrderableCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Type string Reshift Cluster typeE.g.,
multi-node
orsingle-node
- Cluster
Version string Redshift Cluster versionE.g.,
1.0
- Node
Type string Redshift Cluster node typeE.g.,
dc2.8xlarge
- Preferred
Node List<string>Types Ordered list of preferred Redshift Cluster node types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned.
- Cluster
Type string Reshift Cluster typeE.g.,
multi-node
orsingle-node
- Cluster
Version string Redshift Cluster versionE.g.,
1.0
- Node
Type string Redshift Cluster node typeE.g.,
dc2.8xlarge
- Preferred
Node []stringTypes Ordered list of preferred Redshift Cluster node types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned.
- cluster
Type String Reshift Cluster typeE.g.,
multi-node
orsingle-node
- cluster
Version String Redshift Cluster versionE.g.,
1.0
- node
Type String Redshift Cluster node typeE.g.,
dc2.8xlarge
- preferred
Node List<String>Types Ordered list of preferred Redshift Cluster node types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned.
- cluster
Type string Reshift Cluster typeE.g.,
multi-node
orsingle-node
- cluster
Version string Redshift Cluster versionE.g.,
1.0
- node
Type string Redshift Cluster node typeE.g.,
dc2.8xlarge
- preferred
Node string[]Types Ordered list of preferred Redshift Cluster node types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned.
- cluster_
type str Reshift Cluster typeE.g.,
multi-node
orsingle-node
- cluster_
version str Redshift Cluster versionE.g.,
1.0
- node_
type str Redshift Cluster node typeE.g.,
dc2.8xlarge
- preferred_
node_ Sequence[str]types Ordered list of preferred Redshift Cluster node types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned.
- cluster
Type String Reshift Cluster typeE.g.,
multi-node
orsingle-node
- cluster
Version String Redshift Cluster versionE.g.,
1.0
- node
Type String Redshift Cluster node typeE.g.,
dc2.8xlarge
- preferred
Node List<String>Types Ordered list of preferred Redshift Cluster node types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned.
getOrderableCluster Result
The following output properties are available:
- Availability
Zones List<string> List of Availability Zone names where the Redshift Cluster is available.
- Cluster
Type string - Cluster
Version string - Id string
The provider-assigned unique ID for this managed resource.
- Node
Type string - Preferred
Node List<string>Types
- Availability
Zones []string List of Availability Zone names where the Redshift Cluster is available.
- Cluster
Type string - Cluster
Version string - Id string
The provider-assigned unique ID for this managed resource.
- Node
Type string - Preferred
Node []stringTypes
- availability
Zones List<String> List of Availability Zone names where the Redshift Cluster is available.
- cluster
Type String - cluster
Version String - id String
The provider-assigned unique ID for this managed resource.
- node
Type String - preferred
Node List<String>Types
- availability
Zones string[] List of Availability Zone names where the Redshift Cluster is available.
- cluster
Type string - cluster
Version string - id string
The provider-assigned unique ID for this managed resource.
- node
Type string - preferred
Node string[]Types
- availability_
zones Sequence[str] List of Availability Zone names where the Redshift Cluster is available.
- cluster_
type str - cluster_
version str - id str
The provider-assigned unique ID for this managed resource.
- node_
type str - preferred_
node_ Sequence[str]types
- availability
Zones List<String> List of Availability Zone names where the Redshift Cluster is available.
- cluster
Type String - cluster
Version String - id String
The provider-assigned unique ID for this managed resource.
- node
Type String - preferred
Node List<String>Types
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.