Class: AWSCDK::RedshiftServerless::CfnWorkgroup::NetworkInterfaceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
redshift_serverless/cfn_workgroup.rb

Overview

Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(availability_zone: nil, network_interface_id: nil, private_ip_address: nil, subnet_id: nil) ⇒ NetworkInterfaceProperty

Returns a new instance of NetworkInterfaceProperty.

Parameters:

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

    The availability Zone.

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

    The unique identifier of the network interface.

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

    The IPv4 address of the network interface within the subnet.

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

    The unique identifier of the subnet.



974
975
976
977
978
979
980
981
982
983
# File 'redshift_serverless/cfn_workgroup.rb', line 974

def initialize(availability_zone: nil, network_interface_id: nil, private_ip_address: nil, subnet_id: nil)
  @availability_zone = availability_zone
  Jsii::Type.check_type(@availability_zone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "availabilityZone") unless @availability_zone.nil?
  @network_interface_id = network_interface_id
  Jsii::Type.check_type(@network_interface_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkInterfaceId") unless @network_interface_id.nil?
  @private_ip_address = private_ip_address
  Jsii::Type.check_type(@private_ip_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "privateIpAddress") unless @private_ip_address.nil?
  @subnet_id = subnet_id
  Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetId") unless @subnet_id.nil?
end

Instance Attribute Details

#availability_zoneString? (readonly)

The availability Zone.



989
990
991
# File 'redshift_serverless/cfn_workgroup.rb', line 989

def availability_zone
  @availability_zone
end

#network_interface_idString? (readonly)

The unique identifier of the network interface.



994
995
996
# File 'redshift_serverless/cfn_workgroup.rb', line 994

def network_interface_id
  @network_interface_id
end

#private_ip_addressString? (readonly)

The IPv4 address of the network interface within the subnet.



999
1000
1001
# File 'redshift_serverless/cfn_workgroup.rb', line 999

def private_ip_address
  @private_ip_address
end

#subnet_idString? (readonly)

The unique identifier of the subnet.



1004
1005
1006
# File 'redshift_serverless/cfn_workgroup.rb', line 1004

def subnet_id
  @subnet_id
end

Class Method Details

.jsii_propertiesObject



1006
1007
1008
1009
1010
1011
1012
1013
# File 'redshift_serverless/cfn_workgroup.rb', line 1006

def self.jsii_properties
  {
    :availability_zone => "availabilityZone",
    :network_interface_id => "networkInterfaceId",
    :private_ip_address => "privateIpAddress",
    :subnet_id => "subnetId",
  }
end

Instance Method Details

#to_jsiiObject



1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'redshift_serverless/cfn_workgroup.rb', line 1015

def to_jsii
  result = {}
  result.merge!({
    "availabilityZone" => @availability_zone,
    "networkInterfaceId" => @network_interface_id,
    "privateIpAddress" => @private_ip_address,
    "subnetId" => @subnet_id,
  })
  result.compact
end