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.awsnative.redshift.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.redshift.ClusterArgs.builder
import com.pulumi.awsnative.redshift.kotlin.inputs.ClusterEndpointArgs
import com.pulumi.awsnative.redshift.kotlin.inputs.ClusterEndpointArgsBuilder
import com.pulumi.awsnative.redshift.kotlin.inputs.ClusterLoggingPropertiesArgs
import com.pulumi.awsnative.redshift.kotlin.inputs.ClusterLoggingPropertiesArgsBuilder
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.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* An example resource schema demonstrating some basic constructs and validation rules.
* @property allowVersionUpgrade Major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster. Default value is True
* @property aquaConfigurationStatus The value represents how the cluster is configured to use AQUA (Advanced Query Accelerator) after the cluster is restored. Possible values include the following.
* enabled - Use AQUA if it is available for the current Region and Amazon Redshift node type.
* disabled - Don't use AQUA.
* auto - Amazon Redshift determines whether to use AQUA.
* @property automatedSnapshotRetentionPeriod The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Default value is 1
* @property availabilityZone The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. Default: A random, system-chosen Availability Zone in the region that is specified by the endpoint
* @property availabilityZoneRelocation The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster modification is complete.
* @property availabilityZoneRelocationStatus The availability zone relocation status of the cluster
* @property classic A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value to false , the resize type is elastic.
* @property clusterIdentifier A unique identifier for the cluster. You use this identifier to refer to the cluster for any subsequent cluster operations such as deleting or modifying. All alphabetical characters must be lower case, no hypens at the end, no two consecutive hyphens. Cluster name should be unique for all clusters within an AWS account
* @property clusterParameterGroupName The name of the parameter group to be associated with this cluster.
* @property clusterSecurityGroups A list of security groups to be associated with this cluster.
* @property clusterSubnetGroupName The name of a cluster subnet group to be associated with this cluster.
* @property clusterType The type of the cluster. When cluster type is specified as single-node, the NumberOfNodes parameter is not required and if multi-node, the NumberOfNodes parameter is required
* @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 dbName The name of the first database to be created when the cluster is created. To create additional databases after the cluster is created, connect to the cluster with a SQL client and use SQL commands to create a database.
* @property deferMaintenance A boolean indicating whether to enable the deferred maintenance window.
* @property deferMaintenanceDuration An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 45 days or less.
* @property deferMaintenanceEndTime A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
* @property deferMaintenanceStartTime A timestamp indicating the start time for the deferred maintenance window.
* @property destinationRegion The destination AWS Region that you want to copy snapshots to. Constraints: Must be the name of a valid AWS Region. For more information, see Regions and Endpoints in the Amazon Web Services [https://docs.aws.amazon.com/general/latest/gr/rande.html#redshift_region] General Reference
* @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 An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
* If this option is true , enhanced VPC routing is enabled.
* Default: false
* @property hsmClientCertificateIdentifier Specifies the name of the HSM client certificate the Amazon Redshift cluster uses to retrieve the data encryption keys stored in an HSM
* @property hsmConfigurationIdentifier Specifies the name of the HSM configuration that contains the information the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
* @property iamRoles A list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services. You must supply the IAM roles in their Amazon Resource Name (ARN) format. You can supply up to 50 IAM roles in a single request
* @property kmsKeyId The AWS Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the cluster.
* @property loggingProperties Specifies logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
* @property maintenanceTrackName The name for the maintenance track that you want to assign for the cluster. This name change is asynchronous. The new track name stays in the PendingModifiedValues for the cluster until the next maintenance window. When the maintenance track changes, the cluster is switched to the latest cluster release available for the maintenance track. At this point, the maintenance track name is applied.
* @property manageMasterPassword A boolean indicating if the redshift cluster's admin user credentials is managed by Redshift or not. You can't use MasterUserPassword if ManageMasterPassword is true. If ManageMasterPassword is false or not set, Amazon Redshift uses MasterUserPassword for the admin user account's password.
* @property manualSnapshotRetentionPeriod The number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is -1, the manual snapshot is retained indefinitely.
* The value must be either -1 or an integer between 1 and 3,653.
* @property masterPasswordSecretKmsKeyId The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin user credentials secret.
* @property masterUserPassword The password associated with the master user account for the cluster that is being created. You can't use MasterUserPassword if ManageMasterPassword is true. Password must be between 8 and 64 characters in length, should have at least one uppercase letter.Must contain at least one lowercase letter.Must contain one number.Can be any printable ASCII character.
* @property masterUsername The user name associated with the master user account for the cluster that is being created. The user name can't be PUBLIC and first character must be a letter.
* @property multiAz A boolean indicating if the redshift cluster is multi-az or not. If you don't provide this parameter or set the value to false, the redshift cluster will be single-az.
* @property namespaceResourcePolicy The namespace resource policy document that will be attached to a Redshift cluster.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Redshift::Cluster` for more information about the expected schema for this property.
* @property nodeType The node type to be provisioned for the cluster.Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large | dc2.8xlarge | ra3.4xlarge | ra3.16xlarge
* @property numberOfNodes The number of compute nodes in the cluster. This parameter is required when the ClusterType parameter is specified as multi-node.
* @property ownerAccount The AWS 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. The cluster is accessible only via the JDBC and ODBC connection strings
* @property preferredMaintenanceWindow The weekly time range (in UTC) during which automated cluster maintenance can occur.
* @property publiclyAccessible If true, the cluster can be accessed from a public network.
* @property resourceAction The Redshift operation to be performed. Resource Action supports pause-cluster, resume-cluster, failover-primary-compute APIs
* @property revisionTarget The identifier of the database revision. You can retrieve this value from the response to the DescribeClusterDbRevisions request.
* @property rotateEncryptionKey A boolean indicating if we want to rotate Encryption Keys.
* @property snapshotClusterIdentifier The name of the cluster the source snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
* @property snapshotCopyGrantName The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
* @property snapshotCopyManual Indicates whether to apply the snapshot retention period to newly copied manual snapshots instead of automated snapshots.
* @property snapshotCopyRetentionPeriod The number of days to retain automated snapshots in the destination region after they are copied from the source region.
* Default is 7.
* Constraints: Must be at least 1 and no more than 35.
* @property snapshotIdentifier The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.
* @property tags The list of tags for the cluster parameter group.
* @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 aquaConfigurationStatus: Output? = null,
public val automatedSnapshotRetentionPeriod: Output? = null,
public val availabilityZone: Output? = null,
public val availabilityZoneRelocation: Output? = null,
public val availabilityZoneRelocationStatus: Output? = null,
public val classic: Output? = null,
public val clusterIdentifier: Output? = null,
public val clusterParameterGroupName: Output? = null,
public val clusterSecurityGroups: Output>? = null,
public val clusterSubnetGroupName: Output? = null,
public val clusterType: Output? = null,
public val clusterVersion: Output? = null,
public val dbName: Output? = null,
public val deferMaintenance: Output? = null,
public val deferMaintenanceDuration: Output? = null,
public val deferMaintenanceEndTime: Output? = null,
public val deferMaintenanceStartTime: Output? = null,
public val destinationRegion: Output? = null,
public val elasticIp: Output? = null,
public val encrypted: Output? = null,
public val endpoint: Output? = null,
public val enhancedVpcRouting: Output? = null,
public val hsmClientCertificateIdentifier: Output? = null,
public val hsmConfigurationIdentifier: Output? = null,
public val iamRoles: Output>? = null,
public val kmsKeyId: Output? = null,
public val loggingProperties: Output? = null,
public val maintenanceTrackName: Output? = null,
public val manageMasterPassword: Output? = null,
public val manualSnapshotRetentionPeriod: Output? = null,
public val masterPasswordSecretKmsKeyId: Output? = null,
public val masterUserPassword: Output? = null,
public val masterUsername: Output? = null,
public val multiAz: Output? = null,
public val namespaceResourcePolicy: 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 resourceAction: Output? = null,
public val revisionTarget: Output? = null,
public val rotateEncryptionKey: Output? = null,
public val snapshotClusterIdentifier: Output? = null,
public val snapshotCopyGrantName: Output? = null,
public val snapshotCopyManual: Output? = null,
public val snapshotCopyRetentionPeriod: Output? = null,
public val snapshotIdentifier: Output? = null,
public val tags: Output>? = null,
public val vpcSecurityGroupIds: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.redshift.ClusterArgs =
com.pulumi.awsnative.redshift.ClusterArgs.builder()
.allowVersionUpgrade(allowVersionUpgrade?.applyValue({ args0 -> args0 }))
.aquaConfigurationStatus(aquaConfigurationStatus?.applyValue({ args0 -> args0 }))
.automatedSnapshotRetentionPeriod(automatedSnapshotRetentionPeriod?.applyValue({ args0 -> args0 }))
.availabilityZone(availabilityZone?.applyValue({ args0 -> args0 }))
.availabilityZoneRelocation(availabilityZoneRelocation?.applyValue({ args0 -> args0 }))
.availabilityZoneRelocationStatus(availabilityZoneRelocationStatus?.applyValue({ args0 -> args0 }))
.classic(classic?.applyValue({ args0 -> args0 }))
.clusterIdentifier(clusterIdentifier?.applyValue({ args0 -> args0 }))
.clusterParameterGroupName(clusterParameterGroupName?.applyValue({ args0 -> args0 }))
.clusterSecurityGroups(clusterSecurityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.clusterSubnetGroupName(clusterSubnetGroupName?.applyValue({ args0 -> args0 }))
.clusterType(clusterType?.applyValue({ args0 -> args0 }))
.clusterVersion(clusterVersion?.applyValue({ args0 -> args0 }))
.dbName(dbName?.applyValue({ args0 -> args0 }))
.deferMaintenance(deferMaintenance?.applyValue({ args0 -> args0 }))
.deferMaintenanceDuration(deferMaintenanceDuration?.applyValue({ args0 -> args0 }))
.deferMaintenanceEndTime(deferMaintenanceEndTime?.applyValue({ args0 -> args0 }))
.deferMaintenanceStartTime(deferMaintenanceStartTime?.applyValue({ args0 -> args0 }))
.destinationRegion(destinationRegion?.applyValue({ args0 -> args0 }))
.elasticIp(elasticIp?.applyValue({ args0 -> args0 }))
.encrypted(encrypted?.applyValue({ args0 -> args0 }))
.endpoint(endpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enhancedVpcRouting(enhancedVpcRouting?.applyValue({ args0 -> args0 }))
.hsmClientCertificateIdentifier(hsmClientCertificateIdentifier?.applyValue({ args0 -> args0 }))
.hsmConfigurationIdentifier(hsmConfigurationIdentifier?.applyValue({ args0 -> args0 }))
.iamRoles(iamRoles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
.loggingProperties(loggingProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maintenanceTrackName(maintenanceTrackName?.applyValue({ args0 -> args0 }))
.manageMasterPassword(manageMasterPassword?.applyValue({ args0 -> args0 }))
.manualSnapshotRetentionPeriod(manualSnapshotRetentionPeriod?.applyValue({ args0 -> args0 }))
.masterPasswordSecretKmsKeyId(masterPasswordSecretKmsKeyId?.applyValue({ args0 -> args0 }))
.masterUserPassword(masterUserPassword?.applyValue({ args0 -> args0 }))
.masterUsername(masterUsername?.applyValue({ args0 -> args0 }))
.multiAz(multiAz?.applyValue({ args0 -> args0 }))
.namespaceResourcePolicy(namespaceResourcePolicy?.applyValue({ args0 -> args0 }))
.nodeType(nodeType?.applyValue({ args0 -> args0 }))
.numberOfNodes(numberOfNodes?.applyValue({ args0 -> args0 }))
.ownerAccount(ownerAccount?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.preferredMaintenanceWindow(preferredMaintenanceWindow?.applyValue({ args0 -> args0 }))
.publiclyAccessible(publiclyAccessible?.applyValue({ args0 -> args0 }))
.resourceAction(resourceAction?.applyValue({ args0 -> args0 }))
.revisionTarget(revisionTarget?.applyValue({ args0 -> args0 }))
.rotateEncryptionKey(rotateEncryptionKey?.applyValue({ args0 -> args0 }))
.snapshotClusterIdentifier(snapshotClusterIdentifier?.applyValue({ args0 -> args0 }))
.snapshotCopyGrantName(snapshotCopyGrantName?.applyValue({ args0 -> args0 }))
.snapshotCopyManual(snapshotCopyManual?.applyValue({ args0 -> args0 }))
.snapshotCopyRetentionPeriod(snapshotCopyRetentionPeriod?.applyValue({ args0 -> args0 }))
.snapshotIdentifier(snapshotIdentifier?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.vpcSecurityGroupIds(
vpcSecurityGroupIds?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [ClusterArgs].
*/
@PulumiTagMarker
public class ClusterArgsBuilder internal constructor() {
private var allowVersionUpgrade: Output? = null
private var aquaConfigurationStatus: Output? = null
private var automatedSnapshotRetentionPeriod: Output? = null
private var availabilityZone: Output? = null
private var availabilityZoneRelocation: Output? = null
private var availabilityZoneRelocationStatus: Output? = null
private var classic: Output? = null
private var clusterIdentifier: Output? = null
private var clusterParameterGroupName: Output? = null
private var clusterSecurityGroups: Output>? = null
private var clusterSubnetGroupName: Output? = null
private var clusterType: Output? = null
private var clusterVersion: Output? = null
private var dbName: Output? = null
private var deferMaintenance: Output? = null
private var deferMaintenanceDuration: Output? = null
private var deferMaintenanceEndTime: Output? = null
private var deferMaintenanceStartTime: Output? = null
private var destinationRegion: Output? = null
private var elasticIp: Output? = null
private var encrypted: Output? = null
private var endpoint: Output? = null
private var enhancedVpcRouting: Output? = null
private var hsmClientCertificateIdentifier: Output? = null
private var hsmConfigurationIdentifier: Output? = null
private var iamRoles: Output>? = null
private var kmsKeyId: Output? = null
private var loggingProperties: Output? = null
private var maintenanceTrackName: Output? = null
private var manageMasterPassword: Output? = null
private var manualSnapshotRetentionPeriod: Output? = null
private var masterPasswordSecretKmsKeyId: Output? = null
private var masterUserPassword: Output? = null
private var masterUsername: Output? = null
private var multiAz: Output? = null
private var namespaceResourcePolicy: Output? = null
private var nodeType: Output? = null
private var numberOfNodes: Output? = null
private var ownerAccount: Output? = null
private var port: Output? = null
private var preferredMaintenanceWindow: Output? = null
private var publiclyAccessible: Output? = null
private var resourceAction: Output? = null
private var revisionTarget: Output? = null
private var rotateEncryptionKey: Output? = null
private var snapshotClusterIdentifier: Output? = null
private var snapshotCopyGrantName: Output? = null
private var snapshotCopyManual: Output? = null
private var snapshotCopyRetentionPeriod: Output? = null
private var snapshotIdentifier: Output? = null
private var tags: Output>? = null
private var vpcSecurityGroupIds: Output>? = null
/**
* @param value Major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster. Default value is True
*/
@JvmName("agyyfkouunoeqpmn")
public suspend fun allowVersionUpgrade(`value`: Output) {
this.allowVersionUpgrade = value
}
/**
* @param value The value represents how the cluster is configured to use AQUA (Advanced Query Accelerator) after the cluster is restored. Possible values include the following.
* enabled - Use AQUA if it is available for the current Region and Amazon Redshift node type.
* disabled - Don't use AQUA.
* auto - Amazon Redshift determines whether to use AQUA.
*/
@JvmName("nehochmkjhqgotrn")
public suspend fun aquaConfigurationStatus(`value`: Output) {
this.aquaConfigurationStatus = value
}
/**
* @param value The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Default value is 1
*/
@JvmName("reicwxytuglfcmwx")
public suspend fun automatedSnapshotRetentionPeriod(`value`: Output) {
this.automatedSnapshotRetentionPeriod = value
}
/**
* @param value The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. Default: A random, system-chosen Availability Zone in the region that is specified by the endpoint
*/
@JvmName("ywdadfayhlqxkwtf")
public suspend fun availabilityZone(`value`: Output) {
this.availabilityZone = value
}
/**
* @param value The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster modification is complete.
*/
@JvmName("ygwjdrbxsuuhdpxa")
public suspend fun availabilityZoneRelocation(`value`: Output) {
this.availabilityZoneRelocation = value
}
/**
* @param value The availability zone relocation status of the cluster
*/
@JvmName("teiooyuggyckbvtl")
public suspend fun availabilityZoneRelocationStatus(`value`: Output) {
this.availabilityZoneRelocationStatus = value
}
/**
* @param value A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value to false , the resize type is elastic.
*/
@JvmName("eytysqgycfkursfm")
public suspend fun classic(`value`: Output) {
this.classic = value
}
/**
* @param value A unique identifier for the cluster. You use this identifier to refer to the cluster for any subsequent cluster operations such as deleting or modifying. All alphabetical characters must be lower case, no hypens at the end, no two consecutive hyphens. Cluster name should be unique for all clusters within an AWS account
*/
@JvmName("qalhpuimxvycihjd")
public suspend fun clusterIdentifier(`value`: Output) {
this.clusterIdentifier = value
}
/**
* @param value The name of the parameter group to be associated with this cluster.
*/
@JvmName("gdnljvyqdybbamer")
public suspend fun clusterParameterGroupName(`value`: Output) {
this.clusterParameterGroupName = value
}
/**
* @param value A list of security groups to be associated with this cluster.
*/
@JvmName("fcavgpfjmhhjgptm")
public suspend fun clusterSecurityGroups(`value`: Output>) {
this.clusterSecurityGroups = value
}
@JvmName("alffqlsifuebjapu")
public suspend fun clusterSecurityGroups(vararg values: Output) {
this.clusterSecurityGroups = Output.all(values.asList())
}
/**
* @param values A list of security groups to be associated with this cluster.
*/
@JvmName("ikbhbmefkxbwxnhm")
public suspend fun clusterSecurityGroups(values: List