Class: AWSCDK::EC2::CfnSubnetNetworkAclAssociationProps

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

Overview

Properties for defining a CfnSubnetNetworkAclAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network_acl_id:, subnet_id:) ⇒ CfnSubnetNetworkAclAssociationProps

Returns a new instance of CfnSubnetNetworkAclAssociationProps.

Parameters:



11
12
13
14
15
16
# File 'ec2/cfn_subnet_network_acl_association_props.rb', line 11

def initialize(network_acl_id:, subnet_id:)
  @network_acl_id = network_acl_id
  Jsii::Type.check_type(@network_acl_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSU5ldHdvcmtBY2xSZWYifV19fQ==")), "networkAclId")
  @subnet_id = subnet_id
  Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVN1Ym5ldFJlZiJ9XX19")), "subnetId")
end

Instance Attribute Details

#network_acl_idString, AWSCDK::Interfaces::AWSEC2::INetworkAclRef (readonly)

The ID of the network ACL.



22
23
24
# File 'ec2/cfn_subnet_network_acl_association_props.rb', line 22

def network_acl_id
  @network_acl_id
end

#subnet_idString, AWSCDK::Interfaces::AWSEC2::ISubnetRef (readonly)

The ID of the subnet.



27
28
29
# File 'ec2/cfn_subnet_network_acl_association_props.rb', line 27

def subnet_id
  @subnet_id
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'ec2/cfn_subnet_network_acl_association_props.rb', line 29

def self.jsii_properties
  {
    :network_acl_id => "networkAclId",
    :subnet_id => "subnetId",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'ec2/cfn_subnet_network_acl_association_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "networkAclId" => @network_acl_id,
    "subnetId" => @subnet_id,
  })
  result.compact
end