aws_db_instance.md

April 1, 2019 ยท View on GitHub

Document: "rds"

Path: "https://github.com/aws/aws-sdk-go-v2/tree/master/models/apis/rds/2014-10-31/api-2.json")

DBInstance

aws_db_instance {
  allocated_storage => "AllocatedStorage (optional)",
  allow_major_version_upgrade => "AllowMajorVersionUpgrade (optional)",
  apply_immediately => "ApplyImmediately (optional)",
  auto_minor_version_upgrade => "AutoMinorVersionUpgrade (optional)",
  availability_zone => "availability_zone (optional)",
  backup_retention_period => "BackupRetentionPeriod (optional)",
  ca_certificate_identifier => "ca_certificate_identifier (optional)",
  character_set_name => "character_set_name (optional)",
  cloudwatch_logs_export_configuration => $aws_cloudwatch_logs_export_configuration
  copy_tags_to_snapshot => "CopyTagsToSnapshot (optional)",
  db_cluster_identifier => "db_cluster_identifier (optional)",
  db_instance_class => "db_instance_class (optional)",
  db_instance_identifier => "db_instance_identifier (optional)",
  db_name => "db_name (optional)",
  db_parameter_group_name => "db_parameter_group_name (optional)",
  db_port_number => "DBPortNumber (optional)",
  db_security_groups => "DBSecurityGroups (optional)",
  db_subnet_group_name => "db_subnet_group_name (optional)",
  delete_automated_backups => "DeleteAutomatedBackups (optional)",
  deletion_protection => "DeletionProtection (optional)",
  domain => "domain (optional)",
  domain_iam_role_name => "domain_iam_role_name (optional)",
  enable_cloudwatch_logs_exports => "EnableCloudwatchLogsExports (optional)",
  enable_iam_database_authentication => "EnableIAMDatabaseAuthentication (optional)",
  enable_performance_insights => "EnablePerformanceInsights (optional)",
  engine => "engine (optional)",
  engine_version => "engine_version (optional)",
  filters => "Filters (optional)",
  final_db_snapshot_identifier => "final_db_snapshot_identifier (optional)",
  iops => "Iops (optional)",
  kms_key_id => "kms_key_id (optional)",
  license_model => "license_model (optional)",
  master_username => "master_username (optional)",
  master_user_password => "master_user_password (optional)",
  max_records => "MaxRecords (optional)",
  monitoring_interval => "MonitoringInterval (optional)",
  monitoring_role_arn => "monitoring_role_arn (optional)",
  multi_az => "MultiAZ (optional)",
  master_username => "master_username (optional)",
  new_db_instance_identifier => "new_db_instance_identifier (optional)",
  option_group_name => "option_group_name (optional)",
  performance_insights_kms_key_id => "performance_insights_kms_key_id (optional)",
  performance_insights_retention_period => "PerformanceInsightsRetentionPeriod (optional)",
  port => "Port (optional)",
  preferred_backup_window => "preferred_backup_window (optional)",
  preferred_maintenance_window => "preferred_maintenance_window (optional)",
  processor_features => "ProcessorFeatures (optional)",
  promotion_tier => "PromotionTier (optional)",
  publicly_accessible => "PubliclyAccessible (optional)",
  skip_final_snapshot => "SkipFinalSnapshot (optional)",
  storage_encrypted => "StorageEncrypted (optional)",
  storage_type => "storage_type (optional)",
  tags => "Tags (optional)",
  tde_credential_arn => "tde_credential_arn (optional)",
  tde_credential_password => "tde_credential_password (optional)",
  timezone => "timezone (optional)",
  use_default_processor_features => "UseDefaultProcessorFeatures (optional)",
  vpc_security_group_ids => "VpcSecurityGroupIds (optional)",
}
NameTypeRequired
allocated_storageIntegerOptionalfalse
allow_major_version_upgradeBooleanfalse
apply_immediatelyBooleanfalse
auto_minor_version_upgradeBooleanOptionalfalse
availability_zoneStringfalse
backup_retention_periodIntegerOptionalfalse
ca_certificate_identifierStringfalse
character_set_nameStringfalse
cloudwatch_logs_export_configurationCloudwatchLogsExportConfigurationfalse
copy_tags_to_snapshotBooleanOptionalfalse
db_cluster_identifierStringfalse
db_instance_classStringfalse
db_instance_identifierStringfalse
db_nameStringfalse
db_parameter_group_nameStringfalse
db_port_numberIntegerOptionalfalse
db_security_groupsDBSecurityGroupNameListfalse
db_subnet_group_nameStringfalse
delete_automated_backupsBooleanOptionalfalse
deletion_protectionBooleanOptionalfalse
domainStringfalse
domain_iam_role_nameStringfalse
enable_cloudwatch_logs_exportsLogTypeListfalse
enable_iam_database_authenticationBooleanOptionalfalse
enable_performance_insightsBooleanOptionalfalse
engineStringfalse
engine_versionStringfalse
filtersFilterListfalse
final_db_snapshot_identifierStringfalse
iopsIntegerOptionalfalse
kms_key_idStringfalse
license_modelStringfalse
master_usernameStringfalse
master_user_passwordStringfalse
max_recordsIntegerOptionalfalse
monitoring_intervalIntegerOptionalfalse
monitoring_role_arnStringfalse
multi_azBooleanOptionalfalse
master_usernameStringfalse
new_db_instance_identifierStringfalse
option_group_nameStringfalse
performance_insights_kms_key_idStringfalse
performance_insights_retention_periodIntegerOptionalfalse
portIntegerOptionalfalse
preferred_backup_windowStringfalse
preferred_maintenance_windowStringfalse
processor_featuresProcessorFeatureListfalse
promotion_tierIntegerOptionalfalse
publicly_accessibleBooleanOptionalfalse
skip_final_snapshotBooleanfalse
storage_encryptedBooleanOptionalfalse
storage_typeStringfalse
tagsTagListfalse
tde_credential_arnStringfalse
tde_credential_passwordStringfalse
timezoneStringfalse
use_default_processor_featuresBooleanOptionalfalse
vpc_security_group_idsVpcSecurityGroupIdListfalse

CRUD operations

Here is a list of endpoints that we use to create, read, update and delete the DBInstance

OperationPathVerbDescriptionOperationID
Create/POST

Creates a new DB instance.

CreateDBInstance
List - list all/POST

Returns information about provisioned RDS instances. This API supports pagination.

DescribeDBInstances
List - get one``
List - get list using params/POST

Returns information about provisioned RDS instances. This API supports pagination.

DescribeDBInstances
Update/POST

Modifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call DescribeValidDBInstanceModifications before you call ModifyDBInstance.

ModifyDBInstance
Delete/POST

The DeleteDBInstance action deletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and can't be recovered. Manual DB snapshots of the DB instance to be deleted by DeleteDBInstance are not deleted.

If you request a final DB snapshot the status of the Amazon RDS DB instance is deleting until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action can't be canceled or reverted once submitted.

Note that when a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, you can only delete it when the SkipFinalSnapshot parameter is set to true.

If the specified DB instance is part of an Amazon Aurora DB cluster, you can't delete the DB instance if both of the following conditions are true:

  • The DB cluster is a Read Replica of another Amazon Aurora DB cluster.

  • The DB instance is the only instance in the DB cluster.

To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster API action to promote the DB cluster so it's no longer a Read Replica. After the promotion completes, then call the DeleteDBInstance API action to delete the final instance in the DB cluster.

DeleteDBInstance