update_object_attributes
(**kwargs)¶Updates a given object's attributes.
See also: AWS API Documentation
Request Syntax
response = client.update_object_attributes(
DirectoryArn='string',
ObjectReference={
'Selector': 'string'
},
AttributeUpdates=[
{
'ObjectAttributeKey': {
'SchemaArn': 'string',
'FacetName': 'string',
'Name': 'string'
},
'ObjectAttributeAction': {
'ObjectAttributeActionType': 'CREATE_OR_UPDATE'|'DELETE',
'ObjectAttributeUpdateValue': {
'StringValue': 'string',
'BinaryValue': b'bytes',
'BooleanValue': True|False,
'NumberValue': 'string',
'DatetimeValue': datetime(2015, 1, 1)
}
}
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns.
[REQUIRED]
The reference that identifies the object.
A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Access Objects. You can identify an object in one of the following ways:
[REQUIRED]
The attributes update structure.
Structure that contains attribute update information.
The key of the attribute being updated.
The Amazon Resource Name (ARN) of the schema that contains the facet and attribute.
The name of the facet that the attribute exists within.
The name of the attribute.
The action to perform as part of the attribute update.
A type that can be either Update
or Delete
.
The value that you want to update to.
A string data value.
A binary data value.
A Boolean data value.
A number data value.
A date and time value.
dict
Response Syntax
{
'ObjectIdentifier': 'string'
}
Response Structure
(dict) --
ObjectIdentifier (string) --
The ObjectIdentifier
of the updated object.
Exceptions
CloudDirectory.Client.exceptions.InternalServiceException
CloudDirectory.Client.exceptions.InvalidArnException
CloudDirectory.Client.exceptions.RetryableConflictException
CloudDirectory.Client.exceptions.ValidationException
CloudDirectory.Client.exceptions.LimitExceededException
CloudDirectory.Client.exceptions.AccessDeniedException
CloudDirectory.Client.exceptions.DirectoryNotEnabledException
CloudDirectory.Client.exceptions.ResourceNotFoundException
CloudDirectory.Client.exceptions.LinkNameAlreadyInUseException
CloudDirectory.Client.exceptions.FacetValidationException