@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.488Z") @Stability(value=Stable) public interface IDatabaseInstance extends software.amazon.jsii.JsiiSerializable, IResource, IConnectable, ISecretAttachmentTarget
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IDatabaseInstance.Jsii$Default
Internal default implementation for
IDatabaseInstance. |
static class |
IDatabaseInstance.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseProxy |
addProxy(String id,
DatabaseProxyOptions options)
Add a new db proxy to this instance.
|
String |
getDbInstanceEndpointAddress()
The instance endpoint address.
|
String |
getDbInstanceEndpointPort()
The instance endpoint port.
|
default IInstanceEngine |
getEngine()
The engine of this database Instance.
|
String |
getInstanceArn()
The instance arn.
|
Endpoint |
getInstanceEndpoint()
The instance endpoint.
|
String |
getInstanceIdentifier()
The instance identifier.
|
Grant |
grantConnect(IGrantable grantee)
Grant the given identity connection access to the database.
|
Metric |
metric(String metricName)
Return the given named metric for this DBInstance.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this DBInstance.
|
Metric |
metricCPUUtilization()
The percentage of CPU utilization.
|
Metric |
metricCPUUtilization(MetricOptions props)
The percentage of CPU utilization.
|
Metric |
metricDatabaseConnections()
The number of database connections in use.
|
Metric |
metricDatabaseConnections(MetricOptions props)
The number of database connections in use.
|
Metric |
metricFreeableMemory()
The amount of available random access memory.
|
Metric |
metricFreeableMemory(MetricOptions props)
The amount of available random access memory.
|
Metric |
metricFreeStorageSpace()
The amount of available storage space.
|
Metric |
metricFreeStorageSpace(MetricOptions props)
The amount of available storage space.
|
Metric |
metricReadIOPS()
The average number of disk write I/O operations per second.
|
Metric |
metricReadIOPS(MetricOptions props)
The average number of disk write I/O operations per second.
|
Metric |
metricWriteIOPS()
The average number of disk read I/O operations per second.
|
Metric |
metricWriteIOPS(MetricOptions props)
The average number of disk read I/O operations per second.
|
Rule |
onEvent(String id)
Defines a CloudWatch event rule which triggers for instance events.
|
Rule |
onEvent(String id,
OnEventOptions options)
Defines a CloudWatch event rule which triggers for instance events.
|
applyRemovalPolicy, getEnv, getStackgetConnectionsasSecretAttachmentTarget@Stability(value=Stable) @NotNull String getDbInstanceEndpointAddress()
@Stability(value=Stable) @NotNull String getDbInstanceEndpointPort()
@Stability(value=Stable) @NotNull String getInstanceArn()
@Stability(value=Stable) @NotNull Endpoint getInstanceEndpoint()
@Stability(value=Stable) @NotNull String getInstanceIdentifier()
@Stability(value=Stable) @Nullable default IInstanceEngine getEngine()
May be not known for imported Instances if it wasn't provided explicitly, or for read replicas.
@Stability(value=Stable) @NotNull DatabaseProxy addProxy(@NotNull String id, @NotNull DatabaseProxyOptions options)
id - This parameter is required.options - This parameter is required.@Stability(value=Stable) @NotNull Grant grantConnect(@NotNull IGrantable grantee)
Note: this method does not currently work, see https://github.com/aws/aws-cdk/issues/11851 for details.
grantee - This parameter is required.@Stability(value=Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - This parameter is required.props - @Stability(value=Stable) @NotNull Metric metric(@NotNull String metricName)
metricName - This parameter is required.@Stability(value=Stable) @NotNull Metric metricCPUUtilization(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricCPUUtilization()
Average over 5 minutes
@Stability(value=Stable) @NotNull Metric metricDatabaseConnections(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricDatabaseConnections()
Average over 5 minutes
@Stability(value=Stable) @NotNull Metric metricFreeableMemory(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricFreeableMemory()
Average over 5 minutes
@Stability(value=Stable) @NotNull Metric metricFreeStorageSpace(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricFreeStorageSpace()
Average over 5 minutes
@Stability(value=Stable) @NotNull Metric metricReadIOPS(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricReadIOPS()
Average over 5 minutes
@Stability(value=Stable) @NotNull Metric metricWriteIOPS(@Nullable MetricOptions props)
Average over 5 minutes
props - @Stability(value=Stable) @NotNull Metric metricWriteIOPS()
Average over 5 minutes
@Stability(value=Stable) @NotNull Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
id - This parameter is required.options - Copyright © 2022. All rights reserved.