amazonka-clouddirectory-2.0: Amazon CloudDirectory SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudDirectory.UpgradePublishedSchema

Description

Upgrades a published schema under a new minor version revision using the current contents of DevelopmentSchemaArn.

Synopsis

Creating a Request

data UpgradePublishedSchema Source #

See: newUpgradePublishedSchema smart constructor.

Constructors

UpgradePublishedSchema' 

Fields

  • dryRun :: Maybe Bool

    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.

  • developmentSchemaArn :: Text

    The ARN of the development schema with the changes used for the upgrade.

  • publishedSchemaArn :: Text

    The ARN of the published schema to be upgraded.

  • minorVersion :: Text

    Identifies the minor version of the published schema that will be created. This parameter is NOT optional.

Instances

Instances details
ToJSON UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

ToHeaders UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

ToPath UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

ToQuery UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

AWSRequest UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Associated Types

type AWSResponse UpgradePublishedSchema #

Generic UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Associated Types

type Rep UpgradePublishedSchema :: Type -> Type #

Read UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Show UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

NFData UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Methods

rnf :: UpgradePublishedSchema -> () #

Eq UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Hashable UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

type AWSResponse UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

type Rep UpgradePublishedSchema Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

type Rep UpgradePublishedSchema = D1 ('MetaData "UpgradePublishedSchema" "Amazonka.CloudDirectory.UpgradePublishedSchema" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "UpgradePublishedSchema'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "developmentSchemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "publishedSchemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "minorVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpgradePublishedSchema Source #

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.

Constructors

UpgradePublishedSchemaResponse' 

Fields

Instances

Instances details
Generic UpgradePublishedSchemaResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Associated Types

type Rep UpgradePublishedSchemaResponse :: Type -> Type #

Read UpgradePublishedSchemaResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Show UpgradePublishedSchemaResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

NFData UpgradePublishedSchemaResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

Eq UpgradePublishedSchemaResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

type Rep UpgradePublishedSchemaResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.UpgradePublishedSchema

type Rep UpgradePublishedSchemaResponse = D1 ('MetaData "UpgradePublishedSchemaResponse" "Amazonka.CloudDirectory.UpgradePublishedSchema" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" '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.