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

Description

Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per Amazon Web Services Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Amazon Web Services Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

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

Synopsis

Creating a Request

data ModifyDefaultCreditSpecification Source #

See: newModifyDefaultCreditSpecification smart constructor.

Constructors

ModifyDefaultCreditSpecification' 

Fields

  • dryRun :: Maybe Bool

    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.

  • instanceFamily :: UnlimitedSupportedInstanceFamily

    The instance family.

  • cpuCredits :: Text

    The credit option for CPU usage of the instance family.

    Valid Values: standard | unlimited

Instances

Instances details
ToHeaders ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

ToPath ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

ToQuery ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

AWSRequest ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Generic ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Associated Types

type Rep ModifyDefaultCreditSpecification :: Type -> Type #

Read ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Show ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

NFData ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Eq ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Hashable ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

type AWSResponse ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

type Rep ModifyDefaultCreditSpecification Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

type Rep ModifyDefaultCreditSpecification = D1 ('MetaData "ModifyDefaultCreditSpecification" "Amazonka.EC2.ModifyDefaultCreditSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyDefaultCreditSpecification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UnlimitedSupportedInstanceFamily) :*: S1 ('MetaSel ('Just "cpuCredits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newModifyDefaultCreditSpecification Source #

Create a value of ModifyDefaultCreditSpecification 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:dryRun:ModifyDefaultCreditSpecification', modifyDefaultCreditSpecification_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.

ModifyDefaultCreditSpecification, modifyDefaultCreditSpecification_instanceFamily - The instance family.

ModifyDefaultCreditSpecification, modifyDefaultCreditSpecification_cpuCredits - The credit option for CPU usage of the instance family.

Valid Values: standard | unlimited

Request Lenses

modifyDefaultCreditSpecification_dryRun :: Lens' ModifyDefaultCreditSpecification (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.

modifyDefaultCreditSpecification_cpuCredits :: Lens' ModifyDefaultCreditSpecification Text Source #

The credit option for CPU usage of the instance family.

Valid Values: standard | unlimited

Destructuring the Response

data ModifyDefaultCreditSpecificationResponse Source #

Constructors

ModifyDefaultCreditSpecificationResponse' 

Fields

Instances

Instances details
Generic ModifyDefaultCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Read ModifyDefaultCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Show ModifyDefaultCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

NFData ModifyDefaultCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

Eq ModifyDefaultCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

type Rep ModifyDefaultCreditSpecificationResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyDefaultCreditSpecification

type Rep ModifyDefaultCreditSpecificationResponse = D1 ('MetaData "ModifyDefaultCreditSpecificationResponse" "Amazonka.EC2.ModifyDefaultCreditSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyDefaultCreditSpecificationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceFamilyCreditSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceFamilyCreditSpecification)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyDefaultCreditSpecificationResponse Source #

Create a value of ModifyDefaultCreditSpecificationResponse 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:instanceFamilyCreditSpecification:ModifyDefaultCreditSpecificationResponse', modifyDefaultCreditSpecificationResponse_instanceFamilyCreditSpecification - The default credit option for CPU usage of the instance family.

$sel:httpStatus:ModifyDefaultCreditSpecificationResponse', modifyDefaultCreditSpecificationResponse_httpStatus - The response's http status code.

Response Lenses