Class: AWSCDK::DevOpsAgent::CfnPrivateConnection::ServiceManagedModeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnPrivateConnection::ServiceManagedModeProperty
- Defined in:
- dev_ops_agent/cfn_private_connection.rb
Overview
Configuration for a service-managed Private Connection.
Instance Attribute Summary collapse
-
#host_address ⇒ String
readonly
IP address or DNS name of the target resource.
-
#ip_address_type ⇒ String?
readonly
IP address type of the service-managed Resource Gateway.
-
#ipv4_addresses_per_eni ⇒ Numeric?
readonly
Number of IPv4 addresses in each ENI for the service-managed Resource Gateway.
-
#port_ranges ⇒ Array<String>?
readonly
TCP port ranges that a consumer can use to access the resource.
-
#security_group_ids ⇒ Array<String>?
readonly
Security groups to attach to the service-managed Resource Gateway.
-
#subnet_ids ⇒ Array<String>?
readonly
Subnets that the service-managed Resource Gateway will span.
-
#vpc_id ⇒ String
readonly
VPC to create the service-managed Resource Gateway in.
Class Method Summary collapse
Instance Method Summary collapse
-
#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
constructor
A new instance of ServiceManagedModeProperty.
- #to_jsii ⇒ Object
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.
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_address ⇒ String (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_type ⇒ String? (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_eni ⇒ Numeric? (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_ranges ⇒ Array<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_ids ⇒ Array<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_ids ⇒ Array<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_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |