@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.653Z") @Stability(value=Stable) public class CfnApiCache extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnApiCache.Builder
A fluent builder for
CfnApiCache. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnApiCache(software.constructs.Construct scope,
String id,
CfnApiCacheProps props)
Create a new `AWS::AppSync::ApiCache`.
|
protected |
CfnApiCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApiCache(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiCachingBehavior()
Caching behavior.
|
String |
getApiId()
The GraphQL API ID.
|
Object |
getAtRestEncryptionEnabled()
At-rest encryption flag for cache.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getTransitEncryptionEnabled()
Transit encryption flag when connecting to cache.
|
Number |
getTtl()
TTL in seconds for cache entries.
|
String |
getType()
The cache instance type.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApiCachingBehavior(String value)
Caching behavior.
|
void |
setApiId(String value)
The GraphQL API ID.
|
void |
setAtRestEncryptionEnabled(Boolean value)
At-rest encryption flag for cache.
|
void |
setAtRestEncryptionEnabled(IResolvable value)
At-rest encryption flag for cache.
|
void |
setTransitEncryptionEnabled(Boolean value)
Transit encryption flag when connecting to cache.
|
void |
setTransitEncryptionEnabled(IResolvable value)
Transit encryption flag when connecting to cache.
|
void |
setTtl(Number value)
TTL in seconds for cache entries.
|
void |
setType(String value)
The cache instance type.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnApiCache(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApiCache(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnApiCache(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnApiCacheProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getApiCachingBehavior()
@Stability(value=Stable)
public void setApiCachingBehavior(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getApiId()
@Stability(value=Stable)
public void setApiId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Number getTtl()
Valid values are 1–3,600 seconds.
@Stability(value=Stable)
public void setTtl(@NotNull
Number value)
Valid values are 1–3,600 seconds.
@Stability(value=Stable) @NotNull public String getType()
SMALLMEDIUMLARGEXLARGELARGE_2XLARGE_4XLARGE_8X (not available in all regions)LARGE_12XHistorically, 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:
@Stability(value=Stable)
public void setType(@NotNull
String value)
SMALLMEDIUMLARGEXLARGELARGE_2XLARGE_4XLARGE_8X (not available in all regions)LARGE_12XHistorically, 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:
@Stability(value=Stable) @Nullable public Object getAtRestEncryptionEnabled()
You cannot update this setting after creation.
@Stability(value=Stable)
public void setAtRestEncryptionEnabled(@Nullable
Boolean value)
You cannot update this setting after creation.
@Stability(value=Stable)
public void setAtRestEncryptionEnabled(@Nullable
IResolvable value)
You cannot update this setting after creation.
@Stability(value=Stable) @Nullable public Object getTransitEncryptionEnabled()
You cannot update this setting after creation.
@Stability(value=Stable)
public void setTransitEncryptionEnabled(@Nullable
Boolean value)
You cannot update this setting after creation.
@Stability(value=Stable)
public void setTransitEncryptionEnabled(@Nullable
IResolvable value)
You cannot update this setting after creation.
Copyright © 2022. All rights reserved.