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

Contents

Description

Creates a new schema in a development state. A schema can exist in three phases:

  • Development: This is a mutable phase of the schema. All new schemas are in the development phase. Once the schema is finalized, it can be published.
  • Published: Published schemas are immutable and have a version associated with them.
  • Applied: Applied schemas are mutable in a way that allows you to add new schema facets. You can also add new, nonrequired attributes to existing schema facets. You can apply only published schemas to directories.

Synopsis

Creating a Request

createSchema Source #

Arguments

:: Text

csName

-> CreateSchema 

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

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

  • csName - The name that is associated with the schema. This is unique to each account and in each region.

data CreateSchema Source #

See: createSchema smart constructor.

Instances

Eq CreateSchema Source # 
Data CreateSchema Source # 

Methods

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

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

toConstr :: CreateSchema -> Constr #

dataTypeOf :: CreateSchema -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSchema Source # 
Show CreateSchema Source # 
Generic CreateSchema Source # 

Associated Types

type Rep CreateSchema :: * -> * #

Hashable CreateSchema Source # 
ToJSON CreateSchema Source # 
NFData CreateSchema Source # 

Methods

rnf :: CreateSchema -> () #

AWSRequest CreateSchema Source # 
ToHeaders CreateSchema Source # 
ToPath CreateSchema Source # 
ToQuery CreateSchema Source # 
type Rep CreateSchema Source # 
type Rep CreateSchema = D1 * (MetaData "CreateSchema" "Network.AWS.CloudDirectory.CreateSchema" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" True) (C1 * (MetaCons "CreateSchema'" PrefixI True) (S1 * (MetaSel (Just Symbol "_csName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs CreateSchema Source # 

Request Lenses

csName :: Lens' CreateSchema Text Source #

The name that is associated with the schema. This is unique to each account and in each region.

Destructuring the Response

createSchemaResponse Source #

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

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

  • csrsSchemaARN - The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns .
  • csrsResponseStatus - -- | The response status code.

data CreateSchemaResponse Source #

See: createSchemaResponse smart constructor.

Instances

Eq CreateSchemaResponse Source # 
Data CreateSchemaResponse Source # 

Methods

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

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

toConstr :: CreateSchemaResponse -> Constr #

dataTypeOf :: CreateSchemaResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSchemaResponse Source # 
Show CreateSchemaResponse Source # 
Generic CreateSchemaResponse Source # 
NFData CreateSchemaResponse Source # 

Methods

rnf :: CreateSchemaResponse -> () #

type Rep CreateSchemaResponse Source # 
type Rep CreateSchemaResponse = D1 * (MetaData "CreateSchemaResponse" "Network.AWS.CloudDirectory.CreateSchema" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "CreateSchemaResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csrsSchemaARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

csrsSchemaARN :: Lens' CreateSchemaResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns .

csrsResponseStatus :: Lens' CreateSchemaResponse Int Source #

  • - | The response status code.