amazonka-clouddirectory-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Data UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

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 # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Show UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Generic UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Associated Types

type Rep UpgradeAppliedSchema :: Type -> Type #

Hashable UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

ToJSON UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

AWSRequest UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Associated Types

type Rs UpgradeAppliedSchema :: Type #

ToHeaders UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

ToPath UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

ToQuery UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

NFData UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Methods

rnf :: UpgradeAppliedSchema -> () #

type Rep UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

type Rep UpgradeAppliedSchema = D1 (MetaData "UpgradeAppliedSchema" "Network.AWS.CloudDirectory.UpgradeAppliedSchema" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "UpgradeAppliedSchema'" PrefixI True) (S1 (MetaSel (Just "_uasDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_uasPublishedSchemaARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_uasDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpgradeAppliedSchema Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

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 # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Data UpgradeAppliedSchemaResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

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 # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Show UpgradeAppliedSchemaResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Generic UpgradeAppliedSchemaResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

Associated Types

type Rep UpgradeAppliedSchemaResponse :: Type -> Type #

NFData UpgradeAppliedSchemaResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

type Rep UpgradeAppliedSchemaResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.UpgradeAppliedSchema

type Rep UpgradeAppliedSchemaResponse = D1 (MetaData "UpgradeAppliedSchemaResponse" "Network.AWS.CloudDirectory.UpgradeAppliedSchema" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "UpgradeAppliedSchemaResponse'" PrefixI True) (S1 (MetaSel (Just "_uasrsDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_uasrsUpgradedSchemaARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.