Interface IDatabaseInstance.Jsii$Default
- All Superinterfaces:
IConnectable
,IConnectable.Jsii$Default
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,IDatabaseInstance
,software.constructs.IDependable
,software.constructs.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$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDatabaseInstance
IDatabaseInstance.Jsii$Default, IDatabaseInstance.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.secretsmanager.ISecretAttachmentTarget
ISecretAttachmentTarget.Jsii$Default, ISecretAttachmentTarget.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault DatabaseProxy
addProxy
(String id, DatabaseProxyOptions options) Add a new db proxy to this instance.default void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.default SecretAttachmentTargetProps
Renders the target specifications.default Connections
The network connections associated with this resource.default String
The instance endpoint address.default String
The instance endpoint port.default IInstanceEngine
The engine of this database Instance.default ResourceEnvironment
getEnv()
The environment this resource belongs to.default String
The instance arn.default Endpoint
The instance endpoint.default String
The instance identifier.default String
The AWS Region-unique, immutable identifier for the DB instance.default software.constructs.Node
getNode()
The tree node.default Stack
getStack()
The stack in which this resource is defined.default Grant
grantConnect
(IGrantable grantee, String dbUser) Grant the given identity connection access to the database.default Metric
metric
(String metricName, MetricOptions props) Return the given named metric for this DBInstance.default Metric
The percentage of CPU utilization.default Metric
The number of database connections in use.default Metric
The amount of available random access memory.default Metric
The amount of available storage space.default Metric
metricReadIOPS
(MetricOptions props) The average number of disk write I/O operations per second.default Metric
metricWriteIOPS
(MetricOptions props) The average number of disk read I/O operations per second.default Rule
onEvent
(String id, OnEventOptions options) Defines a CloudWatch event rule which triggers for instance events.Methods inherited from interface software.amazon.awscdk.services.rds.IDatabaseInstance
grantConnect, metric, metricCPUUtilization, metricDatabaseConnections, metricFreeableMemory, metricFreeStorageSpace, metricReadIOPS, metricWriteIOPS, onEvent
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in 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:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnections
in interfaceIConnectable
- Specified by:
getConnections
in interfaceIConnectable.Jsii$Default
-
getDbInstanceEndpointAddress
The instance endpoint address.- Specified by:
getDbInstanceEndpointAddress
in interfaceIDatabaseInstance
-
getDbInstanceEndpointPort
The instance endpoint port.- Specified by:
getDbInstanceEndpointPort
in interfaceIDatabaseInstance
-
getInstanceArn
The instance arn.- Specified by:
getInstanceArn
in interfaceIDatabaseInstance
-
getInstanceEndpoint
The instance endpoint.- Specified by:
getInstanceEndpoint
in interfaceIDatabaseInstance
-
getInstanceIdentifier
The instance identifier.- Specified by:
getInstanceIdentifier
in 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:
getEngine
in interfaceIDatabaseInstance
-
getInstanceResourceId
The AWS Region-unique, immutable identifier for the DB instance.This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.
- Specified by:
getInstanceResourceId
in interfaceIDatabaseInstance
- See Also:
-
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:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
asSecretAttachmentTarget
Renders the target specifications.- Specified by:
asSecretAttachmentTarget
in interfaceISecretAttachmentTarget
- Specified by:
asSecretAttachmentTarget
in 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:
addProxy
in interfaceIDatabaseInstance
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
grantConnect
@Stability(Stable) @NotNull default Grant grantConnect(@NotNull IGrantable grantee, @Nullable String dbUser) Grant the given identity connection access to the database.- Specified by:
grantConnect
in interfaceIDatabaseInstance
- Parameters:
grantee
- the Principal to grant the permissions to. This parameter is required.dbUser
- the name of the database user to allow connecting as to the db instance.
-
metric
@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this DBInstance.- Specified by:
metric
in interfaceIDatabaseInstance
- Parameters:
metricName
- This parameter is required.props
-
-
metricCPUUtilization
The percentage of CPU utilization.Average over 5 minutes
- Specified by:
metricCPUUtilization
in interfaceIDatabaseInstance
- Parameters:
props
-
-
metricDatabaseConnections
The number of database connections in use.Average over 5 minutes
- Specified by:
metricDatabaseConnections
in interfaceIDatabaseInstance
- Parameters:
props
-
-
metricFreeableMemory
The amount of available random access memory.Average over 5 minutes
- Specified by:
metricFreeableMemory
in interfaceIDatabaseInstance
- Parameters:
props
-
-
metricFreeStorageSpace
The amount of available storage space.Average over 5 minutes
- Specified by:
metricFreeStorageSpace
in interfaceIDatabaseInstance
- Parameters:
props
-
-
metricReadIOPS
The average number of disk write I/O operations per second.Average over 5 minutes
- Specified by:
metricReadIOPS
in interfaceIDatabaseInstance
- Parameters:
props
-
-
metricWriteIOPS
The average number of disk read I/O operations per second.Average over 5 minutes
- Specified by:
metricWriteIOPS
in 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:
onEvent
in interfaceIDatabaseInstance
- Parameters:
id
- This parameter is required.options
-
-