libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Read CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Show CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Generic CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Associated Types

type Rep CreateObject :: Type -> Type #

NFData CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Methods

rnf :: CreateObject -> () #

Hashable CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

ToJSON CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

AWSRequest CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Associated Types

type AWSResponse 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

type Rep CreateObject Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

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

Defined in Amazonka.CloudDirectory.CreateObject

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:

$sel:parentReference:CreateObject', createObject_parentReference - If specified, the parent reference to which this object will be attached.

$sel:objectAttributeList:CreateObject', createObject_objectAttributeList - The attribute map whose attribute ARN contains the key and attribute value as the map value.

$sel:linkName:CreateObject', createObject_linkName - The name of link that is used to attach this object to a parent.

$sel:directoryArn: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.

$sel:schemaFacets: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_parentReference :: Lens' CreateObject (Maybe ObjectReference) Source #

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

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

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

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

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

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
Eq CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Read CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Show CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Generic CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Associated Types

type Rep CreateObjectResponse :: Type -> Type #

NFData CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

Methods

rnf :: CreateObjectResponse -> () #

type Rep CreateObjectResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.CreateObject

type Rep CreateObjectResponse = D1 ('MetaData "CreateObjectResponse" "Amazonka.CloudDirectory.CreateObject" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" '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:

$sel:objectIdentifier: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.