{"note":"OpenAPI conversion -- returning structured metadata","name":"amazonaws-com-clouddirectory","description":"Amazon CloudDirectory","version":"2017-01-11","base_url":"","endpoints":66,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Amazon CloudDirectory\n@version 2017-01-11\n@auth AWS SigV4\n@endpoints 66\n@hint download_for_search\n@toc amazonclouddirectory(66)\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object/facets\n@desc Adds a new Facet to an object. An object can have more than one facet applied on it.\n@required {x-amz-data-partition: str, SchemaFacet: SchemaFacet, ObjectReference: ObjectReference}\n@optional {ObjectAttributeList: [AttributeKeyAndValue]}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/apply\n@desc Copies the input published schema, at the specified version, into the Directory with the same name and version as that of the published schema.\n@required {x-amz-data-partition: str, PublishedSchemaArn: str}\n@returns(200) {AppliedSchemaArn: str?, DirectoryArn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object/attach\n@desc Attaches an existing object to another object. An object can be accessed in two ways:   Using the path   Using ObjectIdentifier\n@required {x-amz-data-partition: str, ParentReference: ObjectReference, ChildReference: ObjectReference, LinkName: str}\n@returns(200) {AttachedObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/policy/attach\n@desc Attaches a policy object to a regular object. An object can have a limited number of attached policies.\n@required {x-amz-data-partition: str, PolicyReference: ObjectReference, ObjectReference: ObjectReference}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/index/attach\n@desc Attaches the specified object to the specified index.\n@required {x-amz-data-partition: str, IndexReference: ObjectReference, TargetReference: ObjectReference}\n@returns(200) {AttachedObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/typedlink/attach\n@desc Attaches a typed link to a specified source and target object. For more information, see Typed Links.\n@required {x-amz-data-partition: str, SourceObjectReference: ObjectReference, TargetObjectReference: ObjectReference, TypedLinkFacet: TypedLinkSchemaAndFacetName, Attributes: [AttributeNameAndValue]}\n@returns(200) {TypedLinkSpecifier: TypedLinkSpecifier?{TypedLinkFacet: TypedLinkSchemaAndFacetName{SchemaArn: str, TypedLinkName: str}, SourceObjectReference: ObjectReference{Selector: str?}, TargetObjectReference: ObjectReference{Selector: str?}, IdentityAttributeValues: [AttributeNameAndValue]}}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/batchread\n@desc Performs all the read operations in a batch.\n@required {x-amz-data-partition: str, Operations: [BatchReadOperation]}\n@optional {x-amz-consistency-level: str}\n@returns(200) {Responses: [BatchReadOperationResponse]?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/batchwrite\n@desc Performs all the write operations in a batch. Either all the operations succeed or none.\n@required {x-amz-data-partition: str, Operations: [BatchWriteOperation]}\n@returns(200) {Responses: [BatchWriteOperationResponse]?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/directory/create\n@desc Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema. You can also quickly create a directory using a managed schema, called the QuickStartSchema. For more information, see Managed Schema in the Amazon Cloud Directory Developer Guide.\n@required {x-amz-data-partition: str, Name: str}\n@returns(200) {DirectoryArn: str, Name: str, ObjectIdentifier: str, AppliedSchemaArn: str}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/facet/create\n@desc Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas.\n@required {x-amz-data-partition: str, Name: str}\n@optional {Attributes: [FacetAttribute], ObjectType: str, FacetStyle: str}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/index\n@desc Creates an index object. See Indexing and search for more information.\n@required {x-amz-data-partition: str, OrderedIndexedAttributeList: [AttributeKey], IsUnique: bool}\n@optional {ParentReference: ObjectReference, LinkName: str}\n@returns(200) {ObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object\n@desc Creates an object in a Directory. Additionally attaches the object to a parent, if a parent reference and LinkName is specified. An object is simply a collection of Facet attributes. You can also use this API call to create a policy object, if the facet from which you create the object is a policy facet.\n@required {x-amz-data-partition: str, SchemaFacets: [SchemaFacet]}\n@optional {ObjectAttributeList: [AttributeKeyAndValue], ParentReference: ObjectReference, LinkName: str}\n@returns(200) {ObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/create\n@desc Creates a new schema in a development state. A schema can exist in three phases:    Development: This is a mutable phase of the schema. All new schemas are in the development phase. Once the schema is finalized, it can be published.    Published: Published schemas are immutable and have a version associated with them.    Applied: Applied schemas are mutable in a way that allows you to add new schema facets. You can also add new, nonrequired attributes to existing schema facets. You can apply only published schemas to directories.\n@required {Name: str}\n@returns(200) {SchemaArn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/typedlink/facet/create\n@desc Creates a TypedLinkFacet. For more information, see Typed Links.\n@required {x-amz-data-partition: str, Facet: TypedLinkFacet}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/directory\n@desc Deletes a directory. Only disabled directories can be deleted. A deleted directory cannot be undone. Exercise extreme caution when deleting directories.\n@required {x-amz-data-partition: str}\n@returns(200) {DirectoryArn: str}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/facet/delete\n@desc Deletes a given Facet. All attributes and Rules that are associated with the facet will be deleted. Only development schema facets are allowed deletion.\n@required {x-amz-data-partition: str, Name: str}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object/delete\n@desc Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted. The maximum number of attributes that can be deleted during an object deletion is 30. For more information, see Amazon Cloud Directory Limits.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema\n@desc Deletes a given schema. Schemas in a development and published state can only be deleted.\n@required {x-amz-data-partition: str}\n@returns(200) {SchemaArn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/typedlink/facet/delete\n@desc Deletes a TypedLinkFacet. For more information, see Typed Links.\n@required {x-amz-data-partition: str, Name: str}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/index/detach\n@desc Detaches the specified object from the specified index.\n@required {x-amz-data-partition: str, IndexReference: ObjectReference, TargetReference: ObjectReference}\n@returns(200) {DetachedObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object/detach\n@desc Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name.\n@required {x-amz-data-partition: str, ParentReference: ObjectReference, LinkName: str}\n@returns(200) {DetachedObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/policy/detach\n@desc Detaches a policy from an object.\n@required {x-amz-data-partition: str, PolicyReference: ObjectReference, ObjectReference: ObjectReference}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/typedlink/detach\n@desc Detaches a typed link from a specified source and target object. For more information, see Typed Links.\n@required {x-amz-data-partition: str, TypedLinkSpecifier: TypedLinkSpecifier}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/directory/disable\n@desc Disables the specified directory. Disabled directories cannot be read or written to. Only enabled directories can be disabled. Disabled directories may be reenabled.\n@required {x-amz-data-partition: str}\n@returns(200) {DirectoryArn: str}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/directory/enable\n@desc Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to.\n@required {x-amz-data-partition: str}\n@returns(200) {DirectoryArn: str}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/schema/getappliedschema\n@desc Returns current applied schema version ARN, including the minor version in use.\n@required {SchemaArn: str}\n@returns(200) {AppliedSchemaArn: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/directory/get\n@desc Retrieves metadata about a directory.\n@required {x-amz-data-partition: str}\n@returns(200) {Directory: Directory{Name: str?, DirectoryArn: str?, State: str?, CreationDateTime: str(timestamp)?}}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/facet\n@desc Gets details of the Facet, such as facet name, attributes, Rules, or ObjectType. You can call this on all kinds of schema facets -- published, development, or applied.\n@required {x-amz-data-partition: str, Name: str}\n@returns(200) {Facet: Facet?{Name: str?, ObjectType: str?, FacetStyle: str?}}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/attributes/get\n@desc Retrieves attributes that are associated with a typed link.\n@required {x-amz-data-partition: str, TypedLinkSpecifier: TypedLinkSpecifier, AttributeNames: [str]}\n@optional {ConsistencyLevel: str}\n@returns(200) {Attributes: [AttributeKeyAndValue]?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/attributes/get\n@desc Retrieves attributes within a facet that are associated with an object.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference, SchemaFacet: SchemaFacet, AttributeNames: [str]}\n@optional {x-amz-consistency-level: str}\n@returns(200) {Attributes: [AttributeKeyAndValue]?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/information\n@desc Retrieves metadata about an object.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {x-amz-consistency-level: str}\n@returns(200) {SchemaFacets: [SchemaFacet]?, ObjectIdentifier: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/schema/json\n@desc Retrieves a JSON representation of the schema. See JSON Schema Format for more information.\n@required {x-amz-data-partition: str}\n@returns(200) {Name: str?, Document: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/facet/get\n@desc Returns the identity attribute order for a specific TypedLinkFacet. For more information, see Typed Links.\n@required {x-amz-data-partition: str, Name: str}\n@returns(200) {IdentityAttributeOrder: [str]?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/schema/applied\n@desc Lists schema major versions applied to a directory. If SchemaArn is provided, lists the minor version.\n@required {DirectoryArn: str}\n@optional {SchemaArn: str, NextToken: str, MaxResults: int}\n@returns(200) {SchemaArns: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/indices\n@desc Lists indices attached to the specified object.\n@required {x-amz-data-partition: str, TargetReference: ObjectReference}\n@optional {x-amz-consistency-level: str, NextToken: str, MaxResults: int}\n@returns(200) {IndexAttachments: [IndexAttachment]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/schema/development\n@desc Retrieves each Amazon Resource Name (ARN) of schemas in the development state.\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {SchemaArns: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/directory/list\n@desc Lists directories created within an account.\n@optional {NextToken: str, MaxResults: int, state: str}\n@returns(200) {Directories: [Directory], NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/facet/attributes\n@desc Retrieves attributes attached to the facet.\n@required {x-amz-data-partition: str, Name: str}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {Attributes: [FacetAttribute]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/facet/list\n@desc Retrieves the names of facets that exist in a schema.\n@required {x-amz-data-partition: str}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {FacetNames: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/incoming\n@desc Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {FilterAttributeRanges: [TypedLinkAttributeRange], FilterTypedLink: TypedLinkSchemaAndFacetName, NextToken: str, MaxResults: int, ConsistencyLevel: str}\n@returns(200) {LinkSpecifiers: [TypedLinkSpecifier]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/index/targets\n@desc Lists objects attached to the specified index.\n@required {x-amz-data-partition: str, IndexReference: ObjectReference}\n@optional {x-amz-consistency-level: str, RangesOnIndexedValues: [ObjectAttributeRange], MaxResults: int, NextToken: str}\n@returns(200) {IndexAttachments: [IndexAttachment]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/schema/managed\n@desc Lists the major version families of each managed schema. If a major version ARN is provided as SchemaArn, the minor version revisions in that family are listed instead.\n@optional {SchemaArn: str, NextToken: str, MaxResults: int}\n@returns(200) {SchemaArns: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/attributes\n@desc Lists all attributes that are associated with an object.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {x-amz-consistency-level: str, NextToken: str, MaxResults: int, FacetFilter: SchemaFacet}\n@returns(200) {Attributes: [AttributeKeyAndValue]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/children\n@desc Returns a paginated list of child objects that are associated with a given object.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {x-amz-consistency-level: str, NextToken: str, MaxResults: int}\n@returns(200) {Children: map<str,str>?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/parentpaths\n@desc Retrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects. For more information about objects, see Directory Structure. Use this API to evaluate all parents for an object. The call returns all objects from the root of the directory up to the requested object. The API returns the number of paths based on user-defined MaxResults, in case there are multiple paths to the parent. The order of the paths and nodes returned is consistent among multiple API calls unless the objects are deleted or moved. Paths not leading to the directory root are ignored from the target object.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {PathToObjectIdentifiersList: [PathToObjectIdentifiers]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/parent\n@desc Lists parent objects that are associated with a given object in pagination fashion.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {x-amz-consistency-level: str, NextToken: str, MaxResults: int, IncludeAllLinksToEachParent: bool}\n@returns(200) {Parents: map<str,str>?, NextToken: str?, ParentLinks: [ObjectIdentifierAndLinkNameTuple]?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/object/policy\n@desc Returns policies attached to an object in pagination fashion.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {x-amz-consistency-level: str, NextToken: str, MaxResults: int}\n@returns(200) {AttachedPolicyIds: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/outgoing\n@desc Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {FilterAttributeRanges: [TypedLinkAttributeRange], FilterTypedLink: TypedLinkSchemaAndFacetName, NextToken: str, MaxResults: int, ConsistencyLevel: str}\n@returns(200) {TypedLinkSpecifiers: [TypedLinkSpecifier]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/policy/attachment\n@desc Returns all of the ObjectIdentifiers to which a given policy is attached.\n@required {x-amz-data-partition: str, PolicyReference: ObjectReference}\n@optional {x-amz-consistency-level: str, NextToken: str, MaxResults: int}\n@returns(200) {ObjectIdentifiers: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/schema/published\n@desc Lists the major version families of each published schema. If a major version ARN is provided as SchemaArn, the minor version revisions in that family are listed instead.\n@optional {SchemaArn: str, NextToken: str, MaxResults: int}\n@returns(200) {SchemaArns: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/tags\n@desc Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.\n@required {ResourceArn: str}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {Tags: [Tag]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/facet/attributes\n@desc Returns a paginated list of all attribute definitions for a particular TypedLinkFacet. For more information, see Typed Links.\n@required {x-amz-data-partition: str, Name: str}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {Attributes: [TypedLinkAttributeDefinition]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/facet/list\n@desc Returns a paginated list of TypedLink facet names for a particular schema. For more information, see Typed Links.\n@required {x-amz-data-partition: str}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {FacetNames: [str]?, NextToken: str?}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/policy/lookup\n@desc Lists all policies from the root of the Directory to the object specified. If there are no policies present, an empty list is returned. If policies are present, and if some objects don't have the policies attached, it returns the ObjectIdentifier for such objects. If policies are present, it returns ObjectIdentifier, policyId, and policyType. Paths that don't lead to the root from the target object are ignored. For more information, see Policies.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference}\n@optional {NextToken: str, MaxResults: int}\n@returns(200) {PolicyToPathList: [PolicyToPath]?, NextToken: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/publish\n@desc Publishes a development schema with a major version and a recommended minor version.\n@required {x-amz-data-partition: str, Version: str}\n@optional {MinorVersion: str, Name: str}\n@returns(200) {PublishedSchemaArn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/json\n@desc Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information.\n@required {x-amz-data-partition: str, Document: str}\n@returns(200) {Arn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object/facets/delete\n@desc Removes the specified facet from the specified object.\n@required {x-amz-data-partition: str, SchemaFacet: SchemaFacet, ObjectReference: ObjectReference}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/tags/add\n@desc An API operation for adding tags to a resource.\n@required {ResourceArn: str, Tags: [Tag]}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/tags/remove\n@desc An API operation for removing tags from a resource.\n@required {ResourceArn: str, TagKeys: [str]}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/facet\n@desc Does the following:   Adds new Attributes, Rules, or ObjectTypes.   Updates existing Attributes, Rules, or ObjectTypes.   Deletes existing Attributes, Rules, or ObjectTypes.\n@required {x-amz-data-partition: str, Name: str}\n@optional {AttributeUpdates: [FacetAttributeUpdate], ObjectType: str}\n\n@endpoint POST /amazonclouddirectory/2017-01-11/typedlink/attributes/update\n@desc Updates a given typed link’s attributes. Attributes to be updated must not contribute to the typed link’s identity, as defined by its IdentityAttributeOrder.\n@required {x-amz-data-partition: str, TypedLinkSpecifier: TypedLinkSpecifier, AttributeUpdates: [LinkAttributeUpdate]}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/object/update\n@desc Updates a given object's attributes.\n@required {x-amz-data-partition: str, ObjectReference: ObjectReference, AttributeUpdates: [ObjectAttributeUpdate]}\n@returns(200) {ObjectIdentifier: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/update\n@desc Updates the schema name with a new name. Only development schema names can be updated.\n@required {x-amz-data-partition: str, Name: str}\n@returns(200) {SchemaArn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/typedlink/facet\n@desc Updates a TypedLinkFacet. For more information, see Typed Links.\n@required {x-amz-data-partition: str, Name: str, AttributeUpdates: [TypedLinkFacetAttributeUpdate], IdentityAttributeOrder: [str]}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/upgradeapplied\n@desc Upgrades a single directory in-place using the PublishedSchemaArn with schema updates found in MinorVersion. Backwards-compatible minor version upgrades are instantaneously available for readers on all objects in the directory. Note: This is a synchronous API call and upgrades only one schema on a given directory per call. To upgrade multiple directories from one schema, you would need to call this API on each directory.\n@required {PublishedSchemaArn: str, DirectoryArn: str}\n@optional {DryRun: bool}\n@returns(200) {UpgradedSchemaArn: str?, DirectoryArn: str?}\n\n@endpoint PUT /amazonclouddirectory/2017-01-11/schema/upgradepublished\n@desc Upgrades a published schema under a new minor version revision using the current contents of DevelopmentSchemaArn.\n@required {DevelopmentSchemaArn: str, PublishedSchemaArn: str, MinorVersion: str}\n@optional {DryRun: bool}\n@returns(200) {UpgradedSchemaArn: str?}\n\n@end\n"}