Class IDatabaseInstance.Jsii$Proxy
- All Implemented Interfaces:
IConstruct,IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,IResource,IResource.Jsii$Default,IConnectable,IConnectable.Jsii$Default,IDatabaseInstance,IDatabaseInstance.Jsii$Default,ISecretAttachmentTarget,ISecretAttachmentTarget.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default
- Enclosing interface:
- IDatabaseInstance
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DatabaseProxyaddProxy(String id, DatabaseProxyOptions options) Add a new db proxy to this instance.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.Renders the target specifications.final ConnectionsThe network connections associated with this resource.final StringThe instance endpoint address.final StringThe instance endpoint port.final IInstanceEngineThe engine of this database Instance.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final StringThe instance arn.final EndpointThe instance endpoint.final StringThe instance identifier.final ConstructNodegetNode()The construct tree node for this construct.final StackgetStack()The stack in which this resource is defined.final GrantgrantConnect(IGrantable grantee) Grant the given identity connection access to the database.final MetricReturn the given named metric for this DBInstance.final Metricmetric(String metricName, MetricOptions props) Return the given named metric for this DBInstance.final MetricThe percentage of CPU utilization.final MetricThe percentage of CPU utilization.final MetricThe number of database connections in use.final MetricThe number of database connections in use.final MetricThe amount of available random access memory.final MetricThe amount of available random access memory.final MetricThe amount of available storage space.final MetricThe amount of available storage space.final MetricThe average number of disk write I/O operations per second.final MetricmetricReadIOPS(MetricOptions props) The average number of disk write I/O operations per second.final MetricThe average number of disk read I/O operations per second.final MetricmetricWriteIOPS(MetricOptions props) The average number of disk read I/O operations per second.final RuleDefines a CloudWatch event rule which triggers for instance events.final RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for instance events.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIDatabaseInstance.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 interfaceIDatabaseInstance.Jsii$Default- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIDatabaseInstance.Jsii$Default- 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- Specified by:
getConnectionsin interfaceIDatabaseInstance.Jsii$Default
-
getDbInstanceEndpointAddress
The instance endpoint address.- Specified by:
getDbInstanceEndpointAddressin interfaceIDatabaseInstance- Specified by:
getDbInstanceEndpointAddressin interfaceIDatabaseInstance.Jsii$Default
-
getDbInstanceEndpointPort
The instance endpoint port.- Specified by:
getDbInstanceEndpointPortin interfaceIDatabaseInstance- Specified by:
getDbInstanceEndpointPortin interfaceIDatabaseInstance.Jsii$Default
-
getInstanceArn
The instance arn.- Specified by:
getInstanceArnin interfaceIDatabaseInstance- Specified by:
getInstanceArnin interfaceIDatabaseInstance.Jsii$Default
-
getInstanceEndpoint
The instance endpoint.- Specified by:
getInstanceEndpointin interfaceIDatabaseInstance- Specified by:
getInstanceEndpointin interfaceIDatabaseInstance.Jsii$Default
-
getInstanceIdentifier
The instance identifier.- Specified by:
getInstanceIdentifierin interfaceIDatabaseInstance- Specified by:
getInstanceIdentifierin interfaceIDatabaseInstance.Jsii$Default
-
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- Specified by:
getEnginein interfaceIDatabaseInstance.Jsii$Default
-
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 interfaceIDatabaseInstance.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
asSecretAttachmentTarget
Renders the target specifications.- Specified by:
asSecretAttachmentTargetin interfaceIDatabaseInstance.Jsii$Default- Specified by:
asSecretAttachmentTargetin interfaceISecretAttachmentTarget- Specified by:
asSecretAttachmentTargetin interfaceISecretAttachmentTarget.Jsii$Default
-
addProxy
@Stability(Stable) @NotNull public final DatabaseProxy addProxy(@NotNull String id, @NotNull DatabaseProxyOptions options) Add a new db proxy to this instance.- Specified by:
addProxyin interfaceIDatabaseInstance- Specified by:
addProxyin interfaceIDatabaseInstance.Jsii$Default- 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- Specified by:
grantConnectin interfaceIDatabaseInstance.Jsii$Default- Parameters:
grantee- This parameter is required.- See Also:
-
metric
@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this DBInstance.- Specified by:
metricin interfaceIDatabaseInstance- Specified by:
metricin interfaceIDatabaseInstance.Jsii$Default- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this DBInstance.- Specified by:
metricin interfaceIDatabaseInstance- Parameters:
metricName- This parameter is required.
-
metricCPUUtilization
The percentage of CPU utilization.Average over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDatabaseInstance- Specified by:
metricCPUUtilizationin interfaceIDatabaseInstance.Jsii$Default- Parameters:
props-
-
metricCPUUtilization
The percentage of CPU utilization.Average over 5 minutes
- Specified by:
metricCPUUtilizationin interfaceIDatabaseInstance
-
metricDatabaseConnections
@Stability(Stable) @NotNull public final Metric metricDatabaseConnections(@Nullable MetricOptions props) The number of database connections in use.Average over 5 minutes
- Specified by:
metricDatabaseConnectionsin interfaceIDatabaseInstance- Specified by:
metricDatabaseConnectionsin interfaceIDatabaseInstance.Jsii$Default- Parameters:
props-
-
metricDatabaseConnections
The number of database connections in use.Average over 5 minutes
- Specified by:
metricDatabaseConnectionsin interfaceIDatabaseInstance
-
metricFreeableMemory
The amount of available random access memory.Average over 5 minutes
- Specified by:
metricFreeableMemoryin interfaceIDatabaseInstance- Specified by:
metricFreeableMemoryin interfaceIDatabaseInstance.Jsii$Default- Parameters:
props-
-
metricFreeableMemory
The amount of available random access memory.Average over 5 minutes
- Specified by:
metricFreeableMemoryin interfaceIDatabaseInstance
-
metricFreeStorageSpace
@Stability(Stable) @NotNull public final Metric metricFreeStorageSpace(@Nullable MetricOptions props) The amount of available storage space.Average over 5 minutes
- Specified by:
metricFreeStorageSpacein interfaceIDatabaseInstance- Specified by:
metricFreeStorageSpacein interfaceIDatabaseInstance.Jsii$Default- Parameters:
props-
-
metricFreeStorageSpace
The amount of available storage space.Average over 5 minutes
- Specified by:
metricFreeStorageSpacein interfaceIDatabaseInstance
-
metricReadIOPS
The average number of disk write I/O operations per second.Average over 5 minutes
- Specified by:
metricReadIOPSin interfaceIDatabaseInstance- Specified by:
metricReadIOPSin interfaceIDatabaseInstance.Jsii$Default- Parameters:
props-
-
metricReadIOPS
The average number of disk write I/O operations per second.Average over 5 minutes
- Specified by:
metricReadIOPSin interfaceIDatabaseInstance
-
metricWriteIOPS
The average number of disk read I/O operations per second.Average over 5 minutes
- Specified by:
metricWriteIOPSin interfaceIDatabaseInstance- Specified by:
metricWriteIOPSin interfaceIDatabaseInstance.Jsii$Default- Parameters:
props-
-
metricWriteIOPS
The average number of disk read I/O operations per second.Average over 5 minutes
- Specified by:
metricWriteIOPSin interfaceIDatabaseInstance
-
onEvent
@Stability(Stable) @NotNull public final 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- Specified by:
onEventin interfaceIDatabaseInstance.Jsii$Default- Parameters:
id- This parameter is required.options-
-
onEvent
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.
-