Class: AWSCDK::EC2::InterfaceVPCEndpointAWSServiceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/interface_vpc_endpoint_aws_service_props.rb

Overview

Optional properties for the InterfaceVpcEndpointAwsService class.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(global: nil) ⇒ InterfaceVPCEndpointAWSServiceProps

Returns a new instance of InterfaceVPCEndpointAWSServiceProps.

Parameters:

  • global (Boolean, nil) (defaults to: nil)

    If true, the service is a global endpoint and its name will not be prefixed with the stack's region.



8
9
10
11
# File 'ec2/interface_vpc_endpoint_aws_service_props.rb', line 8

def initialize(global: nil)
  @global = global
  Jsii::Type.check_type(@global, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "global") unless @global.nil?
end

Instance Attribute Details

#globalBoolean? (readonly)

Note:

Default: false

If true, the service is a global endpoint and its name will not be prefixed with the stack's region.

Returns:

  • (Boolean, nil)


17
18
19
# File 'ec2/interface_vpc_endpoint_aws_service_props.rb', line 17

def global
  @global
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'ec2/interface_vpc_endpoint_aws_service_props.rb', line 19

def self.jsii_properties
  {
    :global => "global",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'ec2/interface_vpc_endpoint_aws_service_props.rb', line 25

def to_jsii
  result = {}
  result.merge!({
    "global" => @global,
  })
  result.compact
end