Struct aws_sdk_datasync::operation::create_agent::CreateAgentInput
source · #[non_exhaustive]pub struct CreateAgentInput {
pub activation_key: Option<String>,
pub agent_name: Option<String>,
pub tags: Option<Vec<TagListEntry>>,
pub vpc_endpoint_id: Option<String>,
pub subnet_arns: Option<Vec<String>>,
pub security_group_arns: Option<Vec<String>>,
}
Expand description
CreateAgentRequest
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.activation_key: Option<String>
Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent.
agent_name: Option<String>
Specifies a name for your agent. You can see this name in the DataSync console.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least one tag for your agent.
vpc_endpoint_id: Option<String>
Specifies the ID of the VPC endpoint that you want your agent to connect to. For example, a VPC endpoint ID looks like vpce-01234d5aff67890e1
.
The VPC endpoint you use must include the DataSync service name (for example, com.amazonaws.us-east-2.datasync
).
subnet_arns: Option<Vec<String>>
Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC endpoint. This is the subnet where DataSync creates and manages the network interfaces for your transfer. You can only specify one ARN.
security_group_arns: Option<Vec<String>>
Specifies the Amazon Resource Name (ARN) of the security group that protects your task's network interfaces when using a virtual private cloud (VPC) endpoint. You can only specify one ARN.
Implementations§
source§impl CreateAgentInput
impl CreateAgentInput
sourcepub fn activation_key(&self) -> Option<&str>
pub fn activation_key(&self) -> Option<&str>
Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent.
sourcepub fn agent_name(&self) -> Option<&str>
pub fn agent_name(&self) -> Option<&str>
Specifies a name for your agent. You can see this name in the DataSync console.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least one tag for your agent.
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()
.
sourcepub fn vpc_endpoint_id(&self) -> Option<&str>
pub fn vpc_endpoint_id(&self) -> Option<&str>
Specifies the ID of the VPC endpoint that you want your agent to connect to. For example, a VPC endpoint ID looks like vpce-01234d5aff67890e1
.
The VPC endpoint you use must include the DataSync service name (for example, com.amazonaws.us-east-2.datasync
).
sourcepub fn subnet_arns(&self) -> &[String]
pub fn subnet_arns(&self) -> &[String]
Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC endpoint. This is the subnet where DataSync creates and manages the network interfaces for your transfer. You can only specify one ARN.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subnet_arns.is_none()
.
sourcepub fn security_group_arns(&self) -> &[String]
pub fn security_group_arns(&self) -> &[String]
Specifies the Amazon Resource Name (ARN) of the security group that protects your task's network interfaces when using a virtual private cloud (VPC) endpoint. You can only specify one ARN.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_group_arns.is_none()
.
source§impl CreateAgentInput
impl CreateAgentInput
sourcepub fn builder() -> CreateAgentInputBuilder
pub fn builder() -> CreateAgentInputBuilder
Creates a new builder-style object to manufacture CreateAgentInput
.
Trait Implementations§
source§impl Clone for CreateAgentInput
impl Clone for CreateAgentInput
source§fn clone(&self) -> CreateAgentInput
fn clone(&self) -> CreateAgentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAgentInput
impl Debug for CreateAgentInput
source§impl PartialEq for CreateAgentInput
impl PartialEq for CreateAgentInput
source§fn eq(&self, other: &CreateAgentInput) -> bool
fn eq(&self, other: &CreateAgentInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAgentInput
Auto Trait Implementations§
impl Freeze for CreateAgentInput
impl RefUnwindSafe for CreateAgentInput
impl Send for CreateAgentInput
impl Sync for CreateAgentInput
impl Unpin for CreateAgentInput
impl UnwindSafe for CreateAgentInput
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> 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