@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:50.265Z") @Stability(value=Experimental) public class CachePolicy extends Resource implements ICachePolicy
| Modifier and Type | Class and Description |
|---|---|
static class |
CachePolicy.Builder
(experimental) A fluent builder for
CachePolicy. |
software.amazon.jsii.JsiiObject.InitializationModeICachePolicy.Jsii$Default, ICachePolicy.Jsii$ProxyIResource.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static ICachePolicy |
CACHING_DISABLED
(experimental) Disables caching.
|
static ICachePolicy |
CACHING_OPTIMIZED
(experimental) Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.
|
static ICachePolicy |
CACHING_OPTIMIZED_FOR_UNCOMPRESSED_OBJECTS
(experimental) Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.
|
static ICachePolicy |
ELEMENTAL_MEDIA_PACKAGE
(experimental) Designed for use with an origin that is an AWS Elemental MediaPackage endpoint.
|
| Modifier | Constructor and Description |
|---|---|
|
CachePolicy(software.constructs.Construct scope,
String id) |
|
CachePolicy(software.constructs.Construct scope,
String id,
CachePolicyProps props) |
protected |
CachePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CachePolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static ICachePolicy |
fromCachePolicyId(software.constructs.Construct scope,
String id,
String cachePolicyId)
(experimental) Imports a Cache Policy from its id.
|
String |
getCachePolicyId()
(experimental) The ID of the cache policy.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final ICachePolicy CACHING_DISABLED
This policy is useful for dynamic content and for requests that are not cacheable.
@Stability(value=Experimental) public static final ICachePolicy CACHING_OPTIMIZED
Query strings and cookies are not included in the cache key, and only the normalized 'Accept-Encoding' header is included.
@Stability(value=Experimental) public static final ICachePolicy CACHING_OPTIMIZED_FOR_UNCOMPRESSED_OBJECTS
Query strings and cookies are not included in the cache key, and only the normalized 'Accept-Encoding' header is included. Disables cache compression.
@Stability(value=Experimental) public static final ICachePolicy ELEMENTAL_MEDIA_PACKAGE
protected CachePolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected CachePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CachePolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CachePolicyProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public CachePolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static ICachePolicy fromCachePolicyId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String cachePolicyId)
scope - This parameter is required.id - This parameter is required.cachePolicyId - This parameter is required.@Stability(value=Experimental) @NotNull public String getCachePolicyId()
getCachePolicyId in interface ICachePolicyCopyright © 2021. All rights reserved.