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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnApiCache(Construct scope, String id, CfnApiCacheProps props) Create a newAWS::AppSync::ApiCache.protectedCfnApiCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApiCache(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApiCachingBehavior(String value) Caching behavior.voidThe GraphQL API ID.voidAt-rest encryption flag for cache.voidAt-rest encryption flag for cache.voidTransit encryption flag when connecting to cache.voidTransit encryption flag when connecting to cache.voidTTL in seconds for cache entries.voidThe 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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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.SMALLMEDIUMLARGEXLARGELARGE_2XLARGE_4XLARGE_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.SMALLMEDIUMLARGEXLARGELARGE_2XLARGE_4XLARGE_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.
-