Class DatabaseClusterBase
- All Implemented Interfaces:
IResource,IConnectable,IDatabaseCluster,ISecretAttachmentTarget,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
DatabaseCluster,DatabaseClusterFromSnapshot
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDatabaseCluster
IDatabaseCluster.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseClusterBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDatabaseClusterBase(software.amazon.jsii.JsiiObjectRef objRef) protectedDatabaseClusterBase(software.constructs.Construct scope, String id) protectedDatabaseClusterBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddProxy(String id, DatabaseProxyOptions options) Add a new db proxy to this cluster.Renders the secret attachment target specifications.The ARN of the cluster.abstract EndpointThe endpoint to use for read/write operations.abstract StringIdentifier of the cluster.abstract EndpointEndpoint to use for load-balanced read-only operations.abstract StringThe immutable identifier for the cluster; for example: cluster-ABCD1234EFGH5678IJKL90MNOP.abstract ConnectionsAccess to the network connections.protected abstract Booleanabstract IClusterEngineThe engine of this Cluster.Endpoints which address each individual replica.Identifiers of the replicas.abstract ISecretThe secret attached to this cluster.grantConnect(IGrantable grantee, String dbUser) Grant the given identity connection access to the Cluster.grantDataApiAccess(IGrantable grantee) Grant the given identity to access the Data API.Return the given named metric for this DBCluster.metric(String metricName, MetricOptions props) Return the given named metric for this DBCluster.The percentage of CPU utilization.The percentage of CPU utilization.The number of database connections in use.The number of database connections in use.The average number of deadlocks in the database per second.metricDeadlocks(MetricOptions props) The average number of deadlocks in the database per second.The amount of time that the instance has been running, in seconds.metricEngineUptime(MetricOptions props) The amount of time that the instance has been running, in seconds.The amount of available random access memory, in bytes.The amount of available random access memory, in bytes.The amount of local storage available, in bytes.The amount of local storage available, in bytes.The amount of network throughput received from clients by each instance, in bytes per second.The amount of network throughput received from clients by each instance, in bytes per second.The amount of network throughput both received from and transmitted to clients by each instance, in bytes per second.The amount of network throughput both received from and transmitted to clients by each instance, in bytes per second.The amount of network throughput sent to clients by each instance, in bytes per second.The amount of network throughput sent to clients by each instance, in bytes per second.The total amount of backup storage in bytes consumed by all Aurora snapshots outside its backup retention window.The total amount of backup storage in bytes consumed by all Aurora snapshots outside its backup retention window.The total amount of backup storage in bytes for which you are billed.The total amount of backup storage in bytes for which you are billed.The amount of storage used by your Aurora DB instance, in bytes.The amount of storage used by your Aurora DB instance, in bytes.The number of billed read I/O operations from a cluster volume, reported at 5-minute intervals.The number of billed read I/O operations from a cluster volume, reported at 5-minute intervals.The number of write disk I/O operations to the cluster volume, reported at 5-minute intervals.The number of write disk I/O operations to the cluster volume, reported at 5-minute intervals.protected abstract voidsetEnableDataApi(Boolean value) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DatabaseClusterBase
protected DatabaseClusterBase(software.amazon.jsii.JsiiObjectRef objRef) -
DatabaseClusterBase
protected DatabaseClusterBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DatabaseClusterBase
@Stability(Stable) protected DatabaseClusterBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
DatabaseClusterBase
@Stability(Stable) protected DatabaseClusterBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
addProxy
@Stability(Stable) @NotNull public DatabaseProxy addProxy(@NotNull String id, @NotNull DatabaseProxyOptions options) Add a new db proxy to this cluster.- Specified by:
addProxyin interfaceIDatabaseCluster- Parameters:
id- This parameter is required.options- This parameter is required.
-
asSecretAttachmentTarget
Renders the secret attachment target specifications.- Specified by:
asSecretAttachmentTargetin interfaceISecretAttachmentTarget
-
grantConnect
@Stability(Stable) @NotNull public Grant grantConnect(@NotNull IGrantable grantee, @NotNull String dbUser) Grant the given identity connection access to the Cluster.- Specified by:
grantConnectin interfaceIDatabaseCluster- Parameters:
grantee- This parameter is required.dbUser- This parameter is required.
-
grantDataApiAccess
Grant the given identity to access the Data API.- Specified by:
grantDataApiAccessin interfaceIDatabaseCluster- Parameters:
grantee- This parameter is required.
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this DBCluster.- Specified by:
metricin interfaceIDatabaseCluster- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this DBCluster.- Specified by:
metricin interfaceIDatabaseCluster- Parameters:
metricName- This parameter is required.
-
metricCPUUtilization
The percentage of CPU utilization.Average over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDatabaseCluster- Parameters:
props-
-
metricCPUUtilization
The percentage of CPU utilization.Average over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDatabaseCluster
-
metricDatabaseConnections
The number of database connections in use.Average over 5 minutes
- Specified by:
metricDatabaseConnectionsin interfaceIDatabaseCluster- Parameters:
props-
-
metricDatabaseConnections
The number of database connections in use.Average over 5 minutes
- Specified by:
metricDatabaseConnectionsin interfaceIDatabaseCluster
-
metricDeadlocks
The average number of deadlocks in the database per second.Average over 5 minutes
- Specified by:
metricDeadlocksin interfaceIDatabaseCluster- Parameters:
props-
-
metricDeadlocks
The average number of deadlocks in the database per second.Average over 5 minutes
- Specified by:
metricDeadlocksin interfaceIDatabaseCluster
-
metricEngineUptime
The amount of time that the instance has been running, in seconds.Average over 5 minutes
- Specified by:
metricEngineUptimein interfaceIDatabaseCluster- Parameters:
props-
-
metricEngineUptime
The amount of time that the instance has been running, in seconds.Average over 5 minutes
- Specified by:
metricEngineUptimein interfaceIDatabaseCluster
-
metricFreeableMemory
The amount of available random access memory, in bytes.Average over 5 minutes
- Specified by:
metricFreeableMemoryin interfaceIDatabaseCluster- Parameters:
props-
-
metricFreeableMemory
The amount of available random access memory, in bytes.Average over 5 minutes
- Specified by:
metricFreeableMemoryin interfaceIDatabaseCluster
-
metricFreeLocalStorage
The amount of local storage available, in bytes.Average over 5 minutes
- Specified by:
metricFreeLocalStoragein interfaceIDatabaseCluster- Parameters:
props-
-
metricFreeLocalStorage
The amount of local storage available, in bytes.Average over 5 minutes
- Specified by:
metricFreeLocalStoragein interfaceIDatabaseCluster
-
metricNetworkReceiveThroughput
@Stability(Stable) @NotNull public Metric metricNetworkReceiveThroughput(@Nullable MetricOptions props) The amount of network throughput received from clients by each instance, in bytes per second.Average over 5 minutes
- Specified by:
metricNetworkReceiveThroughputin interfaceIDatabaseCluster- Parameters:
props-
-
metricNetworkReceiveThroughput
The amount of network throughput received from clients by each instance, in bytes per second.Average over 5 minutes
- Specified by:
metricNetworkReceiveThroughputin interfaceIDatabaseCluster
-
metricNetworkThroughput
The amount of network throughput both received from and transmitted to clients by each instance, in bytes per second.Average over 5 minutes
- Specified by:
metricNetworkThroughputin interfaceIDatabaseCluster- Parameters:
props-
-
metricNetworkThroughput
The amount of network throughput both received from and transmitted to clients by each instance, in bytes per second.Average over 5 minutes
- Specified by:
metricNetworkThroughputin interfaceIDatabaseCluster
-
metricNetworkTransmitThroughput
@Stability(Stable) @NotNull public Metric metricNetworkTransmitThroughput(@Nullable MetricOptions props) The amount of network throughput sent to clients by each instance, in bytes per second.Average over 5 minutes
- Specified by:
metricNetworkTransmitThroughputin interfaceIDatabaseCluster- Parameters:
props-
-
metricNetworkTransmitThroughput
The amount of network throughput sent to clients by each instance, in bytes per second.Average over 5 minutes
- Specified by:
metricNetworkTransmitThroughputin interfaceIDatabaseCluster
-
metricSnapshotStorageUsed
The total amount of backup storage in bytes consumed by all Aurora snapshots outside its backup retention window.Average over 5 minutes
- Specified by:
metricSnapshotStorageUsedin interfaceIDatabaseCluster- Parameters:
props-
-
metricSnapshotStorageUsed
The total amount of backup storage in bytes consumed by all Aurora snapshots outside its backup retention window.Average over 5 minutes
- Specified by:
metricSnapshotStorageUsedin interfaceIDatabaseCluster
-
metricTotalBackupStorageBilled
@Stability(Stable) @NotNull public Metric metricTotalBackupStorageBilled(@Nullable MetricOptions props) The total amount of backup storage in bytes for which you are billed.Average over 5 minutes
- Specified by:
metricTotalBackupStorageBilledin interfaceIDatabaseCluster- Parameters:
props-
-
metricTotalBackupStorageBilled
The total amount of backup storage in bytes for which you are billed.Average over 5 minutes
- Specified by:
metricTotalBackupStorageBilledin interfaceIDatabaseCluster
-
metricVolumeBytesUsed
The amount of storage used by your Aurora DB instance, in bytes.Average over 5 minutes
- Specified by:
metricVolumeBytesUsedin interfaceIDatabaseCluster- Parameters:
props-
-
metricVolumeBytesUsed
The amount of storage used by your Aurora DB instance, in bytes.Average over 5 minutes
- Specified by:
metricVolumeBytesUsedin interfaceIDatabaseCluster
-
metricVolumeReadIOPs
The number of billed read I/O operations from a cluster volume, reported at 5-minute intervals.Average over 5 minutes
- Specified by:
metricVolumeReadIOPsin interfaceIDatabaseCluster- Parameters:
props-
-
metricVolumeReadIOPs
The number of billed read I/O operations from a cluster volume, reported at 5-minute intervals.Average over 5 minutes
- Specified by:
metricVolumeReadIOPsin interfaceIDatabaseCluster
-
metricVolumeWriteIOPs
The number of write disk I/O operations to the cluster volume, reported at 5-minute intervals.Average over 5 minutes
- Specified by:
metricVolumeWriteIOPsin interfaceIDatabaseCluster- Parameters:
props-
-
metricVolumeWriteIOPs
The number of write disk I/O operations to the cluster volume, reported at 5-minute intervals.Average over 5 minutes
- Specified by:
metricVolumeWriteIOPsin interfaceIDatabaseCluster
-
getClusterArn
The ARN of the cluster.- Specified by:
getClusterArnin interfaceIDatabaseCluster
-
getClusterEndpoint
The endpoint to use for read/write operations.- Specified by:
getClusterEndpointin interfaceIDatabaseCluster
-
getClusterIdentifier
Identifier of the cluster.- Specified by:
getClusterIdentifierin interfaceIDatabaseCluster
-
getClusterReadEndpoint
Endpoint to use for load-balanced read-only operations.- Specified by:
getClusterReadEndpointin interfaceIDatabaseCluster
-
getClusterResourceIdentifier
The immutable identifier for the cluster; for example: cluster-ABCD1234EFGH5678IJKL90MNOP.This AWS Region-unique identifier is used in things like IAM authentication policies.
- Specified by:
getClusterResourceIdentifierin interfaceIDatabaseCluster
-
getConnections
Access to the network connections.- Specified by:
getConnectionsin interfaceIConnectable
-
getInstanceEndpoints
Endpoints which address each individual replica.- Specified by:
getInstanceEndpointsin interfaceIDatabaseCluster
-
getInstanceIdentifiers
Identifiers of the replicas.- Specified by:
getInstanceIdentifiersin interfaceIDatabaseCluster
-
getEngine
The engine of this Cluster.May be not known for imported Clusters if it wasn't provided explicitly.
- Specified by:
getEnginein interfaceIDatabaseCluster
-
getSecret
The secret attached to this cluster. -
getEnableDataApi
-
setEnableDataApi
-