Struct aws_sdk_migrationhubstrategy::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for Migration Hub Strategy Recommendations
Client for invoking operations on Migration Hub Strategy Recommendations. Each operation on Migration Hub Strategy Recommendations 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_migrationhubstrategy::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_migrationhubstrategy::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_migrationhubstrategy::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn get_application_component_details(
&self
) -> GetApplicationComponentDetails
pub fn get_application_component_details(
&self
) -> GetApplicationComponentDetails
Constructs a fluent builder for the GetApplicationComponentDetails operation.
- The fluent builder is configurable:
application_component_id(impl Into<String>)/set_application_component_id(Option<String>):The ID of the application component. The ID is unique within an AWS account.
- On success, responds with
GetApplicationComponentDetailsOutputwith field(s):application_component_detail(Option<ApplicationComponentDetail>):Detailed information about an application component.
associated_applications(Option<Vec<AssociatedApplication>>):The associated application group as defined in AWS Application Discovery Service.
more_application_resource(Option<bool>):Set to true if the application component belongs to more than one application group.
associated_server_ids(Option<Vec<String>>):A list of the IDs of the servers on which the application component is running.
- On failure, responds with
SdkError<GetApplicationComponentDetailsError>
sourcepub fn get_application_component_strategies(
&self
) -> GetApplicationComponentStrategies
pub fn get_application_component_strategies(
&self
) -> GetApplicationComponentStrategies
Constructs a fluent builder for the GetApplicationComponentStrategies operation.
- The fluent builder is configurable:
application_component_id(impl Into<String>)/set_application_component_id(Option<String>):The ID of the application component. The ID is unique within an AWS account.
- On success, responds with
GetApplicationComponentStrategiesOutputwith field(s):application_component_strategies(Option<Vec<ApplicationComponentStrategy>>):A list of application component strategy recommendations.
- On failure, responds with
SdkError<GetApplicationComponentStrategiesError>
sourcepub fn get_assessment(&self) -> GetAssessment
pub fn get_assessment(&self) -> GetAssessment
Constructs a fluent builder for the GetAssessment operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):The
assessmentidreturned byStartAssessment.
- On success, responds with
GetAssessmentOutputwith field(s):id(Option<String>):The ID for the specific assessment task.
data_collection_details(Option<DataCollectionDetails>):Detailed information about the assessment.
- On failure, responds with
SdkError<GetAssessmentError>
sourcepub fn get_import_file_task(&self) -> GetImportFileTask
pub fn get_import_file_task(&self) -> GetImportFileTask
Constructs a fluent builder for the GetImportFileTask operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):The ID of the import file task. This ID is returned in the response of
StartImportFileTask.
- On success, responds with
GetImportFileTaskOutputwith field(s):id(Option<String>):The import file task
idreturned in the response ofStartImportFileTask.status(Option<ImportFileTaskStatus>):Status of import file task.
start_time(Option<DateTime>):Start time of the import task.
input_s3_bucket(Option<String>):The S3 bucket where import file is located.
input_s3_key(Option<String>):The Amazon S3 key name of the import file.
status_report_s3_bucket(Option<String>):The S3 bucket name for status report of import task.
status_report_s3_key(Option<String>):The Amazon S3 key name for status report of import task. The report contains details about whether each record imported successfully or why it did not.
completion_time(Option<DateTime>):The time that the import task completed.
number_of_records_success(Option<i32>):The number of records successfully imported.
number_of_records_failed(Option<i32>):The number of records that failed to be imported.
import_name(Option<String>):The name of the import task given in
StartImportFileTask.
- On failure, responds with
SdkError<GetImportFileTaskError>
sourcepub fn get_portfolio_preferences(&self) -> GetPortfolioPreferences
pub fn get_portfolio_preferences(&self) -> GetPortfolioPreferences
Constructs a fluent builder for the GetPortfolioPreferences operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetPortfolioPreferencesOutputwith field(s):prioritize_business_goals(Option<PrioritizeBusinessGoals>):The rank of business goals based on priority.
application_preferences(Option<ApplicationPreferences>):The transformation preferences for non-database applications.
database_preferences(Option<DatabasePreferences>):The transformation preferences for database applications.
- On failure, responds with
SdkError<GetPortfolioPreferencesError>
sourcepub fn get_portfolio_summary(&self) -> GetPortfolioSummary
pub fn get_portfolio_summary(&self) -> GetPortfolioSummary
Constructs a fluent builder for the GetPortfolioSummary operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetPortfolioSummaryOutputwith field(s):assessment_summary(Option<AssessmentSummary>):An assessment summary for the portfolio including the number of servers to rehost and the overall number of anti-patterns.
- On failure, responds with
SdkError<GetPortfolioSummaryError>
sourcepub fn get_recommendation_report_details(
&self
) -> GetRecommendationReportDetails
pub fn get_recommendation_report_details(
&self
) -> GetRecommendationReportDetails
Constructs a fluent builder for the GetRecommendationReportDetails operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):The recommendation report generation task
idreturned byStartRecommendationReportGeneration.
- On success, responds with
GetRecommendationReportDetailsOutputwith field(s):id(Option<String>):The ID of the recommendation report generation task. See the response of
StartRecommendationReportGeneration.recommendation_report_details(Option<RecommendationReportDetails>):Detailed information about the recommendation report.
- On failure, responds with
SdkError<GetRecommendationReportDetailsError>
sourcepub fn get_server_details(&self) -> GetServerDetails
pub fn get_server_details(&self) -> GetServerDetails
Constructs a fluent builder for the GetServerDetails operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
server_id(impl Into<String>)/set_server_id(Option<String>):The ID of the server.
next_token(impl Into<String>)/set_next_token(Option<String>):The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You’ll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.max_results(i32)/set_max_results(Option<i32>):The maximum number of items to include in the response. The maximum value is 100.
- On success, responds with
GetServerDetailsOutputwith field(s):next_token(Option<String>):The token you use to retrieve the next set of results, or null if there are no more results.
server_detail(Option<ServerDetail>):Detailed information about the server.
associated_applications(Option<Vec<AssociatedApplication>>):The associated application group the server belongs to, as defined in AWS Application Discovery Service.
- On failure, responds with
SdkError<GetServerDetailsError>
sourcepub fn get_server_strategies(&self) -> GetServerStrategies
pub fn get_server_strategies(&self) -> GetServerStrategies
Constructs a fluent builder for the GetServerStrategies operation.
- The fluent builder is configurable:
server_id(impl Into<String>)/set_server_id(Option<String>):The ID of the server.
- On success, responds with
GetServerStrategiesOutputwith field(s):server_strategies(Option<Vec<ServerStrategy>>):A list of strategy recommendations for the server.
- On failure, responds with
SdkError<GetServerStrategiesError>
sourcepub fn list_application_components(&self) -> ListApplicationComponents
pub fn list_application_components(&self) -> ListApplicationComponents
Constructs a fluent builder for the ListApplicationComponents operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
application_component_criteria(ApplicationComponentCriteria)/set_application_component_criteria(Option<ApplicationComponentCriteria>):Criteria for filtering the list of application components.
filter_value(impl Into<String>)/set_filter_value(Option<String>):Specify the value based on the application component criteria type. For example, if
applicationComponentCriteriais set toSERVER_IDandfilterValueis set toserver1, thenListApplicationComponentsreturns all the application components running on server1.sort(SortOrder)/set_sort(Option<SortOrder>):Specifies whether to sort by ascending (
ASC) or descending (DESC) order.group_id_filter(Vec<Group>)/set_group_id_filter(Option<Vec<Group>>):The group ID specified in to filter on.
next_token(impl Into<String>)/set_next_token(Option<String>):The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You’ll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.max_results(i32)/set_max_results(Option<i32>):The maximum number of items to include in the response. The maximum value is 100.
- On success, responds with
ListApplicationComponentsOutputwith field(s):application_component_infos(Option<Vec<ApplicationComponentDetail>>):The list of application components with detailed information about each component.
next_token(Option<String>):The token you use to retrieve the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListApplicationComponentsError>
sourcepub fn list_collectors(&self) -> ListCollectors
pub fn list_collectors(&self) -> ListCollectors
Constructs a fluent builder for the ListCollectors operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You’ll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.max_results(i32)/set_max_results(Option<i32>):The maximum number of items to include in the response. The maximum value is 100.
- On success, responds with
ListCollectorsOutputwith field(s):collectors(Option<Vec<Collector>>):The list of all the installed collectors.
next_token(Option<String>):The token you use to retrieve the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListCollectorsError>
sourcepub fn list_import_file_task(&self) -> ListImportFileTask
pub fn list_import_file_task(&self) -> ListImportFileTask
Constructs a fluent builder for the ListImportFileTask operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You’ll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.max_results(i32)/set_max_results(Option<i32>):The total number of items to return. The maximum value is 100.
- On success, responds with
ListImportFileTaskOutputwith field(s):task_infos(Option<Vec<ImportFileTaskInformation>>):Lists information about the files you import.
next_token(Option<String>):The token you use to retrieve the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListImportFileTaskError>
sourcepub fn list_servers(&self) -> ListServers
pub fn list_servers(&self) -> ListServers
Constructs a fluent builder for the ListServers operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
server_criteria(ServerCriteria)/set_server_criteria(Option<ServerCriteria>):Criteria for filtering servers.
filter_value(impl Into<String>)/set_filter_value(Option<String>):Specifies the filter value, which is based on the type of server criteria. For example, if
serverCriteriaisOS_NAME, and thefilterValueis equal toWindowsServer, thenListServersreturns all of the servers matching the OS nameWindowsServer.sort(SortOrder)/set_sort(Option<SortOrder>):Specifies whether to sort by ascending (
ASC) or descending (DESC) order.group_id_filter(Vec<Group>)/set_group_id_filter(Option<Vec<Group>>):Specifies the group ID to filter on.
next_token(impl Into<String>)/set_next_token(Option<String>):The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set
maxResultsto 10. You’ll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.max_results(i32)/set_max_results(Option<i32>):The maximum number of items to include in the response. The maximum value is 100.
- On success, responds with
ListServersOutputwith field(s):server_infos(Option<Vec<ServerDetail>>):The list of servers with detailed information about each server.
next_token(Option<String>):The token you use to retrieve the next set of results, or null if there are no more results.
- On failure, responds with
SdkError<ListServersError>
sourcepub fn put_portfolio_preferences(&self) -> PutPortfolioPreferences
pub fn put_portfolio_preferences(&self) -> PutPortfolioPreferences
Constructs a fluent builder for the PutPortfolioPreferences operation.
- The fluent builder is configurable:
prioritize_business_goals(PrioritizeBusinessGoals)/set_prioritize_business_goals(Option<PrioritizeBusinessGoals>):The rank of the business goals based on priority.
application_preferences(ApplicationPreferences)/set_application_preferences(Option<ApplicationPreferences>):The transformation preferences for non-database applications.
database_preferences(DatabasePreferences)/set_database_preferences(Option<DatabasePreferences>):The transformation preferences for database applications.
- On success, responds with
PutPortfolioPreferencesOutput - On failure, responds with
SdkError<PutPortfolioPreferencesError>
sourcepub fn start_assessment(&self) -> StartAssessment
pub fn start_assessment(&self) -> StartAssessment
Constructs a fluent builder for the StartAssessment operation.
- The fluent builder is configurable:
s3bucket_for_analysis_data(impl Into<String>)/set_s3bucket_for_analysis_data(Option<String>):The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with
migrationhub-strategy-.s3bucket_for_report_data(impl Into<String>)/set_s3bucket_for_report_data(Option<String>):The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with
migrationhub-strategy-.
- On success, responds with
StartAssessmentOutputwith field(s):assessment_id(Option<String>):The ID of the assessment.
- On failure, responds with
SdkError<StartAssessmentError>
sourcepub fn start_import_file_task(&self) -> StartImportFileTask
pub fn start_import_file_task(&self) -> StartImportFileTask
Constructs a fluent builder for the StartImportFileTask operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):A descriptive name for the request.
s3_bucket(impl Into<String>)/set_s3_bucket(Option<String>):The S3 bucket where the import file is located. The bucket name is required to begin with
migrationhub-strategy-.s3key(impl Into<String>)/set_s3key(Option<String>):The Amazon S3 key name of the import file.
data_source_type(DataSourceType)/set_data_source_type(Option<DataSourceType>):Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the servers specified in the import file are available in AWS Application Discovery Service.
group_id(Vec<Group>)/set_group_id(Option<Vec<Group>>):Groups the resources in the import file together with a unique name. This ID can be as filter in
ListApplicationComponentsandListServers.s3bucket_for_report_data(impl Into<String>)/set_s3bucket_for_report_data(Option<String>):The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with migrationhub-strategy-.
- On success, responds with
StartImportFileTaskOutputwith field(s):id(Option<String>):The ID for a specific import task. The ID is unique within an AWS account.
- On failure, responds with
SdkError<StartImportFileTaskError>
sourcepub fn start_recommendation_report_generation(
&self
) -> StartRecommendationReportGeneration
pub fn start_recommendation_report_generation(
&self
) -> StartRecommendationReportGeneration
Constructs a fluent builder for the StartRecommendationReportGeneration operation.
- The fluent builder is configurable:
output_format(OutputFormat)/set_output_format(Option<OutputFormat>):The output format for the recommendation report file. The default format is Microsoft Excel.
group_id_filter(Vec<Group>)/set_group_id_filter(Option<Vec<Group>>):Groups the resources in the recommendation report with a unique name.
- On success, responds with
StartRecommendationReportGenerationOutputwith field(s):id(Option<String>):The ID of the recommendation report generation task.
- On failure, responds with
SdkError<StartRecommendationReportGenerationError>
sourcepub fn stop_assessment(&self) -> StopAssessment
pub fn stop_assessment(&self) -> StopAssessment
Constructs a fluent builder for the StopAssessment operation.
- The fluent builder is configurable:
assessment_id(impl Into<String>)/set_assessment_id(Option<String>):The
assessmentIdreturned byStartAssessment.
- On success, responds with
StopAssessmentOutput - On failure, responds with
SdkError<StopAssessmentError>
sourcepub fn update_application_component_config(
&self
) -> UpdateApplicationComponentConfig
pub fn update_application_component_config(
&self
) -> UpdateApplicationComponentConfig
Constructs a fluent builder for the UpdateApplicationComponentConfig operation.
- The fluent builder is configurable:
application_component_id(impl Into<String>)/set_application_component_id(Option<String>):The ID of the application component. The ID is unique within an AWS account.
inclusion_status(InclusionStatus)/set_inclusion_status(Option<InclusionStatus>):Indicates whether the application component has been included for server recommendation or not.
strategy_option(StrategyOption)/set_strategy_option(Option<StrategyOption>):The preferred strategy options for the application component. Use values from the
GetApplicationComponentStrategiesresponse.source_code_list(Vec<SourceCode>)/set_source_code_list(Option<Vec<SourceCode>>):The list of source code configurations to update for the application component.
secrets_manager_key(impl Into<String>)/set_secrets_manager_key(Option<String>):Database credentials.
- On success, responds with
UpdateApplicationComponentConfigOutput - On failure, responds with
SdkError<UpdateApplicationComponentConfigError>
sourcepub fn update_server_config(&self) -> UpdateServerConfig
pub fn update_server_config(&self) -> UpdateServerConfig
Constructs a fluent builder for the UpdateServerConfig operation.
- The fluent builder is configurable:
server_id(impl Into<String>)/set_server_id(Option<String>):The ID of the server.
strategy_option(StrategyOption)/set_strategy_option(Option<StrategyOption>):The preferred strategy options for the application component. See the response from
GetServerStrategies.
- On success, responds with
UpdateServerConfigOutput - On failure, responds with
SdkError<UpdateServerConfigError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more