Struct aws_sdk_robomaker::types::UploadConfiguration
source · #[non_exhaustive]pub struct UploadConfiguration {
pub name: String,
pub path: String,
pub upload_behavior: UploadBehavior,
}
Expand description
Provides upload configuration information. Files are uploaded from the simulation job to a location you specify.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
A prefix that specifies where files will be uploaded in Amazon S3. It is appended to the simulation output location to determine the final path.
For example, if your simulation output location is s3://my-bucket
and your upload configuration name is robot-test
, your files will be uploaded to s3://my-bucket/
.
path: String
Specifies the path of the file(s) to upload. Standard Unix glob matching rules are accepted, with the addition of **
as a super asterisk. For example, specifying /var/log/**.log
causes all .log files in the /var/log
directory tree to be collected. For more examples, see Glob Library.
upload_behavior: UploadBehavior
Specifies when to upload the files:
- UPLOAD_ON_TERMINATE
-
Matching files are uploaded once the simulation enters the
TERMINATING
state. Matching files are not uploaded until all of your code (including tools) have stopped.If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts will be made.
- UPLOAD_ROLLING_AUTO_REMOVE
-
Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is checked every 5 seconds. A final check is made when all of your code (including tools) have stopped.
Implementations§
source§impl UploadConfiguration
impl UploadConfiguration
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
A prefix that specifies where files will be uploaded in Amazon S3. It is appended to the simulation output location to determine the final path.
For example, if your simulation output location is s3://my-bucket
and your upload configuration name is robot-test
, your files will be uploaded to s3://my-bucket/
.
sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Specifies the path of the file(s) to upload. Standard Unix glob matching rules are accepted, with the addition of **
as a super asterisk. For example, specifying /var/log/**.log
causes all .log files in the /var/log
directory tree to be collected. For more examples, see Glob Library.
sourcepub fn upload_behavior(&self) -> &UploadBehavior
pub fn upload_behavior(&self) -> &UploadBehavior
Specifies when to upload the files:
- UPLOAD_ON_TERMINATE
-
Matching files are uploaded once the simulation enters the
TERMINATING
state. Matching files are not uploaded until all of your code (including tools) have stopped.If there is a problem uploading a file, the upload is retried. If problems persist, no further upload attempts will be made.
- UPLOAD_ROLLING_AUTO_REMOVE
-
Matching files are uploaded as they are created. They are deleted after they are uploaded. The specified path is checked every 5 seconds. A final check is made when all of your code (including tools) have stopped.
source§impl UploadConfiguration
impl UploadConfiguration
sourcepub fn builder() -> UploadConfigurationBuilder
pub fn builder() -> UploadConfigurationBuilder
Creates a new builder-style object to manufacture UploadConfiguration
.
Trait Implementations§
source§impl Clone for UploadConfiguration
impl Clone for UploadConfiguration
source§fn clone(&self) -> UploadConfiguration
fn clone(&self) -> UploadConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UploadConfiguration
impl Debug for UploadConfiguration
source§impl PartialEq for UploadConfiguration
impl PartialEq for UploadConfiguration
source§fn eq(&self, other: &UploadConfiguration) -> bool
fn eq(&self, other: &UploadConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.