Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CloudDirectory

import { CloudDirectory } from "https://aws-api.deno.dev/v0.3/services/clouddirectory.ts?docs=full";
class CloudDirectory {
constructor(apiFactory: client.ApiFactory);
async addFacetToObject(params: AddFacetToObjectRequest, opts?: client.RequestOptions): Promise<void>;
async applySchema(params: ApplySchemaRequest, opts?: client.RequestOptions): Promise<ApplySchemaResponse>;
async attachObject(params: AttachObjectRequest, opts?: client.RequestOptions): Promise<AttachObjectResponse>;
async attachPolicy(params: AttachPolicyRequest, opts?: client.RequestOptions): Promise<void>;
async attachToIndex(params: AttachToIndexRequest, opts?: client.RequestOptions): Promise<AttachToIndexResponse>;
async attachTypedLink(params: AttachTypedLinkRequest, opts?: client.RequestOptions): Promise<AttachTypedLinkResponse>;
async batchRead(params: BatchReadRequest, opts?: client.RequestOptions): Promise<BatchReadResponse>;
async batchWrite(params: BatchWriteRequest, opts?: client.RequestOptions): Promise<BatchWriteResponse>;
async createDirectory(params: CreateDirectoryRequest, opts?: client.RequestOptions): Promise<CreateDirectoryResponse>;
async createFacet(params: CreateFacetRequest, opts?: client.RequestOptions): Promise<void>;
async createIndex(params: CreateIndexRequest, opts?: client.RequestOptions): Promise<CreateIndexResponse>;
async createObject(params: CreateObjectRequest, opts?: client.RequestOptions): Promise<CreateObjectResponse>;
async createSchema(params: CreateSchemaRequest, opts?: client.RequestOptions): Promise<CreateSchemaResponse>;
async createTypedLinkFacet(params: CreateTypedLinkFacetRequest, opts?: client.RequestOptions): Promise<void>;
async deleteDirectory(params: DeleteDirectoryRequest, opts?: client.RequestOptions): Promise<DeleteDirectoryResponse>;
async deleteFacet(params: DeleteFacetRequest, opts?: client.RequestOptions): Promise<void>;
async deleteObject(params: DeleteObjectRequest, opts?: client.RequestOptions): Promise<void>;
async deleteSchema(params: DeleteSchemaRequest, opts?: client.RequestOptions): Promise<DeleteSchemaResponse>;
async deleteTypedLinkFacet(params: DeleteTypedLinkFacetRequest, opts?: client.RequestOptions): Promise<void>;
async detachFromIndex(params: DetachFromIndexRequest, opts?: client.RequestOptions): Promise<DetachFromIndexResponse>;
async detachObject(params: DetachObjectRequest, opts?: client.RequestOptions): Promise<DetachObjectResponse>;
async detachPolicy(params: DetachPolicyRequest, opts?: client.RequestOptions): Promise<void>;
async detachTypedLink(params: DetachTypedLinkRequest, opts?: client.RequestOptions): Promise<void>;
async disableDirectory(params: DisableDirectoryRequest, opts?: client.RequestOptions): Promise<DisableDirectoryResponse>;
async enableDirectory(params: EnableDirectoryRequest, opts?: client.RequestOptions): Promise<EnableDirectoryResponse>;
async getAppliedSchemaVersion(params: GetAppliedSchemaVersionRequest, opts?: client.RequestOptions): Promise<GetAppliedSchemaVersionResponse>;
async getDirectory(params: GetDirectoryRequest, opts?: client.RequestOptions): Promise<GetDirectoryResponse>;
async getFacet(params: GetFacetRequest, opts?: client.RequestOptions): Promise<GetFacetResponse>;
async getLinkAttributes(params: GetLinkAttributesRequest, opts?: client.RequestOptions): Promise<GetLinkAttributesResponse>;
async getObjectAttributes(params: GetObjectAttributesRequest, opts?: client.RequestOptions): Promise<GetObjectAttributesResponse>;
async getObjectInformation(params: GetObjectInformationRequest, opts?: client.RequestOptions): Promise<GetObjectInformationResponse>;
async getSchemaAsJson(params: GetSchemaAsJsonRequest, opts?: client.RequestOptions): Promise<GetSchemaAsJsonResponse>;
async getTypedLinkFacetInformation(params: GetTypedLinkFacetInformationRequest, opts?: client.RequestOptions): Promise<GetTypedLinkFacetInformationResponse>;
async listAppliedSchemaArns(params: ListAppliedSchemaArnsRequest, opts?: client.RequestOptions): Promise<ListAppliedSchemaArnsResponse>;
async listAttachedIndices(params: ListAttachedIndicesRequest, opts?: client.RequestOptions): Promise<ListAttachedIndicesResponse>;
async listDevelopmentSchemaArns(params?: ListDevelopmentSchemaArnsRequest, opts?: client.RequestOptions): Promise<ListDevelopmentSchemaArnsResponse>;
async listDirectories(params?: ListDirectoriesRequest, opts?: client.RequestOptions): Promise<ListDirectoriesResponse>;
async listFacetAttributes(params: ListFacetAttributesRequest, opts?: client.RequestOptions): Promise<ListFacetAttributesResponse>;
async listFacetNames(params: ListFacetNamesRequest, opts?: client.RequestOptions): Promise<ListFacetNamesResponse>;
async listIncomingTypedLinks(params: ListIncomingTypedLinksRequest, opts?: client.RequestOptions): Promise<ListIncomingTypedLinksResponse>;
async listIndex(params: ListIndexRequest, opts?: client.RequestOptions): Promise<ListIndexResponse>;
async listManagedSchemaArns(params?: ListManagedSchemaArnsRequest, opts?: client.RequestOptions): Promise<ListManagedSchemaArnsResponse>;
async listObjectAttributes(params: ListObjectAttributesRequest, opts?: client.RequestOptions): Promise<ListObjectAttributesResponse>;
async listObjectChildren(params: ListObjectChildrenRequest, opts?: client.RequestOptions): Promise<ListObjectChildrenResponse>;
async listObjectParentPaths(params: ListObjectParentPathsRequest, opts?: client.RequestOptions): Promise<ListObjectParentPathsResponse>;
async listObjectParents(params: ListObjectParentsRequest, opts?: client.RequestOptions): Promise<ListObjectParentsResponse>;
async listObjectPolicies(params: ListObjectPoliciesRequest, opts?: client.RequestOptions): Promise<ListObjectPoliciesResponse>;
async listOutgoingTypedLinks(params: ListOutgoingTypedLinksRequest, opts?: client.RequestOptions): Promise<ListOutgoingTypedLinksResponse>;
async listPolicyAttachments(params: ListPolicyAttachmentsRequest, opts?: client.RequestOptions): Promise<ListPolicyAttachmentsResponse>;
async listPublishedSchemaArns(params?: ListPublishedSchemaArnsRequest, opts?: client.RequestOptions): Promise<ListPublishedSchemaArnsResponse>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResponse>;
async listTypedLinkFacetAttributes(params: ListTypedLinkFacetAttributesRequest, opts?: client.RequestOptions): Promise<ListTypedLinkFacetAttributesResponse>;
async listTypedLinkFacetNames(params: ListTypedLinkFacetNamesRequest, opts?: client.RequestOptions): Promise<ListTypedLinkFacetNamesResponse>;
async lookupPolicy(params: LookupPolicyRequest, opts?: client.RequestOptions): Promise<LookupPolicyResponse>;
async publishSchema(params: PublishSchemaRequest, opts?: client.RequestOptions): Promise<PublishSchemaResponse>;
async putSchemaFromJson(params: PutSchemaFromJsonRequest, opts?: client.RequestOptions): Promise<PutSchemaFromJsonResponse>;
async removeFacetFromObject(params: RemoveFacetFromObjectRequest, opts?: client.RequestOptions): Promise<void>;
async tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>;
async updateFacet(params: UpdateFacetRequest, opts?: client.RequestOptions): Promise<void>;
async updateLinkAttributes(params: UpdateLinkAttributesRequest, opts?: client.RequestOptions): Promise<void>;
async updateObjectAttributes(params: UpdateObjectAttributesRequest, opts?: client.RequestOptions): Promise<UpdateObjectAttributesResponse>;
async updateSchema(params: UpdateSchemaRequest, opts?: client.RequestOptions): Promise<UpdateSchemaResponse>;
async updateTypedLinkFacet(params: UpdateTypedLinkFacetRequest, opts?: client.RequestOptions): Promise<void>;
async upgradeAppliedSchema(params: UpgradeAppliedSchemaRequest, opts?: client.RequestOptions): Promise<UpgradeAppliedSchemaResponse>;
async upgradePublishedSchema(params: UpgradePublishedSchemaRequest, opts?: client.RequestOptions): Promise<UpgradePublishedSchemaResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new CloudDirectory(apiFactory: client.ApiFactory)
[src]

§Methods

§
addFacetToObject(params: AddFacetToObjectRequest, opts?: client.RequestOptions): Promise<void>
[src]

Adds a new "Facet" to an object. An object can have more than one facet applied on it.

§

Copies the input published schema, at the specified version, into the "Directory" with the same name and version as that of the published schema.

§

Attaches an existing object to another object. An object can be accessed in two ways:

