Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Renames the specified organizational unit (OU). The ID and ARN don't change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached.
This operation can be called only from the organization's management account.
Synopsis
- data UpdateOrganizationalUnit = UpdateOrganizationalUnit' {}
- newUpdateOrganizationalUnit :: Text -> UpdateOrganizationalUnit
- updateOrganizationalUnit_name :: Lens' UpdateOrganizationalUnit (Maybe Text)
- updateOrganizationalUnit_organizationalUnitId :: Lens' UpdateOrganizationalUnit Text
- data UpdateOrganizationalUnitResponse = UpdateOrganizationalUnitResponse' {}
- newUpdateOrganizationalUnitResponse :: Int -> UpdateOrganizationalUnitResponse
- updateOrganizationalUnitResponse_organizationalUnit :: Lens' UpdateOrganizationalUnitResponse (Maybe OrganizationalUnit)
- updateOrganizationalUnitResponse_httpStatus :: Lens' UpdateOrganizationalUnitResponse Int
Creating a Request
data UpdateOrganizationalUnit Source #
See: newUpdateOrganizationalUnit
smart constructor.
UpdateOrganizationalUnit' | |
|
Instances
newUpdateOrganizationalUnit Source #
Create a value of UpdateOrganizationalUnit
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:name:UpdateOrganizationalUnit'
, updateOrganizationalUnit_name
- The new name that you want to assign to the OU.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
$sel:organizationalUnitId:UpdateOrganizationalUnit'
, updateOrganizationalUnit_organizationalUnitId
- The unique identifier (ID) of the OU that you want to rename. You can
get the ID from the ListOrganizationalUnitsForParent operation.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
Request Lenses
updateOrganizationalUnit_name :: Lens' UpdateOrganizationalUnit (Maybe Text) Source #
The new name that you want to assign to the OU.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
updateOrganizationalUnit_organizationalUnitId :: Lens' UpdateOrganizationalUnit Text Source #
The unique identifier (ID) of the OU that you want to rename. You can get the ID from the ListOrganizationalUnitsForParent operation.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
Destructuring the Response
data UpdateOrganizationalUnitResponse Source #
See: newUpdateOrganizationalUnitResponse
smart constructor.
UpdateOrganizationalUnitResponse' | |
|
Instances
Eq UpdateOrganizationalUnitResponse Source # | |
Read UpdateOrganizationalUnitResponse Source # | |
Show UpdateOrganizationalUnitResponse Source # | |
Generic UpdateOrganizationalUnitResponse Source # | |
NFData UpdateOrganizationalUnitResponse Source # | |
Defined in Amazonka.Organizations.UpdateOrganizationalUnit rnf :: UpdateOrganizationalUnitResponse -> () # | |
type Rep UpdateOrganizationalUnitResponse Source # | |
Defined in Amazonka.Organizations.UpdateOrganizationalUnit type Rep UpdateOrganizationalUnitResponse = D1 ('MetaData "UpdateOrganizationalUnitResponse" "Amazonka.Organizations.UpdateOrganizationalUnit" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "UpdateOrganizationalUnitResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationalUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OrganizationalUnit)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateOrganizationalUnitResponse Source #
Create a value of UpdateOrganizationalUnitResponse
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:organizationalUnit:UpdateOrganizationalUnitResponse'
, updateOrganizationalUnitResponse_organizationalUnit
- A structure that contains the details about the specified OU, including
its new name.
$sel:httpStatus:UpdateOrganizationalUnitResponse'
, updateOrganizationalUnitResponse_httpStatus
- The response's http status code.
Response Lenses
updateOrganizationalUnitResponse_organizationalUnit :: Lens' UpdateOrganizationalUnitResponse (Maybe OrganizationalUnit) Source #
A structure that contains the details about the specified OU, including its new name.
updateOrganizationalUnitResponse_httpStatus :: Lens' UpdateOrganizationalUnitResponse Int Source #
The response's http status code.