amazonka-clouddirectory-1.6.0: 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.DeleteObject

Contents

Description

Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted.

Synopsis

Creating a Request

deleteObject Source #

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

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

  • doDirectoryARN - The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns .
  • doObjectReference - A reference that identifies the object.

data DeleteObject Source #

See: deleteObject smart constructor.

Instances

Eq DeleteObject Source # 
Data DeleteObject Source # 

Methods

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

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

toConstr :: DeleteObject -> Constr #

dataTypeOf :: DeleteObject -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteObject Source # 
Show DeleteObject Source # 
Generic DeleteObject Source # 

Associated Types

type Rep DeleteObject :: * -> * #

Hashable DeleteObject Source # 
ToJSON DeleteObject Source # 
NFData DeleteObject Source # 

Methods

rnf :: DeleteObject -> () #

AWSRequest DeleteObject Source # 
ToHeaders DeleteObject Source # 
ToPath DeleteObject Source # 
ToQuery DeleteObject Source # 
type Rep DeleteObject Source # 
type Rep DeleteObject = D1 * (MetaData "DeleteObject" "Network.AWS.CloudDirectory.DeleteObject" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "DeleteObject'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_doDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_doObjectReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ObjectReference))))
type Rs DeleteObject Source # 

Request Lenses

doDirectoryARN :: Lens' DeleteObject Text Source #

The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns .

doObjectReference :: Lens' DeleteObject ObjectReference Source #

A reference that identifies the object.

Destructuring the Response

deleteObjectResponse Source #

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

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

data DeleteObjectResponse Source #

See: deleteObjectResponse smart constructor.

Instances

Eq DeleteObjectResponse Source # 
Data DeleteObjectResponse Source # 

Methods

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

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

toConstr :: DeleteObjectResponse -> Constr #

dataTypeOf :: DeleteObjectResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteObjectResponse Source # 
Show DeleteObjectResponse Source # 
Generic DeleteObjectResponse Source # 
NFData DeleteObjectResponse Source # 

Methods

rnf :: DeleteObjectResponse -> () #

type Rep DeleteObjectResponse Source # 
type Rep DeleteObjectResponse = D1 * (MetaData "DeleteObjectResponse" "Network.AWS.CloudDirectory.DeleteObject" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" True) (C1 * (MetaCons "DeleteObjectResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_dorsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

dorsResponseStatus :: Lens' DeleteObjectResponse Int Source #

  • - | The response status code.