Class: AWSCDK::APIGatewayv2::CfnVPCLinkProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/cfn_vpc_link_props.rb

Overview

Properties for defining a CfnVpcLink.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, subnet_ids:, security_group_ids: nil, tags: nil) ⇒ CfnVPCLinkProps

Returns a new instance of CfnVPCLinkProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 13

def initialize(name:, subnet_ids:, security_group_ids: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU3VibmV0UmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "subnetIds")
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU2VjdXJpdHlHcm91cFJlZiJ9XX19LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds") unless @security_group_ids.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#nameString (readonly)

The name of the VPC link.



28
29
30
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 28

def name
  @name
end

#security_group_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISecurityGroupRef>? (readonly)

A list of security group IDs for the VPC link.



38
39
40
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 38

def security_group_ids
  @security_group_ids
end

#subnet_idsArray<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef> (readonly)

A list of subnet IDs to include in the VPC link.



33
34
35
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 33

def subnet_ids
  @subnet_ids
end

#tagsHash{String => String}? (readonly)

The collection of tags.

Each tag element is associated with a given resource.



45
46
47
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 47

def self.jsii_properties
  {
    :name => "name",
    :subnet_ids => "subnetIds",
    :security_group_ids => "securityGroupIds",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'api_gatewayv2/cfn_vpc_link_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "subnetIds" => @subnet_ids,
    "securityGroupIds" => @security_group_ids,
    "tags" => @tags,
  })
  result.compact
end