// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateAgent`](crate::operation::create_agent::builders::CreateAgentFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`activation_key(impl Into<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::activation_key) / [`set_activation_key(Option<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_activation_key): <p>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.</p> <p>The redirect URL returned in the response provides you the activation key for your agent in the query string parameter <code>activationKey</code>. 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.</p> <p>For more information, see Activating an Agent in the <i>DataSync User Guide.</i> </p>
/// - [`agent_name(impl Into<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::agent_name) / [`set_agent_name(Option<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_agent_name): <p>The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.</p>
/// - [`tags(Vec<TagListEntry>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::tags) / [`set_tags(Option<Vec<TagListEntry>>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_tags): <p>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.</p> <note> <p>Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. </p> </note>
/// - [`vpc_endpoint_id(impl Into<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::vpc_endpoint_id) / [`set_vpc_endpoint_id(Option<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_vpc_endpoint_id): <p>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 <a href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p> <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
/// - [`subnet_arns(Vec<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::subnet_arns) / [`set_subnet_arns(Option<Vec<String>>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_subnet_arns): <p>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.</p>
/// - [`security_group_arns(Vec<String>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::security_group_arns) / [`set_security_group_arns(Option<Vec<String>>)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_security_group_arns): <p>The ARNs of the security groups used to protect your data transfer task subnets. See <a href="https://docs.aws.amazon.com/datasync/latest/userguide/API_Ec2Config.html#DataSync-Type-Ec2Config-SecurityGroupArns">SecurityGroupArns</a>.</p>
/// - On success, responds with [`CreateAgentOutput`](crate::operation::create_agent::CreateAgentOutput) with field(s):
/// - [`agent_arn(Option<String>)`](crate::operation::create_agent::CreateAgentOutput::agent_arn): <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code> operation to return a list of agents for your account and Amazon Web Services Region.</p>
/// - On failure, responds with [`SdkError<CreateAgentError>`](crate::operation::create_agent::CreateAgentError)
pub fn create_agent(
&self,
) -> crate::operation::create_agent::builders::CreateAgentFluentBuilder {
crate::operation::create_agent::builders::CreateAgentFluentBuilder::new(self.handle.clone())
}
}