Skip to content

Create Object

clouddirectory_create_object R Documentation

Creates an object in a Directory

Description

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.

Usage

clouddirectory_create_object(DirectoryArn, SchemaFacets,
  ObjectAttributeList, ParentReference, LinkName)

Arguments

DirectoryArn

[required] The Amazon Resource Name (ARN) that is associated with the Directory in which the object will be created. For more information, see arns.

SchemaFacets

[required] A list of schema facets to be associated with the object. Do not provide minor version components. See SchemaFacet for details.

ObjectAttributeList

The attribute map whose attribute ARN contains the key and attribute value as the map value.

ParentReference

If specified, the parent reference to which this object will be attached.

LinkName

The name of link that is used to attach this object to a parent.

Value

A list with the following syntax:

list(
  ObjectIdentifier = "string"
)

Request syntax

svc$create_object(
  DirectoryArn = "string",
  SchemaFacets = list(
    list(
      SchemaArn = "string",
      FacetName = "string"
    )
  ),
  ObjectAttributeList = list(
    list(
      Key = list(
        SchemaArn = "string",
        FacetName = "string",
        Name = "string"
      ),
      Value = list(
        StringValue = "string",
        BinaryValue = raw,
        BooleanValue = TRUE|FALSE,
        NumberValue = "string",
        DatetimeValue = as.POSIXct(
          "2015-01-01"
        )
      )
    )
  ),
  ParentReference = list(
    Selector = "string"
  ),
  LinkName = "string"
)