import * as core from "@terrascript/core"; export interface DsDbInstanceArgs { /** * (Required) The name of the RDS instance */ dbInstanceIdentifier: string | core.StringOut; tags?: core.Map | core.MapOut; } export class DsDbInstance extends core.Data { /** * The hostname of the RDS instance. See also `endpoint` and `port`. */ @core.attr(String, { computed: true }) public address!: string | core.StringOut; /** * Specifies the allocated storage size specified in gigabytes. */ @core.attr(Number, { computed: true }) public allocatedStorage!: number | core.NumberOut; /** * Indicates that minor version patches are applied automatically. */ @core.attr(Boolean, { computed: true }) public autoMinorVersionUpgrade!: boolean | core.BooleanOut; /** * Specifies the name of the Availability Zone the DB instance is located in. */ @core.attr(String, { computed: true }) public availabilityZone!: string | core.StringOut; /** * Specifies the number of days for which automatic DB snapshots are retained. */ @core.attr(Number, { computed: true }) public backupRetentionPeriod!: number | core.NumberOut; /** * Specifies the identifier of the CA certificate for the DB instance. */ @core.attr(String, { computed: true }) public caCertIdentifier!: string | core.StringOut; /** * If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB inst * ance is a member of. */ @core.attr(String, { computed: true }) public dbClusterIdentifier!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the DB instance. */ @core.attr(String, { computed: true }) public dbInstanceArn!: string | core.StringOut; /** * Contains the name of the compute and memory capacity class of the DB instance. */ @core.attr(String, { computed: true }) public dbInstanceClass!: string | core.StringOut; /** * (Required) The name of the RDS instance */ @core.attr(String) public dbInstanceIdentifier!: string | core.StringOut; /** * Specifies the port that the DB instance listens on. */ @core.attr(Number, { computed: true }) public dbInstancePort!: number | core.NumberOut; /** * Contains the name of the initial database of this instance that was provided at create time, if one * was specified when the DB instance was created. This same name is returned for the life of the DB in * stance. */ @core.attr(String, { computed: true }) public dbName!: string | core.StringOut; /** * Provides the list of DB parameter groups applied to this DB instance. */ @core.attr(String, { computed: true, kind: "array" }) public dbParameterGroups!: core.Array | core.ArrayOut; /** * Provides List of DB security groups associated to this DB instance. */ @core.attr(String, { computed: true, kind: "array" }) public dbSecurityGroups!: core.Array | core.ArrayOut; /** * Specifies the name of the subnet group associated with the DB instance. */ @core.attr(String, { computed: true }) public dbSubnetGroup!: string | core.StringOut; /** * List of log types to export to cloudwatch. */ @core.attr(String, { computed: true, kind: "array" }) public enabledCloudwatchLogsExports!: | core.Array | core.ArrayOut; /** * The connection endpoint in `address:port` format. */ @core.attr(String, { computed: true }) public endpoint!: string | core.StringOut; /** * Provides the name of the database engine to be used for this DB instance. */ @core.attr(String, { computed: true }) public engine!: string | core.StringOut; /** * Indicates the database engine version. */ @core.attr(String, { computed: true }) public engineVersion!: string | core.StringOut; /** * The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record). */ @core.attr(String, { computed: true }) public hostedZoneId!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Specifies the Provisioned IOPS (I/O operations per second) value. */ @core.attr(Number, { computed: true }) public iops!: number | core.NumberOut; /** * If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance. */ @core.attr(String, { computed: true }) public kmsKeyId!: string | core.StringOut; /** * License model information for this DB instance. */ @core.attr(String, { computed: true }) public licenseModel!: string | core.StringOut; /** * Contains the master username for the DB instance. */ @core.attr(String, { computed: true }) public masterUsername!: string | core.StringOut; /** * The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB i * nstance. */ @core.attr(Number, { computed: true }) public monitoringInterval!: number | core.NumberOut; /** * The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to CloudWatch Logs. */ @core.attr(String, { computed: true }) public monitoringRoleArn!: string | core.StringOut; /** * Specifies if the DB instance is a Multi-AZ deployment. */ @core.attr(Boolean, { computed: true }) public multiAz!: boolean | core.BooleanOut; /** * The network type of the DB instance. */ @core.attr(String, { computed: true }) public networkType!: string | core.StringOut; /** * Provides the list of option group memberships for this DB instance. */ @core.attr(String, { computed: true, kind: "array" }) public optionGroupMemberships!: | core.Array | core.ArrayOut; /** * The database port. */ @core.attr(Number, { computed: true }) public port!: number | core.NumberOut; /** * Specifies the daily time range during which automated backups are created. */ @core.attr(String, { computed: true }) public preferredBackupWindow!: string | core.StringOut; /** * Specifies the weekly time range during which system maintenance can occur in UTC. */ @core.attr(String, { computed: true }) public preferredMaintenanceWindow!: string | core.StringOut; /** * Specifies the accessibility options for the DB instance. */ @core.attr(Boolean, { computed: true }) public publiclyAccessible!: boolean | core.BooleanOut; /** * The identifier of the source DB that this is a replica of. */ @core.attr(String, { computed: true }) public replicateSourceDb!: string | core.StringOut; /** * The RDS Resource ID of this instance. */ @core.attr(String, { computed: true }) public resourceId!: string | core.StringOut; /** * Specifies whether the DB instance is encrypted. */ @core.attr(Boolean, { computed: true }) public storageEncrypted!: boolean | core.BooleanOut; /** * Specifies the storage type associated with DB instance. */ @core.attr(String, { computed: true }) public storageType!: string | core.StringOut; @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * The time zone of the DB instance. */ @core.attr(String, { computed: true }) public timezone!: string | core.StringOut; /** * Provides a list of VPC security group elements that the DB instance belongs to. */ @core.attr(String, { computed: true, kind: "array" }) public vpcSecurityGroups!: core.Array | core.ArrayOut; constructor(name: string, args?: DsDbInstanceArgs) { super(name, "aws_db_instance", args); } public override getNamespace(): string { return "aws_rds"; } }