#[non_exhaustive]pub struct CreateLocationS3Input {
pub subdirectory: Option<String>,
pub s3_bucket_arn: Option<String>,
pub s3_storage_class: Option<S3StorageClass>,
pub s3_config: Option<S3Config>,
pub agent_arns: Option<Vec<String>>,
pub tags: Option<Vec<TagListEntry>>,
}
Expand description
CreateLocationS3Request
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.subdirectory: Option<String>
A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
s3_bucket_arn: Option<String>
The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point ARN.
s3_storage_class: Option<S3StorageClass>
The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts.
For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync.
s3_config: Option<S3Config>
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the DataSync User Guide.
agent_arns: Option<Vec<String>>
If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy your DataSync agent on Outposts.
The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.
Implementations§
source§impl CreateLocationS3Input
impl CreateLocationS3Input
sourcepub fn subdirectory(&self) -> Option<&str>
pub fn subdirectory(&self) -> Option<&str>
A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
sourcepub fn s3_bucket_arn(&self) -> Option<&str>
pub fn s3_bucket_arn(&self) -> Option<&str>
The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point ARN.
sourcepub fn s3_storage_class(&self) -> Option<&S3StorageClass>
pub fn s3_storage_class(&self) -> Option<&S3StorageClass>
The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. For buckets in Amazon Web Services Regions, the storage class defaults to Standard. For buckets on Outposts, the storage class defaults to Amazon Web Services S3 Outposts.
For more information about S3 storage classes, see Amazon S3 Storage Classes. Some storage classes have behaviors that can affect your S3 storage cost. For detailed information, see Considerations when working with S3 storage classes in DataSync.
sourcepub fn s3_config(&self) -> Option<&S3Config>
pub fn s3_config(&self) -> Option<&S3Config>
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role used to access an Amazon S3 bucket.
For detailed information about using such a role, see Creating a Location for Amazon S3 in the DataSync User Guide.
sourcepub fn agent_arns(&self) -> &[String]
pub fn agent_arns(&self) -> &[String]
If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource Names (ARNs) of the DataSync agents deployed on your Outpost. For more information about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy your DataSync agent on Outposts.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .agent_arns.is_none()
.
The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateLocationS3Input
impl CreateLocationS3Input
sourcepub fn builder() -> CreateLocationS3InputBuilder
pub fn builder() -> CreateLocationS3InputBuilder
Creates a new builder-style object to manufacture CreateLocationS3Input
.
Trait Implementations§
source§impl Clone for CreateLocationS3Input
impl Clone for CreateLocationS3Input
source§fn clone(&self) -> CreateLocationS3Input
fn clone(&self) -> CreateLocationS3Input
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateLocationS3Input
impl Debug for CreateLocationS3Input
source§impl PartialEq for CreateLocationS3Input
impl PartialEq for CreateLocationS3Input
source§fn eq(&self, other: &CreateLocationS3Input) -> bool
fn eq(&self, other: &CreateLocationS3Input) -> bool
self
and other
values to be equal, and is used
by ==
.