  1. Using the path
  2. Using ObjectIdentifier
§
attachPolicy(params: AttachPolicyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Attaches a policy object to a regular object. An object can have a limited number of attached policies.

§

Attaches the specified object to the specified index.

§

Performs all the read operations in a batch.

§

Performs all the write operations in a batch. Either all the operations succeed or none.

§

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.

§
createFacet(params: CreateFacetRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a new "Facet" in a schema. Facet creation is allowed only in development or applied schemas.

§

Creates an index object. See Indexing and search for more information.

§

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.

§

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.
§
createTypedLinkFacet(params: CreateTypedLinkFacetRequest, opts?: client.RequestOptions): Promise<void>
[src]

Creates a "TypedLinkFacet". For more information, see Typed Links.

§

Deletes a directory. Only disabled directories can be deleted. A deleted directory cannot be undone. Exercise extreme caution when deleting directories.

§
deleteFacet(params: DeleteFacetRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a given "Facet". All attributes and "Rule"s that are associated with the facet will be deleted. Only development schema facets are allowed deletion.

§
deleteObject(params: DeleteObjectRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

Deletes a given schema. Schemas in a development and published state can only be deleted.

§
deleteTypedLinkFacet(params: DeleteTypedLinkFacetRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes a "TypedLinkFacet". For more information, see Typed Links.

§

Detaches the specified object from the specified index.

§

Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name.

§
detachPolicy(params: DetachPolicyRequest, opts?: client.RequestOptions): Promise<void>
[src]

Detaches a policy from an object.

§

Disables the specified directory. Disabled directories cannot be read or written to. Only enabled directories can be disabled. Disabled directories may be reenabled.

§

Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to.

§

Returns current applied schema version ARN, including the minor version in use.

§

Retrieves metadata about a directory.

§
getFacet(params: GetFacetRequest, opts?: client.RequestOptions): Promise<GetFacetResponse>
[src]

Gets details of the "Facet", such as facet name, attributes, "Rule"s, or ObjectType. You can call this on all kinds of schema facets -- published, development, or applied.

§

Retrieves attributes that are associated with a typed link.

§

Retrieves attributes within a facet that are associated with an object.

§

Retrieves metadata about an object.

§

Retrieves a JSON representation of the schema. See JSON Schema Format for more information.

§

Returns the identity attribute order for a specific "TypedLinkFacet". For more information, see Typed Links.

§

Lists schema major versions applied to a directory. If SchemaArn is provided, lists the minor version.

§

Lists indices attached to the specified object.

§

Retrieves each Amazon Resource Name (ARN) of schemas in the development state.

§

Lists directories created within an account.

§

Retrieves attributes attached to the facet.

§

Retrieves the names of facets that exist in a schema.

§

Lists objects attached to the specified index.

§

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.

§

Lists all attributes that are associated with an object.

§

Returns a paginated list of child objects that are associated with a given object.

§

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.

§

Lists parent objects that are associated with a given object in pagination fashion.

§

Returns policies attached to an object in pagination fashion.

§

Returns all of the ObjectIdentifiers to which a given policy is attached.

§

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.

§

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.

§

Returns a paginated list of all attribute definitions for a particular "TypedLinkFacet". For more information, see Typed Links.

§

Returns a paginated list of TypedLink facet names for a particular schema. For more information, see Typed Links.

§

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.

§

Publishes a development schema with a major version and a recommended minor version.

§

Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information.

§
removeFacetFromObject(params: RemoveFacetFromObjectRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes the specified facet from the specified object.

§
tagResource(params: TagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

An API operation for adding tags to a resource.

§
untagResource(params: UntagResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

An API operation for removing tags from a resource.

§
updateFacet(params: UpdateFacetRequest, opts?: client.RequestOptions): Promise<void>
[src]

Does the following:

  1. Adds new Attributes, Rules, or ObjectTypes.
  2. Updates existing Attributes, Rules, or ObjectTypes.
  3. Deletes existing Attributes, Rules, or ObjectTypes.
§
updateLinkAttributes(params: UpdateLinkAttributesRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

Updates a given object's attributes.

§

Updates the schema name with a new name. Only development schema names can be updated.

§
updateTypedLinkFacet(params: UpdateTypedLinkFacetRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates a "TypedLinkFacet". For more information, see Typed Links.

§

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.

§

Upgrades a published schema under a new minor version revision using the current contents of DevelopmentSchemaArn.

§Static Properties