Struct aws_sdk_datasync::client::fluent_builders::CreateLocationS3
source · [−]pub struct CreateLocationS3 { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateLocationS3
.
Creates an endpoint for an Amazon S3 bucket.
For more information, see Create an Amazon S3 location in the DataSync User Guide.
Implementations
sourceimpl CreateLocationS3
impl CreateLocationS3
sourcepub async fn send(
self
) -> Result<CreateLocationS3Output, SdkError<CreateLocationS3Error>>
pub async fn send(
self
) -> Result<CreateLocationS3Output, SdkError<CreateLocationS3Error>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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 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.
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 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 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 that is 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 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 that is 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 AgentArns
.
To override the contents of this collection use set_agent_arns
.
If you are 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 are 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.
Trait Implementations
sourceimpl Clone for CreateLocationS3
impl Clone for CreateLocationS3
sourcefn clone(&self) -> CreateLocationS3
fn clone(&self) -> CreateLocationS3
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
Auto Trait Implementations
impl !RefUnwindSafe for CreateLocationS3
impl Send for CreateLocationS3
impl Sync for CreateLocationS3
impl Unpin for CreateLocationS3
impl !UnwindSafe for CreateLocationS3
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