EfsLocation

class EfsLocation : KotlinCustomResource

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

Properties

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

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 arn: Output<String>

Amazon Resource Name (ARN) of the DataSync Location.

Link copied to clipboard

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

Link copied to clipboard

Amazon Resource Name (ARN) of EFS File System.

Link copied to clipboard

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val subdirectory: Output<String>?

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

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

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val uri: Output<String>
Link copied to clipboard
val urn: Output<String>