Class: AWSCDK::EC2::SubnetNetworkAclAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::SubnetNetworkAclAssociationProps
- Defined in:
- ec2/subnet_network_acl_association_props.rb
Overview
Properties to create a SubnetNetworkAclAssociation.
Instance Attribute Summary collapse
-
#network_acl ⇒ AWSCDK::Interfaces::AWSEC2::INetworkAclRef
readonly
The Network ACL this association is defined for.
-
#subnet ⇒ AWSCDK::EC2::ISubnet
readonly
ID of the Subnet.
-
#subnet_network_acl_association_name ⇒ String?
readonly
The name of the SubnetNetworkAclAssociation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(network_acl:, subnet:, subnet_network_acl_association_name: nil) ⇒ SubnetNetworkAclAssociationProps
constructor
A new instance of SubnetNetworkAclAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(network_acl:, subnet:, subnet_network_acl_association_name: nil) ⇒ SubnetNetworkAclAssociationProps
Returns a new instance of SubnetNetworkAclAssociationProps.
10 11 12 13 14 15 16 17 |
# File 'ec2/subnet_network_acl_association_props.rb', line 10 def initialize(network_acl:, subnet:, subnet_network_acl_association_name: nil) @network_acl = network_acl Jsii::Type.check_type(@network_acl, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSU5ldHdvcmtBY2xSZWYifQ==")), "networkAcl") @subnet = subnet Jsii::Type.check_type(@subnet, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklTdWJuZXQifQ==")), "subnet") @subnet_network_acl_association_name = subnet_network_acl_association_name Jsii::Type.check_type(@subnet_network_acl_association_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetNetworkAclAssociationName") unless @subnet_network_acl_association_name.nil? end |
Instance Attribute Details
#network_acl ⇒ AWSCDK::Interfaces::AWSEC2::INetworkAclRef (readonly)
The Network ACL this association is defined for.
22 23 24 |
# File 'ec2/subnet_network_acl_association_props.rb', line 22 def network_acl @network_acl end |
#subnet ⇒ AWSCDK::EC2::ISubnet (readonly)
ID of the Subnet.
26 27 28 |
# File 'ec2/subnet_network_acl_association_props.rb', line 26 def subnet @subnet end |
#subnet_network_acl_association_name ⇒ String? (readonly)
Note:
Default: If you don't specify a SubnetNetworkAclAssociationName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
The name of the SubnetNetworkAclAssociation.
It is not recommended to use an explicit name.
33 34 35 |
# File 'ec2/subnet_network_acl_association_props.rb', line 33 def subnet_network_acl_association_name @subnet_network_acl_association_name end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'ec2/subnet_network_acl_association_props.rb', line 35 def self.jsii_properties { :network_acl => "networkAcl", :subnet => "subnet", :subnet_network_acl_association_name => "subnetNetworkAclAssociationName", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'ec2/subnet_network_acl_association_props.rb', line 43 def to_jsii result = {} result.merge!({ "networkAcl" => @network_acl, "subnet" => @subnet, "subnetNetworkAclAssociationName" => @subnet_network_acl_association_name, }) result.compact end |