View on GitHub

aws-sdk-swift

MigrationHubConfigClientProtocol

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.

public protocol MigrationHubConfigClientProtocol 

For specific API usage, see the sections that follow in this AWS Migration Hub Home Region API reference.

Requirements

createHomeRegionControl(input:completion:)

This API sets up the home region for the calling account only.

func createHomeRegionControl(input: CreateHomeRegionControlInput, completion: @escaping (ClientRuntime.SdkResult<CreateHomeRegionControlOutputResponse, CreateHomeRegionControlOutputError>) -> Void)

describeHomeRegionControls(input:completion:)

This API permits filtering on the ControlId and HomeRegion fields.

func describeHomeRegionControls(input: DescribeHomeRegionControlsInput, completion: @escaping (ClientRuntime.SdkResult<DescribeHomeRegionControlsOutputResponse, DescribeHomeRegionControlsOutputError>) -> Void)

getHomeRegion(input:completion:)

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.

func getHomeRegion(input: GetHomeRegionInput, completion: @escaping (ClientRuntime.SdkResult<GetHomeRegionOutputResponse, GetHomeRegionOutputError>) -> Void)