amazonka-organizations-2.0: Amazon Organizations 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.Organizations.Types.Parent

Description

 
Synopsis

Documentation

data Parent Source #

Contains information about either a root or an organizational unit (OU) that can contain OUs or accounts in an organization.

See: newParent smart constructor.

Constructors

Parent' 

Fields

  • id :: Maybe Text

    The unique identifier (ID) of the parent entity.

    The regex pattern for a parent ID string requires one of the following:

    • Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
    • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
  • type' :: Maybe ParentType

    The type of the parent entity.

Instances

Instances details
FromJSON Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Generic Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Associated Types

type Rep Parent :: Type -> Type #

Methods

from :: Parent -> Rep Parent x #

to :: Rep Parent x -> Parent #

Read Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Show Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

NFData Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Methods

rnf :: Parent -> () #

Eq Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Methods

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

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

Hashable Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Methods

hashWithSalt :: Int -> Parent -> Int #

hash :: Parent -> Int #

type Rep Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

type Rep Parent = D1 ('MetaData "Parent" "Amazonka.Organizations.Types.Parent" "amazonka-organizations-2.0-JONpdX4PtttLcKxQshpOlA" 'False) (C1 ('MetaCons "Parent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ParentType))))

newParent :: Parent Source #

Create a value of Parent 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:Parent', parent_id - The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string requires one of the following:

  • Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
  • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

$sel:type':Parent', parent_type - The type of the parent entity.

parent_id :: Lens' Parent (Maybe Text) Source #

The unique identifier (ID) of the parent entity.

The regex pattern for a parent ID string requires one of the following:

  • Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
  • Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.

parent_type :: Lens' Parent (Maybe ParentType) Source #

The type of the parent entity.