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 published schema under a new minor version revision using the
current contents of DevelopmentSchemaArn
.
Synopsis
- data UpgradePublishedSchema = UpgradePublishedSchema' {}
- newUpgradePublishedSchema :: Text -> Text -> Text -> UpgradePublishedSchema
- upgradePublishedSchema_dryRun :: Lens' UpgradePublishedSchema (Maybe Bool)
- upgradePublishedSchema_developmentSchemaArn :: Lens' UpgradePublishedSchema Text
- upgradePublishedSchema_publishedSchemaArn :: Lens' UpgradePublishedSchema Text
- upgradePublishedSchema_minorVersion :: Lens' UpgradePublishedSchema Text
- data UpgradePublishedSchemaResponse = UpgradePublishedSchemaResponse' {}
- newUpgradePublishedSchemaResponse :: Int -> UpgradePublishedSchemaResponse
- upgradePublishedSchemaResponse_upgradedSchemaArn :: Lens' UpgradePublishedSchemaResponse (Maybe Text)
- upgradePublishedSchemaResponse_httpStatus :: Lens' UpgradePublishedSchemaResponse Int
Creating a Request
data UpgradePublishedSchema Source #
See: newUpgradePublishedSchema
smart constructor.
UpgradePublishedSchema' | |
|
Instances
newUpgradePublishedSchema Source #
:: Text | |
-> Text | |
-> Text | |
-> UpgradePublishedSchema |
Create a value of UpgradePublishedSchema
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:UpgradePublishedSchema'
, upgradePublishedSchema_dryRun
- Used for testing whether the Development schema provided is backwards
compatible, or not, with the publish schema provided by the user to be
upgraded. If schema compatibility fails, an exception would be thrown
else the call would succeed. This parameter is optional and defaults to
false.
$sel:developmentSchemaArn:UpgradePublishedSchema'
, upgradePublishedSchema_developmentSchemaArn
- The ARN of the development schema with the changes used for the upgrade.
$sel:publishedSchemaArn:UpgradePublishedSchema'
, upgradePublishedSchema_publishedSchemaArn
- The ARN of the published schema to be upgraded.
$sel:minorVersion:UpgradePublishedSchema'
, upgradePublishedSchema_minorVersion
- Identifies the minor version of the published schema that will be
created. This parameter is NOT optional.
Request Lenses
upgradePublishedSchema_dryRun :: Lens' UpgradePublishedSchema (Maybe Bool) Source #
Used for testing whether the Development schema provided is backwards compatible, or not, with the publish schema provided by the user to be upgraded. If schema compatibility fails, an exception would be thrown else the call would succeed. This parameter is optional and defaults to false.
upgradePublishedSchema_developmentSchemaArn :: Lens' UpgradePublishedSchema Text Source #
The ARN of the development schema with the changes used for the upgrade.
upgradePublishedSchema_publishedSchemaArn :: Lens' UpgradePublishedSchema Text Source #
The ARN of the published schema to be upgraded.
upgradePublishedSchema_minorVersion :: Lens' UpgradePublishedSchema Text Source #
Identifies the minor version of the published schema that will be created. This parameter is NOT optional.
Destructuring the Response
data UpgradePublishedSchemaResponse Source #
See: newUpgradePublishedSchemaResponse
smart constructor.
UpgradePublishedSchemaResponse' | |
|
Instances
Eq UpgradePublishedSchemaResponse Source # | |
Read UpgradePublishedSchemaResponse Source # | |
Show UpgradePublishedSchemaResponse Source # | |
Generic UpgradePublishedSchemaResponse Source # | |
NFData UpgradePublishedSchemaResponse Source # | |
Defined in Amazonka.CloudDirectory.UpgradePublishedSchema rnf :: UpgradePublishedSchemaResponse -> () # | |
type Rep UpgradePublishedSchemaResponse Source # | |
Defined in Amazonka.CloudDirectory.UpgradePublishedSchema type Rep UpgradePublishedSchemaResponse = D1 ('MetaData "UpgradePublishedSchemaResponse" "Amazonka.CloudDirectory.UpgradePublishedSchema" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "UpgradePublishedSchemaResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "upgradedSchemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpgradePublishedSchemaResponse Source #
Create a value of UpgradePublishedSchemaResponse
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:upgradedSchemaArn:UpgradePublishedSchemaResponse'
, upgradePublishedSchemaResponse_upgradedSchemaArn
- The ARN of the upgraded schema that is returned as part of the response.
$sel:httpStatus:UpgradePublishedSchemaResponse'
, upgradePublishedSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
upgradePublishedSchemaResponse_upgradedSchemaArn :: Lens' UpgradePublishedSchemaResponse (Maybe Text) Source #
The ARN of the upgraded schema that is returned as part of the response.
upgradePublishedSchemaResponse_httpStatus :: Lens' UpgradePublishedSchemaResponse Int Source #
The response's http status code.