create_index
(**kwargs)¶Creates an index object. See Indexing and search for more information.
See also: AWS API Documentation
Request Syntax
response = client.create_index(
DirectoryArn='string',
OrderedIndexedAttributeList=[
{
'SchemaArn': 'string',
'FacetName': 'string',
'Name': 'string'
},
],
IsUnique=True|False,
ParentReference={
'Selector': 'string'
},
LinkName='string'
)
[REQUIRED]
The ARN of the directory where the index should be created.
[REQUIRED]
Specifies the attributes that should be indexed on. Currently only a single attribute is supported.
A unique identifier for an attribute.
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.
[REQUIRED]
Indicates whether the attribute that is being indexed has unique values or not.
A reference to the parent object that contains the index 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:
dict
Response Syntax
{
'ObjectIdentifier': 'string'
}
Response Structure
(dict) --
ObjectIdentifier (string) --
The ObjectIdentifier
of the index created by this operation.
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.FacetValidationException
CloudDirectory.Client.exceptions.LinkNameAlreadyInUseException
CloudDirectory.Client.exceptions.UnsupportedIndexTypeException