Class: AWSCDK::Datasync::CfnLocationEFS::EC2ConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
datasync/cfn_location_efs.rb

Overview

The subnet and security groups that AWS DataSync uses to connect to one of your Amazon EFS file system's mount targets .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(security_group_arns:, subnet_arn:) ⇒ EC2ConfigProperty

Returns a new instance of EC2ConfigProperty.

Parameters:

  • security_group_arns (Array<String>)

    Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.

  • subnet_arn (String)

    Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.



600
601
602
603
604
605
# File 'datasync/cfn_location_efs.rb', line 600

def initialize(security_group_arns:, subnet_arn:)
  @security_group_arns = security_group_arns
  Jsii::Type.check_type(@security_group_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupArns")
  @subnet_arn = subnet_arn
  Jsii::Type.check_type(@subnet_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetArn")
end

Instance Attribute Details

#security_group_arnsArray<String> (readonly)

Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.



611
612
613
# File 'datasync/cfn_location_efs.rb', line 611

def security_group_arns
  @security_group_arns
end

#subnet_arnString (readonly)

Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.

The subnet must be located:

  • In the same virtual private cloud (VPC) as the Amazon EFS file system.
  • In the same Availability Zone as at least one mount target for the Amazon EFS file system.

You don't need to specify a subnet that includes a file system mount target.



623
624
625
# File 'datasync/cfn_location_efs.rb', line 623

def subnet_arn
  @subnet_arn
end

Class Method Details

.jsii_propertiesObject



625
626
627
628
629
630
# File 'datasync/cfn_location_efs.rb', line 625

def self.jsii_properties
  {
    :security_group_arns => "securityGroupArns",
    :subnet_arn => "subnetArn",
  }
end

Instance Method Details

#to_jsiiObject



632
633
634
635
636
637
638
639
# File 'datasync/cfn_location_efs.rb', line 632

def to_jsii
  result = {}
  result.merge!({
    "securityGroupArns" => @security_group_arns,
    "subnetArn" => @subnet_arn,
  })
  result.compact
end