Class CfnApiCache
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::AppSync::ApiCache
.
The AWS::AppSync::ApiCache
resource represents the input of a CreateApiCache
operation.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appsync.*; CfnApiCache cfnApiCache = CfnApiCache.Builder.create(this, "MyCfnApiCache") .apiCachingBehavior("apiCachingBehavior") .apiId("apiId") .ttl(123) .type("type") // the properties below are optional .atRestEncryptionEnabled(false) .transitEncryptionEnabled(false) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnApiCache
(Construct scope, String id, CfnApiCacheProps props) Create a newAWS::AppSync::ApiCache
.protected
CfnApiCache
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnApiCache
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionCaching behavior.getApiId()
The GraphQL API ID.At-rest encryption flag for cache.Transit encryption flag when connecting to cache.getTtl()
TTL in seconds for cache entries.getType()
The cache instance type.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setApiCachingBehavior
(String value) Caching behavior.void
The GraphQL API ID.void
At-rest encryption flag for cache.void
At-rest encryption flag for cache.void
Transit encryption flag when connecting to cache.void
Transit encryption flag when connecting to cache.void
TTL in seconds for cache entries.void
The cache instance type.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnApiCache
protected CfnApiCache(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApiCache
protected CfnApiCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApiCache
@Stability(Stable) public CfnApiCache(@NotNull Construct scope, @NotNull String id, @NotNull CfnApiCacheProps props) Create a newAWS::AppSync::ApiCache
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getApiCachingBehavior
Caching behavior.- FULL_REQUEST_CACHING : All requests are fully cached.
- PER_RESOLVER_CACHING : Individual resolvers that you specify are cached.
-
setApiCachingBehavior
Caching behavior.- FULL_REQUEST_CACHING : All requests are fully cached.
- PER_RESOLVER_CACHING : Individual resolvers that you specify are cached.
-
getApiId
The GraphQL API ID. -
setApiId
The GraphQL API ID. -
getTtl
TTL in seconds for cache entries.Valid values are 1–3,600 seconds.
-
setTtl
TTL in seconds for cache entries.Valid values are 1–3,600 seconds.
-
getType
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.
-
setType
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.
-
getAtRestEncryptionEnabled
At-rest encryption flag for cache.You cannot update this setting after creation.
-
setAtRestEncryptionEnabled
At-rest encryption flag for cache.You cannot update this setting after creation.
-
setAtRestEncryptionEnabled
At-rest encryption flag for cache.You cannot update this setting after creation.
-
getTransitEncryptionEnabled
Transit encryption flag when connecting to cache.You cannot update this setting after creation.
-
setTransitEncryptionEnabled
Transit encryption flag when connecting to cache.You cannot update this setting after creation.
-
setTransitEncryptionEnabled
Transit encryption flag when connecting to cache.You cannot update this setting after creation.
-