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 |
Pause an active App Runner service. App Runner reduces compute capacity for the service to zero and loses state (for example, ephemeral storage is removed).
This is an asynchronous operation. On a successful call, you can use the
returned OperationId
and the ListOperations call to track the
operation's progress.
Synopsis
- data PauseService = PauseService' {
- serviceArn :: Text
- newPauseService :: Text -> PauseService
- pauseService_serviceArn :: Lens' PauseService Text
- data PauseServiceResponse = PauseServiceResponse' {
- operationId :: Maybe Text
- httpStatus :: Int
- service :: Service
- newPauseServiceResponse :: Int -> Service -> PauseServiceResponse
- pauseServiceResponse_operationId :: Lens' PauseServiceResponse (Maybe Text)
- pauseServiceResponse_httpStatus :: Lens' PauseServiceResponse Int
- pauseServiceResponse_service :: Lens' PauseServiceResponse Service
Creating a Request
data PauseService Source #
See: newPauseService
smart constructor.
PauseService' | |
|
Instances
Create a value of PauseService
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:serviceArn:PauseService'
, pauseService_serviceArn
- The Amazon Resource Name (ARN) of the App Runner service that you want
to pause.
Request Lenses
pauseService_serviceArn :: Lens' PauseService Text Source #
The Amazon Resource Name (ARN) of the App Runner service that you want to pause.
Destructuring the Response
data PauseServiceResponse Source #
See: newPauseServiceResponse
smart constructor.
PauseServiceResponse' | |
|
Instances
newPauseServiceResponse Source #
:: Int | |
-> Service | |
-> PauseServiceResponse |
Create a value of PauseServiceResponse
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:operationId:PauseServiceResponse'
, pauseServiceResponse_operationId
- The unique ID of the asynchronous operation that this request started.
You can use it combined with the ListOperations call to track the
operation's progress.
$sel:httpStatus:PauseServiceResponse'
, pauseServiceResponse_httpStatus
- The response's http status code.
$sel:service:PauseServiceResponse'
, pauseServiceResponse_service
- A description of the App Runner service that this request just paused.
Response Lenses
pauseServiceResponse_operationId :: Lens' PauseServiceResponse (Maybe Text) Source #
The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.
pauseServiceResponse_httpStatus :: Lens' PauseServiceResponse Int Source #
The response's http status code.
pauseServiceResponse_service :: Lens' PauseServiceResponse Service Source #
A description of the App Runner service that this request just paused.