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 |
Describes the credit option for CPU usage of one or more of your T2 instances. The credit options are standard
and unlimited
.
If you do not specify an instance ID, Amazon EC2 returns only the T2 instances with the unlimited
credit option. If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard
or unlimited
) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a T2 instance, an error is returned.
Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.
For more information, see T2 Instances in the Amazon Elastic Compute Cloud User Guide .
- describeInstanceCreditSpecifications :: DescribeInstanceCreditSpecifications
- data DescribeInstanceCreditSpecifications
- dicsFilters :: Lens' DescribeInstanceCreditSpecifications [Filter]
- dicsNextToken :: Lens' DescribeInstanceCreditSpecifications (Maybe Text)
- dicsInstanceIds :: Lens' DescribeInstanceCreditSpecifications [Text]
- dicsDryRun :: Lens' DescribeInstanceCreditSpecifications (Maybe Bool)
- dicsMaxResults :: Lens' DescribeInstanceCreditSpecifications (Maybe Int)
- describeInstanceCreditSpecificationsResponse :: Int -> DescribeInstanceCreditSpecificationsResponse
- data DescribeInstanceCreditSpecificationsResponse
- dicsrsNextToken :: Lens' DescribeInstanceCreditSpecificationsResponse (Maybe Text)
- dicsrsInstanceCreditSpecifications :: Lens' DescribeInstanceCreditSpecificationsResponse [InstanceCreditSpecification]
- dicsrsResponseStatus :: Lens' DescribeInstanceCreditSpecificationsResponse Int
Creating a Request
describeInstanceCreditSpecifications :: DescribeInstanceCreditSpecifications Source #
Creates a value of DescribeInstanceCreditSpecifications
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dicsFilters
- One or more filters. *instance-id
- The ID of the instance.dicsNextToken
- The token to retrieve the next page of results.dicsInstanceIds
- One or more instance IDs. Default: Describes all your instances. Constraints: Maximum 1000 explicitly specified instance IDs.dicsDryRun
- 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
.dicsMaxResults
- The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returnedNextToken
value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call.
data DescribeInstanceCreditSpecifications Source #
See: describeInstanceCreditSpecifications
smart constructor.
Request Lenses
dicsFilters :: Lens' DescribeInstanceCreditSpecifications [Filter] Source #
One or more filters. * instance-id
- The ID of the instance.
dicsNextToken :: Lens' DescribeInstanceCreditSpecifications (Maybe Text) Source #
The token to retrieve the next page of results.
dicsInstanceIds :: Lens' DescribeInstanceCreditSpecifications [Text] Source #
One or more instance IDs. Default: Describes all your instances. Constraints: Maximum 1000 explicitly specified instance IDs.
dicsDryRun :: Lens' DescribeInstanceCreditSpecifications (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
.
dicsMaxResults :: Lens' DescribeInstanceCreditSpecifications (Maybe Int) Source #
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken
value. This value can be between 5 and 1000. You cannot specify this parameter and the instance IDs parameter in the same call.
Destructuring the Response
describeInstanceCreditSpecificationsResponse Source #
Creates a value of DescribeInstanceCreditSpecificationsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dicsrsNextToken
- The token to use to retrieve the next page of results. This value isnull
when there are no more results to return.dicsrsInstanceCreditSpecifications
- Information about the credit option for CPU usage of an instance.dicsrsResponseStatus
- -- | The response status code.
data DescribeInstanceCreditSpecificationsResponse Source #
See: describeInstanceCreditSpecificationsResponse
smart constructor.
Response Lenses
dicsrsNextToken :: Lens' DescribeInstanceCreditSpecificationsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
dicsrsInstanceCreditSpecifications :: Lens' DescribeInstanceCreditSpecificationsResponse [InstanceCreditSpecification] Source #
Information about the credit option for CPU usage of an instance.
dicsrsResponseStatus :: Lens' DescribeInstanceCreditSpecificationsResponse Int Source #
- - | The response status code.