Struct aws_sdk_datasync::operation::create_location_s3::builders::CreateLocationS3InputBuilder
source · #[non_exhaustive]pub struct CreateLocationS3InputBuilder { /* private fields */ }
Expand description
A builder for CreateLocationS3Input
.
Implementations§
source§impl CreateLocationS3InputBuilder
impl CreateLocationS3InputBuilder
sourcepub fn subdirectory(self, input: impl Into<String>) -> Self
pub fn subdirectory(self, input: impl Into<String>) -> Self
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 set_subdirectory(self, input: Option<String>) -> Self
pub fn set_subdirectory(self, input: Option<String>) -> Self
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 get_subdirectory(&self) -> &Option<String>
pub fn get_subdirectory(&self) -> &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.
sourcepub fn s3_bucket_arn(self, input: impl Into<String>) -> Self
pub fn s3_bucket_arn(self, input: impl Into<String>) -> Self
The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, this must be an access point ARN.
This field is required.sourcepub fn set_s3_bucket_arn(self, input: Option<String>) -> Self
pub fn set_s3_bucket_arn(self, input: Option<String>) -> Self
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 get_s3_bucket_arn(&self) -> &Option<String>
pub fn get_s3_bucket_arn(&self) -> &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.
sourcepub fn s3_storage_class(self, input: S3StorageClass) -> Self
pub fn s3_storage_class(self, input: S3StorageClass) -> Self
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 set_s3_storage_class(self, input: Option<S3StorageClass>) -> Self
pub fn set_s3_storage_class(self, input: Option<S3StorageClass>) -> Self
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 get_s3_storage_class(&self) -> &Option<S3StorageClass>
pub fn get_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, input: S3Config) -> Self
pub fn s3_config(self, input: S3Config) -> Self
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.
This field is required.sourcepub fn set_s3_config(self, input: Option<S3Config>) -> Self
pub fn set_s3_config(self, input: Option<S3Config>) -> Self
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 get_s3_config(&self) -> &Option<S3Config>
pub fn get_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, input: impl Into<String>) -> Self
pub fn agent_arns(self, input: impl Into<String>) -> Self
Appends an item to agent_arns
.
To override the contents of this collection use set_agent_arns
.
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.
sourcepub fn set_agent_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_agent_arns(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn get_agent_arns(&self) -> &Option<Vec<String>>
pub fn get_agent_arns(&self) -> &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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
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.
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.
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.
sourcepub fn build(self) -> Result<CreateLocationS3Input, BuildError>
pub fn build(self) -> Result<CreateLocationS3Input, BuildError>
Consumes the builder and constructs a CreateLocationS3Input
.
source§impl CreateLocationS3InputBuilder
impl CreateLocationS3InputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateLocationS3Output, SdkError<CreateLocationS3Error, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateLocationS3Output, SdkError<CreateLocationS3Error, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateLocationS3InputBuilder
impl Clone for CreateLocationS3InputBuilder
source§fn clone(&self) -> CreateLocationS3InputBuilder
fn clone(&self) -> CreateLocationS3InputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateLocationS3InputBuilder
impl Debug for CreateLocationS3InputBuilder
source§impl Default for CreateLocationS3InputBuilder
impl Default for CreateLocationS3InputBuilder
source§fn default() -> CreateLocationS3InputBuilder
fn default() -> CreateLocationS3InputBuilder
source§impl PartialEq for CreateLocationS3InputBuilder
impl PartialEq for CreateLocationS3InputBuilder
source§fn eq(&self, other: &CreateLocationS3InputBuilder) -> bool
fn eq(&self, other: &CreateLocationS3InputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.