libZSservicesZSamazonka-organizationsZSamazonka-organizations
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Methods

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

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

Read Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Show 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 #

NFData Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Methods

rnf :: Parent -> () #

Hashable Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

Methods

hashWithSalt :: Int -> Parent -> Int #

hash :: Parent -> Int #

FromJSON Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

type Rep Parent Source # 
Instance details

Defined in Amazonka.Organizations.Types.Parent

type Rep Parent = D1 ('MetaData "Parent" "Amazonka.Organizations.Types.Parent" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" '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.