Class DatabaseInstanceAttributes
Properties that describe an existing instance.
Inheritance
System.Object
DatabaseInstanceAttributes
Implements
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DatabaseInstanceAttributes : Object, IDatabaseInstanceAttributes
Syntax (vb)
Public Class DatabaseInstanceAttributes
Inherits Object
Implements IDatabaseInstanceAttributes
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.RDS;
IInstanceEngine instanceEngine;
SecurityGroup securityGroup;
var databaseInstanceAttributes = new DatabaseInstanceAttributes {
InstanceEndpointAddress = "instanceEndpointAddress",
InstanceIdentifier = "instanceIdentifier",
Port = 123,
SecurityGroups = new [] { securityGroup },
// the properties below are optional
Engine = instanceEngine,
InstanceResourceId = "instanceResourceId"
};
Synopsis
Constructors
DatabaseInstanceAttributes() |
Properties
Engine | The engine of the existing database Instance. |
InstanceEndpointAddress | The endpoint address. |
InstanceIdentifier | The instance identifier. |
InstanceResourceId | The AWS Region-unique, immutable identifier for the DB instance. |
Port | The database port. |
SecurityGroups | The security groups of the instance. |
Constructors
DatabaseInstanceAttributes()
public DatabaseInstanceAttributes()
Properties
Engine
The engine of the existing database Instance.
public IInstanceEngine Engine { get; set; }
Property Value
Remarks
Default: - the imported Instance's engine is unknown
InstanceEndpointAddress
The endpoint address.
public string InstanceEndpointAddress { get; set; }
Property Value
System.String
InstanceIdentifier
The instance identifier.
public string InstanceIdentifier { get; set; }
Property Value
System.String
InstanceResourceId
The AWS Region-unique, immutable identifier for the DB instance.
public string InstanceResourceId { get; set; }
Property Value
System.String
Remarks
This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.
Port
The database port.
public double Port { get; set; }
Property Value
System.Double
SecurityGroups
The security groups of the instance.
public ISecurityGroup[] SecurityGroups { get; set; }
Property Value