Efs Location Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun EfsLocationArgs(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)