Class InstanceArgs
Inherited Members
Namespace: Pulumi.Aws.Rds
Assembly: Pulumi.Aws.dll
Syntax
public sealed class InstanceArgs : ResourceArgs
Constructors
View SourceInstanceArgs()
Declaration
public InstanceArgs()
Properties
View SourceAllocatedStorage
The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.
Declaration
public Input<int> AllocatedStorage { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
AllowMajorVersionUpgrade
Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
Declaration
public Input<bool> AllowMajorVersionUpgrade { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
ApplyImmediately
Specifies whether any database modifications
are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more
information.
Declaration
public Input<bool> ApplyImmediately { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
AutoMinorVersionUpgrade
Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
Declaration
public Input<bool> AutoMinorVersionUpgrade { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
AvailabilityZone
The AZ for the RDS instance.
Declaration
public Input<string> AvailabilityZone { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
BackupRetentionPeriod
The days to retain backups for. Must be
between 0 and 35. Must be greater than 0 if the database is used as a source for a Read Replica. [See Read Replica][1].
Declaration
public Input<int> BackupRetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
BackupWindow
The daily time range (in UTC) during which
automated backups are created if they are enabled. Example: "09:46-10:16". Must
not overlap with maintenance_window.
Declaration
public Input<string> BackupWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CaCertIdentifier
The identifier of the CA certificate for the DB instance.
Declaration
public Input<string> CaCertIdentifier { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CharacterSetName
The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
Declaration
public Input<string> CharacterSetName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CopyTagsToSnapshot
Copy all Instance tags to snapshots. Default is false.
Declaration
public Input<bool> CopyTagsToSnapshot { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
DbSubnetGroupName
Name of DB subnet group. DB instance will
be created in the VPC associated with the DB subnet group. If unspecified, will
be created in the default VPC, or in EC2 Classic, if available. When working
with read replicas, it should be specified only if the source database
specifies an instance in another AWS Region. See DBSubnetGroupName in API
action CreateDBInstanceReadReplica
for additional read replica contraints.
Declaration
public Input<string> DbSubnetGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DeleteAutomatedBackups
Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
Declaration
public Input<bool> DeleteAutomatedBackups { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
DeletionProtection
If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.
Declaration
public Input<bool> DeletionProtection { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Domain
The ID of the Directory Service Active Directory domain to create the instance in.
Declaration
public Input<string> Domain { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DomainIamRoleName
The name of the IAM role to be used when making API calls to the Directory Service.
Declaration
public Input<string> DomainIamRoleName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EnabledCloudwatchLogsExports
List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace.
Declaration
public InputList<string> EnabledCloudwatchLogsExports { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Engine
(Required unless a snapshot_identifier or replicate_source_db
is provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance.
Note that for Amazon Aurora instances the engine must match the DB cluster's engine'.
For information on the difference between the available Aurora MySQL engines
see Comparison between Aurora MySQL 1 and Aurora MySQL 2
in the Amazon RDS User Guide.
Declaration
public Input<string> Engine { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EngineVersion
The engine version to use. If auto_minor_version_upgrade
is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10) and
this attribute will ignore differences in the patch version automatically (e.g. 5.7.17).
For supported values, see the EngineVersion parameter in API action CreateDBInstance.
Note that for Amazon Aurora instances the engine version must match the DB cluster's engine version'.
Declaration
public Input<string> EngineVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
FinalSnapshotIdentifier
The name of your final DB snapshot
when this DB instance is deleted. Must be provided if skip_final_snapshot is
set to false.
Declaration
public Input<string> FinalSnapshotIdentifier { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
IamDatabaseAuthenticationEnabled
Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
Declaration
public Input<bool> IamDatabaseAuthenticationEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Identifier
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
Declaration
public Input<string> Identifier { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
IdentifierPrefix
Creates a unique
identifier beginning with the specified prefix. Conflicts with identifier.
Declaration
public Input<string> IdentifierPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceClass
The instance type of the RDS instance.
Declaration
public Input<string> InstanceClass { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Iops
The amount of provisioned IOPS. Setting this implies a storage_type of "io1".
Declaration
public Input<int> Iops { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
KmsKeyId
The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
Declaration
public Input<string> KmsKeyId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LicenseModel
(Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
Declaration
public Input<string> LicenseModel { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MaintenanceWindow
The window to perform maintenance in. Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS Maintenance Window docs for more information.
Declaration
public Input<string> MaintenanceWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MaxAllocatedStorage
When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling.
Declaration
public Input<int> MaxAllocatedStorage { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MonitoringInterval
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
Declaration
public Input<int> MonitoringInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MonitoringRoleArn
The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
Declaration
public Input<string> MonitoringRoleArn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MultiAz
Specifies if the RDS instance is multi-AZ
Declaration
public Input<bool> MultiAz { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Name
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
OptionGroupName
Name of the DB option group to associate.
Declaration
public Input<string> OptionGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ParameterGroupName
Name of the DB parameter group to associate.
Declaration
public Input<string> ParameterGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Password
(Required unless a snapshot_identifier or replicate_source_db
is provided) Password for the master DB user. Note that this may show up in
logs, and it will be stored in the state file.
Declaration
public Input<string> Password { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PerformanceInsightsEnabled
Specifies whether Performance Insights are enabled. Defaults to false.
Declaration
public Input<bool> PerformanceInsightsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
PerformanceInsightsKmsKeyId
The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed.
Declaration
public Input<string> PerformanceInsightsKmsKeyId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PerformanceInsightsRetentionPeriod
The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'.
Declaration
public Input<int> PerformanceInsightsRetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Port
The port on which the DB accepts connections.
Declaration
public Input<int> Port { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
PubliclyAccessible
Bool to control if instance is publicly
accessible. Default is false.
Declaration
public Input<bool> PubliclyAccessible { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
ReplicateSourceDb
Specifies that this resource is a Replicate
database, and to use this value as the source database. This correlates to the
identifier of another Amazon RDS Database to replicate (if replicating within
a single region) or ARN of the Amazon RDS Database to replicate (if replicating
cross-region). Note that if you are
creating a cross-region replica of an encrypted database you will also need to
specify a kms_key_id. See [DB Instance Replication][1] and Working with
PostgreSQL and MySQL Read Replicas
for more information on using Replication.
Declaration
public Input<string> ReplicateSourceDb { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
S3Import
Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
Declaration
public Input<InstanceS3ImportArgs> S3Import { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<InstanceS3ImportArgs> |
SecurityGroupNames
List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
Declaration
public InputList<string> SecurityGroupNames { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
SkipFinalSnapshot
Determines whether a final DB snapshot is
created before the DB instance is deleted. If true is specified, no DBSnapshot
is created. If false is specified, a DB snapshot is created before the DB
instance is deleted, using the value from final_snapshot_identifier. Default
is false.
Declaration
public Input<bool> SkipFinalSnapshot { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
SnapshotIdentifier
Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you'd find in the RDS console, e.g: rds:production-2015-06-26-06-05.
Declaration
public Input<string> SnapshotIdentifier { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
StorageEncrypted
Specifies whether the DB instance is
encrypted. Note that if you are creating a cross-region read replica this field
is ignored and you should instead declare kms_key_id with a valid ARN. The
default is false if not specified.
Declaration
public Input<bool> StorageEncrypted { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
StorageType
One of "standard" (magnetic), "gp2" (general
purpose SSD), or "io1" (provisioned IOPS SSD). The default is "io1" if iops is
specified, "gp2" if not.
Declaration
public Input<string> StorageType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
Timezone
Time zone of the DB instance. timezone is currently
only supported by Microsoft SQL Server. The timezone can only be set on
creation. See MSSQL User
Guide
for more information.
Declaration
public Input<string> Timezone { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Username
(Required unless a snapshot_identifier or replicate_source_db
is provided) Username for the master DB user.
Declaration
public Input<string> Username { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
VpcSecurityGroupIds
List of VPC security groups to associate.
Declaration
public InputList<string> VpcSecurityGroupIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |