libZSservicesZSamazonka-kinesisanalyticsv2ZSamazonka-kinesisanalyticsv2
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.KinesisAnalyticsV2.StopApplication

Description

Stops the application from processing data. You can stop an application only if it is in the running status, unless you set the Force parameter to true.

You can use the DescribeApplication operation to find the application status.

Kinesis Data Analytics takes a snapshot when the application is stopped, unless Force is set to true.

Synopsis

Creating a Request

data StopApplication Source #

See: newStopApplication smart constructor.

Constructors

StopApplication' 

Fields

  • force :: Maybe Bool

    Set to true to force the application to stop. If you set Force to true, Kinesis Data Analytics stops the application without taking a snapshot.

    Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.

    You can only force stop a Flink-based Kinesis Data Analytics application. You can't force stop a SQL-based Kinesis Data Analytics application.

    The application must be in the STARTING, UPDATING, STOPPING, AUTOSCALING, or RUNNING status.

  • applicationName :: Text

    The name of the running application to stop.

Instances

Instances details
Eq StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Read StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Show StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Generic StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Associated Types

type Rep StopApplication :: Type -> Type #

NFData StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Methods

rnf :: StopApplication -> () #

Hashable StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

ToJSON StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

AWSRequest StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Associated Types

type AWSResponse StopApplication #

ToHeaders StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

ToPath StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

ToQuery StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

type Rep StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

type Rep StopApplication = D1 ('MetaData "StopApplication" "Amazonka.KinesisAnalyticsV2.StopApplication" "libZSservicesZSamazonka-kinesisanalyticsv2ZSamazonka-kinesisanalyticsv2" 'False) (C1 ('MetaCons "StopApplication'" 'PrefixI 'True) (S1 ('MetaSel ('Just "force") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "applicationName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse StopApplication Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

newStopApplication Source #

Create a value of StopApplication 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:force:StopApplication', stopApplication_force - Set to true to force the application to stop. If you set Force to true, Kinesis Data Analytics stops the application without taking a snapshot.

Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.

You can only force stop a Flink-based Kinesis Data Analytics application. You can't force stop a SQL-based Kinesis Data Analytics application.

The application must be in the STARTING, UPDATING, STOPPING, AUTOSCALING, or RUNNING status.

$sel:applicationName:StopApplication', stopApplication_applicationName - The name of the running application to stop.

Request Lenses

stopApplication_force :: Lens' StopApplication (Maybe Bool) Source #

Set to true to force the application to stop. If you set Force to true, Kinesis Data Analytics stops the application without taking a snapshot.

Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate processing of data during application restarts, we recommend you to take frequent snapshots of your application.

You can only force stop a Flink-based Kinesis Data Analytics application. You can't force stop a SQL-based Kinesis Data Analytics application.

The application must be in the STARTING, UPDATING, STOPPING, AUTOSCALING, or RUNNING status.

stopApplication_applicationName :: Lens' StopApplication Text Source #

The name of the running application to stop.

Destructuring the Response

data StopApplicationResponse Source #

See: newStopApplicationResponse smart constructor.

Constructors

StopApplicationResponse' 

Fields

Instances

Instances details
Eq StopApplicationResponse Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Read StopApplicationResponse Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Show StopApplicationResponse Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Generic StopApplicationResponse Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Associated Types

type Rep StopApplicationResponse :: Type -> Type #

NFData StopApplicationResponse Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

Methods

rnf :: StopApplicationResponse -> () #

type Rep StopApplicationResponse Source # 
Instance details

Defined in Amazonka.KinesisAnalyticsV2.StopApplication

type Rep StopApplicationResponse = D1 ('MetaData "StopApplicationResponse" "Amazonka.KinesisAnalyticsV2.StopApplication" "libZSservicesZSamazonka-kinesisanalyticsv2ZSamazonka-kinesisanalyticsv2" 'False) (C1 ('MetaCons "StopApplicationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newStopApplicationResponse Source #

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

Response Lenses