amazonka-clouddirectory-1.5.0: Amazon CloudDirectory SDK.

Copyright(c) 2013-2017 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.AttachObject

Contents

Description

Attaches an existing object to another object. An object can be accessed in two ways:

  • Using the path
  • Using ObjectIdentifier

Synopsis

Creating a Request

attachObject Source #

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

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

  • aoDirectoryARN - Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns .
  • aoParentReference - The parent object reference.
  • aoChildReference - The child object reference to be attached to the object.
  • aoLinkName - The link name with which the child object is attached to the parent.

data AttachObject Source #

See: attachObject smart constructor.

Instances

Eq AttachObject Source # 
Data AttachObject Source # 

Methods

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

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

toConstr :: AttachObject -> Constr #

dataTypeOf :: AttachObject -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachObject Source # 
Show AttachObject Source # 
Generic AttachObject Source # 

Associated Types

type Rep AttachObject :: * -> * #

Hashable AttachObject Source # 
ToJSON AttachObject Source # 
NFData AttachObject Source # 

Methods

rnf :: AttachObject -> () #

AWSRequest AttachObject Source # 
ToQuery AttachObject Source # 
ToPath AttachObject Source # 
ToHeaders AttachObject Source # 
type Rep AttachObject Source # 
type Rep AttachObject = D1 (MetaData "AttachObject" "Network.AWS.CloudDirectory.AttachObject" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "AttachObject'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_aoDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_aoParentReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference))) ((:*:) (S1 (MetaSel (Just Symbol "_aoChildReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference)) (S1 (MetaSel (Just Symbol "_aoLinkName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs AttachObject Source # 

Request Lenses

aoDirectoryARN :: Lens' AttachObject Text Source #

Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns .

aoChildReference :: Lens' AttachObject ObjectReference Source #

The child object reference to be attached to the object.

aoLinkName :: Lens' AttachObject Text Source #

The link name with which the child object is attached to the parent.

Destructuring the Response

attachObjectResponse Source #

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

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

data AttachObjectResponse Source #

See: attachObjectResponse smart constructor.

Instances

Eq AttachObjectResponse Source # 
Data AttachObjectResponse Source # 

Methods

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

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

toConstr :: AttachObjectResponse -> Constr #

dataTypeOf :: AttachObjectResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachObjectResponse Source # 
Show AttachObjectResponse Source # 
Generic AttachObjectResponse Source # 
NFData AttachObjectResponse Source # 

Methods

rnf :: AttachObjectResponse -> () #

type Rep AttachObjectResponse Source # 
type Rep AttachObjectResponse = D1 (MetaData "AttachObjectResponse" "Network.AWS.CloudDirectory.AttachObject" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "AttachObjectResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aorsAttachedObjectIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_aorsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

aorsAttachedObjectIdentifier :: Lens' AttachObjectResponse (Maybe Text) Source #

The attached ObjectIdentifier , which is the child ObjectIdentifier .

aorsResponseStatus :: Lens' AttachObjectResponse Int Source #

  • - | The response status code.