Nfs Location Args
data class NfsLocationArgs(val mountOptions: Output<NfsLocationMountOptionsArgs>? = null, val onPremConfig: Output<NfsLocationOnPremConfigArgs>? = null, val serverHostname: Output<String>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NfsLocationArgs>
Manages an NFS Location within AWS DataSync.
NOTE: The DataSync Agents must be available 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.NfsLocation;
import com.pulumi.aws.datasync.NfsLocationArgs;
import com.pulumi.aws.datasync.inputs.NfsLocationOnPremConfigArgs;
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 NfsLocation("example", NfsLocationArgs.builder()
.serverHostname("nfs.example.com")
.subdirectory("/exported/path")
.onPremConfig(NfsLocationOnPremConfigArgs.builder()
.agentArns(aws_datasync_agent.example().arn())
.build())
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import aws_datasync_location_nfs
using the DataSync Task Amazon Resource Name (ARN). For example:
$ pulumi import aws:datasync/nfsLocation:NfsLocation example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567
Content copied to clipboard
Constructors
Link copied to clipboard
fun NfsLocationArgs(mountOptions: Output<NfsLocationMountOptionsArgs>? = null, onPremConfig: Output<NfsLocationOnPremConfigArgs>? = null, serverHostname: Output<String>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null)