modify_instance_credit_specification¶
Operation¶
modify_instance_credit_specification
async
¶
modify_instance_credit_specification(request: ModifyInstanceCreditSpecificationInput | ModifyInstanceCreditSpecificationInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyInstanceCreditSpecificationOutput
modify_instance_credit_specification(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyInstanceCreditSpecificationInputDict]) -> 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 |
|---|---|---|---|
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 |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
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.
Dictionaries¶
ModifyInstanceCreditSpecificationInputDict
¶
Bases: TypedDict
Dictionary form of ModifyInstanceCreditSpecificationInput.
Attributes¶
client_token
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
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
instance-attribute
¶
instance_credit_specifications: Required[Sequence[InstanceCreditSpecificationRequest | InstanceCreditSpecificationRequestDict]]
Information about the credit option for CPU usage.
Output¶
ModifyInstanceCreditSpecificationOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyInstanceCreditSpecificationOutput structure.
Attributes¶
response_metadata
class-attribute
instance-attribute
¶
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.