Class: AWSCDK::RedshiftServerless::CfnWorkgroup::NetworkInterfaceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RedshiftServerless::CfnWorkgroup::NetworkInterfaceProperty
- 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
-
#availability_zone ⇒ String?
readonly
The availability Zone.
-
#network_interface_id ⇒ String?
readonly
The unique identifier of the network interface.
-
#private_ip_address ⇒ String?
readonly
The IPv4 address of the network interface within the subnet.
-
#subnet_id ⇒ String?
readonly
The unique identifier of the subnet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(availability_zone: nil, network_interface_id: nil, private_ip_address: nil, subnet_id: nil) ⇒ NetworkInterfaceProperty
constructor
A new instance of NetworkInterfaceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(availability_zone: nil, network_interface_id: nil, private_ip_address: nil, subnet_id: nil) ⇒ NetworkInterfaceProperty
Returns a new instance of NetworkInterfaceProperty.
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_zone ⇒ String? (readonly)
The availability Zone.
989 990 991 |
# File 'redshift_serverless/cfn_workgroup.rb', line 989 def availability_zone @availability_zone end |
#network_interface_id ⇒ String? (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_address ⇒ String? (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_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |