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 |
Updates the cache for the GraphQL API.
Synopsis
- data UpdateApiCache = UpdateApiCache' {}
- newUpdateApiCache :: Text -> Integer -> ApiCachingBehavior -> ApiCacheType -> UpdateApiCache
- updateApiCache_apiId :: Lens' UpdateApiCache Text
- updateApiCache_ttl :: Lens' UpdateApiCache Integer
- updateApiCache_apiCachingBehavior :: Lens' UpdateApiCache ApiCachingBehavior
- updateApiCache_type :: Lens' UpdateApiCache ApiCacheType
- data UpdateApiCacheResponse = UpdateApiCacheResponse' {
- apiCache :: Maybe ApiCache
- httpStatus :: Int
- newUpdateApiCacheResponse :: Int -> UpdateApiCacheResponse
- updateApiCacheResponse_apiCache :: Lens' UpdateApiCacheResponse (Maybe ApiCache)
- updateApiCacheResponse_httpStatus :: Lens' UpdateApiCacheResponse Int
Creating a Request
data UpdateApiCache Source #
Represents the input of a UpdateApiCache
operation.
See: newUpdateApiCache
smart constructor.
UpdateApiCache' | |
|
Instances
:: Text | |
-> Integer | |
-> ApiCachingBehavior | |
-> ApiCacheType | |
-> UpdateApiCache |
Create a value of UpdateApiCache
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:
UpdateApiCache
, updateApiCache_apiId
- The GraphQL API ID.
UpdateApiCache
, updateApiCache_ttl
- TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
UpdateApiCache
, updateApiCache_apiCachingBehavior
- Caching behavior.
- FULL_REQUEST_CACHING: All requests are fully cached.
- PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
UpdateApiCache
, updateApiCache_type
- The cache instance type. Valid values are
SMALL
MEDIUM
LARGE
XLARGE
LARGE_2X
LARGE_4X
LARGE_8X
(not available in all regions)LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
- T2_SMALL: A t2.small instance type.
- T2_MEDIUM: A t2.medium instance type.
- R4_LARGE: A r4.large instance type.
- R4_XLARGE: A r4.xlarge instance type.
- R4_2XLARGE: A r4.2xlarge instance type.
- R4_4XLARGE: A r4.4xlarge instance type.
- R4_8XLARGE: A r4.8xlarge instance type.
Request Lenses
updateApiCache_apiId :: Lens' UpdateApiCache Text Source #
The GraphQL API ID.
updateApiCache_ttl :: Lens' UpdateApiCache Integer Source #
TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
updateApiCache_apiCachingBehavior :: Lens' UpdateApiCache ApiCachingBehavior Source #
Caching behavior.
- FULL_REQUEST_CACHING: All requests are fully cached.
- PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
updateApiCache_type :: Lens' UpdateApiCache ApiCacheType Source #
The cache instance type. Valid values are
SMALL
MEDIUM
LARGE
XLARGE
LARGE_2X
LARGE_4X
LARGE_8X
(not available in all regions)LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
- T2_SMALL: A t2.small instance type.
- T2_MEDIUM: A t2.medium instance type.
- R4_LARGE: A r4.large instance type.
- R4_XLARGE: A r4.xlarge instance type.
- R4_2XLARGE: A r4.2xlarge instance type.
- R4_4XLARGE: A r4.4xlarge instance type.
- R4_8XLARGE: A r4.8xlarge instance type.
Destructuring the Response
data UpdateApiCacheResponse Source #
Represents the output of a UpdateApiCache
operation.
See: newUpdateApiCacheResponse
smart constructor.
UpdateApiCacheResponse' | |
|
Instances
newUpdateApiCacheResponse Source #
Create a value of UpdateApiCacheResponse
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:apiCache:UpdateApiCacheResponse'
, updateApiCacheResponse_apiCache
- The ApiCache
object.
$sel:httpStatus:UpdateApiCacheResponse'
, updateApiCacheResponse_httpStatus
- The response's http status code.
Response Lenses
updateApiCacheResponse_apiCache :: Lens' UpdateApiCacheResponse (Maybe ApiCache) Source #
The ApiCache
object.
updateApiCacheResponse_httpStatus :: Lens' UpdateApiCacheResponse Int Source #
The response's http status code.