Copyright | (c) 2013-2021 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 |
Derived from API version 2017-07-25
of the AWS service descriptions, licensed under Apache 2.0.
Elastic Inference public APIs.
Synopsis
- defaultService :: Service
- _InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError
- data ListTagsForResource = ListTagsForResource' Text
- newListTagsForResource :: Text -> ListTagsForResource
- data ListTagsForResourceResponse = ListTagsForResourceResponse' (Maybe (HashMap Text Text)) Int
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- data DescribeAcceleratorOfferings = DescribeAcceleratorOfferings' (Maybe [Text]) LocationType
- newDescribeAcceleratorOfferings :: LocationType -> DescribeAcceleratorOfferings
- data DescribeAcceleratorOfferingsResponse = DescribeAcceleratorOfferingsResponse' (Maybe [AcceleratorTypeOffering]) Int
- newDescribeAcceleratorOfferingsResponse :: Int -> DescribeAcceleratorOfferingsResponse
- data DescribeAccelerators = DescribeAccelerators' (Maybe [Filter]) (Maybe Text) (Maybe Natural) (Maybe [Text])
- newDescribeAccelerators :: DescribeAccelerators
- data DescribeAcceleratorsResponse = DescribeAcceleratorsResponse' (Maybe [ElasticInferenceAccelerator]) (Maybe Text) Int
- newDescribeAcceleratorsResponse :: Int -> DescribeAcceleratorsResponse
- data TagResource = TagResource' Text (HashMap Text Text)
- newTagResource :: Text -> TagResource
- data TagResourceResponse = TagResourceResponse' Int
- newTagResourceResponse :: Int -> TagResourceResponse
- data UntagResource = UntagResource' Text (NonEmpty Text)
- newUntagResource :: Text -> NonEmpty Text -> UntagResource
- data UntagResourceResponse = UntagResourceResponse' Int
- newUntagResourceResponse :: Int -> UntagResourceResponse
- data DescribeAcceleratorTypes = DescribeAcceleratorTypes' {
- newDescribeAcceleratorTypes :: DescribeAcceleratorTypes
- data DescribeAcceleratorTypesResponse = DescribeAcceleratorTypesResponse' (Maybe [AcceleratorType]) Int
- newDescribeAcceleratorTypesResponse :: Int -> DescribeAcceleratorTypesResponse
- newtype LocationType where
- LocationType' { }
- pattern LocationType_Availability_zone :: LocationType
- pattern LocationType_Availability_zone_id :: LocationType
- pattern LocationType_Region :: LocationType
- data AcceleratorType = AcceleratorType' (Maybe [KeyValuePair]) (Maybe MemoryInfo) (Maybe Text)
- newAcceleratorType :: AcceleratorType
- data AcceleratorTypeOffering = AcceleratorTypeOffering' (Maybe Text) (Maybe Text) (Maybe LocationType)
- newAcceleratorTypeOffering :: AcceleratorTypeOffering
- data ElasticInferenceAccelerator = ElasticInferenceAccelerator' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe ElasticInferenceAcceleratorHealth) (Maybe Text)
- newElasticInferenceAccelerator :: ElasticInferenceAccelerator
- data ElasticInferenceAcceleratorHealth = ElasticInferenceAcceleratorHealth' (Maybe Text)
- newElasticInferenceAcceleratorHealth :: ElasticInferenceAcceleratorHealth
- data Filter = Filter' (Maybe [Text]) (Maybe Text)
- newFilter :: Filter
- data KeyValuePair = KeyValuePair' (Maybe Int) (Maybe Text)
- newKeyValuePair :: KeyValuePair
- data MemoryInfo = MemoryInfo' (Maybe Int)
- newMemoryInfo :: MemoryInfo
Service Configuration
defaultService :: Service Source #
API version 2017-07-25
of the Amazon Elastic Inference SDK configuration.
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by ElasticInference
.
InternalServerException
_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Raised when an unexpected error occurred during request processing.
ResourceNotFoundException
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Raised when the requested resource cannot be found.
BadRequestException
_BadRequestException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Raised when a malformed input has been provided to the API.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
ListTagsForResource
data ListTagsForResource Source #
See: newListTagsForResource
smart constructor.
Instances
newListTagsForResource Source #
Create a value of ListTagsForResource
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:resourceArn:ListTagsForResource'
, listTagsForResource_resourceArn
- The ARN of the Elastic Inference Accelerator to list the tags for.
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse
smart constructor.
Instances
newListTagsForResourceResponse Source #
Create a value of ListTagsForResourceResponse
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:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- The tags of the Elastic Inference Accelerator.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
DescribeAcceleratorOfferings
data DescribeAcceleratorOfferings Source #
See: newDescribeAcceleratorOfferings
smart constructor.
Instances
newDescribeAcceleratorOfferings Source #
Create a value of DescribeAcceleratorOfferings
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:acceleratorTypes:DescribeAcceleratorOfferings'
, describeAcceleratorOfferings_acceleratorTypes
- The list of accelerator types to describe.
$sel:locationType:DescribeAcceleratorOfferings'
, describeAcceleratorOfferings_locationType
- The location type that you want to describe accelerator type offerings
for. It can assume the following values: region: will return the
accelerator type offering at the regional level. availability-zone: will
return the accelerator type offering at the availability zone level.
availability-zone-id: will return the accelerator type offering at the
availability zone level returning the availability zone id.
data DescribeAcceleratorOfferingsResponse Source #
See: newDescribeAcceleratorOfferingsResponse
smart constructor.
Instances
newDescribeAcceleratorOfferingsResponse Source #
Create a value of DescribeAcceleratorOfferingsResponse
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:acceleratorTypeOfferings:DescribeAcceleratorOfferingsResponse'
, describeAcceleratorOfferingsResponse_acceleratorTypeOfferings
- The list of accelerator type offerings for a specific location.
$sel:httpStatus:DescribeAcceleratorOfferingsResponse'
, describeAcceleratorOfferingsResponse_httpStatus
- The response's http status code.
DescribeAccelerators (Paginated)
data DescribeAccelerators Source #
See: newDescribeAccelerators
smart constructor.
Instances
newDescribeAccelerators :: DescribeAccelerators Source #
Create a value of DescribeAccelerators
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:filters:DescribeAccelerators'
, describeAccelerators_filters
- One or more filters. Filter names and values are case-sensitive. Valid
filter names are: accelerator-types: can provide a list of accelerator
type names to filter for. instance-id: can provide a list of EC2
instance ids to filter for.
$sel:nextToken:DescribeAccelerators'
, describeAccelerators_nextToken
- A token to specify where to start paginating. This is the NextToken from
a previously truncated response.
$sel:maxResults:DescribeAccelerators'
, describeAccelerators_maxResults
- The total number of items to return in the command's output. If the
total number of items available is more than the value specified, a
NextToken is provided in the command's output. To resume pagination,
provide the NextToken value in the starting-token argument of a
subsequent command. Do not use the NextToken response element directly
outside of the AWS CLI.
$sel:acceleratorIds:DescribeAccelerators'
, describeAccelerators_acceleratorIds
- The IDs of the accelerators to describe.
data DescribeAcceleratorsResponse Source #
See: newDescribeAcceleratorsResponse
smart constructor.
Instances
newDescribeAcceleratorsResponse Source #
Create a value of DescribeAcceleratorsResponse
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:acceleratorSet:DescribeAcceleratorsResponse'
, describeAcceleratorsResponse_acceleratorSet
- The details of the Elastic Inference Accelerators.
$sel:nextToken:DescribeAccelerators'
, describeAcceleratorsResponse_nextToken
- A token to specify where to start paginating. This is the NextToken from
a previously truncated response.
$sel:httpStatus:DescribeAcceleratorsResponse'
, describeAcceleratorsResponse_httpStatus
- The response's http status code.
TagResource
data TagResource Source #
See: newTagResource
smart constructor.
Instances
Create a value of TagResource
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:resourceArn:TagResource'
, tagResource_resourceArn
- The ARN of the Elastic Inference Accelerator to tag.
$sel:tags:TagResource'
, tagResource_tags
- The tags to add to the Elastic Inference Accelerator.
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
Instances
newTagResourceResponse Source #
Create a value of TagResourceResponse
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:httpStatus:TagResourceResponse'
, tagResourceResponse_httpStatus
- The response's http status code.
UntagResource
data UntagResource Source #
See: newUntagResource
smart constructor.
Instances
Create a value of UntagResource
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:resourceArn:UntagResource'
, untagResource_resourceArn
- The ARN of the Elastic Inference Accelerator to untag.
$sel:tagKeys:UntagResource'
, untagResource_tagKeys
- The list of tags to remove from the Elastic Inference Accelerator.
data UntagResourceResponse Source #
See: newUntagResourceResponse
smart constructor.
Instances
newUntagResourceResponse Source #
Create a value of UntagResourceResponse
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:httpStatus:UntagResourceResponse'
, untagResourceResponse_httpStatus
- The response's http status code.
DescribeAcceleratorTypes
data DescribeAcceleratorTypes Source #
See: newDescribeAcceleratorTypes
smart constructor.
Instances
newDescribeAcceleratorTypes :: DescribeAcceleratorTypes Source #
Create a value of DescribeAcceleratorTypes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
data DescribeAcceleratorTypesResponse Source #
See: newDescribeAcceleratorTypesResponse
smart constructor.
Instances
Eq DescribeAcceleratorTypesResponse Source # | |
Read DescribeAcceleratorTypesResponse Source # | |
Show DescribeAcceleratorTypesResponse Source # | |
Generic DescribeAcceleratorTypesResponse Source # | |
NFData DescribeAcceleratorTypesResponse Source # | |
Defined in Amazonka.ElasticInference.DescribeAcceleratorTypes rnf :: DescribeAcceleratorTypesResponse -> () # | |
type Rep DescribeAcceleratorTypesResponse Source # | |
Defined in Amazonka.ElasticInference.DescribeAcceleratorTypes type Rep DescribeAcceleratorTypesResponse = D1 ('MetaData "DescribeAcceleratorTypesResponse" "Amazonka.ElasticInference.DescribeAcceleratorTypes" "libZSservicesZSamazonka-elastic-inferenceZSamazonka-elastic-inference" 'False) (C1 ('MetaCons "DescribeAcceleratorTypesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "acceleratorTypes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AcceleratorType])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribeAcceleratorTypesResponse Source #
Create a value of DescribeAcceleratorTypesResponse
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:acceleratorTypes:DescribeAcceleratorTypesResponse'
, describeAcceleratorTypesResponse_acceleratorTypes
- The available accelerator types.
$sel:httpStatus:DescribeAcceleratorTypesResponse'
, describeAcceleratorTypesResponse_httpStatus
- The response's http status code.
Types
LocationType
newtype LocationType Source #
pattern LocationType_Availability_zone :: LocationType | |
pattern LocationType_Availability_zone_id :: LocationType | |
pattern LocationType_Region :: LocationType |
Instances
AcceleratorType
data AcceleratorType Source #
The details of an Elastic Inference Accelerator type.
See: newAcceleratorType
smart constructor.
Instances
newAcceleratorType :: AcceleratorType Source #
Create a value of AcceleratorType
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:throughputInfo:AcceleratorType'
, acceleratorType_throughputInfo
- The throughput information of the Elastic Inference Accelerator type.
$sel:memoryInfo:AcceleratorType'
, acceleratorType_memoryInfo
- The memory information of the Elastic Inference Accelerator type.
$sel:acceleratorTypeName:AcceleratorType'
, acceleratorType_acceleratorTypeName
- The name of the Elastic Inference Accelerator type.
AcceleratorTypeOffering
data AcceleratorTypeOffering Source #
The offering for an Elastic Inference Accelerator type.
See: newAcceleratorTypeOffering
smart constructor.
Instances
newAcceleratorTypeOffering :: AcceleratorTypeOffering Source #
Create a value of AcceleratorTypeOffering
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:acceleratorType:AcceleratorTypeOffering'
, acceleratorTypeOffering_acceleratorType
- The name of the Elastic Inference Accelerator type.
$sel:location:AcceleratorTypeOffering'
, acceleratorTypeOffering_location
- The location for the offering. It will return either the region,
availability zone or availability zone id for the offering depending on
the locationType value.
$sel:locationType:AcceleratorTypeOffering'
, acceleratorTypeOffering_locationType
- The location type for the offering. It can assume the following values:
region: defines that the offering is at the regional level.
availability-zone: defines that the offering is at the availability zone
level. availability-zone-id: defines that the offering is at the
availability zone level, defined by the availability zone id.
ElasticInferenceAccelerator
data ElasticInferenceAccelerator Source #
The details of an Elastic Inference Accelerator.
See: newElasticInferenceAccelerator
smart constructor.
ElasticInferenceAccelerator' (Maybe Text) (Maybe Text) (Maybe Text) (Maybe ElasticInferenceAcceleratorHealth) (Maybe Text) |
Instances
newElasticInferenceAccelerator :: ElasticInferenceAccelerator Source #
Create a value of ElasticInferenceAccelerator
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:acceleratorType:ElasticInferenceAccelerator'
, elasticInferenceAccelerator_acceleratorType
- The type of the Elastic Inference Accelerator.
$sel:acceleratorId:ElasticInferenceAccelerator'
, elasticInferenceAccelerator_acceleratorId
- The ID of the Elastic Inference Accelerator.
$sel:attachedResource:ElasticInferenceAccelerator'
, elasticInferenceAccelerator_attachedResource
- The ARN of the resource that the Elastic Inference Accelerator is
attached to.
$sel:acceleratorHealth:ElasticInferenceAccelerator'
, elasticInferenceAccelerator_acceleratorHealth
- The health of the Elastic Inference Accelerator.
$sel:availabilityZone:ElasticInferenceAccelerator'
, elasticInferenceAccelerator_availabilityZone
- The availability zone where the Elastic Inference Accelerator is
present.
ElasticInferenceAcceleratorHealth
data ElasticInferenceAcceleratorHealth Source #
The health details of an Elastic Inference Accelerator.
See: newElasticInferenceAcceleratorHealth
smart constructor.
Instances
Eq ElasticInferenceAcceleratorHealth Source # | |
Read ElasticInferenceAcceleratorHealth Source # | |
Show ElasticInferenceAcceleratorHealth Source # | |
Generic ElasticInferenceAcceleratorHealth Source # | |
NFData ElasticInferenceAcceleratorHealth Source # | |
Hashable ElasticInferenceAcceleratorHealth Source # | |
FromJSON ElasticInferenceAcceleratorHealth Source # | |
type Rep ElasticInferenceAcceleratorHealth Source # | |
Defined in Amazonka.ElasticInference.Types.ElasticInferenceAcceleratorHealth type Rep ElasticInferenceAcceleratorHealth = D1 ('MetaData "ElasticInferenceAcceleratorHealth" "Amazonka.ElasticInference.Types.ElasticInferenceAcceleratorHealth" "libZSservicesZSamazonka-elastic-inferenceZSamazonka-elastic-inference" 'False) (C1 ('MetaCons "ElasticInferenceAcceleratorHealth'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newElasticInferenceAcceleratorHealth :: ElasticInferenceAcceleratorHealth Source #
Create a value of ElasticInferenceAcceleratorHealth
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:status:ElasticInferenceAcceleratorHealth'
, elasticInferenceAcceleratorHealth_status
- The health status of the Elastic Inference Accelerator.
Filter
A filter expression for the Elastic Inference Accelerator list.
See: newFilter
smart constructor.
Instances
Eq Filter Source # | |
Read Filter Source # | |
Show Filter Source # | |
Generic Filter Source # | |
NFData Filter Source # | |
Defined in Amazonka.ElasticInference.Types.Filter | |
Hashable Filter Source # | |
Defined in Amazonka.ElasticInference.Types.Filter | |
ToJSON Filter Source # | |
Defined in Amazonka.ElasticInference.Types.Filter | |
type Rep Filter Source # | |
Defined in Amazonka.ElasticInference.Types.Filter type Rep Filter = D1 ('MetaData "Filter" "Amazonka.ElasticInference.Types.Filter" "libZSservicesZSamazonka-elastic-inferenceZSamazonka-elastic-inference" 'False) (C1 ('MetaCons "Filter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
Create a value of Filter
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:values:Filter'
, filter_values
- The values for the filter of the Elastic Inference Accelerator list.
$sel:name:Filter'
, filter_name
- The filter name for the Elastic Inference Accelerator list. It can
assume the following values: accelerator-type: the type of Elastic
Inference Accelerator to filter for. instance-id: an EC2 instance id to
filter for.
KeyValuePair
data KeyValuePair Source #
A throughput entry for an Elastic Inference Accelerator type.
See: newKeyValuePair
smart constructor.
KeyValuePair' (Maybe Int) (Maybe Text) |
Instances
newKeyValuePair :: KeyValuePair Source #
Create a value of KeyValuePair
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:value:KeyValuePair'
, keyValuePair_value
- The throughput value of the Elastic Inference Accelerator type.
$sel:key:KeyValuePair'
, keyValuePair_key
- The throughput value of the Elastic Inference Accelerator type. It can
assume the following values: TFLOPS16bit: the throughput expressed in
16bit TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit
TeraFLOPS.
MemoryInfo
data MemoryInfo Source #
The memory information of an Elastic Inference Accelerator type.
See: newMemoryInfo
smart constructor.
Instances
newMemoryInfo :: MemoryInfo Source #
Create a value of MemoryInfo
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:sizeInMiB:MemoryInfo'
, memoryInfo_sizeInMiB
- The size in mebibytes of the Elastic Inference Accelerator type.