Class: AWSCDK::DevOpsAgent::CfnPrivateConnection::ServiceManagedModeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_private_connection.rb

Overview

Configuration for a service-managed Private Connection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host_address:, vpc_id:, ip_address_type: nil, ipv4_addresses_per_eni: nil, port_ranges: nil, security_group_ids: nil, subnet_ids: nil) ⇒ ServiceManagedModeProperty

Returns a new instance of ServiceManagedModeProperty.

Parameters:

  • host_address (String)

    IP address or DNS name of the target resource.

  • vpc_id (String)

    VPC to create the service-managed Resource Gateway in.

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

    IP address type of the service-managed Resource Gateway.

  • ipv4_addresses_per_eni (Numeric, nil) (defaults to: nil)

    Number of IPv4 addresses in each ENI for the service-managed Resource Gateway.

  • port_ranges (Array<String>, nil) (defaults to: nil)

    TCP port ranges that a consumer can use to access the resource.

  • security_group_ids (Array<String>, nil) (defaults to: nil)

    Security groups to attach to the service-managed Resource Gateway.

  • subnet_ids (Array<String>, nil) (defaults to: nil)

    Subnets that the service-managed Resource Gateway will span.



653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
# File 'dev_ops_agent/cfn_private_connection.rb', line 653

def initialize(host_address:, vpc_id:, ip_address_type: nil, ipv4_addresses_per_eni: nil, port_ranges: nil, security_group_ids: nil, subnet_ids: nil)
  @host_address = host_address
  Jsii::Type.check_type(@host_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostAddress")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId")
  @ip_address_type = ip_address_type
  Jsii::Type.check_type(@ip_address_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddressType") unless @ip_address_type.nil?
  @ipv4_addresses_per_eni = ipv4_addresses_per_eni
  Jsii::Type.check_type(@ipv4_addresses_per_eni, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ipv4AddressesPerEni") unless @ipv4_addresses_per_eni.nil?
  @port_ranges = port_ranges
  Jsii::Type.check_type(@port_ranges, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "portRanges") unless @port_ranges.nil?
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds") unless @security_group_ids.nil?
  @subnet_ids = subnet_ids
  Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnetIds") unless @subnet_ids.nil?
end

Instance Attribute Details

#host_addressString (readonly)

IP address or DNS name of the target resource.



674
675
676
# File 'dev_ops_agent/cfn_private_connection.rb', line 674

def host_address
  @host_address
end

#ip_address_typeString? (readonly)

IP address type of the service-managed Resource Gateway.



684
685
686
# File 'dev_ops_agent/cfn_private_connection.rb', line 684

def ip_address_type
  @ip_address_type
end

#ipv4_addresses_per_eniNumeric? (readonly)

Number of IPv4 addresses in each ENI for the service-managed Resource Gateway.



689
690
691
# File 'dev_ops_agent/cfn_private_connection.rb', line 689

def ipv4_addresses_per_eni
  @ipv4_addresses_per_eni
end

#port_rangesArray<String>? (readonly)

TCP port ranges that a consumer can use to access the resource.



694
695
696
# File 'dev_ops_agent/cfn_private_connection.rb', line 694

def port_ranges
  @port_ranges
end

#security_group_idsArray<String>? (readonly)

Security groups to attach to the service-managed Resource Gateway.



699
700
701
# File 'dev_ops_agent/cfn_private_connection.rb', line 699

def security_group_ids
  @security_group_ids
end

#subnet_idsArray<String>? (readonly)

Subnets that the service-managed Resource Gateway will span.



704
705
706
# File 'dev_ops_agent/cfn_private_connection.rb', line 704

def subnet_ids
  @subnet_ids
end

#vpc_idString (readonly)

VPC to create the service-managed Resource Gateway in.



679
680
681
# File 'dev_ops_agent/cfn_private_connection.rb', line 679

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



706
707
708
709
710
711
712
713
714
715
716
# File 'dev_ops_agent/cfn_private_connection.rb', line 706

def self.jsii_properties
  {
    :host_address => "hostAddress",
    :vpc_id => "vpcId",
    :ip_address_type => "ipAddressType",
    :ipv4_addresses_per_eni => "ipv4AddressesPerEni",
    :port_ranges => "portRanges",
    :security_group_ids => "securityGroupIds",
    :subnet_ids => "subnetIds",
  }
end

Instance Method Details

#to_jsiiObject



718
719
720
721
722
723
724
725
726
727
728
729
730
# File 'dev_ops_agent/cfn_private_connection.rb', line 718

def to_jsii
  result = {}
  result.merge!({
    "hostAddress" => @host_address,
    "vpcId" => @vpc_id,
    "ipAddressType" => @ip_address_type,
    "ipv4AddressesPerEni" => @ipv4_addresses_per_eni,
    "portRanges" => @port_ranges,
    "securityGroupIds" => @security_group_ids,
    "subnetIds" => @subnet_ids,
  })
  result.compact
end