Class: AWSCDK::EC2::InterfaceVPCEndpointService
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::EC2::InterfaceVPCEndpointService
- Includes:
- IInterfaceVPCEndpointService
- Defined in:
- ec2/interface_vpc_endpoint_service.rb
Overview
A custom-hosted service for an interface VPC endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, port = nil) ⇒ InterfaceVPCEndpointService
constructor
A new instance of InterfaceVPCEndpointService.
-
#name ⇒ String
The name of the service.
-
#port ⇒ Numeric
The port of the service.
-
#private_dns_default ⇒ Boolean?
Whether Private DNS is supported by default.
Constructor Details
#initialize(name, port = nil) ⇒ InterfaceVPCEndpointService
Returns a new instance of InterfaceVPCEndpointService.
11 12 13 14 15 |
# File 'ec2/interface_vpc_endpoint_service.rb', line 11 def initialize(name, port = nil) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Type.check_type(port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless port.nil? Jsii::Object.instance_method(:initialize).bind(self).call(name, port) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 22 23 |
# File 'ec2/interface_vpc_endpoint_service.rb', line 17 def self.jsii_overridable_methods { :name => { kind: :property, name: "name", is_optional: false }, :port => { kind: :property, name: "port", is_optional: false }, :private_dns_default => { kind: :property, name: "privateDnsDefault", is_optional: true }, } end |
Instance Method Details
#name ⇒ String
The name of the service.
28 29 30 |
# File 'ec2/interface_vpc_endpoint_service.rb', line 28 def name() jsii_get_property("name") end |
#port ⇒ Numeric
The port of the service.
35 36 37 |
# File 'ec2/interface_vpc_endpoint_service.rb', line 35 def port() jsii_get_property("port") end |
#private_dns_default ⇒ Boolean?
Whether Private DNS is supported by default.
42 43 44 |
# File 'ec2/interface_vpc_endpoint_service.rb', line 42 def private_dns_default() jsii_get_property("privateDnsDefault") end |