Class: AWSCDK::EC2::CfnSubnetNetworkAclAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSubnetNetworkAclAssociationProps
- Defined in:
- ec2/cfn_subnet_network_acl_association_props.rb
Overview
Properties for defining a CfnSubnetNetworkAclAssociation.
Instance Attribute Summary collapse
-
#network_acl_id ⇒ String, AWSCDK::Interfaces::AWSEC2::INetworkAclRef
readonly
The ID of the network ACL.
-
#subnet_id ⇒ String, AWSCDK::Interfaces::AWSEC2::ISubnetRef
readonly
The ID of the subnet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(network_acl_id:, subnet_id:) ⇒ CfnSubnetNetworkAclAssociationProps
constructor
A new instance of CfnSubnetNetworkAclAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(network_acl_id:, subnet_id:) ⇒ CfnSubnetNetworkAclAssociationProps
Returns a new instance of CfnSubnetNetworkAclAssociationProps.
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_id ⇒ String, 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_id ⇒ String, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |