You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudDirectory::Types::CreateObjectRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb

Overview

Note:

When making an API call, you may pass CreateObjectRequest data as a hash:

{
  directory_arn: "Arn", # required
  schema_facets: [ # required
    {
      schema_arn: "Arn",
      facet_name: "FacetName",
    },
  ],
  object_attribute_list: [
    {
      key: { # required
        schema_arn: "Arn", # required
        facet_name: "FacetName", # required
        name: "AttributeName", # required
      },
      value: { # required
        string_value: "StringAttributeValue",
        binary_value: "data",
        boolean_value: false,
        number_value: "NumberAttributeValue",
        datetime_value: Time.now,
      },
    },
  ],
  parent_reference: {
    selector: "SelectorObjectReference",
  },
  link_name: "LinkName",
}

Instance Attribute Summary collapse

Instance Attribute Details

#directory_arnString

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

Returns:

  • (String)


3401
3402
3403
3404
3405
3406
3407
3408
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 3401

class CreateObjectRequest < Struct.new(
  :directory_arn,
  :schema_facets,
  :object_attribute_list,
  :parent_reference,
  :link_name)
  include Aws::Structure
end

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

Returns:

  • (String)


3401
3402
3403
3404
3405
3406
3407
3408
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 3401

class CreateObjectRequest < Struct.new(
  :directory_arn,
  :schema_facets,
  :object_attribute_list,
  :parent_reference,
  :link_name)
  include Aws::Structure
end

#object_attribute_listArray<Types::AttributeKeyAndValue>

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

Returns:



3401
3402
3403
3404
3405
3406
3407
3408
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 3401

class CreateObjectRequest < Struct.new(
  :directory_arn,
  :schema_facets,
  :object_attribute_list,
  :parent_reference,
  :link_name)
  include Aws::Structure
end

#parent_referenceTypes::ObjectReference

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



3401
3402
3403
3404
3405
3406
3407
3408
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 3401

class CreateObjectRequest < Struct.new(
  :directory_arn,
  :schema_facets,
  :object_attribute_list,
  :parent_reference,
  :link_name)
  include Aws::Structure
end

#schema_facetsArray<Types::SchemaFacet>

A list of schema facets to be associated with the object that contains SchemaArn and facet name. For more information, see arns.

Returns:



3401
3402
3403
3404
3405
3406
3407
3408
# File 'gems/aws-sdk-clouddirectory/lib/aws-sdk-clouddirectory/types.rb', line 3401

class CreateObjectRequest < Struct.new(
  :directory_arn,
  :schema_facets,
  :object_attribute_list,
  :parent_reference,
  :link_name)
  include Aws::Structure
end