amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.RunScheduledInstances

Description

Launches the specified Scheduled Instances.

Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data RunScheduledInstances Source #

Contains the parameters for RunScheduledInstances.

See: newRunScheduledInstances smart constructor.

Constructors

RunScheduledInstances' 

Fields

Instances

Instances details
ToHeaders RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

ToPath RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

ToQuery RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

AWSRequest RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Associated Types

type AWSResponse RunScheduledInstances #

Generic RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Associated Types

type Rep RunScheduledInstances :: Type -> Type #

Read RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Show RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

NFData RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Methods

rnf :: RunScheduledInstances -> () #

Eq RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Hashable RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

type AWSResponse RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

type Rep RunScheduledInstances Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

type Rep RunScheduledInstances = D1 ('MetaData "RunScheduledInstances" "Amazonka.EC2.RunScheduledInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RunScheduledInstances'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "instanceCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "launchSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ScheduledInstancesLaunchSpecification) :*: S1 ('MetaSel ('Just "scheduledInstanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newRunScheduledInstances Source #

Create a value of RunScheduledInstances 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:

RunScheduledInstances, runScheduledInstances_clientToken - Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

$sel:dryRun:RunScheduledInstances', runScheduledInstances_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

RunScheduledInstances, runScheduledInstances_instanceCount - The number of instances.

Default: 1

RunScheduledInstances, runScheduledInstances_launchSpecification - The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.

RunScheduledInstances, runScheduledInstances_scheduledInstanceId - The Scheduled Instance ID.

Request Lenses

runScheduledInstances_clientToken :: Lens' RunScheduledInstances (Maybe Text) Source #

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

runScheduledInstances_dryRun :: Lens' RunScheduledInstances (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

runScheduledInstances_launchSpecification :: Lens' RunScheduledInstances ScheduledInstancesLaunchSpecification Source #

The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.

Destructuring the Response

data RunScheduledInstancesResponse Source #

Contains the output of RunScheduledInstances.

See: newRunScheduledInstancesResponse smart constructor.

Constructors

RunScheduledInstancesResponse' 

Fields

Instances

Instances details
Generic RunScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Associated Types

type Rep RunScheduledInstancesResponse :: Type -> Type #

Read RunScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Show RunScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

NFData RunScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

Eq RunScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

type Rep RunScheduledInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.RunScheduledInstances

type Rep RunScheduledInstancesResponse = D1 ('MetaData "RunScheduledInstancesResponse" "Amazonka.EC2.RunScheduledInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "RunScheduledInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceIdSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRunScheduledInstancesResponse Source #

Create a value of RunScheduledInstancesResponse 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:instanceIdSet:RunScheduledInstancesResponse', runScheduledInstancesResponse_instanceIdSet - The IDs of the newly launched instances.

$sel:httpStatus:RunScheduledInstancesResponse', runScheduledInstancesResponse_httpStatus - The response's http status code.

Response Lenses