pub struct Client { /* private fields */ }
Expand description

Client for AWS Application Discovery Service

Client for invoking operations on AWS Application Discovery Service. Each operation on AWS Application Discovery Service is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_applicationdiscovery::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_applicationdiscovery::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_applicationdiscovery::Client::from_conf(config);

Implementations§

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateConfigurationItemsToApplication operation.

Constructs a fluent builder for the BatchDeleteImportData operation.

Constructs a fluent builder for the CreateApplication operation.

Constructs a fluent builder for the CreateTags operation.

Constructs a fluent builder for the DeleteApplications operation.

Constructs a fluent builder for the DeleteTags operation.

Constructs a fluent builder for the DescribeAgents operation.

  • The fluent builder is configurable:
  • On success, responds with DescribeAgentsOutput with field(s):
    • agents_info(Option<Vec<AgentInfo>>):

      Lists agents or the Connector by ID or lists all agents/Connectors associated with your user account if you did not specify an agent/Connector ID. The output includes agent/Connector IDs, IP addresses, media access control (MAC) addresses, agent/Connector health, host name where the agent/Connector resides, and the version number of each agent/Connector.

    • next_token(Option<String>):

      Token to retrieve the next set of results. For example, if you specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.

  • On failure, responds with SdkError<DescribeAgentsError>

Constructs a fluent builder for the DescribeConfigurations operation.

Constructs a fluent builder for the DescribeContinuousExports operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeExportConfigurations operation.

Constructs a fluent builder for the DescribeExportTasks operation.

Constructs a fluent builder for the DescribeImportTasks operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeTags operation.

Constructs a fluent builder for the DisassociateConfigurationItemsFromApplication operation.

Constructs a fluent builder for the ExportConfigurations operation.

Constructs a fluent builder for the GetDiscoverySummary operation.

Constructs a fluent builder for the ListConfigurations operation.

Constructs a fluent builder for the ListServerNeighbors operation.

Constructs a fluent builder for the StartContinuousExport operation.

Constructs a fluent builder for the StartDataCollectionByAgentIds operation.

  • The fluent builder is configurable:
    • agent_ids(Vec<String>) / set_agent_ids(Option<Vec<String>>):

      The IDs of the agents or connectors from which to start collecting data. If you send a request to an agent/connector ID that you do not have permission to contact, according to your Amazon Web Services account, the service does not throw an exception. Instead, it returns the error in the Description field. If you send a request to multiple agents/connectors and you do not have permission to contact some of those agents/connectors, the system does not throw an exception. Instead, the system shows Failed in the Description field.

  • On success, responds with StartDataCollectionByAgentIdsOutput with field(s):
  • On failure, responds with SdkError<StartDataCollectionByAgentIdsError>

Constructs a fluent builder for the StartExportTask operation.

Constructs a fluent builder for the StartImportTask operation.

  • The fluent builder is configurable:
    • client_request_token(impl Into<String>) / set_client_request_token(Option<String>):

      Optional. A unique token that you can provide to prevent the same import request from occurring more than once. If you don’t provide a token, a token is automatically generated.

      Sending more than one StartImportTask request with the same client request token will return information about the original import task with that client request token.

    • name(impl Into<String>) / set_name(Option<String>):

      A descriptive name for this request. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.

    • import_url(impl Into<String>) / set_import_url(Option<String>):

      The URL for your import file that you’ve uploaded to Amazon S3.

      If you’re using the Amazon Web Services CLI, this URL is structured as follows: s3://BucketName/ImportFileName.CSV

  • On success, responds with StartImportTaskOutput with field(s):
    • task(Option<ImportTask>):

      An array of information related to the import task request including status information, times, IDs, the Amazon S3 Object URL for the import file, and more.

  • On failure, responds with SdkError<StartImportTaskError>

Constructs a fluent builder for the StopContinuousExport operation.

Constructs a fluent builder for the StopDataCollectionByAgentIds operation.

Constructs a fluent builder for the UpdateApplication operation.

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Creates a new client from the service Config.

Panics
  • This method will panic if the conf is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the conf is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more