Interface IDatabaseInstance.Jsii$Default
- All Superinterfaces:
IConnectable,IConnectable.Jsii$Default,IConstruct,software.constructs.IConstruct,IConstruct.Jsii$Default,software.constructs.IConstruct.Jsii$Default,IDatabaseInstance,IDependable,IDependable.Jsii$Default,IResource,IResource.Jsii$Default,ISecretAttachmentTarget,ISecretAttachmentTarget.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IDatabaseInstance.Jsii$Proxy
- Enclosing interface:
- IDatabaseInstance
IDatabaseInstance.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDatabaseInstance
IDatabaseInstance.Jsii$Default, IDatabaseInstance.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.secretsmanager.ISecretAttachmentTarget
ISecretAttachmentTarget.Jsii$Default, ISecretAttachmentTarget.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault DatabaseProxyaddProxy(String id, DatabaseProxyOptions options) Add a new db proxy to this instance.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default SecretAttachmentTargetPropsRenders the target specifications.default ConnectionsThe network connections associated with this resource.default StringThe instance endpoint address.default StringThe instance endpoint port.default IInstanceEngineThe engine of this database Instance.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default StringThe instance arn.default EndpointThe instance endpoint.default StringThe instance identifier.default ConstructNodegetNode()The construct tree node for this construct.default StackgetStack()The stack in which this resource is defined.default GrantgrantConnect(IGrantable grantee) Grant the given identity connection access to the database.default Metricmetric(String metricName, MetricOptions props) Return the given named metric for this DBInstance.default MetricThe percentage of CPU utilization.default MetricThe number of database connections in use.default MetricThe amount of available random access memory.default MetricThe amount of available storage space.default MetricmetricReadIOPS(MetricOptions props) The average number of disk write I/O operations per second.default MetricmetricWriteIOPS(MetricOptions props) The average number of disk read I/O operations per second.default RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for instance events.Methods inherited from interface software.amazon.awscdk.services.rds.IDatabaseInstance
metric, metricCPUUtilization, metricDatabaseConnections, metricFreeableMemory, metricFreeStorageSpace, metricReadIOPS, metricWriteIOPS, onEventMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin interfaceIConnectable.Jsii$Default
-
getDbInstanceEndpointAddress
The instance endpoint address.- Specified by:
getDbInstanceEndpointAddressin interfaceIDatabaseInstance
-
getDbInstanceEndpointPort
The instance endpoint port.- Specified by:
getDbInstanceEndpointPortin interfaceIDatabaseInstance
-
getInstanceArn
The instance arn.- Specified by:
getInstanceArnin interfaceIDatabaseInstance
-
getInstanceEndpoint
The instance endpoint.- Specified by:
getInstanceEndpointin interfaceIDatabaseInstance
-
getInstanceIdentifier
The instance identifier.- Specified by:
getInstanceIdentifierin interfaceIDatabaseInstance
-
getEngine
The engine of this database Instance.May be not known for imported Instances if it wasn't provided explicitly, or for read replicas.
- Specified by:
getEnginein interfaceIDatabaseInstance
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
asSecretAttachmentTarget
Renders the target specifications.- Specified by:
asSecretAttachmentTargetin interfaceISecretAttachmentTarget- Specified by:
asSecretAttachmentTargetin interfaceISecretAttachmentTarget.Jsii$Default
-
addProxy
@Stability(Stable) @NotNull default DatabaseProxy addProxy(@NotNull String id, @NotNull DatabaseProxyOptions options) Add a new db proxy to this instance.- Specified by:
addProxyin interfaceIDatabaseInstance- Parameters:
id- This parameter is required.options- This parameter is required.
-
grantConnect
Grant the given identity connection access to the database.Note: this method does not currently work, see https://github.com/aws/aws-cdk/issues/11851 for details.
- Specified by:
grantConnectin interfaceIDatabaseInstance- Parameters:
grantee- This parameter is required.- See Also:
-
metric
@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this DBInstance.- Specified by:
metricin interfaceIDatabaseInstance- Parameters:
metricName- This parameter is required.props-
-
metricCPUUtilization
The percentage of CPU utilization.Average over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDatabaseInstance- Parameters:
props-
-
metricDatabaseConnections
The number of database connections in use.Average over 5 minutes
- Specified by:
metricDatabaseConnectionsin interfaceIDatabaseInstance- Parameters:
props-
-
metricFreeableMemory
The amount of available random access memory.Average over 5 minutes
- Specified by:
metricFreeableMemoryin interfaceIDatabaseInstance- Parameters:
props-
-
metricFreeStorageSpace
The amount of available storage space.Average over 5 minutes
- Specified by:
metricFreeStorageSpacein interfaceIDatabaseInstance- Parameters:
props-
-
metricReadIOPS
The average number of disk write I/O operations per second.Average over 5 minutes
- Specified by:
metricReadIOPSin interfaceIDatabaseInstance- Parameters:
props-
-
metricWriteIOPS
The average number of disk read I/O operations per second.Average over 5 minutes
- Specified by:
metricWriteIOPSin interfaceIDatabaseInstance- Parameters:
props-
-
onEvent
@Stability(Stable) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule which triggers for instance events.Use
rule.addEventPattern(pattern)to specify a filter.- Specified by:
onEventin interfaceIDatabaseInstance- Parameters:
id- This parameter is required.options-
-