Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data UpgradeAppliedSchema = UpgradeAppliedSchema' {}
- newUpgradeAppliedSchema :: Text -> Text -> UpgradeAppliedSchema
- upgradeAppliedSchema_dryRun :: Lens' UpgradeAppliedSchema (Maybe Bool)
- upgradeAppliedSchema_publishedSchemaArn :: Lens' UpgradeAppliedSchema Text
- upgradeAppliedSchema_directoryArn :: Lens' UpgradeAppliedSchema Text
- data UpgradeAppliedSchemaResponse = UpgradeAppliedSchemaResponse' {}
- newUpgradeAppliedSchemaResponse :: Int -> UpgradeAppliedSchemaResponse
- upgradeAppliedSchemaResponse_directoryArn :: Lens' UpgradeAppliedSchemaResponse (Maybe Text)
- upgradeAppliedSchemaResponse_upgradedSchemaArn :: Lens' UpgradeAppliedSchemaResponse (Maybe Text)
- upgradeAppliedSchemaResponse_httpStatus :: Lens' UpgradeAppliedSchemaResponse Int
Creating a Request
data UpgradeAppliedSchema Source #
See: newUpgradeAppliedSchema
smart constructor.
UpgradeAppliedSchema' | |
|
Instances
newUpgradeAppliedSchema Source #
:: Text | |
-> Text | |
-> UpgradeAppliedSchema |
Create a value of UpgradeAppliedSchema
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:UpgradeAppliedSchema'
, upgradeAppliedSchema_dryRun
- 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.
$sel:publishedSchemaArn:UpgradeAppliedSchema'
, upgradeAppliedSchema_publishedSchemaArn
- The revision of the published schema to upgrade the directory to.
$sel:directoryArn:UpgradeAppliedSchema'
, upgradeAppliedSchema_directoryArn
- The ARN for the directory to which the upgraded schema will be applied.
Request Lenses
upgradeAppliedSchema_dryRun :: 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.
upgradeAppliedSchema_publishedSchemaArn :: Lens' UpgradeAppliedSchema Text Source #
The revision of the published schema to upgrade the directory to.
upgradeAppliedSchema_directoryArn :: Lens' UpgradeAppliedSchema Text Source #
The ARN for the directory to which the upgraded schema will be applied.
Destructuring the Response
data UpgradeAppliedSchemaResponse Source #
See: newUpgradeAppliedSchemaResponse
smart constructor.
UpgradeAppliedSchemaResponse' | |
|
Instances
newUpgradeAppliedSchemaResponse Source #
Create a value of UpgradeAppliedSchemaResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:directoryArn:UpgradeAppliedSchema'
, upgradeAppliedSchemaResponse_directoryArn
- The ARN of the directory that is returned as part of the response.
$sel:upgradedSchemaArn:UpgradeAppliedSchemaResponse'
, upgradeAppliedSchemaResponse_upgradedSchemaArn
- The ARN of the upgraded schema that is returned as part of the response.
$sel:httpStatus:UpgradeAppliedSchemaResponse'
, upgradeAppliedSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
upgradeAppliedSchemaResponse_directoryArn :: Lens' UpgradeAppliedSchemaResponse (Maybe Text) Source #
The ARN of the directory that is returned as part of the response.
upgradeAppliedSchemaResponse_upgradedSchemaArn :: Lens' UpgradeAppliedSchemaResponse (Maybe Text) Source #
The ARN of the upgraded schema that is returned as part of the response.
upgradeAppliedSchemaResponse_httpStatus :: Lens' UpgradeAppliedSchemaResponse Int Source #
The response's http status code.