Struct aws_sdk_robomaker::model::UploadConfiguration
source · [−]#[non_exhaustive]pub struct UploadConfiguration {
pub name: Option<String>,
pub path: Option<String>,
pub upload_behavior: Option<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: Option<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: Option<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: Option<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
sourceimpl UploadConfiguration
impl UploadConfiguration
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&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) -> Option<&str>
pub fn path(&self) -> Option<&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) -> Option<&UploadBehavior>
pub fn upload_behavior(&self) -> Option<&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.
sourceimpl UploadConfiguration
impl UploadConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UploadConfiguration
Trait Implementations
sourceimpl Clone for UploadConfiguration
impl Clone for UploadConfiguration
sourcefn clone(&self) -> UploadConfiguration
fn clone(&self) -> UploadConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UploadConfiguration
impl Debug for UploadConfiguration
sourceimpl PartialEq<UploadConfiguration> for UploadConfiguration
impl PartialEq<UploadConfiguration> for UploadConfiguration
sourcefn eq(&self, other: &UploadConfiguration) -> bool
fn eq(&self, other: &UploadConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UploadConfiguration) -> bool
fn ne(&self, other: &UploadConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for UploadConfiguration
Auto Trait Implementations
impl RefUnwindSafe for UploadConfiguration
impl Send for UploadConfiguration
impl Sync for UploadConfiguration
impl Unpin for UploadConfiguration
impl UnwindSafe for UploadConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more