/* * 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 migrationhub-config-2019-06-30.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.MigrationHubConfig.Model; namespace Amazon.MigrationHubConfig { /// /// Interface for accessing MigrationHubConfig /// /// The AWS Migration Hub home region APIs are available specifically for working with /// your Migration Hub home region. You can use these APIs to determine a home region, /// as well as to create and work with controls that describe the home region. /// /// /// /// For specific API usage, see the sections that follow in this AWS Migration Hub Home /// Region API reference. /// /// public partial interface IAmazonMigrationHubConfig : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// /// Paginators for the service /// IMigrationHubConfigPaginatorFactory Paginators { get; } #endif #region CreateHomeRegionControl /// /// This API sets up the home region for the calling account only. /// /// Container for the necessary parameters to execute the CreateHomeRegionControl service method. /// /// The response from the CreateHomeRegionControl service method, as returned by MigrationHubConfig. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised to indicate that authorization of an action was successful, when /// the DryRun flag is set to true. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when a request fails due to temporary unavailability of the service. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for CreateHomeRegionControl Operation CreateHomeRegionControlResponse CreateHomeRegionControl(CreateHomeRegionControlRequest request); /// /// Initiates the asynchronous execution of the CreateHomeRegionControl operation. /// /// /// Container for the necessary parameters to execute the CreateHomeRegionControl operation on AmazonMigrationHubConfigClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHomeRegionControl /// operation. /// REST API Reference for CreateHomeRegionControl Operation IAsyncResult BeginCreateHomeRegionControl(CreateHomeRegionControlRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the CreateHomeRegionControl operation. /// /// /// The IAsyncResult returned by the call to BeginCreateHomeRegionControl. /// /// Returns a CreateHomeRegionControlResult from MigrationHubConfig. /// REST API Reference for CreateHomeRegionControl Operation CreateHomeRegionControlResponse EndCreateHomeRegionControl(IAsyncResult asyncResult); #endregion #region DescribeHomeRegionControls /// /// This API permits filtering on the ControlId and HomeRegion /// fields. /// /// Container for the necessary parameters to execute the DescribeHomeRegionControls service method. /// /// The response from the DescribeHomeRegionControls service method, as returned by MigrationHubConfig. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when a request fails due to temporary unavailability of the service. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for DescribeHomeRegionControls Operation DescribeHomeRegionControlsResponse DescribeHomeRegionControls(DescribeHomeRegionControlsRequest request); /// /// Initiates the asynchronous execution of the DescribeHomeRegionControls operation. /// /// /// Container for the necessary parameters to execute the DescribeHomeRegionControls operation on AmazonMigrationHubConfigClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHomeRegionControls /// operation. /// REST API Reference for DescribeHomeRegionControls Operation IAsyncResult BeginDescribeHomeRegionControls(DescribeHomeRegionControlsRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the DescribeHomeRegionControls operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeHomeRegionControls. /// /// Returns a DescribeHomeRegionControlsResult from MigrationHubConfig. /// REST API Reference for DescribeHomeRegionControls Operation DescribeHomeRegionControlsResponse EndDescribeHomeRegionControls(IAsyncResult asyncResult); #endregion #region GetHomeRegion /// /// Returns the calling account’s home region, if configured. This API is used by other /// AWS services to determine the regional endpoint for calling AWS Application Discovery /// Service and Migration Hub. You must call GetHomeRegion at least once /// before you call any other AWS Application Discovery Service and AWS Migration Hub /// APIs, to obtain the account's Migration Hub home region. /// /// Container for the necessary parameters to execute the GetHomeRegion service method. /// /// The response from the GetHomeRegion service method, as returned by MigrationHubConfig. /// /// You do not have sufficient access to perform this action. /// /// /// Exception raised when an internal, configuration, or dependency error is encountered. /// /// /// Exception raised when the provided input violates a policy constraint or is entered /// in the wrong format or data type. /// /// /// Exception raised when a request fails due to temporary unavailability of the service. /// /// /// The request was denied due to request throttling. /// /// REST API Reference for GetHomeRegion Operation GetHomeRegionResponse GetHomeRegion(GetHomeRegionRequest request); /// /// Initiates the asynchronous execution of the GetHomeRegion operation. /// /// /// Container for the necessary parameters to execute the GetHomeRegion operation on AmazonMigrationHubConfigClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetHomeRegion /// operation. /// REST API Reference for GetHomeRegion Operation IAsyncResult BeginGetHomeRegion(GetHomeRegionRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetHomeRegion operation. /// /// /// The IAsyncResult returned by the call to BeginGetHomeRegion. /// /// Returns a GetHomeRegionResult from MigrationHubConfig. /// REST API Reference for GetHomeRegion Operation GetHomeRegionResponse EndGetHomeRegion(IAsyncResult asyncResult); #endregion } }