Class: AWSCDK::EC2::CfnTransitGatewayVPCAttachment::OptionsProperty

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

Overview

Describes the VPC attachment options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(appliance_mode_support: nil, dns_support: nil, ipv6_support: nil, security_group_referencing_support: nil) ⇒ OptionsProperty

Returns a new instance of OptionsProperty.

Parameters:

  • appliance_mode_support (String, nil) (defaults to: nil)

    Enable or disable appliance mode support.

  • dns_support (String, nil) (defaults to: nil)

    Enable or disable DNS support.

  • ipv6_support (String, nil) (defaults to: nil)

    Enable or disable IPv6 support.

  • security_group_referencing_support (String, nil) (defaults to: nil)

    Enables you to reference a security group across VPCs attached to a transit gateway (TGW).



591
592
593
594
595
596
597
598
599
600
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 591

def initialize(appliance_mode_support: nil, dns_support: nil, ipv6_support: nil, security_group_referencing_support: nil)
  @appliance_mode_support = appliance_mode_support
  Jsii::Type.check_type(@appliance_mode_support, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applianceModeSupport") unless @appliance_mode_support.nil?
  @dns_support = dns_support
  Jsii::Type.check_type(@dns_support, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsSupport") unless @dns_support.nil?
  @ipv6_support = ipv6_support
  Jsii::Type.check_type(@ipv6_support, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6Support") unless @ipv6_support.nil?
  @security_group_referencing_support = security_group_referencing_support
  Jsii::Type.check_type(@security_group_referencing_support, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "securityGroupReferencingSupport") unless @security_group_referencing_support.nil?
end

Instance Attribute Details

#appliance_mode_supportString? (readonly)

Enable or disable appliance mode support.

The default is disable .



608
609
610
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 608

def appliance_mode_support
  @appliance_mode_support
end

#dns_supportString? (readonly)

Enable or disable DNS support.

The default is disable .



615
616
617
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 615

def dns_support
  @dns_support
end

#ipv6_supportString? (readonly)

Enable or disable IPv6 support.

The default is disable .



622
623
624
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 622

def ipv6_support
  @ipv6_support
end

#security_group_referencing_supportString? (readonly)

Enables you to reference a security group across VPCs attached to a transit gateway (TGW).

Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .



631
632
633
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 631

def security_group_referencing_support
  @security_group_referencing_support
end

Class Method Details

.jsii_propertiesObject



633
634
635
636
637
638
639
640
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 633

def self.jsii_properties
  {
    :appliance_mode_support => "applianceModeSupport",
    :dns_support => "dnsSupport",
    :ipv6_support => "ipv6Support",
    :security_group_referencing_support => "securityGroupReferencingSupport",
  }
end

Instance Method Details

#to_jsiiObject



642
643
644
645
646
647
648
649
650
651
# File 'ec2/cfn_transit_gateway_vpc_attachment.rb', line 642

def to_jsii
  result = {}
  result.merge!({
    "applianceModeSupport" => @appliance_mode_support,
    "dnsSupport" => @dns_support,
    "ipv6Support" => @ipv6_support,
    "securityGroupReferencingSupport" => @security_group_referencing_support,
  })
  result.compact
end