Class: AWSCDK::ODB::CfnCloudVmCluster::DBNodeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
odb/cfn_cloud_vm_cluster.rb

Overview

Information about a DB node.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_server_id:, backup_ip_id: nil, backup_vnic2_id: nil, cpu_core_count: nil, db_node_arn: nil, db_node_id: nil, db_node_storage_size_in_g_bs: nil, db_system_id: nil, host_ip_id: nil, hostname: nil, memory_size_in_g_bs: nil, ocid: nil, status: nil, tags: nil, vnic2_id: nil, vnic_id: nil) ⇒ DBNodeProperty

Returns a new instance of DBNodeProperty.

Parameters:

  • db_server_id (String)

    The unique identifier of the Db server that is associated with the DB node.

  • backup_ip_id (String, nil) (defaults to: nil)

    The Oracle Cloud ID (OCID) of the backup IP address that's associated with the DB node.

  • backup_vnic2_id (String, nil) (defaults to: nil)

    The OCID of the second backup VNIC.

  • cpu_core_count (Numeric, nil) (defaults to: nil)

    Number of CPU cores enabled on the DB node.

  • db_node_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the DB node.

  • db_node_id (String, nil) (defaults to: nil)

    The unique identifier of the DB node.

  • db_node_storage_size_in_g_bs (Numeric, nil) (defaults to: nil)

    The amount of local node storage, in gigabytes (GBs), that's allocated on the DB node.

  • db_system_id (String, nil) (defaults to: nil)

    The OCID of the DB system.

  • host_ip_id (String, nil) (defaults to: nil)

    The OCID of the host IP address that's associated with the DB node.

  • hostname (String, nil) (defaults to: nil)

    The host name for the DB node.

  • memory_size_in_g_bs (Numeric, nil) (defaults to: nil)

    The allocated memory in GBs on the DB node.

  • ocid (String, nil) (defaults to: nil)

    The OCID of the DB node.

  • status (String, nil) (defaults to: nil)

    The current status of the DB node.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)
  • vnic2_id (String, nil) (defaults to: nil)

    The OCID of the second VNIC.

  • vnic_id (String, nil) (defaults to: nil)

    The OCID of the VNIC.



979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'odb/cfn_cloud_vm_cluster.rb', line 979

def initialize(db_server_id:, backup_ip_id: nil, backup_vnic2_id: nil, cpu_core_count: nil, db_node_arn: nil, db_node_id: nil, db_node_storage_size_in_g_bs: nil, db_system_id: nil, host_ip_id: nil, hostname: nil, memory_size_in_g_bs: nil, ocid: nil, status: nil, tags: nil, vnic2_id: nil, vnic_id: nil)
  @db_server_id = db_server_id
  Jsii::Type.check_type(@db_server_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbServerId")
  @backup_ip_id = backup_ip_id
  Jsii::Type.check_type(@backup_ip_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "backupIpId") unless @backup_ip_id.nil?
  @backup_vnic2_id = backup_vnic2_id
  Jsii::Type.check_type(@backup_vnic2_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "backupVnic2Id") unless @backup_vnic2_id.nil?
  @cpu_core_count = cpu_core_count
  Jsii::Type.check_type(@cpu_core_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "cpuCoreCount") unless @cpu_core_count.nil?
  @db_node_arn = db_node_arn
  Jsii::Type.check_type(@db_node_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbNodeArn") unless @db_node_arn.nil?
  @db_node_id = db_node_id
  Jsii::Type.check_type(@db_node_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbNodeId") unless @db_node_id.nil?
  @db_node_storage_size_in_g_bs = db_node_storage_size_in_g_bs
  Jsii::Type.check_type(@db_node_storage_size_in_g_bs, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dbNodeStorageSizeInGBs") unless @db_node_storage_size_in_g_bs.nil?
  @db_system_id = db_system_id
  Jsii::Type.check_type(@db_system_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbSystemId") unless @db_system_id.nil?
  @host_ip_id = host_ip_id
  Jsii::Type.check_type(@host_ip_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostIpId") unless @host_ip_id.nil?
  @hostname = hostname
  Jsii::Type.check_type(@hostname, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostname") unless @hostname.nil?
  @memory_size_in_g_bs = memory_size_in_g_bs
  Jsii::Type.check_type(@memory_size_in_g_bs, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "memorySizeInGBs") unless @memory_size_in_g_bs.nil?
  @ocid = ocid
  Jsii::Type.check_type(@ocid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ocid") unless @ocid.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
  @vnic2_id = vnic2_id
  Jsii::Type.check_type(@vnic2_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vnic2Id") unless @vnic2_id.nil?
  @vnic_id = vnic_id
  Jsii::Type.check_type(@vnic_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vnicId") unless @vnic_id.nil?
end

Instance Attribute Details

#backup_ip_idString? (readonly)

The Oracle Cloud ID (OCID) of the backup IP address that's associated with the DB node.



1023
1024
1025
# File 'odb/cfn_cloud_vm_cluster.rb', line 1023

def backup_ip_id
  @backup_ip_id
end

#backup_vnic2_idString? (readonly)

The OCID of the second backup VNIC.



1028
1029
1030
# File 'odb/cfn_cloud_vm_cluster.rb', line 1028

def backup_vnic2_id
  @backup_vnic2_id
end

#cpu_core_countNumeric? (readonly)

Number of CPU cores enabled on the DB node.



1033
1034
1035
# File 'odb/cfn_cloud_vm_cluster.rb', line 1033

def cpu_core_count
  @cpu_core_count
end

#db_node_arnString? (readonly)

The Amazon Resource Name (ARN) of the DB node.



1038
1039
1040
# File 'odb/cfn_cloud_vm_cluster.rb', line 1038

def db_node_arn
  @db_node_arn
end

#db_node_idString? (readonly)

The unique identifier of the DB node.



1043
1044
1045
# File 'odb/cfn_cloud_vm_cluster.rb', line 1043

def db_node_id
  @db_node_id
end

#db_node_storage_size_in_g_bsNumeric? (readonly)

The amount of local node storage, in gigabytes (GBs), that's allocated on the DB node.



1048
1049
1050
# File 'odb/cfn_cloud_vm_cluster.rb', line 1048

def db_node_storage_size_in_g_bs
  @db_node_storage_size_in_g_bs
end

#db_server_idString (readonly)

The unique identifier of the Db server that is associated with the DB node.



1018
1019
1020
# File 'odb/cfn_cloud_vm_cluster.rb', line 1018

def db_server_id
  @db_server_id
end

#db_system_idString? (readonly)

The OCID of the DB system.



1053
1054
1055
# File 'odb/cfn_cloud_vm_cluster.rb', line 1053

def db_system_id
  @db_system_id
end

#host_ip_idString? (readonly)

The OCID of the host IP address that's associated with the DB node.



1058
1059
1060
# File 'odb/cfn_cloud_vm_cluster.rb', line 1058

def host_ip_id
  @host_ip_id
end

#hostnameString? (readonly)

The host name for the DB node.



1063
1064
1065
# File 'odb/cfn_cloud_vm_cluster.rb', line 1063

def hostname
  @hostname
end

#memory_size_in_g_bsNumeric? (readonly)

The allocated memory in GBs on the DB node.



1068
1069
1070
# File 'odb/cfn_cloud_vm_cluster.rb', line 1068

def memory_size_in_g_bs
  @memory_size_in_g_bs
end

#ocidString? (readonly)

The OCID of the DB node.



1073
1074
1075
# File 'odb/cfn_cloud_vm_cluster.rb', line 1073

def ocid
  @ocid
end

#statusString? (readonly)

The current status of the DB node.



1078
1079
1080
# File 'odb/cfn_cloud_vm_cluster.rb', line 1078

def status
  @status
end

#tagsArray<AWSCDK::CfnTag>? (readonly)



1081
1082
1083
# File 'odb/cfn_cloud_vm_cluster.rb', line 1081

def tags
  @tags
end

#vnic2_idString? (readonly)

The OCID of the second VNIC.



1086
1087
1088
# File 'odb/cfn_cloud_vm_cluster.rb', line 1086

def vnic2_id
  @vnic2_id
end

#vnic_idString? (readonly)

The OCID of the VNIC.



1091
1092
1093
# File 'odb/cfn_cloud_vm_cluster.rb', line 1091

def vnic_id
  @vnic_id
end

Class Method Details

.jsii_propertiesObject



1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
# File 'odb/cfn_cloud_vm_cluster.rb', line 1093

def self.jsii_properties
  {
    :db_server_id => "dbServerId",
    :backup_ip_id => "backupIpId",
    :backup_vnic2_id => "backupVnic2Id",
    :cpu_core_count => "cpuCoreCount",
    :db_node_arn => "dbNodeArn",
    :db_node_id => "dbNodeId",
    :db_node_storage_size_in_g_bs => "dbNodeStorageSizeInGBs",
    :db_system_id => "dbSystemId",
    :host_ip_id => "hostIpId",
    :hostname => "hostname",
    :memory_size_in_g_bs => "memorySizeInGBs",
    :ocid => "ocid",
    :status => "status",
    :tags => "tags",
    :vnic2_id => "vnic2Id",
    :vnic_id => "vnicId",
  }
end

Instance Method Details

#to_jsiiObject



1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
# File 'odb/cfn_cloud_vm_cluster.rb', line 1114

def to_jsii
  result = {}
  result.merge!({
    "dbServerId" => @db_server_id,
    "backupIpId" => @backup_ip_id,
    "backupVnic2Id" => @backup_vnic2_id,
    "cpuCoreCount" => @cpu_core_count,
    "dbNodeArn" => @db_node_arn,
    "dbNodeId" => @db_node_id,
    "dbNodeStorageSizeInGBs" => @db_node_storage_size_in_g_bs,
    "dbSystemId" => @db_system_id,
    "hostIpId" => @host_ip_id,
    "hostname" => @hostname,
    "memorySizeInGBs" => @memory_size_in_g_bs,
    "ocid" => @ocid,
    "status" => @status,
    "tags" => @tags,
    "vnic2Id" => @vnic2_id,
    "vnicId" => @vnic_id,
  })
  result.compact
end