Show / Hide Table of Contents

Class CachePolicy

A Cache Policy configuration.

Inheritance
System.Object
Construct
Resource
CachePolicy
Implements
IResource
IConstruct
Constructs.IConstruct
IDependable
ICachePolicy
Inherited Members
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(String, IArnComponents)
Resource.GetResourceNameAttribute(String)
Resource.Env
Resource.PhysicalName
Resource.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class CachePolicy : Resource, IResource, IConstruct, IConstruct, IDependable, ICachePolicy
Syntax (vb)
Public Class CachePolicy
    Inherits Resource
    Implements IResource, IConstruct, IConstruct, IDependable, ICachePolicy
Remarks

Resource: AWS::CloudFront::CachePolicy

Synopsis

Constructors

CachePolicy(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CachePolicy(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

CachePolicy(Construct, String, ICachePolicyProps)

Properties

CachePolicyId

The ID of the cache policy.

CACHING_DISABLED

Disables caching.

CACHING_OPTIMIZED

Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.

CACHING_OPTIMIZED_FOR_UNCOMPRESSED_OBJECTS

Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.

ELEMENTAL_MEDIA_PACKAGE

Designed for use with an origin that is an AWS Elemental MediaPackage endpoint.

Methods

FromCachePolicyId(Construct, String, String)

Imports a Cache Policy from its id.

Constructors

CachePolicy(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CachePolicy(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CachePolicy(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CachePolicy(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

CachePolicy(Construct, String, ICachePolicyProps)

public CachePolicy(Construct scope, string id, ICachePolicyProps props = null)
Parameters
scope Constructs.Construct
id System.String
props ICachePolicyProps

Properties

CachePolicyId

The ID of the cache policy.

public virtual string CachePolicyId { get; }
Property Value

System.String

CACHING_DISABLED

Disables caching.

public static ICachePolicy CACHING_DISABLED { get; }
Property Value

ICachePolicy

Remarks

This policy is useful for dynamic content and for requests that are not cacheable.

CACHING_OPTIMIZED

Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.

public static ICachePolicy CACHING_OPTIMIZED { get; }
Property Value

ICachePolicy

Remarks

Query strings and cookies are not included in the cache key, and only the normalized 'Accept-Encoding' header is included.

CACHING_OPTIMIZED_FOR_UNCOMPRESSED_OBJECTS

Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.

public static ICachePolicy CACHING_OPTIMIZED_FOR_UNCOMPRESSED_OBJECTS { get; }
Property Value

ICachePolicy

Remarks

Query strings and cookies are not included in the cache key, and only the normalized 'Accept-Encoding' header is included. Disables cache compression.

ELEMENTAL_MEDIA_PACKAGE

Designed for use with an origin that is an AWS Elemental MediaPackage endpoint.

public static ICachePolicy ELEMENTAL_MEDIA_PACKAGE { get; }
Property Value

ICachePolicy

Methods

FromCachePolicyId(Construct, String, String)

Imports a Cache Policy from its id.

public static ICachePolicy FromCachePolicyId(Construct scope, string id, string cachePolicyId)
Parameters
scope Constructs.Construct
id System.String
cachePolicyId System.String
Returns

ICachePolicy

Implements

IResource
IConstruct
Constructs.IConstruct
IDependable
ICachePolicy
Back to top Generated by DocFX