/* * 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 migration-hub-refactor-spaces-2021-10-26.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.MigrationHubRefactorSpaces.Model; using Amazon.MigrationHubRefactorSpaces.Model.Internal.MarshallTransformations; using Amazon.MigrationHubRefactorSpaces.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MigrationHubRefactorSpaces { /// <summary> /// Implementation for accessing MigrationHubRefactorSpaces /// /// Amazon Web Services Migration Hub Refactor Spaces /// <para> /// This API reference provides descriptions, syntax, and other details about each of /// the actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor /// Spaces). The topic for each action shows the API request parameters and the response. /// Alternatively, you can use one of the Amazon Web Services SDKs to access an API that /// is tailored to the programming language or platform that you're using. For more information, /// see <a href="https://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>. /// /// /// <para> /// To share Refactor Spaces environments with other Amazon Web Services accounts or with /// Organizations and their OUs, use Resource Access Manager's <code>CreateResourceShare</code> /// API. See <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html">CreateResourceShare</a> /// in the <i>Amazon Web Services RAM API Reference</i>. /// </para> /// /// </para> /// </summary> public partial class AmazonMigrationHubRefactorSpacesClient : AmazonServiceClient, IAmazonMigrationHubRefactorSpaces { private static IServiceMetadata serviceMetadata = new AmazonMigrationHubRefactorSpacesMetadata(); #region Constructors /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> public AmazonMigrationHubRefactorSpacesClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubRefactorSpacesConfig()) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonMigrationHubRefactorSpacesClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubRefactorSpacesConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> /// <param name="config">The AmazonMigrationHubRefactorSpacesClient Configuration Object</param> public AmazonMigrationHubRefactorSpacesClient(AmazonMigrationHubRefactorSpacesConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonMigrationHubRefactorSpacesClient(AWSCredentials credentials) : this(credentials, new AmazonMigrationHubRefactorSpacesConfig()) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonMigrationHubRefactorSpacesClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMigrationHubRefactorSpacesConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Credentials and an /// AmazonMigrationHubRefactorSpacesClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonMigrationHubRefactorSpacesClient Configuration Object</param> public AmazonMigrationHubRefactorSpacesClient(AWSCredentials credentials, AmazonMigrationHubRefactorSpacesConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubRefactorSpacesConfig()) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubRefactorSpacesConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMigrationHubRefactorSpacesClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonMigrationHubRefactorSpacesClient Configuration Object</param> public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMigrationHubRefactorSpacesConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubRefactorSpacesConfig()) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubRefactorSpacesConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMigrationHubRefactorSpacesClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonMigrationHubRefactorSpacesClient Configuration Object</param> public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMigrationHubRefactorSpacesConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IMigrationHubRefactorSpacesPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IMigrationHubRefactorSpacesPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MigrationHubRefactorSpacesPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonMigrationHubRefactorSpacesEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateApplication internal virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return Invoke<CreateApplicationResponse>(request, options); } /// <summary> /// Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account /// that owns the environment also owns the applications created inside the environment, /// regardless of the account that creates the application. Refactor Spaces provisions /// an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application /// proxy inside your account. /// /// /// <para> /// In environments created with a <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> /// of <code>NONE</code> you need to configure <a href="https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/amazon-vpc-to-amazon-vpc-connectivity-options.html"> /// VPC to VPC connectivity</a> between your service VPC and the application proxy VPC /// to route traffic through the application proxy to a service with a private URL endpoint. /// For more information, see <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/getting-started-create-application.html"> /// Create an application</a> in the <i>Refactor Spaces User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateApplication service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateApplication service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/CreateApplication">REST API Reference for CreateApplication Operation</seealso> public virtual Task<CreateApplicationResponse> CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return InvokeAsync<CreateApplicationResponse>(request, options, cancellationToken); } #endregion #region CreateEnvironment internal virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance; return Invoke<CreateEnvironmentResponse>(request, options); } /// <summary> /// Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller /// owns the environment resource, and all Refactor Spaces applications, services, and /// routes created within the environment. They are referred to as the <i>environment /// owner</i>. The environment owner has cross-account visibility and control of Refactor /// Spaces resources that are added to the environment by other accounts that the environment /// is shared with. /// /// /// <para> /// When creating an environment with a <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> /// of <code>TRANSIT_GATEWAY</code>, Refactor Spaces provisions a transit gateway to enable /// services in VPCs to communicate directly across accounts. If <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> /// is <code>NONE</code>, Refactor Spaces does not create a transit gateway and you must /// use your network infrastructure to route traffic to services with private URL endpoints. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateEnvironment service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateEnvironment service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/CreateEnvironment">REST API Reference for CreateEnvironment Operation</seealso> public virtual Task<CreateEnvironmentResponse> CreateEnvironmentAsync(CreateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<CreateEnvironmentResponse>(request, options, cancellationToken); } #endregion #region CreateRoute internal virtual CreateRouteResponse CreateRoute(CreateRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRouteResponseUnmarshaller.Instance; return Invoke<CreateRouteResponse>(request, options); } /// <summary> /// Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner /// of the service resource is always the environment owner, regardless of which account /// creates the route. Routes target a service in the application. If an application does /// not have any routes, then the first route must be created as a <code>DEFAULT</code> /// <code>RouteType</code>. /// /// /// <para> /// When created, the default route defaults to an active state so state is not a required /// input. However, like all other state values the state of the default route can be /// updated after creation, but only when all other routes are also inactive. Conversely, /// no route can be active without the default route also being active. /// </para> /// /// <para> /// When you create a route, Refactor Spaces configures the Amazon API Gateway to send /// traffic to the target service as follows: /// </para> /// <ul> <li> /// <para> /// <b>URL Endpoints</b> /// </para> /// /// <para> /// If the service has a URL endpoint, and the endpoint resolves to a private IP address, /// Refactor Spaces routes traffic using the API Gateway VPC link. If a service endpoint /// resolves to a public IP address, Refactor Spaces routes traffic over the public internet. /// Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed certificates /// are supported. Private Certificate Authorities (CAs) are permitted only if the CA's /// domain is also publicly resolvable. /// </para> /// /// <para> /// Refactor Spaces automatically resolves the public Domain Name System (DNS) names that /// are set in <code>CreateService:UrlEndpoint </code>when you create a service. The DNS /// names resolve when the DNS time-to-live (TTL) expires, or every 60 seconds for TTLs /// less than 60 seconds. This periodic DNS resolution ensures that the route configuration /// remains up-to-date. /// </para> /// /// <para> /// <b>One-time health check</b> /// </para> /// /// <para> /// A one-time health check is performed on the service when either the route is updated /// from inactive to active, or when it is created with an active state. If the health /// check fails, the route transitions the route state to <code>FAILED</code>, an error /// code of <code>SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE</code> is provided, and no traffic /// is sent to the service. /// </para> /// /// <para> /// For private URLs, a target group is created on the Network Load Balancer and the load /// balancer target group runs default target health checks. By default, the health check /// is run against the service endpoint URL. Optionally, the health check can be performed /// against a different protocol, port, and/or path using the <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateService.html#migrationhubrefactorspaces-CreateService-request-UrlEndpoint">CreateService:UrlEndpoint</a> /// parameter. All other health check settings for the load balancer use the default values /// described in the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html">Health /// checks for your target groups</a> in the <i>Elastic Load Balancing guide</i>. The /// health check is considered successful if at least one target within the target group /// transitions to a healthy state. /// </para> /// </li> <li> /// <para> /// <b>Lambda function endpoints</b> /// </para> /// /// <para> /// If the service has an Lambda function endpoint, then Refactor Spaces configures the /// Lambda function's resource policy to allow the application's API Gateway to invoke /// the function. /// </para> /// /// <para> /// The Lambda function state is checked. If the function is not active, the function /// configuration is updated so that Lambda resources are provisioned. If the Lambda state /// is <code>Failed</code>, then the route creation fails. For more information, see the /// <a href="https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html#SSS-GetFunctionConfiguration-response-State">GetFunctionConfiguration's /// State response parameter</a> in the <i>Lambda Developer Guide</i>. /// </para> /// /// <para> /// A check is performed to determine that a Lambda function with the specified ARN exists. /// If it does not exist, the health check fails. For public URLs, a connection is opened /// to the public endpoint. If the URL is not reachable, the health check fails. /// </para> /// </li> </ul> /// <para> /// <b>Environments without a network bridge</b> /// </para> /// /// <para> /// When you create environments without a network bridge (<a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType">CreateEnvironment:NetworkFabricType</a> /// is <code>NONE)</code> and you use your own networking infrastructure, you need to /// configure <a href="https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/amazon-vpc-to-amazon-vpc-connectivity-options.html">VPC /// to VPC connectivity</a> between your network and the application proxy VPC. Route /// creation from the application proxy to service endpoints will fail if your network /// is not configured to connect to the application proxy VPC. For more information, see /// <a href="https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/getting-started-create-role.html"> /// Create a route</a> in the <i>Refactor Spaces User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateRoute service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateRoute service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/CreateRoute">REST API Reference for CreateRoute Operation</seealso> public virtual Task<CreateRouteResponse> CreateRouteAsync(CreateRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRouteResponseUnmarshaller.Instance; return InvokeAsync<CreateRouteResponse>(request, options, cancellationToken); } #endregion #region CreateService internal virtual CreateServiceResponse CreateService(CreateServiceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance; return Invoke<CreateServiceResponse>(request, options); } /// <summary> /// Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account /// owner of the service is always the environment owner, regardless of which account /// in the environment creates the service. Services have either a URL endpoint in a virtual /// private cloud (VPC), or a Lambda function endpoint. /// /// <important> /// <para> /// If an Amazon Web Services resource is launched in a service VPC, and you want it to /// be accessible to all of an environment’s services with VPCs and routes, apply the /// <code>RefactorSpacesSecurityGroup</code> to the resource. Alternatively, to add more /// cross-account constraints, apply your own security group. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateService service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateService service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/CreateService">REST API Reference for CreateService Operation</seealso> public virtual Task<CreateServiceResponse> CreateServiceAsync(CreateServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance; return InvokeAsync<CreateServiceResponse>(request, options, cancellationToken); } #endregion #region DeleteApplication internal virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return Invoke<DeleteApplicationResponse>(request, options); } /// <summary> /// Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you /// can delete an application, you must first delete any services or routes within the /// application. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteApplication service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteApplication service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/DeleteApplication">REST API Reference for DeleteApplication Operation</seealso> public virtual Task<DeleteApplicationResponse> DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return InvokeAsync<DeleteApplicationResponse>(request, options, cancellationToken); } #endregion #region DeleteEnvironment internal virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return Invoke<DeleteEnvironmentResponse>(request, options); } /// <summary> /// Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you /// can delete an environment, you must first delete any applications and services within /// the environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteEnvironment service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteEnvironment service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/DeleteEnvironment">REST API Reference for DeleteEnvironment Operation</seealso> public virtual Task<DeleteEnvironmentResponse> DeleteEnvironmentAsync(DeleteEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<DeleteEnvironmentResponse>(request, options, cancellationToken); } #endregion #region DeleteResourcePolicy internal virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return Invoke<DeleteResourcePolicyResponse>(request, options); } /// <summary> /// Deletes the resource policy set for the environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteResourcePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteResourcePolicy service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/DeleteResourcePolicy">REST API Reference for DeleteResourcePolicy Operation</seealso> public virtual Task<DeleteResourcePolicyResponse> DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync<DeleteResourcePolicyResponse>(request, options, cancellationToken); } #endregion #region DeleteRoute internal virtual DeleteRouteResponse DeleteRoute(DeleteRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRouteResponseUnmarshaller.Instance; return Invoke<DeleteRouteResponse>(request, options); } /// <summary> /// Deletes an Amazon Web Services Migration Hub Refactor Spaces route. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteRoute service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteRoute service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/DeleteRoute">REST API Reference for DeleteRoute Operation</seealso> public virtual Task<DeleteRouteResponse> DeleteRouteAsync(DeleteRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRouteResponseUnmarshaller.Instance; return InvokeAsync<DeleteRouteResponse>(request, options, cancellationToken); } #endregion #region DeleteService internal virtual DeleteServiceResponse DeleteService(DeleteServiceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance; return Invoke<DeleteServiceResponse>(request, options); } /// <summary> /// Deletes an Amazon Web Services Migration Hub Refactor Spaces service. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteService service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteService service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/DeleteService">REST API Reference for DeleteService Operation</seealso> public virtual Task<DeleteServiceResponse> DeleteServiceAsync(DeleteServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance; return InvokeAsync<DeleteServiceResponse>(request, options, cancellationToken); } #endregion #region GetApplication internal virtual GetApplicationResponse GetApplication(GetApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return Invoke<GetApplicationResponse>(request, options); } /// <summary> /// Gets an Amazon Web Services Migration Hub Refactor Spaces application. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetApplication service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetApplication service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/GetApplication">REST API Reference for GetApplication Operation</seealso> public virtual Task<GetApplicationResponse> GetApplicationAsync(GetApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return InvokeAsync<GetApplicationResponse>(request, options, cancellationToken); } #endregion #region GetEnvironment internal virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance; return Invoke<GetEnvironmentResponse>(request, options); } /// <summary> /// Gets an Amazon Web Services Migration Hub Refactor Spaces environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetEnvironment service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetEnvironment service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/GetEnvironment">REST API Reference for GetEnvironment Operation</seealso> public virtual Task<GetEnvironmentResponse> GetEnvironmentAsync(GetEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance; return InvokeAsync<GetEnvironmentResponse>(request, options, cancellationToken); } #endregion #region GetResourcePolicy internal virtual GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; return Invoke<GetResourcePolicyResponse>(request, options); } /// <summary> /// Gets the resource-based permission policy that is set for the given environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourcePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetResourcePolicy service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/GetResourcePolicy">REST API Reference for GetResourcePolicy Operation</seealso> public virtual Task<GetResourcePolicyResponse> GetResourcePolicyAsync(GetResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync<GetResourcePolicyResponse>(request, options, cancellationToken); } #endregion #region GetRoute internal virtual GetRouteResponse GetRoute(GetRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRouteResponseUnmarshaller.Instance; return Invoke<GetRouteResponse>(request, options); } /// <summary> /// Gets an Amazon Web Services Migration Hub Refactor Spaces route. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetRoute service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetRoute service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/GetRoute">REST API Reference for GetRoute Operation</seealso> public virtual Task<GetRouteResponse> GetRouteAsync(GetRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRouteResponseUnmarshaller.Instance; return InvokeAsync<GetRouteResponse>(request, options, cancellationToken); } #endregion #region GetService internal virtual GetServiceResponse GetService(GetServiceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServiceResponseUnmarshaller.Instance; return Invoke<GetServiceResponse>(request, options); } /// <summary> /// Gets an Amazon Web Services Migration Hub Refactor Spaces service. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetService service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetService service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/GetService">REST API Reference for GetService Operation</seealso> public virtual Task<GetServiceResponse> GetServiceAsync(GetServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServiceResponseUnmarshaller.Instance; return InvokeAsync<GetServiceResponse>(request, options, cancellationToken); } #endregion #region ListApplications internal virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return Invoke<ListApplicationsResponse>(request, options); } /// <summary> /// Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within /// an environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListApplications service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListApplications service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListApplications">REST API Reference for ListApplications Operation</seealso> public virtual Task<ListApplicationsResponse> ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return InvokeAsync<ListApplicationsResponse>(request, options, cancellationToken); } #endregion #region ListEnvironments internal virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance; return Invoke<ListEnvironmentsResponse>(request, options); } /// <summary> /// Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller /// account or shared with the caller account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEnvironments service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListEnvironments service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListEnvironments">REST API Reference for ListEnvironments Operation</seealso> public virtual Task<ListEnvironmentsResponse> ListEnvironmentsAsync(ListEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance; return InvokeAsync<ListEnvironmentsResponse>(request, options, cancellationToken); } #endregion #region ListEnvironmentVpcs internal virtual ListEnvironmentVpcsResponse ListEnvironmentVpcs(ListEnvironmentVpcsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentVpcsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentVpcsResponseUnmarshaller.Instance; return Invoke<ListEnvironmentVpcsResponse>(request, options); } /// <summary> /// Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private /// clouds (VPCs) that are part of the environment. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListEnvironmentVpcs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListEnvironmentVpcs service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListEnvironmentVpcs">REST API Reference for ListEnvironmentVpcs Operation</seealso> public virtual Task<ListEnvironmentVpcsResponse> ListEnvironmentVpcsAsync(ListEnvironmentVpcsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentVpcsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentVpcsResponseUnmarshaller.Instance; return InvokeAsync<ListEnvironmentVpcsResponse>(request, options, cancellationToken); } #endregion #region ListRoutes internal virtual ListRoutesResponse ListRoutes(ListRoutesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRoutesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRoutesResponseUnmarshaller.Instance; return Invoke<ListRoutesResponse>(request, options); } /// <summary> /// Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListRoutes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListRoutes service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListRoutes">REST API Reference for ListRoutes Operation</seealso> public virtual Task<ListRoutesResponse> ListRoutesAsync(ListRoutesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRoutesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRoutesResponseUnmarshaller.Instance; return InvokeAsync<ListRoutesResponse>(request, options, cancellationToken); } #endregion #region ListServices internal virtual ListServicesResponse ListServices(ListServicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListServicesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance; return Invoke<ListServicesResponse>(request, options); } /// <summary> /// Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an /// application. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListServices service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListServices service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ConflictException"> /// Updating or deleting a resource can cause an inconsistent state. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ServiceQuotaExceededException"> /// The request would cause a service quota to be exceeded. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListServices">REST API Reference for ListServices Operation</seealso> public virtual Task<ListServicesResponse> ListServicesAsync(ListServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListServicesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance; return InvokeAsync<ListServicesResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Lists the tags of a resource. The caller account must be the same as the resource’s /// <code>OwnerAccountId</code>. Listing tags in other accounts is not supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region PutResourcePolicy internal virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return Invoke<PutResourcePolicyResponse>(request, options); } /// <summary> /// Attaches a resource-based permission policy to the Amazon Web Services Migration Hub /// Refactor Spaces environment. The policy must contain the same actions and condition /// statements as the <code>arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment</code> /// permission in Resource Access Manager. The policy must not contain new lines or blank /// lines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutResourcePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutResourcePolicy service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InvalidResourcePolicyException"> /// The resource policy is not valid. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/PutResourcePolicy">REST API Reference for PutResourcePolicy Operation</seealso> public virtual Task<PutResourcePolicyResponse> PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync<PutResourcePolicyResponse>(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Removes the tags of a given resource. Tags are metadata which can be used to manage /// a resource. To tag a resource, the caller account must be the same as the resource’s /// <code>OwnerAccountId</code>. Tagging resources in other accounts is not supported. /// /// <note> /// <para> /// Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated /// resources, such as an environment’s transit gateway. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Adds to or modifies the tags of the given resource. Tags are metadata which can be /// used to manage a resource. To untag a resource, the caller account must be the same /// as the resource’s <code>OwnerAccountId</code>. Untagging resources across accounts /// is not supported. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateRoute internal virtual UpdateRouteResponse UpdateRoute(UpdateRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRouteResponseUnmarshaller.Instance; return Invoke<UpdateRouteResponse>(request, options); } /// <summary> /// Updates an Amazon Web Services Migration Hub Refactor Spaces route. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateRoute service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateRoute service method, as returned by MigrationHubRefactorSpaces.</returns> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.AccessDeniedException"> /// The user does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.InternalServerException"> /// An unexpected error occurred while processing the request. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ThrottlingException"> /// Request was denied because the request was throttled. /// </exception> /// <exception cref="Amazon.MigrationHubRefactorSpaces.Model.ValidationException"> /// The input does not satisfy the constraints specified by an Amazon Web Service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/UpdateRoute">REST API Reference for UpdateRoute Operation</seealso> public virtual Task<UpdateRouteResponse> UpdateRouteAsync(UpdateRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRouteResponseUnmarshaller.Instance; return InvokeAsync<UpdateRouteResponse>(request, options, cancellationToken); } #endregion } }