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.ModifyInstanceCreditSpecification

Description

Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

For more information, see Burstable performance instances in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data ModifyInstanceCreditSpecification Source #

See: newModifyInstanceCreditSpecification smart constructor.

Constructors

ModifyInstanceCreditSpecification' 

Fields

Instances

Instances details
ToHeaders ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

ToPath ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

ToQuery ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

AWSRequest ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Generic ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Associated Types

type Rep ModifyInstanceCreditSpecification :: Type -> Type #

Read ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Show ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

NFData ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Eq ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Hashable ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

type AWSResponse ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

type Rep ModifyInstanceCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

type Rep ModifyInstanceCreditSpecification = D1 ('MetaData "ModifyInstanceCreditSpecification" "Amazonka.EC2.ModifyInstanceCreditSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyInstanceCreditSpecification'" '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 "instanceCreditSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [InstanceCreditSpecificationRequest]))))

newModifyInstanceCreditSpecification :: ModifyInstanceCreditSpecification Source #

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

ModifyInstanceCreditSpecification, modifyInstanceCreditSpecification_clientToken - A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

$sel:dryRun:ModifyInstanceCreditSpecification', modifyInstanceCreditSpecification_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.

$sel:instanceCreditSpecifications:ModifyInstanceCreditSpecification', modifyInstanceCreditSpecification_instanceCreditSpecifications - Information about the credit option for CPU usage.

Request Lenses

modifyInstanceCreditSpecification_clientToken :: Lens' ModifyInstanceCreditSpecification (Maybe Text) Source #

A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

modifyInstanceCreditSpecification_dryRun :: Lens' ModifyInstanceCreditSpecification (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.

Destructuring the Response

data ModifyInstanceCreditSpecificationResponse Source #

Constructors

ModifyInstanceCreditSpecificationResponse' 

Fields

Instances

Instances details
Generic ModifyInstanceCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Read ModifyInstanceCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Show ModifyInstanceCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

NFData ModifyInstanceCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

Eq ModifyInstanceCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

type Rep ModifyInstanceCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyInstanceCreditSpecification

type Rep ModifyInstanceCreditSpecificationResponse = D1 ('MetaData "ModifyInstanceCreditSpecificationResponse" "Amazonka.EC2.ModifyInstanceCreditSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyInstanceCreditSpecificationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "successfulInstanceCreditSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SuccessfulInstanceCreditSpecificationItem])) :*: (S1 ('MetaSel ('Just "unsuccessfulInstanceCreditSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [UnsuccessfulInstanceCreditSpecificationItem])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newModifyInstanceCreditSpecificationResponse Source #

Create a value of ModifyInstanceCreditSpecificationResponse 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:successfulInstanceCreditSpecifications:ModifyInstanceCreditSpecificationResponse', modifyInstanceCreditSpecificationResponse_successfulInstanceCreditSpecifications - Information about the instances whose credit option for CPU usage was successfully modified.

$sel:unsuccessfulInstanceCreditSpecifications:ModifyInstanceCreditSpecificationResponse', modifyInstanceCreditSpecificationResponse_unsuccessfulInstanceCreditSpecifications - Information about the instances whose credit option for CPU usage was not modified.

$sel:httpStatus:ModifyInstanceCreditSpecificationResponse', modifyInstanceCreditSpecificationResponse_httpStatus - The response's http status code.

Response Lenses