libZSservicesZSamazonka-apprunnerZSamazonka-apprunner
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.AppRunner.PauseService

Description

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

Creating a Request

data PauseService Source #

See: newPauseService smart constructor.

Constructors

PauseService' 

Fields

  • serviceArn :: Text

    The Amazon Resource Name (ARN) of the App Runner service that you want to pause.

Instances

Instances details
Eq PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Read PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Show PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Generic PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Associated Types

type Rep PauseService :: Type -> Type #

NFData PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Methods

rnf :: PauseService -> () #

Hashable PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

ToJSON PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

AWSRequest PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Associated Types

type AWSResponse PauseService #

ToHeaders PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

ToPath PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

ToQuery PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

type Rep PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

type Rep PauseService = D1 ('MetaData "PauseService" "Amazonka.AppRunner.PauseService" "libZSservicesZSamazonka-apprunnerZSamazonka-apprunner" 'False) (C1 ('MetaCons "PauseService'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serviceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse PauseService Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

newPauseService Source #

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.

Constructors

PauseServiceResponse' 

Fields

  • operationId :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

  • service :: Service

    A description of the App Runner service that this request just paused.

Instances

Instances details
Eq PauseServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Show PauseServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Generic PauseServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Associated Types

type Rep PauseServiceResponse :: Type -> Type #

NFData PauseServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

Methods

rnf :: PauseServiceResponse -> () #

type Rep PauseServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.PauseService

type Rep PauseServiceResponse = D1 ('MetaData "PauseServiceResponse" "Amazonka.AppRunner.PauseService" "libZSservicesZSamazonka-apprunnerZSamazonka-apprunner" 'False) (C1 ('MetaCons "PauseServiceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Service))))

newPauseServiceResponse Source #

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_service :: Lens' PauseServiceResponse Service Source #

A description of the App Runner service that this request just paused.