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 |
Edit a service description or use a spec to add and delete service instances.
Existing service instances and the service pipeline can't be edited using this API. They can only be deleted.
Use the description
parameter to modify the description.
Edit the spec
parameter to add or delete instances.
Synopsis
- data UpdateService = UpdateService' {}
- newUpdateService :: Text -> UpdateService
- updateService_spec :: Lens' UpdateService (Maybe Text)
- updateService_description :: Lens' UpdateService (Maybe Text)
- updateService_name :: Lens' UpdateService Text
- data UpdateServiceResponse = UpdateServiceResponse' {
- httpStatus :: Int
- service :: Service
- newUpdateServiceResponse :: Int -> Service -> UpdateServiceResponse
- updateServiceResponse_httpStatus :: Lens' UpdateServiceResponse Int
- updateServiceResponse_service :: Lens' UpdateServiceResponse Service
Creating a Request
data UpdateService Source #
See: newUpdateService
smart constructor.
UpdateService' | |
|
Instances
Create a value of UpdateService
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:UpdateService'
, updateService_spec
- Lists the service instances to add and the existing service instances to
remain. Omit the existing service instances to delete from the list.
Don't include edits to the existing service instances or pipeline.
For more information, see Edit a service in the
AWS Proton Administrator Guide
or the
AWS Proton User Guide.
$sel:description:UpdateService'
, updateService_description
- The edited service description.
$sel:name:UpdateService'
, updateService_name
- The name of the service to edit.
Request Lenses
updateService_spec :: Lens' UpdateService (Maybe Text) Source #
Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the AWS Proton Administrator Guide or the AWS Proton User Guide.
updateService_description :: Lens' UpdateService (Maybe Text) Source #
The edited service description.
updateService_name :: Lens' UpdateService Text Source #
The name of the service to edit.
Destructuring the Response
data UpdateServiceResponse Source #
See: newUpdateServiceResponse
smart constructor.
UpdateServiceResponse' | |
|
Instances
newUpdateServiceResponse Source #
:: Int | |
-> Service | |
-> UpdateServiceResponse |
Create a value of UpdateServiceResponse
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:UpdateServiceResponse'
, updateServiceResponse_httpStatus
- The response's http status code.
$sel:service:UpdateServiceResponse'
, updateServiceResponse_service
- The service detail data that's returned by AWS Proton.
Response Lenses
updateServiceResponse_httpStatus :: Lens' UpdateServiceResponse Int Source #
The response's http status code.
updateServiceResponse_service :: Lens' UpdateServiceResponse Service Source #
The service detail data that's returned by AWS Proton.