DataZone / Client / update_domain_unit
update_domain_unit#
- DataZone.Client.update_domain_unit(**kwargs)#
Updates the domain unit.
See also: AWS API Documentation
Request Syntax
response = client.update_domain_unit( description='string', domainIdentifier='string', identifier='string', name='string' )
- Parameters:
description (string) – The description of the domain unit that you want to update.
domainIdentifier (string) –
[REQUIRED]
The ID of the domain where you want to update a domain unit.
identifier (string) –
[REQUIRED]
The ID of the domain unit that you want to update.
name (string) – The name of the domain unit that you want to update.
- Return type:
dict
- Returns:
Response Syntax
{ 'createdAt': datetime(2015, 1, 1), 'createdBy': 'string', 'description': 'string', 'domainId': 'string', 'id': 'string', 'lastUpdatedAt': datetime(2015, 1, 1), 'lastUpdatedBy': 'string', 'name': 'string', 'owners': [ { 'group': { 'groupId': 'string' }, 'user': { 'userId': 'string' } }, ], 'parentDomainUnitId': 'string' }
Response Structure
(dict) –
createdAt (datetime) –
The time stamp at which the domain unit that you want to update was created.
createdBy (string) –
The user who created the domain unit that you want to update.
description (string) –
The description of the domain unit that you want to update.
domainId (string) –
The ID of the domain where you want to update the domain unit.
id (string) –
The ID of the domain unit that you want to update.
lastUpdatedAt (datetime) –
The timestamp at which the domain unit was last updated.
lastUpdatedBy (string) –
The user who last updated the domain unit.
name (string) –
The name of the domain unit that you want to update.
owners (list) –
The owners of the domain unit that you want to update.
(dict) –
The properties of the domain unit owner.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
group
,user
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
group (dict) –
Indicates that the domain unit owner is a group.
groupId (string) –
The ID of the domain unit group.
user (dict) –
Indicates that the domain unit owner is a user.
userId (string) –
The ID of teh domain unit user.
parentDomainUnitId (string) –
The ID of the parent domain unit.
Exceptions