AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateObject operation.
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.
Namespace: Amazon.CloudDirectory.Model
Assembly: AWSSDK.CloudDirectory.dll
Version: 3.x.y.z
public class CreateObjectRequest : AmazonCloudDirectoryRequest IAmazonWebServiceRequest
The CreateObjectRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
CreateObjectRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
DirectoryArn | System.String |
Gets and sets the property DirectoryArn. The Amazon Resource Name (ARN) that is associated with the Directory in which the object will be created. For more information, see arns. |
![]() |
LinkName | System.String |
Gets and sets the property LinkName. The name of link that is used to attach this object to a parent. |
![]() |
ObjectAttributeList | System.Collections.Generic.List<Amazon.CloudDirectory.Model.AttributeKeyAndValue> |
Gets and sets the property ObjectAttributeList. The attribute map whose attribute ARN contains the key and attribute value as the map value. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
ParentReference | Amazon.CloudDirectory.Model.ObjectReference |
Gets and sets the property ParentReference. If specified, the parent reference to which this object will be attached. |
![]() |
SchemaFacets | System.Collections.Generic.List<Amazon.CloudDirectory.Model.SchemaFacet> |
Gets and sets the property SchemaFacets. A list of schema facets to be associated with the object. Do not provide minor version components. See SchemaFacet for details. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
var client = new AmazonCloudDirectoryClient(); var response = client.CreateObject(new CreateObjectRequest { DirectoryArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8", SchemaFacets = new List<SchemaFacet> { new SchemaFacet { FacetName = "Organization_Person", SchemaArn = "arn:aws:clouddirectory:us-west-2:45132example:directory/AXQXDXvdgkOWktRXV4HnRa8/schema/ExampleOrgPersonSchema/1" } } }); string objectIdentifier = response.ObjectIdentifier;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer