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.CreateDirectory

Contents

Description

Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.

Synopsis

Creating a Request

createDirectory Source #

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

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

  • cdName - The name of the Directory . Should be unique per account, per region.
  • cdSchemaARN - The Amazon Resource Name (ARN) of the published schema that will be copied into the data Directory . For more information, see arns .

data CreateDirectory Source #

See: createDirectory smart constructor.

Instances

Eq CreateDirectory Source # 
Data CreateDirectory Source # 

Methods

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

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

toConstr :: CreateDirectory -> Constr #

dataTypeOf :: CreateDirectory -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDirectory Source # 
Show CreateDirectory Source # 
Generic CreateDirectory Source # 
Hashable CreateDirectory Source # 
ToJSON CreateDirectory Source # 
NFData CreateDirectory Source # 

Methods

rnf :: CreateDirectory -> () #

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

Request Lenses

cdName :: Lens' CreateDirectory Text Source #

The name of the Directory . Should be unique per account, per region.

cdSchemaARN :: Lens' CreateDirectory Text Source #

The Amazon Resource Name (ARN) of the published schema that will be copied into the data Directory . For more information, see arns .

Destructuring the Response

createDirectoryResponse Source #

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

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

data CreateDirectoryResponse Source #

See: createDirectoryResponse smart constructor.

Instances

Eq CreateDirectoryResponse Source # 
Data CreateDirectoryResponse Source # 

Methods

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

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

toConstr :: CreateDirectoryResponse -> Constr #

dataTypeOf :: CreateDirectoryResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDirectoryResponse Source # 
Show CreateDirectoryResponse Source # 
Generic CreateDirectoryResponse Source # 
NFData CreateDirectoryResponse Source # 

Methods

rnf :: CreateDirectoryResponse -> () #

type Rep CreateDirectoryResponse Source # 
type Rep CreateDirectoryResponse = D1 (MetaData "CreateDirectoryResponse" "Network.AWS.CloudDirectory.CreateDirectory" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "CreateDirectoryResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_cdrsDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cdrsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cdrsObjectIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cdrsAppliedSchemaARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))

Response Lenses

cdrsDirectoryARN :: Lens' CreateDirectoryResponse Text Source #

The ARN that is associated with the Directory . For more information, see arns .

cdrsObjectIdentifier :: Lens' CreateDirectoryResponse Text Source #

The root object node of the created directory.

cdrsAppliedSchemaARN :: Lens' CreateDirectoryResponse Text Source #

The ARN of the published schema in the Directory . Once a published schema is copied into the directory, it has its own ARN, which is referred to applied schema ARN. For more information, see arns .