Module Smaws_Client_MigrationHubConfig.Types

type nonrec token = string
type nonrec error_message = string
type nonrec retry_after_seconds = int
type nonrec throttling_exception = {
  1. retry_after_seconds : retry_after_seconds option;
    (*

    The number of seconds the caller should wait before retrying.

    *)
  2. message : error_message;
}

The request was denied due to request throttling.

type nonrec target_type =
  1. | ACCOUNT
type nonrec target_id = string
type nonrec target = {
  1. id : target_id option;
    (*

    The TargetID is a 12-character identifier of the ACCOUNT for which the control was created. (This must be the current account.)

    *)
  2. type_ : target_type;
    (*

    The target type is always an ACCOUNT.

    *)
}

The target parameter specifies the identifier to which the home region is applied, which is always an ACCOUNT. It applies the home region to the current ACCOUNT.

type nonrec service_unavailable_exception = {
  1. message : error_message option;
}

Exception raised when a request fails due to temporary unavailability of the service.

type nonrec requested_time = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec invalid_input_exception = {
  1. message : error_message option;
}

Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.

type nonrec internal_server_error = {
  1. message : error_message option;
}

Exception raised when an internal, configuration, or dependency error is encountered.

type nonrec control_id = string
type nonrec home_region = string
type nonrec home_region_control = {
  1. requested_time : requested_time option;
    (*

    A timestamp representing the time when the customer called CreateHomeregionControl and set the home region for the account.

    *)
  2. target : target option;
    (*

    The target parameter specifies the identifier to which the home region is applied, which is always an ACCOUNT. It applies the home region to the current ACCOUNT.

    *)
  3. home_region : home_region option;
    (*

    The AWS Region that's been set as home region. For example, "us-west-2" or "eu-central-1" are valid home regions.

    *)
  4. control_id : control_id option;
    (*

    A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.

    *)
}

A home region control is an object that specifies the home region for an account, with some additional information. It contains a target (always of type ACCOUNT), an ID, and a time at which the home region was set.

type nonrec home_region_controls = home_region_control list
type nonrec get_home_region_result = {
  1. home_region : home_region option;
    (*

    The name of the home region of the calling account.

    *)
}
type nonrec get_home_region_request = unit
type nonrec access_denied_exception = {
  1. message : error_message option;
}

You do not have sufficient access to perform this action.

type nonrec dry_run_operation = {
  1. message : error_message option;
}

Exception raised to indicate that authorization of an action was successful, when the DryRun flag is set to true.

type nonrec dry_run = bool
type nonrec describe_home_region_controls_result = {
  1. next_token : token option;
    (*

    If a NextToken was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in NextToken.

    *)
  2. home_region_controls : home_region_controls option;
    (*

    An array that contains your HomeRegionControl objects.

    *)
}
type nonrec describe_home_region_controls_max_results = int
type nonrec describe_home_region_controls_request = {
  1. next_token : token option;
    (*

    If a NextToken was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in NextToken.

    *)
  2. max_results : describe_home_region_controls_max_results option;
    (*

    The maximum number of filtering results to display per page.

    *)
  3. target : target option;
    (*

    The target parameter specifies the identifier to which the home region is applied, which is always of type ACCOUNT. It applies the home region to the current ACCOUNT.

    *)
  4. home_region : home_region option;
    (*

    The name of the home region you'd like to view.

    *)
  5. control_id : control_id option;
    (*

    The ControlID is a unique identifier string of your HomeRegionControl object.

    *)
}
type nonrec delete_home_region_control_result = unit
type nonrec delete_home_region_control_request = {
  1. control_id : control_id;
    (*

    A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.

    *)
}
type nonrec create_home_region_control_result = {
  1. home_region_control : home_region_control option;
    (*

    This object is the HomeRegionControl object that's returned by a successful call to CreateHomeRegionControl.

    *)
}
type nonrec create_home_region_control_request = {
  1. dry_run : dry_run option;
    (*

    Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.

    *)
  2. target : target;
    (*

    The account for which this command sets up a home region control. The Target is always of type ACCOUNT.

    *)
  3. home_region : home_region;
    (*

    The name of the home region of the calling account.

    *)
}