Struct pulumi_wasm_docker::ContainerUpload
source · pub struct ContainerUpload {
pub content: Box<Option<String>>,
pub content_base_64: Box<Option<String>>,
pub executable: Box<Option<bool>>,
pub file: Box<String>,
pub source: Box<Option<String>>,
pub source_hash: Box<Option<String>>,
}
Fields§
§content: Box<Option<String>>
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with content_base64
& source
content_base_64: Box<Option<String>>
Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the base64encode
interpolation function. See here for the reason. Conflicts with content
& source
executable: Box<Option<bool>>
If true
, the file will be uploaded with user executable permission. Defaults to false
.
file: Box<String>
Path to the file in the container where is upload goes to
source: Box<Option<String>>
A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with content
& content_base64
source_hash: Box<Option<String>>
If using source
, this will force an update if the file content has updated but the filename has not.
Implementations§
source§impl ContainerUpload
impl ContainerUpload
sourcepub fn builder() -> ContainerUploadBuilder
pub fn builder() -> ContainerUploadBuilder
Create an instance of ContainerUpload
using the builder syntax