EfsLocationArgs

data class EfsLocationArgs(val accessPointArn: Output<String>? = null, val ec2Config: Output<EfsLocationEc2ConfigArgs>? = null, val efsFileSystemArn: Output<String>? = null, val fileSystemAccessRoleArn: Output<String>? = null, val inTransitEncryption: Output<String>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EfsLocationArgs>

Manages an AWS DataSync EFS Location.

NOTE: The EFS File System must have a mounted EFS Mount Target before creating this resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.EfsLocation;
import com.pulumi.aws.datasync.EfsLocationArgs;
import com.pulumi.aws.datasync.inputs.EfsLocationEc2ConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new EfsLocation("example", EfsLocationArgs.builder()
.efsFileSystemArn(aws_efs_mount_target.example().file_system_arn())
.ec2Config(EfsLocationEc2ConfigArgs.builder()
.securityGroupArns(aws_security_group.example().arn())
.subnetArn(aws_subnet.example().arn())
.build())
.build());
}
}

Import

aws_datasync_location_efs can be imported by using the DataSync Task Amazon Resource Name (ARN), e.g.,

$ pulumi import aws:datasync/efsLocation:EfsLocation example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567

Constructors

Link copied to clipboard
constructor(accessPointArn: Output<String>? = null, ec2Config: Output<EfsLocationEc2ConfigArgs>? = null, efsFileSystemArn: Output<String>? = null, fileSystemAccessRoleArn: Output<String>? = null, inTransitEncryption: Output<String>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val accessPointArn: Output<String>? = null

Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.

Link copied to clipboard
val ec2Config: Output<EfsLocationEc2ConfigArgs>? = null

Configuration block containing EC2 configurations for connecting to the EFS File System.

Link copied to clipboard
val efsFileSystemArn: Output<String>? = null

Amazon Resource Name (ARN) of EFS File System.

Link copied to clipboard
val fileSystemAccessRoleArn: Output<String>? = null

Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.

Link copied to clipboard
val inTransitEncryption: Output<String>? = null

Specifies whether you want DataSync to use TLS encryption when transferring data to or from your Amazon EFS file system. Valid values are NONE and TLS1_2.

Link copied to clipboard
val subdirectory: Output<String>? = null

Subdirectory to perform actions as source or destination. Default /.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): EfsLocationArgs