Class: AWSCDK::Datasync::CfnLocationEFS::EC2ConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationEFS::EC2ConfigProperty
- 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
-
#security_group_arns ⇒ Array<String>
readonly
Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
-
#subnet_arn ⇒ String
readonly
Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(security_group_arns:, subnet_arn:) ⇒ EC2ConfigProperty
constructor
A new instance of EC2ConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(security_group_arns:, subnet_arn:) ⇒ EC2ConfigProperty
Returns a new instance of EC2ConfigProperty.
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_arns ⇒ Array<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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |