Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ModifyInstanceCreditSpecification = ModifyInstanceCreditSpecification' {}
- newModifyInstanceCreditSpecification :: ModifyInstanceCreditSpecification
- modifyInstanceCreditSpecification_clientToken :: Lens' ModifyInstanceCreditSpecification (Maybe Text)
- modifyInstanceCreditSpecification_dryRun :: Lens' ModifyInstanceCreditSpecification (Maybe Bool)
- modifyInstanceCreditSpecification_instanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecification [InstanceCreditSpecificationRequest]
- data ModifyInstanceCreditSpecificationResponse = ModifyInstanceCreditSpecificationResponse' {}
- newModifyInstanceCreditSpecificationResponse :: Int -> ModifyInstanceCreditSpecificationResponse
- modifyInstanceCreditSpecificationResponse_successfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse (Maybe [SuccessfulInstanceCreditSpecificationItem])
- modifyInstanceCreditSpecificationResponse_unsuccessfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse (Maybe [UnsuccessfulInstanceCreditSpecificationItem])
- modifyInstanceCreditSpecificationResponse_httpStatus :: Lens' ModifyInstanceCreditSpecificationResponse Int
Creating a Request
data ModifyInstanceCreditSpecification Source #
See: newModifyInstanceCreditSpecification
smart constructor.
ModifyInstanceCreditSpecification' | |
|
Instances
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
.
modifyInstanceCreditSpecification_instanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecification [InstanceCreditSpecificationRequest] Source #
Information about the credit option for CPU usage.
Destructuring the Response
data ModifyInstanceCreditSpecificationResponse Source #
See: newModifyInstanceCreditSpecificationResponse
smart constructor.
ModifyInstanceCreditSpecificationResponse' | |
|
Instances
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
modifyInstanceCreditSpecificationResponse_successfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse (Maybe [SuccessfulInstanceCreditSpecificationItem]) Source #
Information about the instances whose credit option for CPU usage was successfully modified.
modifyInstanceCreditSpecificationResponse_unsuccessfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse (Maybe [UnsuccessfulInstanceCreditSpecificationItem]) Source #
Information about the instances whose credit option for CPU usage was not modified.
modifyInstanceCreditSpecificationResponse_httpStatus :: Lens' ModifyInstanceCreditSpecificationResponse Int Source #
The response's http status code.