Class Cluster
(experimental) Create a Redshift cluster a given number of nodes.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Redshift
Assembly: Amazon.CDK.AWS.Redshift.dll
Syntax (csharp)
public class Cluster : Resource, ICluster, IResource, IConstruct, IDependable, IConnectable, ISecretAttachmentTarget
Syntax (vb)
Public Class Cluster
Inherits Resource
Implements ICluster, IResource, IConstruct, IDependable, IConnectable, ISecretAttachmentTarget
Remarks
Stability: Experimental
Resource: AWS::Redshift::Cluster
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.EC2;
var vpc = new Vpc(this, "Vpc");
var cluster = new Cluster(this, "Redshift", new ClusterProps {
MasterUser = new Login {
MasterUsername = "admin"
},
Vpc = vpc
});
Synopsis
Constructors
Cluster(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cluster(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Cluster(Construct, String, IClusterProps) |
Properties
ClusterEndpoint | (experimental) The endpoint to use for read/write operations. |
ClusterName | (experimental) Identifier of the cluster. |
Connections | (experimental) Access to the network connections. |
Secret | (experimental) The secret attached to this cluster. |
Methods
AddRotationMultiUser(String, IRotationMultiUserOptions) | (experimental) Adds the multi user rotation to this cluster. |
AddRotationSingleUser(Duration) | (experimental) Adds the single user rotation of the master password to this cluster. |
AsSecretAttachmentTarget() | (experimental) Renders the secret attachment target specifications. |
FromClusterAttributes(Construct, String, IClusterAttributes) | (experimental) Import an existing DatabaseCluster from properties. |
Constructors
Cluster(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Cluster(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Cluster(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Cluster(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Cluster(Construct, String, IClusterProps)
public Cluster(Construct scope, string id, IClusterProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IClusterProps
Remarks
Stability: Experimental
Properties
ClusterEndpoint
(experimental) The endpoint to use for read/write operations.
public virtual Endpoint ClusterEndpoint { get; }
Property Value
Remarks
Stability: Experimental
ClusterName
(experimental) Identifier of the cluster.
public virtual string ClusterName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Connections
(experimental) Access to the network connections.
public virtual Connections_ Connections { get; }
Property Value
Remarks
Stability: Experimental
Secret
(experimental) The secret attached to this cluster.
public virtual ISecret Secret { get; }
Property Value
Remarks
Stability: Experimental
Methods
AddRotationMultiUser(String, IRotationMultiUserOptions)
(experimental) Adds the multi user rotation to this cluster.
public virtual SecretRotation AddRotationMultiUser(string id, IRotationMultiUserOptions options)
Parameters
- id System.String
- options IRotationMultiUserOptions
Returns
Remarks
Stability: Experimental
AddRotationSingleUser(Duration)
(experimental) Adds the single user rotation of the master password to this cluster.
public virtual SecretRotation AddRotationSingleUser(Duration automaticallyAfter = null)
Parameters
- automaticallyAfter Duration
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
Returns
Remarks
Stability: Experimental
AsSecretAttachmentTarget()
(experimental) Renders the secret attachment target specifications.
public virtual ISecretAttachmentTargetProps AsSecretAttachmentTarget()
Returns
Remarks
Stability: Experimental
FromClusterAttributes(Construct, String, IClusterAttributes)
(experimental) Import an existing DatabaseCluster from properties.
public static ICluster FromClusterAttributes(Construct scope, string id, IClusterAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IClusterAttributes
Returns
Remarks
Stability: Experimental