Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Update a service instance.
There are a few modes for updating a service instance. The
deploymentType
field defines the mode.
You can't update a service instance while its deployment status, or the
deployment status of a component attached to it, is IN_PROGRESS
.
For more information about components, see Proton components in the Proton User Guide.
Synopsis
- data UpdateServiceInstance = UpdateServiceInstance' {}
- newUpdateServiceInstance :: DeploymentUpdateType -> Text -> Text -> UpdateServiceInstance
- updateServiceInstance_spec :: Lens' UpdateServiceInstance (Maybe Text)
- updateServiceInstance_templateMajorVersion :: Lens' UpdateServiceInstance (Maybe Text)
- updateServiceInstance_templateMinorVersion :: Lens' UpdateServiceInstance (Maybe Text)
- updateServiceInstance_deploymentType :: Lens' UpdateServiceInstance DeploymentUpdateType
- updateServiceInstance_name :: Lens' UpdateServiceInstance Text
- updateServiceInstance_serviceName :: Lens' UpdateServiceInstance Text
- data UpdateServiceInstanceResponse = UpdateServiceInstanceResponse' {}
- newUpdateServiceInstanceResponse :: Int -> ServiceInstance -> UpdateServiceInstanceResponse
- updateServiceInstanceResponse_httpStatus :: Lens' UpdateServiceInstanceResponse Int
- updateServiceInstanceResponse_serviceInstance :: Lens' UpdateServiceInstanceResponse ServiceInstance
Creating a Request
data UpdateServiceInstance Source #
See: newUpdateServiceInstance
smart constructor.
UpdateServiceInstance' | |
|
Instances
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:
UpdateServiceInstance
, updateServiceInstance_spec
- The formatted specification that defines the service instance update.
UpdateServiceInstance
, updateServiceInstance_templateMajorVersion
- The major version of the service template to update.
UpdateServiceInstance
, updateServiceInstance_templateMinorVersion
- The minor version of the service template to update.
$sel:deploymentType:UpdateServiceInstance'
, updateServiceInstance_deploymentType
- The deployment type. It defines the mode for updating a service
instance, as follows:
[]
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 major or minor 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 specify a different major version that's higher than the major version in use and a minor version.
UpdateServiceInstance
, updateServiceInstance_name
- The name of the service instance to update.
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_templateMajorVersion :: Lens' UpdateServiceInstance (Maybe Text) Source #
The major version of the service template to update.
updateServiceInstance_templateMinorVersion :: Lens' UpdateServiceInstance (Maybe Text) Source #
The minor version of the service template to update.
updateServiceInstance_deploymentType :: Lens' UpdateServiceInstance DeploymentUpdateType Source #
The deployment type. It defines the mode for updating a service instance, as follows:
[]
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 major or minor 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 specify a different major version that's higher than the major version in use and a minor version.
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.
UpdateServiceInstanceResponse' | |
|
Instances
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 that's returned by Proton.
Response Lenses
updateServiceInstanceResponse_httpStatus :: Lens' UpdateServiceInstanceResponse Int Source #
The response's http status code.
updateServiceInstanceResponse_serviceInstance :: Lens' UpdateServiceInstanceResponse ServiceInstance Source #
The service instance summary data that's returned by Proton.