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 |
Creates a cache for the GraphQL API.
Synopsis
- data CreateApiCache = CreateApiCache' {}
- newCreateApiCache :: Text -> Integer -> ApiCachingBehavior -> ApiCacheType -> CreateApiCache
- createApiCache_atRestEncryptionEnabled :: Lens' CreateApiCache (Maybe Bool)
- createApiCache_transitEncryptionEnabled :: Lens' CreateApiCache (Maybe Bool)
- createApiCache_apiId :: Lens' CreateApiCache Text
- createApiCache_ttl :: Lens' CreateApiCache Integer
- createApiCache_apiCachingBehavior :: Lens' CreateApiCache ApiCachingBehavior
- createApiCache_type :: Lens' CreateApiCache ApiCacheType
- data CreateApiCacheResponse = CreateApiCacheResponse' {
- apiCache :: Maybe ApiCache
- httpStatus :: Int
- newCreateApiCacheResponse :: Int -> CreateApiCacheResponse
- createApiCacheResponse_apiCache :: Lens' CreateApiCacheResponse (Maybe ApiCache)
- createApiCacheResponse_httpStatus :: Lens' CreateApiCacheResponse Int
Creating a Request
data CreateApiCache Source #
Represents the input of a CreateApiCache
operation.
See: newCreateApiCache
smart constructor.
CreateApiCache' | |
|
Instances
:: Text | |
-> Integer | |
-> ApiCachingBehavior | |
-> ApiCacheType | |
-> CreateApiCache |
Create a value of CreateApiCache
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:atRestEncryptionEnabled:CreateApiCache'
, createApiCache_atRestEncryptionEnabled
- At rest encryption flag for cache. This setting cannot be updated after
creation.
$sel:transitEncryptionEnabled:CreateApiCache'
, createApiCache_transitEncryptionEnabled
- Transit encryption flag when connecting to cache. This setting cannot be
updated after creation.
$sel:apiId:CreateApiCache'
, createApiCache_apiId
- The GraphQL API Id.
$sel:ttl:CreateApiCache'
, createApiCache_ttl
- TTL in seconds for cache entries.
Valid values are between 1 and 3600 seconds.
$sel:apiCachingBehavior:CreateApiCache'
, createApiCache_apiCachingBehavior
- Caching behavior.
- FULL_REQUEST_CACHING: All requests are fully cached.
- PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
$sel:type':CreateApiCache'
, createApiCache_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
createApiCache_atRestEncryptionEnabled :: Lens' CreateApiCache (Maybe Bool) Source #
At rest encryption flag for cache. This setting cannot be updated after creation.
createApiCache_transitEncryptionEnabled :: Lens' CreateApiCache (Maybe Bool) Source #
Transit encryption flag when connecting to cache. This setting cannot be updated after creation.
createApiCache_apiId :: Lens' CreateApiCache Text Source #
The GraphQL API Id.
createApiCache_ttl :: Lens' CreateApiCache Integer Source #
TTL in seconds for cache entries.
Valid values are between 1 and 3600 seconds.
createApiCache_apiCachingBehavior :: Lens' CreateApiCache ApiCachingBehavior Source #
Caching behavior.
- FULL_REQUEST_CACHING: All requests are fully cached.
- PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
createApiCache_type :: Lens' CreateApiCache 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 CreateApiCacheResponse Source #
Represents the output of a CreateApiCache
operation.
See: newCreateApiCacheResponse
smart constructor.
CreateApiCacheResponse' | |
|
Instances
newCreateApiCacheResponse Source #
Create a value of CreateApiCacheResponse
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:CreateApiCacheResponse'
, createApiCacheResponse_apiCache
- The ApiCache
object.
$sel:httpStatus:CreateApiCacheResponse'
, createApiCacheResponse_httpStatus
- The response's http status code.
Response Lenses
createApiCacheResponse_apiCache :: Lens' CreateApiCacheResponse (Maybe ApiCache) Source #
The ApiCache
object.
createApiCacheResponse_httpStatus :: Lens' CreateApiCacheResponse Int Source #
The response's http status code.