Class ServerlessClusterFromSnapshot
A Aurora Serverless v1 Cluster restored from a snapshot.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServerlessClusterFromSnapshot : Resource, IServerlessCluster, IResource, IConnectable, ISecretAttachmentTarget
Syntax (vb)
Public Class ServerlessClusterFromSnapshot
Inherits Resource
Implements IServerlessCluster, IResource, IConnectable, ISecretAttachmentTarget
Remarks
Resource: AWS::RDS::DBCluster
ExampleMetadata: infused
Examples
Vpc vpc;
new ServerlessClusterFromSnapshot(this, "Cluster", new ServerlessClusterFromSnapshotProps {
Engine = DatabaseClusterEngine.AURORA_MYSQL,
Vpc = vpc,
SnapshotIdentifier = "mySnapshot"
});
Synopsis
Constructors
ServerlessClusterFromSnapshot(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ServerlessClusterFromSnapshot(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ServerlessClusterFromSnapshot(Construct, String, IServerlessClusterFromSnapshotProps) |
Properties
ClusterArn | The ARN of the cluster. |
ClusterEndpoint | The endpoint to use for read/write operations. |
ClusterIdentifier | Identifier of the cluster. |
ClusterReadEndpoint | The endpoint to use for read/write operations. |
Connections | Access to the network connections. |
EnableDataApi | |
NewCfnProps | |
Secret | The secret attached to this cluster. |
SecurityGroups |
Methods
AsSecretAttachmentTarget() | Renders the secret attachment target specifications. |
GrantDataApiAccess(IGrantable) | Grant the given identity to access to the Data API, including read access to the secret attached to the cluster if present. |
Constructors
ServerlessClusterFromSnapshot(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ServerlessClusterFromSnapshot(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ServerlessClusterFromSnapshot(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ServerlessClusterFromSnapshot(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ServerlessClusterFromSnapshot(Construct, String, IServerlessClusterFromSnapshotProps)
public ServerlessClusterFromSnapshot(Construct scope, string id, IServerlessClusterFromSnapshotProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IServerlessClusterFromSnapshotProps
Properties
ClusterArn
The ARN of the cluster.
public virtual string ClusterArn { get; }
Property Value
System.String
ClusterEndpoint
The endpoint to use for read/write operations.
public virtual Endpoint ClusterEndpoint { get; }
Property Value
ClusterIdentifier
Identifier of the cluster.
public virtual string ClusterIdentifier { get; }
Property Value
System.String
ClusterReadEndpoint
The endpoint to use for read/write operations.
public virtual Endpoint ClusterReadEndpoint { get; }
Property Value
Connections
Access to the network connections.
public virtual Connections_ Connections { get; }
Property Value
EnableDataApi
protected virtual Nullable<bool> EnableDataApi { get; set; }
Property Value
System.Nullable<System.Boolean>
NewCfnProps
Secret
SecurityGroups
Methods
AsSecretAttachmentTarget()
Renders the secret attachment target specifications.
public virtual ISecretAttachmentTargetProps AsSecretAttachmentTarget()
Returns
GrantDataApiAccess(IGrantable)
Grant the given identity to access to the Data API, including read access to the secret attached to the cluster if present.
public virtual Grant GrantDataApiAccess(IGrantable grantee)
Parameters
- grantee IGrantable
The principal to grant access to.
Returns