/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the migrationhubstrategy-2020-02-19.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.MigrationHubStrategyRecommendations.Model;
using Amazon.MigrationHubStrategyRecommendations.Model.Internal.MarshallTransformations;
using Amazon.MigrationHubStrategyRecommendations.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.MigrationHubStrategyRecommendations
{
///
/// Implementation for accessing MigrationHubStrategyRecommendations
///
/// Migration Hub Strategy Recommendations
///
/// This API reference provides descriptions, syntax, and other details about each of
/// the actions and data types for Migration Hub Strategy Recommendations (Strategy Recommendations).
/// The topic for each action shows the API request parameters and the response. Alternatively,
/// you can use one of the AWS SDKs to access an API that is tailored to the programming
/// language or platform that you're using. For more information, see AWS
/// SDKs.
///
///
///
///
public partial class AmazonMigrationHubStrategyRecommendationsClient : AmazonServiceClient, IAmazonMigrationHubStrategyRecommendations
{
private static IServiceMetadata serviceMetadata = new AmazonMigrationHubStrategyRecommendationsMetadata();
#region Constructors
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonMigrationHubStrategyRecommendationsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubStrategyRecommendationsConfig()) { }
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonMigrationHubStrategyRecommendationsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubStrategyRecommendationsConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonMigrationHubStrategyRecommendationsClient Configuration Object
public AmazonMigrationHubStrategyRecommendationsClient(AmazonMigrationHubStrategyRecommendationsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Credentials
///
/// AWS Credentials
public AmazonMigrationHubStrategyRecommendationsClient(AWSCredentials credentials)
: this(credentials, new AmazonMigrationHubStrategyRecommendationsConfig())
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonMigrationHubStrategyRecommendationsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonMigrationHubStrategyRecommendationsConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Credentials and an
/// AmazonMigrationHubStrategyRecommendationsClient Configuration object.
///
/// AWS Credentials
/// The AmazonMigrationHubStrategyRecommendationsClient Configuration Object
public AmazonMigrationHubStrategyRecommendationsClient(AWSCredentials credentials, AmazonMigrationHubStrategyRecommendationsConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonMigrationHubStrategyRecommendationsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubStrategyRecommendationsConfig())
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonMigrationHubStrategyRecommendationsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubStrategyRecommendationsConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMigrationHubStrategyRecommendationsClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMigrationHubStrategyRecommendationsClient Configuration Object
public AmazonMigrationHubStrategyRecommendationsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMigrationHubStrategyRecommendationsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonMigrationHubStrategyRecommendationsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubStrategyRecommendationsConfig())
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonMigrationHubStrategyRecommendationsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubStrategyRecommendationsConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMigrationHubStrategyRecommendationsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMigrationHubStrategyRecommendationsClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMigrationHubStrategyRecommendationsClient Configuration Object
public AmazonMigrationHubStrategyRecommendationsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMigrationHubStrategyRecommendationsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IMigrationHubStrategyRecommendationsPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IMigrationHubStrategyRecommendationsPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new MigrationHubStrategyRecommendationsPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonMigrationHubStrategyRecommendationsEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region GetApplicationComponentDetails
internal virtual GetApplicationComponentDetailsResponse GetApplicationComponentDetails(GetApplicationComponentDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetApplicationComponentDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetApplicationComponentDetailsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves details about an application component.
///
/// Container for the necessary parameters to execute the GetApplicationComponentDetails service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetApplicationComponentDetails service method, as returned by MigrationHubStrategyRecommendations.
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetApplicationComponentDetails Operation
public virtual Task GetApplicationComponentDetailsAsync(GetApplicationComponentDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetApplicationComponentDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetApplicationComponentDetailsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetApplicationComponentStrategies
internal virtual GetApplicationComponentStrategiesResponse GetApplicationComponentStrategies(GetApplicationComponentStrategiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetApplicationComponentStrategiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetApplicationComponentStrategiesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves a list of all the recommended strategies and tools for an application component
/// running on a server.
///
/// Container for the necessary parameters to execute the GetApplicationComponentStrategies service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetApplicationComponentStrategies service method, as returned by MigrationHubStrategyRecommendations.
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetApplicationComponentStrategies Operation
public virtual Task GetApplicationComponentStrategiesAsync(GetApplicationComponentStrategiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetApplicationComponentStrategiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetApplicationComponentStrategiesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAssessment
internal virtual GetAssessmentResponse GetAssessment(GetAssessmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssessmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssessmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the status of an on-going assessment.
///
/// Container for the necessary parameters to execute the GetAssessment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAssessment service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetAssessment Operation
public virtual Task GetAssessmentAsync(GetAssessmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssessmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssessmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetImportFileTask
internal virtual GetImportFileTaskResponse GetImportFileTask(GetImportFileTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetImportFileTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetImportFileTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the details about a specific import task.
///
/// Container for the necessary parameters to execute the GetImportFileTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetImportFileTask service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for GetImportFileTask Operation
public virtual Task GetImportFileTaskAsync(GetImportFileTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetImportFileTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetImportFileTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetLatestAssessmentId
internal virtual GetLatestAssessmentIdResponse GetLatestAssessmentId(GetLatestAssessmentIdRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLatestAssessmentIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLatestAssessmentIdResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieve the latest ID of a specific assessment task.
///
/// Container for the necessary parameters to execute the GetLatestAssessmentId service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetLatestAssessmentId service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// Dependency encountered an error.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request body isn't valid.
///
/// REST API Reference for GetLatestAssessmentId Operation
public virtual Task GetLatestAssessmentIdAsync(GetLatestAssessmentIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetLatestAssessmentIdRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetLatestAssessmentIdResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetPortfolioPreferences
internal virtual GetPortfolioPreferencesResponse GetPortfolioPreferences(GetPortfolioPreferencesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPortfolioPreferencesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPortfolioPreferencesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves your migration and modernization preferences.
///
/// Container for the necessary parameters to execute the GetPortfolioPreferences service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetPortfolioPreferences service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetPortfolioPreferences Operation
public virtual Task GetPortfolioPreferencesAsync(GetPortfolioPreferencesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPortfolioPreferencesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPortfolioPreferencesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetPortfolioSummary
internal virtual GetPortfolioSummaryResponse GetPortfolioSummary(GetPortfolioSummaryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPortfolioSummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPortfolioSummaryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves overall summary including the number of servers to rehost and the overall
/// number of anti-patterns.
///
/// Container for the necessary parameters to execute the GetPortfolioSummary service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetPortfolioSummary service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for GetPortfolioSummary Operation
public virtual Task GetPortfolioSummaryAsync(GetPortfolioSummaryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetPortfolioSummaryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetPortfolioSummaryResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetRecommendationReportDetails
internal virtual GetRecommendationReportDetailsResponse GetRecommendationReportDetails(GetRecommendationReportDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRecommendationReportDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRecommendationReportDetailsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves detailed information about the specified recommendation report.
///
/// Container for the necessary parameters to execute the GetRecommendationReportDetails service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetRecommendationReportDetails service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for GetRecommendationReportDetails Operation
public virtual Task GetRecommendationReportDetailsAsync(GetRecommendationReportDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRecommendationReportDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRecommendationReportDetailsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetServerDetails
internal virtual GetServerDetailsResponse GetServerDetails(GetServerDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServerDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServerDetailsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves detailed information about a specified server.
///
/// Container for the necessary parameters to execute the GetServerDetails service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetServerDetails service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for GetServerDetails Operation
public virtual Task GetServerDetailsAsync(GetServerDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServerDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServerDetailsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetServerStrategies
internal virtual GetServerStrategiesResponse GetServerStrategies(GetServerStrategiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServerStrategiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServerStrategiesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves recommended strategies and tools for the specified server.
///
/// Container for the necessary parameters to execute the GetServerStrategies service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetServerStrategies service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for GetServerStrategies Operation
public virtual Task GetServerStrategiesAsync(GetServerStrategiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServerStrategiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServerStrategiesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListApplicationComponents
internal virtual ListApplicationComponentsResponse ListApplicationComponents(ListApplicationComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationComponentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves a list of all the application components (processes).
///
/// Container for the necessary parameters to execute the ListApplicationComponents service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListApplicationComponents service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// Exception to indicate that the service-linked role (SLR) is locked.
///
///
/// The request body isn't valid.
///
/// REST API Reference for ListApplicationComponents Operation
public virtual Task ListApplicationComponentsAsync(ListApplicationComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListApplicationComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListApplicationComponentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListCollectors
internal virtual ListCollectorsResponse ListCollectors(ListCollectorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCollectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCollectorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves a list of all the installed collectors.
///
/// Container for the necessary parameters to execute the ListCollectors service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListCollectors service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for ListCollectors Operation
public virtual Task ListCollectorsAsync(ListCollectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCollectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCollectorsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListImportFileTask
internal virtual ListImportFileTaskResponse ListImportFileTask(ListImportFileTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImportFileTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImportFileTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves a list of all the imports performed.
///
/// Container for the necessary parameters to execute the ListImportFileTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListImportFileTask service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for ListImportFileTask Operation
public virtual Task ListImportFileTaskAsync(ListImportFileTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListImportFileTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListImportFileTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListServers
internal virtual ListServersResponse ListServers(ListServersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of all the servers.
///
/// Container for the necessary parameters to execute the ListServers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListServers service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for ListServers Operation
public virtual Task ListServersAsync(ListServersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutPortfolioPreferences
internal virtual PutPortfolioPreferencesResponse PutPortfolioPreferences(PutPortfolioPreferencesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPortfolioPreferencesRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPortfolioPreferencesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Saves the specified migration and modernization preferences.
///
/// Container for the necessary parameters to execute the PutPortfolioPreferences service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutPortfolioPreferences service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// Exception to indicate that there is an ongoing task when a new task is created. Return
/// when once the existing tasks are complete.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for PutPortfolioPreferences Operation
public virtual Task PutPortfolioPreferencesAsync(PutPortfolioPreferencesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutPortfolioPreferencesRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutPortfolioPreferencesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartAssessment
internal virtual StartAssessmentResponse StartAssessment(StartAssessmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartAssessmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartAssessmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts the assessment of an on-premises environment.
///
/// Container for the necessary parameters to execute the StartAssessment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartAssessment service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The AWS account has reached its quota of imports. Contact AWS Support to increase
/// the quota for this account.
///
///
/// The request was denied due to request throttling.
///
/// REST API Reference for StartAssessment Operation
public virtual Task StartAssessmentAsync(StartAssessmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartAssessmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartAssessmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartImportFileTask
internal virtual StartImportFileTaskResponse StartImportFileTask(StartImportFileTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportFileTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportFileTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts a file import.
///
/// Container for the necessary parameters to execute the StartImportFileTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartImportFileTask service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The AWS account has reached its quota of imports. Contact AWS Support to increase
/// the quota for this account.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for StartImportFileTask Operation
public virtual Task StartImportFileTaskAsync(StartImportFileTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartImportFileTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartImportFileTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartRecommendationReportGeneration
internal virtual StartRecommendationReportGenerationResponse StartRecommendationReportGeneration(StartRecommendationReportGenerationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartRecommendationReportGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartRecommendationReportGenerationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts generating a recommendation report.
///
/// Container for the necessary parameters to execute the StartRecommendationReportGeneration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartRecommendationReportGeneration service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// Exception to indicate that there is an ongoing task when a new task is created. Return
/// when once the existing tasks are complete.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for StartRecommendationReportGeneration Operation
public virtual Task StartRecommendationReportGenerationAsync(StartRecommendationReportGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartRecommendationReportGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartRecommendationReportGenerationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopAssessment
internal virtual StopAssessmentResponse StopAssessment(StopAssessmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopAssessmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopAssessmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stops the assessment of an on-premises environment.
///
/// Container for the necessary parameters to execute the StopAssessment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopAssessment service method, as returned by MigrationHubStrategyRecommendations.
///
/// The user does not have permission to perform the action. Check the AWS Identity and
/// Access Management (IAM) policy associated with this user.
///
///
/// The server experienced an internal error. Try again.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for StopAssessment Operation
public virtual Task StopAssessmentAsync(StopAssessmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopAssessmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopAssessmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateApplicationComponentConfig
internal virtual UpdateApplicationComponentConfigResponse UpdateApplicationComponentConfig(UpdateApplicationComponentConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationComponentConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationComponentConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the configuration of an application component.
///
/// Container for the necessary parameters to execute the UpdateApplicationComponentConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateApplicationComponentConfig service method, as returned by MigrationHubStrategyRecommendations.
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for UpdateApplicationComponentConfig Operation
public virtual Task UpdateApplicationComponentConfigAsync(UpdateApplicationComponentConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateApplicationComponentConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateApplicationComponentConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateServerConfig
internal virtual UpdateServerConfigResponse UpdateServerConfig(UpdateServerConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateServerConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateServerConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the configuration of the specified server.
///
/// Container for the necessary parameters to execute the UpdateServerConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateServerConfig service method, as returned by MigrationHubStrategyRecommendations.
///
/// The server experienced an internal error. Try again.
///
///
/// The specified ID in the request is not found.
///
///
/// The request was denied due to request throttling.
///
///
/// The request body isn't valid.
///
/// REST API Reference for UpdateServerConfig Operation
public virtual Task UpdateServerConfigAsync(UpdateServerConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateServerConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateServerConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}