Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.redshift.kotlin
import com.pulumi.aws.redshift.ClusterArgs.builder
import com.pulumi.aws.redshift.kotlin.inputs.ClusterLoggingArgs
import com.pulumi.aws.redshift.kotlin.inputs.ClusterLoggingArgsBuilder
import com.pulumi.aws.redshift.kotlin.inputs.ClusterSnapshotCopyArgs
import com.pulumi.aws.redshift.kotlin.inputs.ClusterSnapshotCopyArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a Redshift Cluster Resource.
* > **NOTE:** A Redshift cluster's default IAM role can be managed both by this resource's `default_iam_role_arn` argument and the `aws.redshift.ClusterIamRoles` resource's `default_iam_role_arn` argument. Do not configure different values for both arguments. Doing so will cause a conflict of default IAM roles.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.redshift.Cluster("example", {
* clusterIdentifier: "tf-redshift-cluster",
* databaseName: "mydb",
* masterUsername: "exampleuser",
* masterPassword: "Mustbe8characters",
* nodeType: "dc1.large",
* clusterType: "single-node",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.redshift.Cluster("example",
* cluster_identifier="tf-redshift-cluster",
* database_name="mydb",
* master_username="exampleuser",
* master_password="Mustbe8characters",
* node_type="dc1.large",
* cluster_type="single-node")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.RedShift.Cluster("example", new()
* {
* ClusterIdentifier = "tf-redshift-cluster",
* DatabaseName = "mydb",
* MasterUsername = "exampleuser",
* MasterPassword = "Mustbe8characters",
* NodeType = "dc1.large",
* ClusterType = "single-node",
* });
* });
* ```
* ```go
* 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.NewCluster(ctx, "example", &redshift.ClusterArgs{
* ClusterIdentifier: pulumi.String("tf-redshift-cluster"),
* DatabaseName: pulumi.String("mydb"),
* MasterUsername: pulumi.String("exampleuser"),
* MasterPassword: pulumi.String("Mustbe8characters"),
* NodeType: pulumi.String("dc1.large"),
* ClusterType: pulumi.String("single-node"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.redshift.Cluster;
* import com.pulumi.aws.redshift.ClusterArgs;
* 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) {
* var example = new Cluster("example", ClusterArgs.builder()
* .clusterIdentifier("tf-redshift-cluster")
* .databaseName("mydb")
* .masterUsername("exampleuser")
* .masterPassword("Mustbe8characters")
* .nodeType("dc1.large")
* .clusterType("single-node")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:redshift:Cluster
* properties:
* clusterIdentifier: tf-redshift-cluster
* databaseName: mydb
* masterUsername: exampleuser
* masterPassword: Mustbe8characters
* nodeType: dc1.large
* clusterType: single-node
* ```
*
* ### With Managed Credentials
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.redshift.Cluster("example", {
* clusterIdentifier: "tf-redshift-cluster",
* databaseName: "mydb",
* masterUsername: "exampleuser",
* nodeType: "dc1.large",
* clusterType: "single-node",
* manageMasterPassword: true,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.redshift.Cluster("example",
* cluster_identifier="tf-redshift-cluster",
* database_name="mydb",
* master_username="exampleuser",
* node_type="dc1.large",
* cluster_type="single-node",
* manage_master_password=True)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.RedShift.Cluster("example", new()
* {
* ClusterIdentifier = "tf-redshift-cluster",
* DatabaseName = "mydb",
* MasterUsername = "exampleuser",
* NodeType = "dc1.large",
* ClusterType = "single-node",
* ManageMasterPassword = true,
* });
* });
* ```
* ```go
* 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.NewCluster(ctx, "example", &redshift.ClusterArgs{
* ClusterIdentifier: pulumi.String("tf-redshift-cluster"),
* DatabaseName: pulumi.String("mydb"),
* MasterUsername: pulumi.String("exampleuser"),
* NodeType: pulumi.String("dc1.large"),
* ClusterType: pulumi.String("single-node"),
* ManageMasterPassword: pulumi.Bool(true),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.redshift.Cluster;
* import com.pulumi.aws.redshift.ClusterArgs;
* 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) {
* var example = new Cluster("example", ClusterArgs.builder()
* .clusterIdentifier("tf-redshift-cluster")
* .databaseName("mydb")
* .masterUsername("exampleuser")
* .nodeType("dc1.large")
* .clusterType("single-node")
* .manageMasterPassword(true)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:redshift:Cluster
* properties:
* clusterIdentifier: tf-redshift-cluster
* databaseName: mydb
* masterUsername: exampleuser
* nodeType: dc1.large
* clusterType: single-node
* manageMasterPassword: true
* ```
*
* ## Import
* Using `pulumi import`, import Redshift Clusters using the `cluster_identifier`. For example:
* ```sh
* $ pulumi import aws:redshift/cluster:Cluster myprodcluster tf-redshift-cluster-12345
* ```
* @property allowVersionUpgrade If true , major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster. Default is `true`.
* @property applyImmediately Specifies whether any cluster modifications are applied immediately, or during the next maintenance window. Default is `false`.
* @property aquaConfigurationStatus The value represents how the cluster is configured to use AQUA (Advanced Query Accelerator) after the cluster is restored.
* No longer supported by the AWS API.
* Always returns `auto`.
* @property automatedSnapshotRetentionPeriod The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with create-cluster-snapshot. Default is 1.
* @property availabilityZone The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. For example, if you have several EC2 instances running in a specific Availability Zone, then you might want the cluster to be provisioned in the same zone in order to decrease network latency. Can only be changed if `availability_zone_relocation_enabled` is `true`.
* @property availabilityZoneRelocationEnabled If true, the cluster can be relocated to another availabity zone, either automatically by AWS or when requested. Default is `false`. Available for use on clusters from the RA3 instance family.
* @property clusterIdentifier The Cluster Identifier. Must be a lower case string.
* @property clusterParameterGroupName The name of the parameter group to be associated with this cluster.
* @property clusterPublicKey The public key for the cluster
* @property clusterRevisionNumber The specific revision number of the database in the cluster
* @property clusterSubnetGroupName The name of a cluster subnet group to be associated with this cluster. If this parameter is not provided the resulting cluster will be deployed outside virtual private cloud (VPC).
* @property clusterType The cluster type to use. Either `single-node` or `multi-node`.
* @property clusterVersion The version of the Amazon Redshift engine software that you want to deploy on the cluster.
* The version selected runs on all the nodes in the cluster.
* @property databaseName The name of the first database to be created when the cluster is created.
* If you do not provide a name, Amazon Redshift will create a default database called `dev`.
* @property defaultIamRoleArn The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was created.
* @property elasticIp The Elastic IP (EIP) address for the cluster.
* @property encrypted If true , the data in the cluster is encrypted at rest.
* @property endpoint The connection endpoint
* @property enhancedVpcRouting If true , enhanced VPC routing is enabled.
* @property finalSnapshotIdentifier The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, `skip_final_snapshot` must be false.
* @property iamRoles A list of IAM Role ARNs to associate with the cluster. A Maximum of 10 can be associated to the cluster at any time.
* @property kmsKeyId The ARN for the KMS encryption key. When specifying `kms_key_id`, `encrypted` needs to be set to true.
* @property logging Logging, documented below.
* @property maintenanceTrackName The name of the maintenance track for the restored cluster. When you take a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster. The snapshot might be on a different track than the cluster that was the source for the snapshot. For example, suppose that you take a snapshot of a cluster that is on the current track and then change the cluster to be on the trailing track. In this case, the snapshot and the source cluster are on different tracks. Default value is `current`.
* @property manageMasterPassword Whether to use AWS SecretsManager to manage the cluster admin credentials.
* Conflicts with `master_password`.
* One of `master_password` or `manage_master_password` is required unless `snapshot_identifier` is provided.
* @property manualSnapshotRetentionPeriod The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn't change the retention period of existing snapshots. Valid values are between `-1` and `3653`. Default value is `-1`.
* @property masterPassword Password for the master DB user.
* Conflicts with `manage_master_password`.
* One of `master_password` or `manage_master_password` is required unless `snapshot_identifier` is provided.
* Note that this may show up in logs, and it will be stored in the state file.
* Password must contain at least 8 characters and contain at least one uppercase letter, one lowercase letter, and one number.
* @property masterPasswordSecretKmsKeyId ID of the KMS key used to encrypt the cluster admin credentials secret.
* @property masterUsername Username for the master DB user.
* @property multiAz Specifies if the Redshift cluster is multi-AZ.
* @property nodeType The node type to be provisioned for the cluster.
* @property numberOfNodes The number of compute nodes in the cluster. This parameter is required when the ClusterType parameter is specified as multi-node. Default is 1.
* @property ownerAccount The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.
* @property port The port number on which the cluster accepts incoming connections. Valid values are between `1115` and `65535`.
* The cluster is accessible only via the JDBC and ODBC connection strings.
* Part of the connection string requires the port on which the cluster will listen for incoming connections.
* Default port is `5439`.
* @property preferredMaintenanceWindow The weekly time range (in UTC) during which automated cluster maintenance can occur.
* Format: ddd:hh24:mi-ddd:hh24:mi
* @property publiclyAccessible If true, the cluster can be accessed from a public network. Default is `true`.
* @property skipFinalSnapshot Determines whether a final snapshot of the cluster is created before Amazon Redshift deletes the cluster. If true , a final cluster snapshot is not created. If false , a final cluster snapshot is created before the cluster is deleted. Default is false.
* @property snapshotArn The ARN of the snapshot from which to create the new cluster. Conflicts with `snapshot_identifier`.
* @property snapshotClusterIdentifier The name of the cluster the source snapshot was created from.
* @property snapshotCopy Configuration of automatic copy of snapshots from one region to another. Documented below.
* @property snapshotIdentifier The name of the snapshot from which to create the new cluster. Conflicts with `snapshot_arn`.
* @property tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property vpcSecurityGroupIds A list of Virtual Private Cloud (VPC) security groups to be associated with the cluster.
*/
public data class ClusterArgs(
public val allowVersionUpgrade: Output? = null,
public val applyImmediately: Output? = null,
@Deprecated(
message = """
This parameter is no longer supported by the AWS API. It will be removed in the next major version
of the provider.
""",
)
public val aquaConfigurationStatus: Output? = null,
public val automatedSnapshotRetentionPeriod: Output? = null,
public val availabilityZone: Output? = null,
public val availabilityZoneRelocationEnabled: Output? = null,
public val clusterIdentifier: Output? = null,
public val clusterParameterGroupName: Output? = null,
public val clusterPublicKey: Output? = null,
public val clusterRevisionNumber: Output? = null,
public val clusterSubnetGroupName: Output? = null,
public val clusterType: Output? = null,
public val clusterVersion: Output? = null,
public val databaseName: Output? = null,
public val defaultIamRoleArn: Output? = null,
public val elasticIp: Output? = null,
public val encrypted: Output? = null,
public val endpoint: Output? = null,
public val enhancedVpcRouting: Output? = null,
public val finalSnapshotIdentifier: Output? = null,
public val iamRoles: Output>? = null,
public val kmsKeyId: Output? = null,
@Deprecated(
message = """
Use the aws.redshift.Logging resource instead. This argument will be removed in a future major
version.
""",
)
public val logging: Output? = null,
public val maintenanceTrackName: Output? = null,
public val manageMasterPassword: Output? = null,
public val manualSnapshotRetentionPeriod: Output? = null,
public val masterPassword: Output? = null,
public val masterPasswordSecretKmsKeyId: Output? = null,
public val masterUsername: Output? = null,
public val multiAz: Output? = null,
public val nodeType: Output? = null,
public val numberOfNodes: Output? = null,
public val ownerAccount: Output? = null,
public val port: Output? = null,
public val preferredMaintenanceWindow: Output? = null,
public val publiclyAccessible: Output? = null,
public val skipFinalSnapshot: Output? = null,
public val snapshotArn: Output? = null,
public val snapshotClusterIdentifier: Output? = null,
@Deprecated(
message = """
Use the aws.redshift.SnapshotCopy resource instead. This argument will be removed in a future
major version.
""",
)
public val snapshotCopy: Output? = null,
public val snapshotIdentifier: Output? = null,
public val tags: Output