Namespace Pulumi.Aws.DataSync
Classes
Agent
Manages an AWS DataSync Agent deployed on premises.
NOTE: One of
activation_keyorip_addressmust be provided for resource creation (agent activation). Neither is required for resource import. If usingip_address, this provider must be able to make an HTTP (port 80) GET request to the specified IP address from where it is running. The agent will turn off that HTTP server after activation.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.Agent("example", new Aws.DataSync.AgentArgs
{
IpAddress = "1.2.3.4",
});
}
}
AgentArgs
AgentState
EfsLocation
Manages an AWS DataSync EFS Location.
NOTE: The EFS File System must have a mounted EFS Mount Target before creating this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.EfsLocation("example", new Aws.DataSync.EfsLocationArgs
{
Ec2Config = new Aws.DataSync.Inputs.EfsLocationEc2ConfigArgs
{
SecurityGroupArns =
{
aws_security_group.Example.Arn,
},
SubnetArn = aws_subnet.Example.Arn,
},
EfsFileSystemArn = aws_efs_mount_target.Example.File_system_arn,
});
}
}
EfsLocationArgs
EfsLocationState
LocationSmb
Manages a SMB Location within AWS DataSync.
NOTE: The DataSync Agents must be available before creating this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.LocationSmb("example", new Aws.DataSync.LocationSmbArgs
{
AgentArns =
{
aws_datasync_agent.Example.Arn,
},
Password = "ANotGreatPassword",
ServerHostname = "smb.example.com",
Subdirectory = "/exported/path",
User = "Guest",
});
}
}
LocationSmbArgs
LocationSmbState
NfsLocation
Manages an NFS Location within AWS DataSync.
NOTE: The DataSync Agents must be available before creating this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.NfsLocation("example", new Aws.DataSync.NfsLocationArgs
{
OnPremConfig = new Aws.DataSync.Inputs.NfsLocationOnPremConfigArgs
{
AgentArns =
{
aws_datasync_agent.Example.Arn,
},
},
ServerHostname = "nfs.example.com",
Subdirectory = "/exported/path",
});
}
}
NfsLocationArgs
NfsLocationState
S3Location
Manages an S3 Location within AWS DataSync.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.S3Location("example", new Aws.DataSync.S3LocationArgs
{
S3BucketArn = aws_s3_bucket.Example.Arn,
S3Config = new Aws.DataSync.Inputs.S3LocationS3ConfigArgs
{
BucketAccessRoleArn = aws_iam_role.Example.Arn,
},
Subdirectory = "/example/prefix",
});
}
}
S3LocationArgs
S3LocationState
Task
Manages an AWS DataSync Task, which represents a configuration for synchronization. Starting an execution of these DataSync Tasks (actually synchronizing files) is performed outside of this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.Task("example", new Aws.DataSync.TaskArgs
{
DestinationLocationArn = aws_datasync_location_s3.Destination.Arn,
Options = new Aws.DataSync.Inputs.TaskOptionsArgs
{
BytesPerSecond = -1,
},
SourceLocationArn = aws_datasync_location_nfs.Source.Arn,
});
}
}