pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description

Client for AWS Migration Hub

Client for invoking operations on AWS Migration Hub. Each operation on AWS Migration Hub 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_migrationhub::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::RetryConfig;
    let shared_config = aws_config::load_from_env().await;
    let config = aws_sdk_migrationhub::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_migrationhub::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateCreatedArtifact operation.

Constructs a fluent builder for the AssociateDiscoveredResource operation.

Constructs a fluent builder for the CreateProgressUpdateStream operation.

Constructs a fluent builder for the DeleteProgressUpdateStream operation.

Constructs a fluent builder for the DescribeApplicationState operation.

Constructs a fluent builder for the DescribeMigrationTask operation.

Constructs a fluent builder for the DisassociateCreatedArtifact operation.

Constructs a fluent builder for the DisassociateDiscoveredResource operation.

Constructs a fluent builder for the ImportMigrationTask operation.

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

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

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

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

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

Constructs a fluent builder for the NotifyApplicationState operation.

Constructs a fluent builder for the NotifyMigrationTaskState operation.

Constructs a fluent builder for the PutResourceAttributes operation.

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

      The name of the ProgressUpdateStream.

    • migration_task_name(impl Into<String>) / set_migration_task_name(Option<String>):

      Unique identifier that references the migration task. Do not store personal data in this field.

    • resource_attribute_list(Vec<ResourceAttribute>) / set_resource_attribute_list(Option<Vec<ResourceAttribute>>):

      Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.

      Takes the object array of ResourceAttribute where the Type field is reserved for the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up to 256 characters.

      • If any “VM” related value is set for a ResourceAttribute object, it is required that VM_MANAGER_ID, as a minimum, is always set. If VM_MANAGER_ID is not set, then all “VM” fields will be discarded and “VM” fields will not be used for matching the migration task to a server in Application Discovery Service repository. See the Example section below for a use case of specifying “VM” related values.

      • If a server you are trying to match has multiple IP or MAC addresses, you should provide as many as you know in separate type/value pairs passed to the ResourceAttributeList parameter to maximize the chances of matching.

    • dry_run(bool) / set_dry_run(bool):

      Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.

  • On success, responds with PutResourceAttributesOutput
  • On failure, responds with SdkError<PutResourceAttributesError>

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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