You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Neptune::Types::CreateDBInstanceMessage

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateDBInstanceMessage as input to an Aws::Client method, you can use a vanilla Hash:

{
  db_name: "String",
  db_instance_identifier: "String", # required
  allocated_storage: 1,
  db_instance_class: "String", # required
  engine: "String", # required
  master_username: "String",
  master_user_password: "String",
  db_security_groups: ["String"],
  vpc_security_group_ids: ["String"],
  availability_zone: "String",
  db_subnet_group_name: "String",
  preferred_maintenance_window: "String",
  db_parameter_group_name: "String",
  backup_retention_period: 1,
  preferred_backup_window: "String",
  port: 1,
  multi_az: false,
  engine_version: "String",
  auto_minor_version_upgrade: false,
  license_model: "String",
  iops: 1,
  option_group_name: "String",
  character_set_name: "String",
  publicly_accessible: false,
  tags: [
    {
      key: "String",
      value: "String",
    },
  ],
  db_cluster_identifier: "String",
  storage_type: "String",
  tde_credential_arn: "String",
  tde_credential_password: "String",
  storage_encrypted: false,
  kms_key_id: "String",
  domain: "String",
  copy_tags_to_snapshot: false,
  monitoring_interval: 1,
  monitoring_role_arn: "String",
  domain_iam_role_name: "String",
  promotion_tier: 1,
  timezone: "String",
  enable_iam_database_authentication: false,
  enable_performance_insights: false,
  performance_insights_kms_key_id: "String",
  enable_cloudwatch_logs_exports: ["String"],
  deletion_protection: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#allocated_storageInteger

The amount of storage (in gibibytes) to allocate for the DB instance.

Type: Integer

Not applicable. Neptune cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in a Neptune cluster volume.

Returns:

  • (Integer)

    The amount of storage (in gibibytes) to allocate for the DB instance.

#auto_minor_version_upgradeBoolean

Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.

Default: true

Returns:

  • (Boolean)

    Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.

#availability_zoneString

The EC2 Availability Zone that the DB instance is created in

Default: A random, system-chosen Availability Zone in the endpoint\'s AWS Region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter can\'t be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same AWS Region as the current endpoint.

Returns:

  • (String)

    The EC2 Availability Zone that the DB instance is created in.

#backup_retention_periodInteger

The number of days for which automated backups are retained.

Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see CreateDBCluster.

Default: 1

Constraints:

  • Must be a value from 0 to 35

  • Cannot be set to 0 if the DB instance is a source to Read Replicas

Returns:

  • (Integer)

    The number of days for which automated backups are retained.

#character_set_nameString

(Not supported by Neptune)

Returns:

  • (String)

    (Not supported by Neptune).

#copy_tags_to_snapshotBoolean

True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.

Returns:

  • (Boolean)

    True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false.

#db_cluster_identifierString

The identifier of the DB cluster that the instance will belong to.

For information on creating a DB cluster, see CreateDBCluster.

Type: String

Returns:

  • (String)

    The identifier of the DB cluster that the instance will belong to.

#db_instance_classString

The compute and memory capacity of the DB instance, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions.

Returns:

  • (String)

    The compute and memory capacity of the DB instance, for example, db.m4.large.

#db_instance_identifierString

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

Returns:

  • (String)

    The DB instance identifier.

#db_nameString

Not supported.

Returns:

  • (String)

    Not supported.

#db_parameter_group_nameString

The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine is used.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Returns:

  • (String)

    The name of the DB parameter group to associate with this DB instance.

#db_security_groupsArray<String>

A list of DB security groups to associate with this DB instance.

Default: The default DB security group for the database engine.

Returns:

  • (Array<String>)

    A list of DB security groups to associate with this DB instance.

#db_subnet_group_nameString

A DB subnet group to associate with this DB instance.

If there is no DB subnet group, then it is a non-VPC DB instance.

Returns:

  • (String)

    A DB subnet group to associate with this DB instance.

#deletion_protectionBoolean

A value that indicates whether the DB instance has deletion protection enabled. The database can\'t be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance.

DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB cluster.

Returns:

  • (Boolean)

    A value that indicates whether the DB instance has deletion protection enabled.

#domainString

Specify the Active Directory Domain to create the instance in.

Returns:

  • (String)

    Specify the Active Directory Domain to create the instance in.

#domain_iam_role_nameString

Specify the name of the IAM role to be used when making API calls to the Directory Service.

Returns:

  • (String)

    Specify the name of the IAM role to be used when making API calls to the Directory Service.

#enable_cloudwatch_logs_exportsArray<String>

The list of log types that need to be enabled for exporting to CloudWatch Logs.

Returns:

  • (Array<String>)

    The list of log types that need to be enabled for exporting to CloudWatch Logs.

#enable_iam_database_authenticationBoolean

True to enable AWS Identity and Access Management (IAM) authentication for Neptune.

Default: false

Returns:

  • (Boolean)

    True to enable AWS Identity and Access Management (IAM) authentication for Neptune.

#enable_performance_insightsBoolean

(Not supported by Neptune)

Returns:

  • (Boolean)

    (Not supported by Neptune).

#engineString

The name of the database engine to be used for this instance.

Valid Values: neptune

Returns:

  • (String)

    The name of the database engine to be used for this instance.

#engine_versionString

The version number of the database engine to use. Currently, setting this parameter has no effect.

Returns:

  • (String)

    The version number of the database engine to use.

#iopsInteger

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

Returns:

  • (Integer)

    The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.

#kms_key_idString

The AWS KMS key identifier for an encrypted DB instance.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB instance with the same AWS account that owns the KMS encryption key used to encrypt the new DB instance, then you can use the KMS key alias instead of the ARN for the KM encryption key.

Not applicable. The KMS key identifier is managed by the DB cluster. For more information, see CreateDBCluster.

If the StorageEncrypted parameter is true, and you do not specify a value for the KmsKeyId parameter, then Amazon Neptune will use your default encryption key. AWS KMS creates the default encryption key for your AWS account. Your AWS account has a different default encryption key for each AWS Region.

Returns:

  • (String)

    The AWS KMS key identifier for an encrypted DB instance.

#license_modelString

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

Returns:

  • (String)

    License model information for this DB instance.

#master_user_passwordString

The password for the master user. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\".

Not used.

Returns:

  • (String)

    The password for the master user.

#master_usernameString

The name for the master user. Not used.

Returns:

  • (String)

    The name for the master user.

#monitoring_intervalInteger

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.

If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

Valid Values: 0, 1, 5, 10, 15, 30, 60

Returns:

  • (Integer)

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

#monitoring_role_arnString

The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.

If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

Returns:

  • (String)

    The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs.

#multi_azBoolean

Specifies if the DB instance is a Multi-AZ deployment. You can\'t set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Returns:

  • (Boolean)

    Specifies if the DB instance is a Multi-AZ deployment.

#option_group_nameString

(Not supported by Neptune)

Returns:

  • (String)

    (Not supported by Neptune).

#performance_insights_kms_key_idString

(Not supported by Neptune)

Returns:

  • (String)

    (Not supported by Neptune).

#portInteger

The port number on which the database accepts connections.

Not applicable. The port is managed by the DB cluster. For more information, see CreateDBCluster.

Default: 8182

Type: Integer

Returns:

  • (Integer)

    The port number on which the database accepts connections.

#preferred_backup_windowString

The daily time range during which automated backups are created.

Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see CreateDBCluster.

Returns:

  • (String)

    The daily time range during which automated backups are created.

#preferred_maintenance_windowString

The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).

Format: ddd:hh24:mi-ddd:hh24:mi

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

Constraints: Minimum 30-minute window.

Returns:

  • (String)

    The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).

#promotion_tierInteger

A value that specifies the order in which an Read Replica is promoted to the primary instance after a failure of the existing primary instance.

Default: 1

Valid Values: 0 - 15

Returns:

  • (Integer)

    A value that specifies the order in which an Read Replica is promoted to the primary instance after a failure of the existing primary instance.

#publicly_accessibleBoolean

This flag should no longer be used.

Returns:

  • (Boolean)

    This flag should no longer be used.

#storage_encryptedBoolean

Specifies whether the DB instance is encrypted.

Not applicable. The encryption for DB instances is managed by the DB cluster. For more information, see CreateDBCluster.

Default: false

Returns:

  • (Boolean)

    Specifies whether the DB instance is encrypted.

#storage_typeString

Specifies the storage type to be associated with the DB instance.

Not applicable. Storage is managed by the DB Cluster.

Returns:

  • (String)

    Specifies the storage type to be associated with the DB instance.

#tagsArray<Types::Tag>

The tags to assign to the new instance.

Returns:

  • (Array<Types::Tag>)

    The tags to assign to the new instance.

#tde_credential_arnString

The ARN from the key store with which to associate the instance for TDE encryption.

Returns:

  • (String)

    The ARN from the key store with which to associate the instance for TDE encryption.

#tde_credential_passwordString

The password for the given ARN from the key store in order to access the device.

Returns:

  • (String)

    The password for the given ARN from the key store in order to access the device.

#timezoneString

The time zone of the DB instance.

Returns:

  • (String)

    The time zone of the DB instance.

#vpc_security_group_idsArray<String>

A list of EC2 VPC security groups to associate with this DB instance.

Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see CreateDBCluster.

Default: The default EC2 VPC security group for the DB subnet group\'s VPC.

Returns:

  • (Array<String>)

    A list of EC2 VPC security groups to associate with this DB instance.