pub struct Client { /* private fields */ }
Expand description
Client for AWS Migration Hub Orchestrator
Client for invoking operations on AWS Migration Hub Orchestrator. Each operation on AWS Migration Hub Orchestrator is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_migrationhuborchestrator::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_migrationhuborchestrator::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CreateTemplate
operation has
a Client::create_template
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.create_template()
.template_name("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn create_template(&self) -> CreateTemplateFluentBuilder
pub fn create_template(&self) -> CreateTemplateFluentBuilder
Constructs a fluent builder for the CreateTemplate
operation.
- The fluent builder is configurable:
template_name(impl Into<String>)
/set_template_name(Option<String>)
:
required: trueThe name of the migration workflow template.
template_description(impl Into<String>)
/set_template_description(Option<String>)
:
required: falseA description of the migration workflow template.
template_source(TemplateSource)
/set_template_source(Option<TemplateSource>)
:
required: trueThe source of the migration workflow template.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Idempotency in the Smithy documentation.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to add to the migration workflow template.
- On success, responds with
CreateTemplateOutput
with field(s):template_id(Option<String>)
:The ID of the migration workflow template.
template_arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow template. The format for an Migration Hub Orchestrator template ARN is
arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234
. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.tags(Option<HashMap::<String, String>>)
:The tags added to the migration workflow template.
- On failure, responds with
SdkError<CreateTemplateError>
Source§impl Client
impl Client
Sourcepub fn create_workflow(&self) -> CreateWorkflowFluentBuilder
pub fn create_workflow(&self) -> CreateWorkflowFluentBuilder
Constructs a fluent builder for the CreateWorkflow
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the migration workflow.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the migration workflow.
template_id(impl Into<String>)
/set_template_id(Option<String>)
:
required: trueThe ID of the template.
application_configuration_id(impl Into<String>)
/set_application_configuration_id(Option<String>)
:
required: falseThe configuration ID of the application configured in Application Discovery Service.
input_parameters(impl Into<String>, StepInput)
/set_input_parameters(Option<HashMap::<String, StepInput>>)
:
required: trueThe input parameters required to create a migration workflow.
step_targets(impl Into<String>)
/set_step_targets(Option<Vec::<String>>)
:
required: falseThe servers on which a step will be run.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags to add on a migration workflow.
- On success, responds with
CreateWorkflowOutput
with field(s):id(Option<String>)
:The ID of the migration workflow.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow.
name(Option<String>)
:The name of the migration workflow.
description(Option<String>)
:The description of the migration workflow.
template_id(Option<String>)
:The ID of the template.
ads_application_configuration_id(Option<String>)
:The configuration ID of the application configured in Application Discovery Service.
workflow_inputs(Option<HashMap::<String, StepInput>>)
:The inputs for creating a migration workflow.
step_targets(Option<Vec::<String>>)
:The servers on which a step will be run.
status(Option<MigrationWorkflowStatusEnum>)
:The status of the migration workflow.
creation_time(Option<DateTime>)
:The time at which the migration workflow was created.
tags(Option<HashMap::<String, String>>)
:The tags to add on a migration workflow.
- On failure, responds with
SdkError<CreateWorkflowError>
Source§impl Client
impl Client
Sourcepub fn create_workflow_step(&self) -> CreateWorkflowStepFluentBuilder
pub fn create_workflow_step(&self) -> CreateWorkflowStepFluentBuilder
Constructs a fluent builder for the CreateWorkflowStep
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the step.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
step_action_type(StepActionType)
/set_step_action_type(Option<StepActionType>)
:
required: trueThe action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the step.
workflow_step_automation_configuration(WorkflowStepAutomationConfiguration)
/set_workflow_step_automation_configuration(Option<WorkflowStepAutomationConfiguration>)
:
required: falseThe custom script to run tests on source or target environments.
step_target(impl Into<String>)
/set_step_target(Option<Vec::<String>>)
:
required: falseThe servers on which a step will be run.
outputs(WorkflowStepOutput)
/set_outputs(Option<Vec::<WorkflowStepOutput>>)
:
required: falseThe key value pairs added for the expected output.
previous(impl Into<String>)
/set_previous(Option<Vec::<String>>)
:
required: falseThe previous step.
next(impl Into<String>)
/set_next(Option<Vec::<String>>)
:
required: falseThe next step.
- On success, responds with
CreateWorkflowStepOutput
with field(s):id(Option<String>)
:The ID of the step.
step_group_id(Option<String>)
:The ID of the step group.
workflow_id(Option<String>)
:The ID of the migration workflow.
name(Option<String>)
:The name of the step.
- On failure, responds with
SdkError<CreateWorkflowStepError>
Source§impl Client
impl Client
Sourcepub fn create_workflow_step_group(&self) -> CreateWorkflowStepGroupFluentBuilder
pub fn create_workflow_step_group(&self) -> CreateWorkflowStepGroupFluentBuilder
Constructs a fluent builder for the CreateWorkflowStepGroup
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow that will contain the step group.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the step group.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the step group.
next(impl Into<String>)
/set_next(Option<Vec::<String>>)
:
required: falseThe next step group.
previous(impl Into<String>)
/set_previous(Option<Vec::<String>>)
:
required: falseThe previous step group.
- On success, responds with
CreateWorkflowStepGroupOutput
with field(s):workflow_id(Option<String>)
:The ID of the migration workflow that contains the step group.
name(Option<String>)
:The name of the step group.
id(Option<String>)
:The ID of the step group.
description(Option<String>)
:The description of the step group.
tools(Option<Vec::<Tool>>)
:List of AWS services utilized in a migration workflow.
next(Option<Vec::<String>>)
:The next step group.
previous(Option<Vec::<String>>)
:The previous step group.
creation_time(Option<DateTime>)
:The time at which the step group is created.
- On failure, responds with
SdkError<CreateWorkflowStepGroupError>
Source§impl Client
impl Client
Sourcepub fn delete_template(&self) -> DeleteTemplateFluentBuilder
pub fn delete_template(&self) -> DeleteTemplateFluentBuilder
Constructs a fluent builder for the DeleteTemplate
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the request to delete a migration workflow template.
- On success, responds with
DeleteTemplateOutput
- On failure, responds with
SdkError<DeleteTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_workflow(&self) -> DeleteWorkflowFluentBuilder
pub fn delete_workflow(&self) -> DeleteWorkflowFluentBuilder
Constructs a fluent builder for the DeleteWorkflow
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the migration workflow you want to delete.
- On success, responds with
DeleteWorkflowOutput
with field(s):id(Option<String>)
:The ID of the migration workflow.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow.
status(Option<MigrationWorkflowStatusEnum>)
:The status of the migration workflow.
- On failure, responds with
SdkError<DeleteWorkflowError>
Source§impl Client
impl Client
Sourcepub fn delete_workflow_step(&self) -> DeleteWorkflowStepFluentBuilder
pub fn delete_workflow_step(&self) -> DeleteWorkflowStepFluentBuilder
Constructs a fluent builder for the DeleteWorkflowStep
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step you want to delete.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group that contains the step you want to delete.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
- On success, responds with
DeleteWorkflowStepOutput
- On failure, responds with
SdkError<DeleteWorkflowStepError>
Source§impl Client
impl Client
Sourcepub fn delete_workflow_step_group(&self) -> DeleteWorkflowStepGroupFluentBuilder
pub fn delete_workflow_step_group(&self) -> DeleteWorkflowStepGroupFluentBuilder
Constructs a fluent builder for the DeleteWorkflowStepGroup
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step group you want to delete.
- On success, responds with
DeleteWorkflowStepGroupOutput
- On failure, responds with
SdkError<DeleteWorkflowStepGroupError>
Source§impl Client
impl Client
Sourcepub fn get_template(&self) -> GetTemplateFluentBuilder
pub fn get_template(&self) -> GetTemplateFluentBuilder
Constructs a fluent builder for the GetTemplate
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the template.
- On success, responds with
GetTemplateOutput
with field(s):id(Option<String>)
:The ID of the template.
template_arn(Option<String>)
:>The Amazon Resource Name (ARN) of the migration workflow template. The format for an Migration Hub Orchestrator template ARN is
arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234
. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.name(Option<String>)
:The name of the template.
description(Option<String>)
:The time at which the template was last created.
inputs(Option<Vec::<TemplateInput>>)
:The inputs provided for the creation of the migration workflow.
tools(Option<Vec::<Tool>>)
:List of AWS services utilized in a migration workflow.
creation_time(Option<DateTime>)
:The time at which the template was last created.
owner(Option<String>)
:The owner of the migration workflow template.
status(Option<TemplateStatus>)
:The status of the template.
status_message(Option<String>)
:The status message of retrieving migration workflow templates.
template_class(Option<String>)
:The class of the migration workflow template. The available template classes are:
-
A2C
-
MGN
-
SAP_MULTI
-
SQL_EC2
-
SQL_RDS
-
VMIE
-
tags(Option<HashMap::<String, String>>)
:The tags added to the migration workflow template.
- On failure, responds with
SdkError<GetTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_template_step(&self) -> GetTemplateStepFluentBuilder
pub fn get_template_step(&self) -> GetTemplateStepFluentBuilder
Constructs a fluent builder for the GetTemplateStep
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step.
template_id(impl Into<String>)
/set_template_id(Option<String>)
:
required: trueThe ID of the template.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
- On success, responds with
GetTemplateStepOutput
with field(s):id(Option<String>)
:The ID of the step.
step_group_id(Option<String>)
:The ID of the step group.
template_id(Option<String>)
:The ID of the template.
name(Option<String>)
:The name of the step.
description(Option<String>)
:The description of the step.
step_action_type(Option<StepActionType>)
:The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.
creation_time(Option<String>)
:The time at which the step was created.
previous(Option<Vec::<String>>)
:The previous step.
next(Option<Vec::<String>>)
:The next step.
outputs(Option<Vec::<StepOutput>>)
:The outputs of the step.
step_automation_configuration(Option<StepAutomationConfiguration>)
:The custom script to run tests on source or target environments.
- On failure, responds with
SdkError<GetTemplateStepError>
Source§impl Client
impl Client
Sourcepub fn get_template_step_group(&self) -> GetTemplateStepGroupFluentBuilder
pub fn get_template_step_group(&self) -> GetTemplateStepGroupFluentBuilder
Constructs a fluent builder for the GetTemplateStepGroup
operation.
- The fluent builder is configurable:
template_id(impl Into<String>)
/set_template_id(Option<String>)
:
required: trueThe ID of the template.
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step group.
- On success, responds with
GetTemplateStepGroupOutput
with field(s):template_id(Option<String>)
:The ID of the template.
id(Option<String>)
:The ID of the step group.
name(Option<String>)
:The name of the step group.
description(Option<String>)
:The description of the step group.
status(Option<StepGroupStatus>)
:The status of the step group.
creation_time(Option<DateTime>)
:The time at which the step group was created.
last_modified_time(Option<DateTime>)
:The time at which the step group was last modified.
tools(Option<Vec::<Tool>>)
:List of AWS services utilized in a migration workflow.
previous(Option<Vec::<String>>)
:The previous step group.
next(Option<Vec::<String>>)
:The next step group.
- On failure, responds with
SdkError<GetTemplateStepGroupError>
Source§impl Client
impl Client
Sourcepub fn get_workflow(&self) -> GetWorkflowFluentBuilder
pub fn get_workflow(&self) -> GetWorkflowFluentBuilder
Constructs a fluent builder for the GetWorkflow
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the migration workflow.
- On success, responds with
GetWorkflowOutput
with field(s):id(Option<String>)
:The ID of the migration workflow.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow.
name(Option<String>)
:The name of the migration workflow.
description(Option<String>)
:The description of the migration workflow.
template_id(Option<String>)
:The ID of the template.
ads_application_configuration_id(Option<String>)
:The configuration ID of the application configured in Application Discovery Service.
ads_application_name(Option<String>)
:The name of the application configured in Application Discovery Service.
status(Option<MigrationWorkflowStatusEnum>)
:The status of the migration workflow.
status_message(Option<String>)
:The status message of the migration workflow.
creation_time(Option<DateTime>)
:The time at which the migration workflow was created.
last_start_time(Option<DateTime>)
:The time at which the migration workflow was last started.
last_stop_time(Option<DateTime>)
:The time at which the migration workflow was last stopped.
last_modified_time(Option<DateTime>)
:The time at which the migration workflow was last modified.
end_time(Option<DateTime>)
:The time at which the migration workflow ended.
tools(Option<Vec::<Tool>>)
:List of AWS services utilized in a migration workflow.
total_steps(Option<i32>)
:The total number of steps in the migration workflow.
completed_steps(Option<i32>)
:Get a list of completed steps in the migration workflow.
workflow_inputs(Option<HashMap::<String, StepInput>>)
:The inputs required for creating the migration workflow.
tags(Option<HashMap::<String, String>>)
:The tags added to the migration workflow.
workflow_bucket(Option<String>)
:The Amazon S3 bucket where the migration logs are stored.
- On failure, responds with
SdkError<GetWorkflowError>
Source§impl Client
impl Client
Sourcepub fn get_workflow_step(&self) -> GetWorkflowStepFluentBuilder
pub fn get_workflow_step(&self) -> GetWorkflowStepFluentBuilder
Constructs a fluent builder for the GetWorkflowStep
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step.
- On success, responds with
GetWorkflowStepOutput
with field(s):name(Option<String>)
:The name of the step.
step_group_id(Option<String>)
:The ID of the step group.
workflow_id(Option<String>)
:The ID of the migration workflow.
step_id(Option<String>)
:The ID of the step.
description(Option<String>)
:The description of the step.
step_action_type(Option<StepActionType>)
:The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.
owner(Option<Owner>)
:The owner of the step.
workflow_step_automation_configuration(Option<WorkflowStepAutomationConfiguration>)
:The custom script to run tests on source or target environments.
step_target(Option<Vec::<String>>)
:The servers on which a step will be run.
outputs(Option<Vec::<WorkflowStepOutput>>)
:The outputs of the step.
previous(Option<Vec::<String>>)
:The previous step.
next(Option<Vec::<String>>)
:The next step.
status(Option<StepStatus>)
:The status of the step.
status_message(Option<String>)
:The status message of the migration workflow.
script_output_location(Option<String>)
:The output location of the script.
creation_time(Option<DateTime>)
:The time at which the step was created.
last_start_time(Option<DateTime>)
:The time at which the workflow was last started.
end_time(Option<DateTime>)
:The time at which the step ended.
no_of_srv_completed(Option<i32>)
:The number of servers that have been migrated.
no_of_srv_failed(Option<i32>)
:The number of servers that have failed to migrate.
total_no_of_srv(Option<i32>)
:The total number of servers that have been migrated.
- On failure, responds with
SdkError<GetWorkflowStepError>
Source§impl Client
impl Client
Sourcepub fn get_workflow_step_group(&self) -> GetWorkflowStepGroupFluentBuilder
pub fn get_workflow_step_group(&self) -> GetWorkflowStepGroupFluentBuilder
Constructs a fluent builder for the GetWorkflowStepGroup
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step group.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
- On success, responds with
GetWorkflowStepGroupOutput
with field(s):id(Option<String>)
:The ID of the step group.
workflow_id(Option<String>)
:The ID of the migration workflow.
name(Option<String>)
:The name of the step group.
description(Option<String>)
:The description of the step group.
status(Option<StepGroupStatus>)
:The status of the step group.
owner(Option<Owner>)
:The owner of the step group.
creation_time(Option<DateTime>)
:The time at which the step group was created.
last_modified_time(Option<DateTime>)
:The time at which the step group was last modified.
end_time(Option<DateTime>)
:The time at which the step group ended.
tools(Option<Vec::<Tool>>)
:List of AWS services utilized in a migration workflow.
previous(Option<Vec::<String>>)
:The previous step group.
next(Option<Vec::<String>>)
:The next step group.
- On failure, responds with
SdkError<GetWorkflowStepGroupError>
Source§impl Client
impl Client
Sourcepub fn list_plugins(&self) -> ListPluginsFluentBuilder
pub fn list_plugins(&self) -> ListPluginsFluentBuilder
Constructs a fluent builder for the ListPlugins
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of plugins that can be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
- On success, responds with
ListPluginsOutput
with field(s):next_token(Option<String>)
:The pagination token.
plugins(Option<Vec::<PluginSummary>>)
:Migration Hub Orchestrator plugins.
- On failure, responds with
SdkError<ListPluginsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap::<String, String>>)
:The tags added to a resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_template_step_groups(&self) -> ListTemplateStepGroupsFluentBuilder
pub fn list_template_step_groups(&self) -> ListTemplateStepGroupsFluentBuilder
Constructs a fluent builder for the ListTemplateStepGroups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that can be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
template_id(impl Into<String>)
/set_template_id(Option<String>)
:
required: trueThe ID of the template.
- On success, responds with
ListTemplateStepGroupsOutput
with field(s):next_token(Option<String>)
:The pagination token.
template_step_group_summary(Vec::<TemplateStepGroupSummary>)
:The summary of the step group in the template.
- On failure, responds with
SdkError<ListTemplateStepGroupsError>
Source§impl Client
impl Client
Sourcepub fn list_template_steps(&self) -> ListTemplateStepsFluentBuilder
pub fn list_template_steps(&self) -> ListTemplateStepsFluentBuilder
Constructs a fluent builder for the ListTemplateSteps
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that can be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
template_id(impl Into<String>)
/set_template_id(Option<String>)
:
required: trueThe ID of the template.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
- On success, responds with
ListTemplateStepsOutput
with field(s):next_token(Option<String>)
:The pagination token.
template_step_summary_list(Option<Vec::<TemplateStepSummary>>)
:The list of summaries of steps in a template.
- On failure, responds with
SdkError<ListTemplateStepsError>
Source§impl Client
impl Client
Sourcepub fn list_templates(&self) -> ListTemplatesFluentBuilder
pub fn list_templates(&self) -> ListTemplatesFluentBuilder
Constructs a fluent builder for the ListTemplates
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that can be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the template.
- On success, responds with
ListTemplatesOutput
with field(s):next_token(Option<String>)
:The pagination token.
template_summary(Vec::<TemplateSummary>)
:The summary of the template.
- On failure, responds with
SdkError<ListTemplatesError>
Source§impl Client
impl Client
Sourcepub fn list_workflow_step_groups(&self) -> ListWorkflowStepGroupsFluentBuilder
pub fn list_workflow_step_groups(&self) -> ListWorkflowStepGroupsFluentBuilder
Constructs a fluent builder for the ListWorkflowStepGroups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that can be returned.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
- On success, responds with
ListWorkflowStepGroupsOutput
with field(s):next_token(Option<String>)
:The pagination token.
workflow_step_groups_summary(Vec::<WorkflowStepGroupSummary>)
:The summary of step groups in a migration workflow.
- On failure, responds with
SdkError<ListWorkflowStepGroupsError>
Source§impl Client
impl Client
Sourcepub fn list_workflow_steps(&self) -> ListWorkflowStepsFluentBuilder
pub fn list_workflow_steps(&self) -> ListWorkflowStepsFluentBuilder
Constructs a fluent builder for the ListWorkflowSteps
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that can be returned.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
- On success, responds with
ListWorkflowStepsOutput
with field(s):next_token(Option<String>)
:The pagination token.
workflow_steps_summary(Vec::<WorkflowStepSummary>)
:The summary of steps in a migration workflow.
- On failure, responds with
SdkError<ListWorkflowStepsError>
Source§impl Client
impl Client
Sourcepub fn list_workflows(&self) -> ListWorkflowsFluentBuilder
pub fn list_workflows(&self) -> ListWorkflowsFluentBuilder
Constructs a fluent builder for the ListWorkflows
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results that can be returned.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token.
template_id(impl Into<String>)
/set_template_id(Option<String>)
:
required: falseThe ID of the template.
ads_application_configuration_name(impl Into<String>)
/set_ads_application_configuration_name(Option<String>)
:
required: falseThe name of the application configured in Application Discovery Service.
status(MigrationWorkflowStatusEnum)
/set_status(Option<MigrationWorkflowStatusEnum>)
:
required: falseThe status of the migration workflow.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the migration workflow.
- On success, responds with
ListWorkflowsOutput
with field(s):next_token(Option<String>)
:The pagination token.
migration_workflow_summary(Vec::<MigrationWorkflowSummary>)
:The summary of the migration workflow.
- On failure, responds with
SdkError<ListWorkflowsError>
Source§impl Client
impl Client
Sourcepub fn retry_workflow_step(&self) -> RetryWorkflowStepFluentBuilder
pub fn retry_workflow_step(&self) -> RetryWorkflowStepFluentBuilder
Constructs a fluent builder for the RetryWorkflowStep
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step.
- On success, responds with
RetryWorkflowStepOutput
with field(s):step_group_id(Option<String>)
:The ID of the step group.
workflow_id(Option<String>)
:The ID of the migration workflow.
id(Option<String>)
:The ID of the step.
status(Option<StepStatus>)
:The status of the step.
- On failure, responds with
SdkError<RetryWorkflowStepError>
Source§impl Client
impl Client
Sourcepub fn start_workflow(&self) -> StartWorkflowFluentBuilder
pub fn start_workflow(&self) -> StartWorkflowFluentBuilder
Constructs a fluent builder for the StartWorkflow
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the migration workflow.
- On success, responds with
StartWorkflowOutput
with field(s):id(Option<String>)
:The ID of the migration workflow.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow.
status(Option<MigrationWorkflowStatusEnum>)
:The status of the migration workflow.
status_message(Option<String>)
:The status message of the migration workflow.
last_start_time(Option<DateTime>)
:The time at which the migration workflow was last started.
- On failure, responds with
SdkError<StartWorkflowError>
Source§impl Client
impl Client
Sourcepub fn stop_workflow(&self) -> StopWorkflowFluentBuilder
pub fn stop_workflow(&self) -> StopWorkflowFluentBuilder
Constructs a fluent builder for the StopWorkflow
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the migration workflow.
- On success, responds with
StopWorkflowOutput
with field(s):id(Option<String>)
:The ID of the migration workflow.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow.
status(Option<MigrationWorkflowStatusEnum>)
:The status of the migration workflow.
status_message(Option<String>)
:The status message of the migration workflow.
last_stop_time(Option<DateTime>)
:The time at which the migration workflow was stopped.
- On failure, responds with
SdkError<StopWorkflowError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to which you want to add tags.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: trueA collection of labels, in the form of key:value pairs, that apply to this resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource from which you want to remove tags.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueOne or more tag keys. Specify only the tag keys, not the tag values.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_template(&self) -> UpdateTemplateFluentBuilder
pub fn update_template(&self) -> UpdateTemplateFluentBuilder
Constructs a fluent builder for the UpdateTemplate
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the request to update a migration workflow template.
template_name(impl Into<String>)
/set_template_name(Option<String>)
:
required: falseThe name of the migration workflow template to update.
template_description(impl Into<String>)
/set_template_description(Option<String>)
:
required: falseThe description of the migration workflow template to update.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- On success, responds with
UpdateTemplateOutput
with field(s):template_id(Option<String>)
:The ID of the migration workflow template being updated.
template_arn(Option<String>)
:The ARN of the migration workflow template being updated. The format for an Migration Hub Orchestrator template ARN is
arn:aws:migrationhub-orchestrator:region:account:template/template-abcd1234
. For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.tags(Option<HashMap::<String, String>>)
:The tags added to the migration workflow template.
- On failure, responds with
SdkError<UpdateTemplateError>
Source§impl Client
impl Client
Sourcepub fn update_workflow(&self) -> UpdateWorkflowFluentBuilder
pub fn update_workflow(&self) -> UpdateWorkflowFluentBuilder
Constructs a fluent builder for the UpdateWorkflow
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the migration workflow.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the migration workflow.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the migration workflow.
input_parameters(impl Into<String>, StepInput)
/set_input_parameters(Option<HashMap::<String, StepInput>>)
:
required: falseThe input parameters required to update a migration workflow.
step_targets(impl Into<String>)
/set_step_targets(Option<Vec::<String>>)
:
required: falseThe servers on which a step will be run.
- On success, responds with
UpdateWorkflowOutput
with field(s):id(Option<String>)
:The ID of the migration workflow.
arn(Option<String>)
:The Amazon Resource Name (ARN) of the migration workflow.
name(Option<String>)
:The name of the migration workflow.
description(Option<String>)
:The description of the migration workflow.
template_id(Option<String>)
:The ID of the template.
ads_application_configuration_id(Option<String>)
:The ID of the application configured in Application Discovery Service.
workflow_inputs(Option<HashMap::<String, StepInput>>)
:The inputs required to update a migration workflow.
step_targets(Option<Vec::<String>>)
:The servers on which a step will be run.
status(Option<MigrationWorkflowStatusEnum>)
:The status of the migration workflow.
creation_time(Option<DateTime>)
:The time at which the migration workflow was created.
last_modified_time(Option<DateTime>)
:The time at which the migration workflow was last modified.
tags(Option<HashMap::<String, String>>)
:The tags added to the migration workflow.
- On failure, responds with
SdkError<UpdateWorkflowError>
Source§impl Client
impl Client
Sourcepub fn update_workflow_step(&self) -> UpdateWorkflowStepFluentBuilder
pub fn update_workflow_step(&self) -> UpdateWorkflowStepFluentBuilder
Constructs a fluent builder for the UpdateWorkflowStep
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step.
step_group_id(impl Into<String>)
/set_step_group_id(Option<String>)
:
required: trueThe ID of the step group.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the step.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the step.
step_action_type(StepActionType)
/set_step_action_type(Option<StepActionType>)
:
required: falseThe action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step.
workflow_step_automation_configuration(WorkflowStepAutomationConfiguration)
/set_workflow_step_automation_configuration(Option<WorkflowStepAutomationConfiguration>)
:
required: falseThe custom script to run tests on the source and target environments.
step_target(impl Into<String>)
/set_step_target(Option<Vec::<String>>)
:
required: falseThe servers on which a step will be run.
outputs(WorkflowStepOutput)
/set_outputs(Option<Vec::<WorkflowStepOutput>>)
:
required: falseThe outputs of a step.
previous(impl Into<String>)
/set_previous(Option<Vec::<String>>)
:
required: falseThe previous step.
next(impl Into<String>)
/set_next(Option<Vec::<String>>)
:
required: falseThe next step.
status(StepStatus)
/set_status(Option<StepStatus>)
:
required: falseThe status of the step.
- On success, responds with
UpdateWorkflowStepOutput
with field(s):id(Option<String>)
:The ID of the step.
step_group_id(Option<String>)
:The ID of the step group.
workflow_id(Option<String>)
:The ID of the migration workflow.
name(Option<String>)
:The name of the step.
- On failure, responds with
SdkError<UpdateWorkflowStepError>
Source§impl Client
impl Client
Sourcepub fn update_workflow_step_group(&self) -> UpdateWorkflowStepGroupFluentBuilder
pub fn update_workflow_step_group(&self) -> UpdateWorkflowStepGroupFluentBuilder
Constructs a fluent builder for the UpdateWorkflowStepGroup
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:
required: trueThe ID of the migration workflow.
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the step group.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the step group.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the step group.
next(impl Into<String>)
/set_next(Option<Vec::<String>>)
:
required: falseThe next step group.
previous(impl Into<String>)
/set_previous(Option<Vec::<String>>)
:
required: falseThe previous step group.
- On success, responds with
UpdateWorkflowStepGroupOutput
with field(s):workflow_id(Option<String>)
:The ID of the migration workflow.
name(Option<String>)
:The name of the step group.
id(Option<String>)
:The ID of the step group.
description(Option<String>)
:The description of the step group.
tools(Option<Vec::<Tool>>)
:List of AWS services utilized in a migration workflow.
next(Option<Vec::<String>>)
:The next step group.
previous(Option<Vec::<String>>)
:The previous step group.
last_modified_time(Option<DateTime>)
:The time at which the step group was last modified.
- On failure, responds with
SdkError<UpdateWorkflowStepGroupError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
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 thesleep_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 thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);