CopyToRemoteArgs constructor
- required Input<
Connection> connection, - required Input<
String> remotePath, - required Input source,
- Input<
List> ? triggers,
Creates a new CopyToRemoteArgs.
connection The parameters with which to connect to the remote host.
remotePath The destination path on the remote host. Any necessary parent directories will be created automatically. When the remote path is an existing directory, the source file or directory will be copied into that directory. When the source is a file and the remote path is an existing file, that file will be overwritten. When the source is a directory and the remote path an existing file, the copy will fail.
source An asset or an archive to upload as the source of the copy. It must be a FileAsset, StringAsset, or a FileArchive. The item will be copied as-is; archives like .tgz will not be unpacked. Directories are copied recursively, overwriting existing files.
triggers Trigger replacements on changes to this input.
Implementation
const CopyToRemoteArgs({
required this.connection,
required this.remotePath,
required this.source,
this.triggers,
});