libZSservicesZSamazonka-protonZSamazonka-proton
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Proton.UpdateServiceInstance

Description

Update a service instance.

There are four modes for updating a service instance as described in the following. The deploymentType field defines the mode.

[] NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

[] CURRENT_VERSION

In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type.

[] MINOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

[] MAJOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

Synopsis

Creating a Request

data UpdateServiceInstance Source #

See: newUpdateServiceInstance smart constructor.

Constructors

UpdateServiceInstance' 

Fields

  • spec :: Maybe (Sensitive Text)

    The formatted specification that defines the service instance update.

  • templateMinorVersion :: Maybe Text

    The minor version of the service template to update.

  • templateMajorVersion :: Maybe Text

    The major version of the service template to update.

  • deploymentType :: DeploymentUpdateType

    The deployment type.

    There are four modes for updating a service instance as described in the following. The deploymentType field defines the mode.

    [] NONE

    In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

    [] CURRENT_VERSION

    In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type.

    [] MINOR_VERSION

    In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

    [] MAJOR_VERSION

    In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

  • name :: Text

    The name of the service instance to update.

  • serviceName :: Text

    The name of the service that the service instance belongs to.

Instances

Instances details
Eq UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Show UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Generic UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Associated Types

type Rep UpdateServiceInstance :: Type -> Type #

NFData UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Methods

rnf :: UpdateServiceInstance -> () #

Hashable UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

ToJSON UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

AWSRequest UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Associated Types

type AWSResponse UpdateServiceInstance #

ToHeaders UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

ToPath UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

ToQuery UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

type Rep UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

type Rep UpdateServiceInstance = D1 ('MetaData "UpdateServiceInstance" "Amazonka.Proton.UpdateServiceInstance" "libZSservicesZSamazonka-protonZSamazonka-proton" 'False) (C1 ('MetaCons "UpdateServiceInstance'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "spec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "templateMinorVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "templateMajorVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "deploymentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DeploymentUpdateType) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "serviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateServiceInstance Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

newUpdateServiceInstance Source #

Create a value of UpdateServiceInstance 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:spec:UpdateServiceInstance', updateServiceInstance_spec - The formatted specification that defines the service instance update.

$sel:templateMinorVersion:UpdateServiceInstance', updateServiceInstance_templateMinorVersion - The minor version of the service template to update.

$sel:templateMajorVersion:UpdateServiceInstance', updateServiceInstance_templateMajorVersion - The major version of the service template to update.

$sel:deploymentType:UpdateServiceInstance', updateServiceInstance_deploymentType - The deployment type.

There are four modes for updating a service instance as described in the following. The deploymentType field defines the mode.

[] NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

[] CURRENT_VERSION

In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type.

[] MINOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

[] MAJOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

$sel:name:UpdateServiceInstance', updateServiceInstance_name - The name of the service instance to update.

$sel:serviceName:UpdateServiceInstance', updateServiceInstance_serviceName - The name of the service that the service instance belongs to.

Request Lenses

updateServiceInstance_spec :: Lens' UpdateServiceInstance (Maybe Text) Source #

The formatted specification that defines the service instance update.

updateServiceInstance_templateMinorVersion :: Lens' UpdateServiceInstance (Maybe Text) Source #

The minor version of the service template to update.

updateServiceInstance_templateMajorVersion :: Lens' UpdateServiceInstance (Maybe Text) Source #

The major version of the service template to update.

updateServiceInstance_deploymentType :: Lens' UpdateServiceInstance DeploymentUpdateType Source #

The deployment type.

There are four modes for updating a service instance as described in the following. The deploymentType field defines the mode.

[] NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

[] CURRENT_VERSION

In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type.

[] MINOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

[] MAJOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

updateServiceInstance_name :: Lens' UpdateServiceInstance Text Source #

The name of the service instance to update.

updateServiceInstance_serviceName :: Lens' UpdateServiceInstance Text Source #

The name of the service that the service instance belongs to.

Destructuring the Response

data UpdateServiceInstanceResponse Source #

See: newUpdateServiceInstanceResponse smart constructor.

Constructors

UpdateServiceInstanceResponse' 

Fields

Instances

Instances details
Eq UpdateServiceInstanceResponse Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Show UpdateServiceInstanceResponse Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Generic UpdateServiceInstanceResponse Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

Associated Types

type Rep UpdateServiceInstanceResponse :: Type -> Type #

NFData UpdateServiceInstanceResponse Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

type Rep UpdateServiceInstanceResponse Source # 
Instance details

Defined in Amazonka.Proton.UpdateServiceInstance

type Rep UpdateServiceInstanceResponse = D1 ('MetaData "UpdateServiceInstanceResponse" "Amazonka.Proton.UpdateServiceInstance" "libZSservicesZSamazonka-protonZSamazonka-proton" 'False) (C1 ('MetaCons "UpdateServiceInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "serviceInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ServiceInstance)))

newUpdateServiceInstanceResponse Source #

Create a value of UpdateServiceInstanceResponse 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:httpStatus:UpdateServiceInstanceResponse', updateServiceInstanceResponse_httpStatus - The response's http status code.

$sel:serviceInstance:UpdateServiceInstanceResponse', updateServiceInstanceResponse_serviceInstance - The service instance summary data returned by AWS Proton.

Response Lenses