/* * 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 { /// /// Implementation for accessing MigrationHubRefactorSpaces /// /// Amazon Web Services Migration Hub Refactor Spaces /// /// 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 Amazon Web Services SDKs. /// /// /// /// To share Refactor Spaces environments with other Amazon Web Services accounts or with /// Organizations and their OUs, use Resource Access Manager's CreateResourceShare /// API. See CreateResourceShare /// in the Amazon Web Services RAM API Reference. /// /// /// /// public partial class AmazonMigrationHubRefactorSpacesClient : AmazonServiceClient, IAmazonMigrationHubRefactorSpaces { private static IServiceMetadata serviceMetadata = new AmazonMigrationHubRefactorSpacesMetadata(); private IMigrationHubRefactorSpacesPaginatorFactory _paginators; /// /// Paginators for the service /// public IMigrationHubRefactorSpacesPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MigrationHubRefactorSpacesPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// 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. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonMigrationHubRefactorSpacesClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubRefactorSpacesConfig()) { } /// /// 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. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonMigrationHubRefactorSpacesClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMigrationHubRefactorSpacesConfig{RegionEndpoint = region}) { } /// /// 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. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonMigrationHubRefactorSpacesClient Configuration Object public AmazonMigrationHubRefactorSpacesClient(AmazonMigrationHubRefactorSpacesConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Credentials /// /// AWS Credentials public AmazonMigrationHubRefactorSpacesClient(AWSCredentials credentials) : this(credentials, new AmazonMigrationHubRefactorSpacesConfig()) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMigrationHubRefactorSpacesClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMigrationHubRefactorSpacesConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Credentials and an /// AmazonMigrationHubRefactorSpacesClient Configuration object. /// /// AWS Credentials /// The AmazonMigrationHubRefactorSpacesClient Configuration Object public AmazonMigrationHubRefactorSpacesClient(AWSCredentials credentials, AmazonMigrationHubRefactorSpacesConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubRefactorSpacesConfig()) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMigrationHubRefactorSpacesConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMigrationHubRefactorSpacesClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMigrationHubRefactorSpacesClient Configuration Object public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMigrationHubRefactorSpacesConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubRefactorSpacesConfig()) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient 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 AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMigrationHubRefactorSpacesConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMigrationHubRefactorSpacesClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMigrationHubRefactorSpacesClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMigrationHubRefactorSpacesClient Configuration Object public AmazonMigrationHubRefactorSpacesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMigrationHubRefactorSpacesConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonMigrationHubRefactorSpacesEndpointResolver()); } /// /// 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 CreateApplication /// /// 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. /// /// /// /// In environments created with a CreateEnvironment:NetworkFabricType /// of NONE you need to configure /// VPC to VPC connectivity 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 /// Create an application in the Refactor Spaces User Guide. /// /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// The response from the CreateApplication service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateApplication Operation public virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// In environments created with a CreateEnvironment:NetworkFabricType /// of NONE you need to configure /// VPC to VPC connectivity 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 /// Create an application in the Refactor Spaces User Guide. /// /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApplication service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateApplication Operation public virtual Task CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEnvironment /// /// 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 environment /// owner. 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. /// /// /// /// When creating an environment with a CreateEnvironment:NetworkFabricType /// of TRANSIT_GATEWAY, Refactor Spaces provisions a transit gateway to enable /// services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType /// is NONE, Refactor Spaces does not create a transit gateway and you must /// use your network infrastructure to route traffic to services with private URL endpoints. /// /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// /// The response from the CreateEnvironment service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateEnvironment Operation public virtual CreateEnvironmentResponse CreateEnvironment(CreateEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 environment /// owner. 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. /// /// /// /// When creating an environment with a CreateEnvironment:NetworkFabricType /// of TRANSIT_GATEWAY, Refactor Spaces provisions a transit gateway to enable /// services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType /// is NONE, Refactor Spaces does not create a transit gateway and you must /// use your network infrastructure to route traffic to services with private URL endpoints. /// /// /// Container for the necessary parameters to execute the CreateEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateEnvironment service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateEnvironment Operation public virtual Task CreateEnvironmentAsync(CreateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateRoute /// /// 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 DEFAULT /// RouteType. /// /// /// /// 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. /// /// /// /// When you create a route, Refactor Spaces configures the Amazon API Gateway to send /// traffic to the target service as follows: /// ///
  • /// /// URL Endpoints /// /// /// /// 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. /// /// /// /// Refactor Spaces automatically resolves the public Domain Name System (DNS) names that /// are set in CreateService:UrlEndpoint 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. /// /// /// /// One-time health check /// /// /// /// 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 FAILED, an error /// code of SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE is provided, and no traffic /// is sent to the service. /// /// /// /// 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 CreateService:UrlEndpoint /// parameter. All other health check settings for the load balancer use the default values /// described in the Health /// checks for your target groups in the Elastic Load Balancing guide. The /// health check is considered successful if at least one target within the target group /// transitions to a healthy state. /// ///
  • /// /// Lambda function endpoints /// /// /// /// 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. /// /// /// /// 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 Failed, then the route creation fails. For more information, see the /// GetFunctionConfiguration's /// State response parameter in the Lambda Developer Guide. /// /// /// /// 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. /// ///
/// /// Environments without a network bridge /// /// /// /// When you create environments without a network bridge (CreateEnvironment:NetworkFabricType /// is NONE) and you use your own networking infrastructure, you need to /// configure VPC /// to VPC connectivity 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 /// /// Create a route in the Refactor Spaces User Guide. /// ///
/// Container for the necessary parameters to execute the CreateRoute service method. /// /// The response from the CreateRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateRoute Operation public virtual CreateRouteResponse CreateRoute(CreateRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRouteResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 DEFAULT /// RouteType. /// /// /// /// 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. /// /// /// /// When you create a route, Refactor Spaces configures the Amazon API Gateway to send /// traffic to the target service as follows: /// ///
  • /// /// URL Endpoints /// /// /// /// 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. /// /// /// /// Refactor Spaces automatically resolves the public Domain Name System (DNS) names that /// are set in CreateService:UrlEndpoint 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. /// /// /// /// One-time health check /// /// /// /// 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 FAILED, an error /// code of SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE is provided, and no traffic /// is sent to the service. /// /// /// /// 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 CreateService:UrlEndpoint /// parameter. All other health check settings for the load balancer use the default values /// described in the Health /// checks for your target groups in the Elastic Load Balancing guide. The /// health check is considered successful if at least one target within the target group /// transitions to a healthy state. /// ///
  • /// /// Lambda function endpoints /// /// /// /// 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. /// /// /// /// 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 Failed, then the route creation fails. For more information, see the /// GetFunctionConfiguration's /// State response parameter in the Lambda Developer Guide. /// /// /// /// 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. /// ///
/// /// Environments without a network bridge /// /// /// /// When you create environments without a network bridge (CreateEnvironment:NetworkFabricType /// is NONE) and you use your own networking infrastructure, you need to /// configure VPC /// to VPC connectivity 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 /// /// Create a route in the Refactor Spaces User Guide. /// ///
/// Container for the necessary parameters to execute the CreateRoute service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateRoute Operation public virtual Task CreateRouteAsync(CreateRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRouteResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateService /// /// 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. /// /// /// /// 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 /// RefactorSpacesSecurityGroup to the resource. Alternatively, to add more /// cross-account constraints, apply your own security group. /// /// /// /// Container for the necessary parameters to execute the CreateService service method. /// /// The response from the CreateService service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateService Operation public virtual CreateServiceResponse CreateService(CreateServiceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// /// 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 /// RefactorSpacesSecurityGroup to the resource. Alternatively, to add more /// cross-account constraints, apply your own security group. /// /// /// /// Container for the necessary parameters to execute the CreateService service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateService service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for CreateService Operation public virtual Task CreateServiceAsync(CreateServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApplication /// /// 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. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// The response from the DeleteApplication service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteApplication Operation public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApplication service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteApplication Operation public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEnvironment /// /// 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. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// /// The response from the DeleteEnvironment service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteEnvironment Operation public virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteEnvironment service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteEnvironment Operation public virtual Task DeleteEnvironmentAsync(DeleteEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteResourcePolicy /// /// Deletes the resource policy set for the environment. /// /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. /// /// The response from the DeleteResourcePolicy service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteResourcePolicy Operation public virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the resource policy set for the environment. /// /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteResourcePolicy service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteResourcePolicy Operation public virtual Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteRoute /// /// Deletes an Amazon Web Services Migration Hub Refactor Spaces route. /// /// Container for the necessary parameters to execute the DeleteRoute service method. /// /// The response from the DeleteRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteRoute Operation public virtual DeleteRouteResponse DeleteRoute(DeleteRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRouteResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an Amazon Web Services Migration Hub Refactor Spaces route. /// /// Container for the necessary parameters to execute the DeleteRoute service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteRoute Operation public virtual Task DeleteRouteAsync(DeleteRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRouteResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteService /// /// Deletes an Amazon Web Services Migration Hub Refactor Spaces service. /// /// Container for the necessary parameters to execute the DeleteService service method. /// /// The response from the DeleteService service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteService Operation public virtual DeleteServiceResponse DeleteService(DeleteServiceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an Amazon Web Services Migration Hub Refactor Spaces service. /// /// Container for the necessary parameters to execute the DeleteService service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteService service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for DeleteService Operation public virtual Task DeleteServiceAsync(DeleteServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteServiceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApplication /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces application. /// /// Container for the necessary parameters to execute the GetApplication service method. /// /// The response from the GetApplication service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetApplication Operation public virtual GetApplicationResponse GetApplication(GetApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces application. /// /// Container for the necessary parameters to execute the GetApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApplication service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetApplication Operation public virtual Task GetApplicationAsync(GetApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetEnvironment /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces environment. /// /// Container for the necessary parameters to execute the GetEnvironment service method. /// /// The response from the GetEnvironment service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetEnvironment Operation public virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces environment. /// /// Container for the necessary parameters to execute the GetEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetEnvironment service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetEnvironment Operation public virtual Task GetEnvironmentAsync(GetEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetResourcePolicy /// /// Gets the resource-based permission policy that is set for the given environment. /// /// Container for the necessary parameters to execute the GetResourcePolicy service method. /// /// The response from the GetResourcePolicy service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetResourcePolicy Operation public virtual GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the resource-based permission policy that is set for the given environment. /// /// Container for the necessary parameters to execute the GetResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourcePolicy service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetResourcePolicy Operation public virtual Task GetResourcePolicyAsync(GetResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRoute /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces route. /// /// Container for the necessary parameters to execute the GetRoute service method. /// /// The response from the GetRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetRoute Operation public virtual GetRouteResponse GetRoute(GetRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRouteResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces route. /// /// Container for the necessary parameters to execute the GetRoute service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetRoute Operation public virtual Task GetRouteAsync(GetRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRouteResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetService /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces service. /// /// Container for the necessary parameters to execute the GetService service method. /// /// The response from the GetService service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetService Operation public virtual GetServiceResponse GetService(GetServiceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServiceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an Amazon Web Services Migration Hub Refactor Spaces service. /// /// Container for the necessary parameters to execute the GetService service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetService service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for GetService Operation public virtual Task GetServiceAsync(GetServiceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetServiceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetServiceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplications /// /// Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within /// an environment. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// The response from the ListApplications service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListApplications Operation public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within /// an environment. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplications service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListApplications Operation public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEnvironments /// /// Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller /// account or shared with the caller account. /// /// Container for the necessary parameters to execute the ListEnvironments service method. /// /// The response from the ListEnvironments service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListEnvironments Operation public virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller /// account or shared with the caller account. /// /// Container for the necessary parameters to execute the ListEnvironments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEnvironments service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListEnvironments Operation public virtual Task ListEnvironmentsAsync(ListEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEnvironmentVpcs /// /// Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private /// clouds (VPCs) that are part of the environment. /// /// Container for the necessary parameters to execute the ListEnvironmentVpcs service method. /// /// The response from the ListEnvironmentVpcs service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListEnvironmentVpcs Operation public virtual ListEnvironmentVpcsResponse ListEnvironmentVpcs(ListEnvironmentVpcsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentVpcsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentVpcsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private /// clouds (VPCs) that are part of the environment. /// /// Container for the necessary parameters to execute the ListEnvironmentVpcs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEnvironmentVpcs service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListEnvironmentVpcs Operation public virtual Task ListEnvironmentVpcsAsync(ListEnvironmentVpcsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentVpcsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentVpcsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRoutes /// /// Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application. /// /// Container for the necessary parameters to execute the ListRoutes service method. /// /// The response from the ListRoutes service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListRoutes Operation public virtual ListRoutesResponse ListRoutes(ListRoutesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRoutesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRoutesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application. /// /// Container for the necessary parameters to execute the ListRoutes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRoutes service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListRoutes Operation public virtual Task ListRoutesAsync(ListRoutesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRoutesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRoutesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListServices /// /// Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an /// application. /// /// Container for the necessary parameters to execute the ListServices service method. /// /// The response from the ListServices service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListServices Operation public virtual ListServicesResponse ListServices(ListServicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListServicesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an /// application. /// /// Container for the necessary parameters to execute the ListServices service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListServices service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// Updating or deleting a resource can cause an inconsistent state. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The request would cause a service quota to be exceeded. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListServices Operation public virtual Task ListServicesAsync(ListServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListServicesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource /// /// Lists the tags of a resource. The caller account must be the same as the resource’s /// OwnerAccountId. Listing tags in other accounts is not supported. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by MigrationHubRefactorSpaces. /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the tags of a resource. The caller account must be the same as the resource’s /// OwnerAccountId. Listing tags in other accounts is not supported. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by MigrationHubRefactorSpaces. /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutResourcePolicy /// /// 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 arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment /// permission in Resource Access Manager. The policy must not contain new lines or blank /// lines. /// /// Container for the necessary parameters to execute the PutResourcePolicy service method. /// /// The response from the PutResourcePolicy service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The resource policy is not valid. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for PutResourcePolicy Operation public virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment /// permission in Resource Access Manager. The policy must not contain new lines or blank /// lines. /// /// Container for the necessary parameters to execute the PutResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutResourcePolicy service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The resource policy is not valid. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for PutResourcePolicy Operation public virtual Task PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource /// /// 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 /// OwnerAccountId. Tagging resources in other accounts is not supported. /// /// /// /// Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated /// resources, such as an environment’s transit gateway. /// /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by MigrationHubRefactorSpaces. /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 /// OwnerAccountId. Tagging resources in other accounts is not supported. /// /// /// /// Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated /// resources, such as an environment’s transit gateway. /// /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by MigrationHubRefactorSpaces. /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource /// /// 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 OwnerAccountId. Untagging resources across accounts /// is not supported. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by MigrationHubRefactorSpaces. /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 OwnerAccountId. Untagging resources across accounts /// is not supported. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by MigrationHubRefactorSpaces. /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateRoute /// /// Updates an Amazon Web Services Migration Hub Refactor Spaces route. /// /// Container for the necessary parameters to execute the UpdateRoute service method. /// /// The response from the UpdateRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for UpdateRoute Operation public virtual UpdateRouteResponse UpdateRoute(UpdateRouteRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRouteResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an Amazon Web Services Migration Hub Refactor Spaces route. /// /// Container for the necessary parameters to execute the UpdateRoute service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateRoute service method, as returned by MigrationHubRefactorSpaces. /// /// The user does not have sufficient access to perform this action. /// /// /// An unexpected error occurred while processing the request. /// /// /// The request references a resource that does not exist. /// /// /// Request was denied because the request was throttled. /// /// /// The input does not satisfy the constraints specified by an Amazon Web Service. /// /// REST API Reference for UpdateRoute Operation public virtual Task UpdateRouteAsync(UpdateRouteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRouteRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRouteResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }