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 Elastic Compute Cloud User Guide.
ec2_modify_instance_credit_specification(DryRun, ClientToken,
InstanceCreditSpecifications)
A list with the following syntax:
list(
SuccessfulInstanceCreditSpecifications = list(
list(
InstanceId = "string"
)
),
UnsuccessfulInstanceCreditSpecifications = list(
list(
InstanceId = "string",
Error = list(
Code = "InvalidInstanceID.Malformed"|"InvalidInstanceID.NotFound"|"IncorrectInstanceState"|"InstanceCreditSpecification.NotSupported",
Message = "string"
)
)
)
)
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
.
A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
[required] Information about the credit option for CPU usage.
svc$modify_instance_credit_specification(
DryRun = TRUE|FALSE,
ClientToken = "string",
InstanceCreditSpecifications = list(
list(
InstanceId = "string",
CpuCredits = "string"
)
)
)