Struct aws_sdk_datasync::operation::update_location_object_storage::UpdateLocationObjectStorageInput
source · #[non_exhaustive]pub struct UpdateLocationObjectStorageInput {
pub location_arn: Option<String>,
pub server_port: Option<i32>,
pub server_protocol: Option<ObjectStorageServerProtocol>,
pub subdirectory: Option<String>,
pub access_key: Option<String>,
pub secret_key: Option<String>,
pub agent_arns: Option<Vec<String>>,
pub server_certificate: Option<Blob>,
}
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.location_arn: Option<String>
Specifies the ARN of the object storage system location that you're updating.
server_port: Option<i32>
Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
server_protocol: Option<ObjectStorageServerProtocol>
Specifies the protocol that your object storage server uses to communicate.
subdirectory: Option<String>
Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
access_key: Option<String>
Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
secret_key: Option<String>
Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
agent_arns: Option<Vec<String>>
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
server_certificate: Option<Blob>
Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem
file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem
).
The certificate chain might include:
-
The object storage system's certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a .pem
file (which can be up to 32768 bytes before base64 encoding). The following example cat
command creates an object_storage_certificates.pem
file that includes three certificates:
cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure ServerProtocol
to HTTPS
.
Updating this parameter doesn't interfere with tasks that you have in progress.
Implementations§
source§impl UpdateLocationObjectStorageInput
impl UpdateLocationObjectStorageInput
sourcepub fn location_arn(&self) -> Option<&str>
pub fn location_arn(&self) -> Option<&str>
Specifies the ARN of the object storage system location that you're updating.
sourcepub fn server_port(&self) -> Option<i32>
pub fn server_port(&self) -> Option<i32>
Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
sourcepub fn server_protocol(&self) -> Option<&ObjectStorageServerProtocol>
pub fn server_protocol(&self) -> Option<&ObjectStorageServerProtocol>
Specifies the protocol that your object storage server uses to communicate.
sourcepub fn subdirectory(&self) -> Option<&str>
pub fn subdirectory(&self) -> Option<&str>
Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
sourcepub fn access_key(&self) -> Option<&str>
pub fn access_key(&self) -> Option<&str>
Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
sourcepub fn secret_key(&self) -> Option<&str>
pub fn secret_key(&self) -> Option<&str>
Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
sourcepub fn agent_arns(&self) -> &[String]
pub fn agent_arns(&self) -> &[String]
Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
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()
.
sourcepub fn server_certificate(&self) -> Option<&Blob>
pub fn server_certificate(&self) -> Option<&Blob>
Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single .pem
file with a full certificate chain (for example, file:///home/user/.ssh/object_storage_certificates.pem
).
The certificate chain might include:
-
The object storage system's certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a .pem
file (which can be up to 32768 bytes before base64 encoding). The following example cat
command creates an object_storage_certificates.pem
file that includes three certificates:
cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure ServerProtocol
to HTTPS
.
Updating this parameter doesn't interfere with tasks that you have in progress.
source§impl UpdateLocationObjectStorageInput
impl UpdateLocationObjectStorageInput
sourcepub fn builder() -> UpdateLocationObjectStorageInputBuilder
pub fn builder() -> UpdateLocationObjectStorageInputBuilder
Creates a new builder-style object to manufacture UpdateLocationObjectStorageInput
.
Trait Implementations§
source§impl Clone for UpdateLocationObjectStorageInput
impl Clone for UpdateLocationObjectStorageInput
source§fn clone(&self) -> UpdateLocationObjectStorageInput
fn clone(&self) -> UpdateLocationObjectStorageInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for UpdateLocationObjectStorageInput
impl PartialEq for UpdateLocationObjectStorageInput
source§fn eq(&self, other: &UpdateLocationObjectStorageInput) -> bool
fn eq(&self, other: &UpdateLocationObjectStorageInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateLocationObjectStorageInput
Auto Trait Implementations§
impl Freeze for UpdateLocationObjectStorageInput
impl RefUnwindSafe for UpdateLocationObjectStorageInput
impl Send for UpdateLocationObjectStorageInput
impl Sync for UpdateLocationObjectStorageInput
impl Unpin for UpdateLocationObjectStorageInput
impl UnwindSafe for UpdateLocationObjectStorageInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more