Struct aws_sdk_datasync::input::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>
Your agent activation key. You can get the activation key either by sending an HTTP GET request with redirects that enable you to get the agent IP address (port 80). Alternatively, you can get it from the DataSync console.
The redirect URL returned in the response provides you the activation key for your agent in the query string parameter activationKey
. It might also include other activation-related parameters; however, these are merely defaults. The arguments you pass to this API call determine the actual configuration of your agent.
For more information, see Activating an Agent in the DataSync User Guide.
agent_name: Option<String>
The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.
The key-value pair that represents the tag that you want to associate with the agent. The value can be an empty string. This value helps you manage, filter, and search for your agents.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.
vpc_endpoint_id: Option<String>
The ID of the VPC (virtual private cloud) endpoint that the agent has access to. This is the client-side VPC endpoint, also called a PrivateLink. If you don't have a PrivateLink VPC endpoint, see Creating a VPC Endpoint Service Configuration in the Amazon VPC User Guide.
VPC endpoint ID looks like this: vpce-01234d5aff67890e1
.
subnet_arns: Option<Vec<String>>
The Amazon Resource Names (ARNs) of the subnets in which DataSync will create elastic network interfaces for each data transfer task. The agent that runs a task must be private. When you start a task that is associated with an agent created in a VPC, or one that has access to an IP address in a VPC, then the task is also private. In this case, DataSync creates four network interfaces for each task in your subnet. For a data transfer to work, the agent must be able to route to all these four network interfaces.
security_group_arns: Option<Vec<String>>
The ARNs of the security groups used to protect your data transfer task subnets. See SecurityGroupArns.
Implementations
sourceimpl CreateAgentInput
impl CreateAgentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateAgent, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateAgent, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateAgent
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateAgentInput
sourceimpl CreateAgentInput
impl CreateAgentInput
sourcepub fn activation_key(&self) -> Option<&str>
pub fn activation_key(&self) -> Option<&str>
Your agent activation key. You can get the activation key either by sending an HTTP GET request with redirects that enable you to get the agent IP address (port 80). Alternatively, you can get it from the DataSync console.
The redirect URL returned in the response provides you the activation key for your agent in the query string parameter activationKey
. It might also include other activation-related parameters; however, these are merely defaults. The arguments you pass to this API call determine the actual configuration of your agent.
For more information, see Activating an Agent in the DataSync User Guide.
sourcepub fn agent_name(&self) -> Option<&str>
pub fn agent_name(&self) -> Option<&str>
The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.
The key-value pair that represents the tag that you want to associate with the agent. The value can be an empty string. This value helps you manage, filter, and search for your agents.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.
sourcepub fn vpc_endpoint_id(&self) -> Option<&str>
pub fn vpc_endpoint_id(&self) -> Option<&str>
The ID of the VPC (virtual private cloud) endpoint that the agent has access to. This is the client-side VPC endpoint, also called a PrivateLink. If you don't have a PrivateLink VPC endpoint, see Creating a VPC Endpoint Service Configuration in the Amazon VPC User Guide.
VPC endpoint ID looks like this: vpce-01234d5aff67890e1
.
sourcepub fn subnet_arns(&self) -> Option<&[String]>
pub fn subnet_arns(&self) -> Option<&[String]>
The Amazon Resource Names (ARNs) of the subnets in which DataSync will create elastic network interfaces for each data transfer task. The agent that runs a task must be private. When you start a task that is associated with an agent created in a VPC, or one that has access to an IP address in a VPC, then the task is also private. In this case, DataSync creates four network interfaces for each task in your subnet. For a data transfer to work, the agent must be able to route to all these four network interfaces.
sourcepub fn security_group_arns(&self) -> Option<&[String]>
pub fn security_group_arns(&self) -> Option<&[String]>
The ARNs of the security groups used to protect your data transfer task subnets. See SecurityGroupArns.
Trait Implementations
sourceimpl Clone for CreateAgentInput
impl Clone for CreateAgentInput
sourcefn clone(&self) -> CreateAgentInput
fn clone(&self) -> CreateAgentInput
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
sourceimpl Debug for CreateAgentInput
impl Debug for CreateAgentInput
sourceimpl PartialEq<CreateAgentInput> for CreateAgentInput
impl PartialEq<CreateAgentInput> for CreateAgentInput
sourcefn eq(&self, other: &CreateAgentInput) -> bool
fn eq(&self, other: &CreateAgentInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateAgentInput) -> bool
fn ne(&self, other: &CreateAgentInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateAgentInput
Auto Trait Implementations
impl RefUnwindSafe for CreateAgentInput
impl Send for CreateAgentInput
impl Sync for CreateAgentInput
impl Unpin for CreateAgentInput
impl UnwindSafe for CreateAgentInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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