amazonka-clouddirectory-2.0: Amazon CloudDirectory SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudDirectory.CreateObject

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.

Synopsis

Creating a Request

data CreateObject Source #

See: newCreateObject smart constructor.

Constructors

CreateObject' 

Fields

Instances

Instances details
ToJSON CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

ToHeaders CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

ToPath CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

ToQuery CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

AWSRequest CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Associated Types

type AWSResponse CreateObject #

Generic CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Associated Types

type Rep CreateObject :: Type -> Type #

Read CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Show CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

NFData CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Methods

rnf :: CreateObject -> () #

Eq CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Hashable CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

type AWSResponse CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

type Rep CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

type Rep CreateObject = D1 ('MetaData "CreateObject" "Amazonka.CloudDirectory.CreateObject" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "CreateObject'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "linkName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "objectAttributeList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AttributeKeyAndValue]))) :*: (S1 ('MetaSel ('Just "parentReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObjectReference)) :*: (S1 ('MetaSel ('Just "directoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "schemaFacets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [SchemaFacet])))))

newCreateObject Source #

Create a value of CreateObject with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateObject, createObject_linkName - The name of link that is used to attach this object to a parent.

CreateObject, createObject_objectAttributeList - The attribute map whose attribute ARN contains the key and attribute value as the map value.

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

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

CreateObject, createObject_schemaFacets - A list of schema facets to be associated with the object. Do not provide minor version components. See SchemaFacet for details.

Request Lenses

createObject_linkName :: Lens' CreateObject (Maybe Text) Source #

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

createObject_objectAttributeList :: Lens' CreateObject (Maybe [AttributeKeyAndValue]) Source #

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

createObject_parentReference :: Lens' CreateObject (Maybe ObjectReference) Source #

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

createObject_directoryArn :: Lens' CreateObject Text Source #

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

createObject_schemaFacets :: Lens' CreateObject [SchemaFacet] Source #

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

Destructuring the Response

data CreateObjectResponse Source #

See: newCreateObjectResponse smart constructor.

Constructors

CreateObjectResponse' 

Fields

Instances

Instances details
Generic CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Associated Types

type Rep CreateObjectResponse :: Type -> Type #

Read CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Show CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

NFData CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Methods

rnf :: CreateObjectResponse -> () #

Eq CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

type Rep CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

type Rep CreateObjectResponse = D1 ('MetaData "CreateObjectResponse" "Amazonka.CloudDirectory.CreateObject" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "CreateObjectResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "objectIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateObjectResponse Source #

Create a value of CreateObjectResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateObjectResponse, createObjectResponse_objectIdentifier - The identifier that is associated with the object.

$sel:httpStatus:CreateObjectResponse', createObjectResponse_httpStatus - The response's http status code.

Response Lenses

createObjectResponse_objectIdentifier :: Lens' CreateObjectResponse (Maybe Text) Source #

The identifier that is associated with the object.