Class: AWSCDK::EC2::CfnVPCBlockPublicAccessOptionsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPCBlockPublicAccessOptionsProps
- Defined in:
- ec2/cfn_vpc_block_public_access_options_props.rb
Overview
Properties for defining a CfnVPCBlockPublicAccessOptions.
Instance Attribute Summary collapse
-
#internet_gateway_block_mode ⇒ String
readonly
The desired VPC Block Public Access mode for internet gateways in your account.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(internet_gateway_block_mode:) ⇒ CfnVPCBlockPublicAccessOptionsProps
constructor
A new instance of CfnVPCBlockPublicAccessOptionsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(internet_gateway_block_mode:) ⇒ CfnVPCBlockPublicAccessOptionsProps
Returns a new instance of CfnVPCBlockPublicAccessOptionsProps.
10 11 12 13 |
# File 'ec2/cfn_vpc_block_public_access_options_props.rb', line 10 def initialize(internet_gateway_block_mode:) @internet_gateway_block_mode = internet_gateway_block_mode Jsii::Type.check_type(@internet_gateway_block_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "internetGatewayBlockMode") end |
Instance Attribute Details
#internet_gateway_block_mode ⇒ String (readonly)
The desired VPC Block Public Access mode for internet gateways in your account.
We do not allow you to create this resource type in an "off" mode since off is the default value.
block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.
24 25 26 |
# File 'ec2/cfn_vpc_block_public_access_options_props.rb', line 24 def internet_gateway_block_mode @internet_gateway_block_mode end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 |
# File 'ec2/cfn_vpc_block_public_access_options_props.rb', line 26 def self.jsii_properties { :internet_gateway_block_mode => "internetGatewayBlockMode", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 |
# File 'ec2/cfn_vpc_block_public_access_options_props.rb', line 32 def to_jsii result = {} result.merge!({ "internetGatewayBlockMode" => @internet_gateway_block_mode, }) result.compact end |