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

Contents

Description

Upgrades a single directory in-place using the PublishedSchemaArn with schema updates found in MinorVersion . Backwards-compatible minor version upgrades are instantaneously available for readers on all objects in the directory. Note: This is a synchronous API call and upgrades only one schema on a given directory per call. To upgrade multiple directories from one schema, you would need to call this API on each directory.

Synopsis

Creating a Request

upgradeAppliedSchema Source #

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

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

  • uasDryRun - Used for testing whether the major version schemas are backward compatible or not. If schema compatibility fails, an exception would be thrown else the call would succeed but no changes will be saved. This parameter is optional.
  • uasPublishedSchemaARN - The revision of the published schema to upgrade the directory to.
  • uasDirectoryARN - The ARN for the directory to which the upgraded schema will be applied.

data UpgradeAppliedSchema Source #

See: upgradeAppliedSchema smart constructor.

Instances

Eq UpgradeAppliedSchema Source # 
Data UpgradeAppliedSchema Source # 

Methods

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

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

toConstr :: UpgradeAppliedSchema -> Constr #

dataTypeOf :: UpgradeAppliedSchema -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: UpgradeAppliedSchema -> () #

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

Request Lenses

uasDryRun :: Lens' UpgradeAppliedSchema (Maybe Bool) Source #

Used for testing whether the major version schemas are backward compatible or not. If schema compatibility fails, an exception would be thrown else the call would succeed but no changes will be saved. This parameter is optional.

uasPublishedSchemaARN :: Lens' UpgradeAppliedSchema Text Source #

The revision of the published schema to upgrade the directory to.

uasDirectoryARN :: Lens' UpgradeAppliedSchema Text Source #

The ARN for the directory to which the upgraded schema will be applied.

Destructuring the Response

upgradeAppliedSchemaResponse Source #

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

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

data UpgradeAppliedSchemaResponse Source #

See: upgradeAppliedSchemaResponse smart constructor.

Instances

Eq UpgradeAppliedSchemaResponse Source # 
Data UpgradeAppliedSchemaResponse Source # 

Methods

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

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

toConstr :: UpgradeAppliedSchemaResponse -> Constr #

dataTypeOf :: UpgradeAppliedSchemaResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpgradeAppliedSchemaResponse Source # 
Show UpgradeAppliedSchemaResponse Source # 
Generic UpgradeAppliedSchemaResponse Source # 
NFData UpgradeAppliedSchemaResponse Source # 
type Rep UpgradeAppliedSchemaResponse Source # 
type Rep UpgradeAppliedSchemaResponse = D1 * (MetaData "UpgradeAppliedSchemaResponse" "Network.AWS.CloudDirectory.UpgradeAppliedSchema" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "UpgradeAppliedSchemaResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uasrsDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uasrsUpgradedSchemaARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_uasrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

uasrsDirectoryARN :: Lens' UpgradeAppliedSchemaResponse (Maybe Text) Source #

The ARN of the directory that is returned as part of the response.

uasrsUpgradedSchemaARN :: Lens' UpgradeAppliedSchemaResponse (Maybe Text) Source #

The ARN of the upgraded schema that is returned as part of the response.