Paws::Datasync::CreateAgent - Arguments for method CreateAgent on Paws::Datasync


This class represents the parameters used for calling the method CreateAgent on the AWS DataSync service. Use the attributes of this class as arguments to method CreateAgent.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAgent.


    my $datasync = Paws->service('Datasync');
    my $CreateAgentResponse = $datasync->CreateAgent(
      ActivationKey => 'MyActivationKey',
      AgentName     => 'MyTagValue',        # OPTIONAL
      Tags          => [
          Key   => 'MyTagKey',              # min: 1, max: 256
          Value => 'MyTagValue',            # min: 1, max: 256
      ],                                    # OPTIONAL

    # Results:
    my $AgentArn = $CreateAgentResponse->AgentArn;

    # Returns a L<Paws::Datasync::CreateAgentResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


REQUIRED ActivationKey => 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 AWS 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 a Agent) in the AWS DataSync User Guide.

AgentName => Str

The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.

Tags => ArrayRef[Paws::Datasync::TagListEntry]

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: + - = . _ : / @.


This class forms part of Paws, documenting arguments for method CreateAgent in Paws::Datasync


The source code is located here:

Please report bugs to: