Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Modifies the credit option for CPU usage on a running or stopped T2 instance. The credit options are standard
and unlimited
.
For more information, see T2 Instances in the Amazon Elastic Compute Cloud User Guide .
- modifyInstanceCreditSpecification :: ModifyInstanceCreditSpecification
- data ModifyInstanceCreditSpecification
- micsClientToken :: Lens' ModifyInstanceCreditSpecification (Maybe Text)
- micsDryRun :: Lens' ModifyInstanceCreditSpecification (Maybe Bool)
- micsInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecification [InstanceCreditSpecificationRequest]
- modifyInstanceCreditSpecificationResponse :: Int -> ModifyInstanceCreditSpecificationResponse
- data ModifyInstanceCreditSpecificationResponse
- micsrsUnsuccessfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse [UnsuccessfulInstanceCreditSpecificationItem]
- micsrsSuccessfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse [SuccessfulInstanceCreditSpecificationItem]
- micsrsResponseStatus :: Lens' ModifyInstanceCreditSpecificationResponse Int
Creating a Request
modifyInstanceCreditSpecification :: ModifyInstanceCreditSpecification Source #
Creates a value of ModifyInstanceCreditSpecification
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
micsClientToken
- A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency .micsDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.micsInstanceCreditSpecifications
- Information about the credit option for CPU usage.
data ModifyInstanceCreditSpecification Source #
See: modifyInstanceCreditSpecification
smart constructor.
Request Lenses
micsClientToken :: 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 .
micsDryRun :: 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
.
micsInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecification [InstanceCreditSpecificationRequest] Source #
Information about the credit option for CPU usage.
Destructuring the Response
modifyInstanceCreditSpecificationResponse Source #
Creates a value of ModifyInstanceCreditSpecificationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
micsrsUnsuccessfulInstanceCreditSpecifications
- Information about the instances whose credit option for CPU usage was not modified.micsrsSuccessfulInstanceCreditSpecifications
- Information about the instances whose credit option for CPU usage was successfully modified.micsrsResponseStatus
- -- | The response status code.
data ModifyInstanceCreditSpecificationResponse Source #
See: modifyInstanceCreditSpecificationResponse
smart constructor.
Response Lenses
micsrsUnsuccessfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse [UnsuccessfulInstanceCreditSpecificationItem] Source #
Information about the instances whose credit option for CPU usage was not modified.
micsrsSuccessfulInstanceCreditSpecifications :: Lens' ModifyInstanceCreditSpecificationResponse [SuccessfulInstanceCreditSpecificationItem] Source #
Information about the instances whose credit option for CPU usage was successfully modified.
micsrsResponseStatus :: Lens' ModifyInstanceCreditSpecificationResponse Int Source #
- - | The response status code.