amazonka-migrationhub-config-2.0: Amazon Migration Hub Config SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MigrationHubConfig.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2019-06-30 of the Amazon Migration Hub Config SDK configuration.

Errors

_AccessDeniedException :: AsError a => Fold a ServiceError Source #

You do not have sufficient access to perform this action.

_DryRunOperation :: AsError a => Fold a ServiceError Source #

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

_InternalServerError :: AsError a => Fold a ServiceError Source #

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

_InvalidInputException :: AsError a => Fold a ServiceError Source #

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

_ServiceUnavailableException :: AsError a => Fold a ServiceError Source #

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

_ThrottlingException :: AsError a => Fold a ServiceError Source #

The request was denied due to request throttling.

TargetType

newtype TargetType Source #

Constructors

TargetType' 

Fields

Bundled Patterns

pattern TargetType_ACCOUNT :: TargetType 

Instances

Instances details
FromJSON TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

FromJSONKey TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToJSON TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToJSONKey TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToByteString TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToHeader TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToLog TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToQuery TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

FromText TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToText TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Methods

toText :: TargetType -> Text #

FromXML TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

ToXML TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Methods

toXML :: TargetType -> XML #

Generic TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Associated Types

type Rep TargetType :: Type -> Type #

Read TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Show TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

NFData TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Methods

rnf :: TargetType -> () #

Eq TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Ord TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

Hashable TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

type Rep TargetType Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.TargetType

type Rep TargetType = D1 ('MetaData "TargetType" "Amazonka.MigrationHubConfig.Types.TargetType" "amazonka-migrationhub-config-2.0-3Ai1l2DYBdtHtjir9KlsDr" 'True) (C1 ('MetaCons "TargetType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromTargetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

HomeRegionControl

data HomeRegionControl Source #

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.

See: newHomeRegionControl smart constructor.

Constructors

HomeRegionControl' 

Fields

  • controlId :: Maybe Text

    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.

  • homeRegion :: Maybe Text

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

  • requestedTime :: Maybe POSIX

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

  • target :: Maybe Target

    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.

Instances

Instances details
FromJSON HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

Generic HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

Associated Types

type Rep HomeRegionControl :: Type -> Type #

Read HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

Show HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

NFData HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

Methods

rnf :: HomeRegionControl -> () #

Eq HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

Hashable HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

type Rep HomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.HomeRegionControl

type Rep HomeRegionControl = D1 ('MetaData "HomeRegionControl" "Amazonka.MigrationHubConfig.Types.HomeRegionControl" "amazonka-migrationhub-config-2.0-3Ai1l2DYBdtHtjir9KlsDr" 'False) (C1 ('MetaCons "HomeRegionControl'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "controlId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "homeRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "requestedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Target)))))

newHomeRegionControl :: HomeRegionControl Source #

Create a value of HomeRegionControl with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:controlId:HomeRegionControl', homeRegionControl_controlId - 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.

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

$sel:requestedTime:HomeRegionControl', homeRegionControl_requestedTime - A timestamp representing the time when the customer called CreateHomeregionControl and set the home region for the account.

$sel:target:HomeRegionControl', homeRegionControl_target - 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.

homeRegionControl_controlId :: Lens' HomeRegionControl (Maybe Text) Source #

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.

homeRegionControl_homeRegion :: Lens' HomeRegionControl (Maybe Text) Source #

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

homeRegionControl_requestedTime :: Lens' HomeRegionControl (Maybe UTCTime) Source #

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

homeRegionControl_target :: Lens' HomeRegionControl (Maybe Target) Source #

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.

Target

data Target Source #

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.

See: newTarget smart constructor.

Constructors

Target' 

Fields

  • id :: Maybe Text

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

  • type' :: TargetType

    The target type is always an ACCOUNT.

Instances

Instances details
FromJSON Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

ToJSON Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

Generic Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

Associated Types

type Rep Target :: Type -> Type #

Methods

from :: Target -> Rep Target x #

to :: Rep Target x -> Target #

Read Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

Show Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

NFData Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

Methods

rnf :: Target -> () #

Eq Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

Methods

(==) :: Target -> Target -> Bool #

(/=) :: Target -> Target -> Bool #

Hashable Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

Methods

hashWithSalt :: Int -> Target -> Int #

hash :: Target -> Int #

type Rep Target Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.Types.Target

type Rep Target = D1 ('MetaData "Target" "Amazonka.MigrationHubConfig.Types.Target" "amazonka-migrationhub-config-2.0-3Ai1l2DYBdtHtjir9KlsDr" 'False) (C1 ('MetaCons "Target'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TargetType)))

newTarget Source #

Create a value of Target with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:id:Target', target_id - The TargetID is a 12-character identifier of the ACCOUNT for which the control was created. (This must be the current account.)

$sel:type':Target', target_type - The target type is always an ACCOUNT.

target_id :: Lens' Target (Maybe Text) Source #

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

target_type :: Lens' Target TargetType Source #

The target type is always an ACCOUNT.