Skip to content

EC2  >  Operations  >  modify_instance_credit_specification

modify_instance_credit_specification

Operation

modify_instance_credit_specification async

modify_instance_credit_specification(input: ModifyInstanceCreditSpecificationInput, plugins: list[Plugin] | None = None) -> ModifyInstanceCreditSpecificationOutput

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.

Parameters:

Name Type Description Default
input ModifyInstanceCreditSpecificationInput

An instance of ModifyInstanceCreditSpecificationInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ModifyInstanceCreditSpecificationOutput

An instance of ModifyInstanceCreditSpecificationOutput.

Input

ModifyInstanceCreditSpecificationInput dataclass

Bases: _SerdeShape

Dataclass for ModifyInstanceCreditSpecificationInput structure.

Attributes

client_token class-attribute instance-attribute
client_token: str | None = ...

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

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks whether you have the required permissions for the operation, 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.

instance_credit_specifications class-attribute instance-attribute
instance_credit_specifications: list[InstanceCreditSpecificationRequest] | None = ...

Information about the credit option for CPU usage.

Output

ModifyInstanceCreditSpecificationOutput dataclass

Bases: _SerdeShape

Dataclass for ModifyInstanceCreditSpecificationOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

successful_instance_credit_specifications class-attribute instance-attribute
successful_instance_credit_specifications: list[SuccessfulInstanceCreditSpecificationItem] | None = ...

Information about the instances whose credit option for CPU usage was successfully modified.

unsuccessful_instance_credit_specifications class-attribute instance-attribute
unsuccessful_instance_credit_specifications: list[UnsuccessfulInstanceCreditSpecificationItem] | None = ...

Information about the instances whose credit option for CPU usage was not modified.