Class: AWSCDK::Comprehend::CfnFlywheel::VPCConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
comprehend/cfn_flywheel.rb

Overview

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.

For more information, see Amazon VPC .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(security_group_ids:, subnets:) ⇒ VPCConfigProperty

Returns a new instance of VPCConfigProperty.

Parameters:

  • security_group_ids (Array<String>)

    The ID number for a security group on an instance of your private VPC.

  • subnets (Array<String>)

    The ID for each subnet being used in your private VPC.



857
858
859
860
861
862
# File 'comprehend/cfn_flywheel.rb', line 857

def initialize(security_group_ids:, subnets:)
  @security_group_ids = security_group_ids
  Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds")
  @subnets = subnets
  Jsii::Type.check_type(@subnets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnets")
end

Instance Attribute Details

#security_group_idsArray<String> (readonly)

The ID number for a security group on an instance of your private VPC.

Security groups on your VPC function serve as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more information, see Security Groups for your VPC .



870
871
872
# File 'comprehend/cfn_flywheel.rb', line 870

def security_group_ids
  @security_group_ids
end

#subnetsArray<String> (readonly)

The ID for each subnet being used in your private VPC.

This subnet is a subset of the a range of IPv4 addresses used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets .



877
878
879
# File 'comprehend/cfn_flywheel.rb', line 877

def subnets
  @subnets
end

Class Method Details

.jsii_propertiesObject



879
880
881
882
883
884
# File 'comprehend/cfn_flywheel.rb', line 879

def self.jsii_properties
  {
    :security_group_ids => "securityGroupIds",
    :subnets => "subnets",
  }
end

Instance Method Details

#to_jsiiObject



886
887
888
889
890
891
892
893
# File 'comprehend/cfn_flywheel.rb', line 886

def to_jsii
  result = {}
  result.merge!({
    "securityGroupIds" => @security_group_ids,
    "subnets" => @subnets,
  })
  result.compact
end