amazonka-clouddirectory-1.6.1: Amazon CloudDirectory SDK.

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

Network.AWS.CloudDirectory.CreateObject

Contents

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

createObject Source #

Creates a value of CreateObject with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • coParentReference - If specified, the parent reference to which this object will be attached.
  • coObjectAttributeList - The attribute map whose attribute ARN contains the key and attribute value as the map value.
  • coLinkName - The name of link that is used to attach this object to a parent.
  • coDirectoryARN - The Amazon Resource Name (ARN) that is associated with the Directory in which the object will be created. For more information, see arns .
  • coSchemaFacets - A list of schema facets to be associated with the object. Do not provide minor version components. See SchemaFacet for details.

data CreateObject Source #

See: createObject smart constructor.

Instances
Eq CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Data CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateObject -> c CreateObject #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateObject #

toConstr :: CreateObject -> Constr #

dataTypeOf :: CreateObject -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateObject) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateObject) #

gmapT :: (forall b. Data b => b -> b) -> CreateObject -> CreateObject #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateObject -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateObject -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateObject -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateObject -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateObject -> m CreateObject #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateObject -> m CreateObject #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateObject -> m CreateObject #

Read CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Show CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Generic CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Associated Types

type Rep CreateObject :: Type -> Type #

Hashable CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

ToJSON CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

AWSRequest CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Associated Types

type Rs CreateObject :: Type #

ToHeaders CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

ToPath CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

ToQuery CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

NFData CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Methods

rnf :: CreateObject -> () #

type Rep CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

type Rep CreateObject = D1 (MetaData "CreateObject" "Network.AWS.CloudDirectory.CreateObject" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "CreateObject'" PrefixI True) ((S1 (MetaSel (Just "_coParentReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ObjectReference)) :*: S1 (MetaSel (Just "_coObjectAttributeList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AttributeKeyAndValue]))) :*: (S1 (MetaSel (Just "_coLinkName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_coDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_coSchemaFacets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [SchemaFacet])))))
type Rs CreateObject Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Request Lenses

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

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

coObjectAttributeList :: Lens' CreateObject [AttributeKeyAndValue] Source #

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

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

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

coDirectoryARN :: 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 .

coSchemaFacets :: 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

createObjectResponse Source #

Creates a value of CreateObjectResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateObjectResponse Source #

See: createObjectResponse smart constructor.

Instances
Eq CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Data CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateObjectResponse -> c CreateObjectResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateObjectResponse #

toConstr :: CreateObjectResponse -> Constr #

dataTypeOf :: CreateObjectResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateObjectResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateObjectResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateObjectResponse -> CreateObjectResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateObjectResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateObjectResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateObjectResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateObjectResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateObjectResponse -> m CreateObjectResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateObjectResponse -> m CreateObjectResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateObjectResponse -> m CreateObjectResponse #

Read CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Show CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Generic CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Associated Types

type Rep CreateObjectResponse :: Type -> Type #

NFData CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

Methods

rnf :: CreateObjectResponse -> () #

type Rep CreateObjectResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.CreateObject

type Rep CreateObjectResponse = D1 (MetaData "CreateObjectResponse" "Network.AWS.CloudDirectory.CreateObject" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "CreateObjectResponse'" PrefixI True) (S1 (MetaSel (Just "_corsObjectIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_corsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

The identifier that is associated with the object.

corsResponseStatus :: Lens' CreateObjectResponse Int Source #

  • - | The response status code.