Class CacheControl
Used for HTTP cache-control header, which influences downstream caches.
Inheritance
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CacheControl : DeputyBase
Syntax (vb)
Public Class CacheControl
Inherits DeputyBase
Remarks
Use the provided static factory methods to construct instances of this class.
Used in the S3DeployActionProps.cacheControl
property.
See: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline.Actions;
var cacheControl = CacheControl.FromString("s");
Synopsis
Constructors
CacheControl(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CacheControl(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Value | the actual text value of the created directive. |
Methods
FromString(String) | Allows you to create an arbitrary cache control directive, in case our support is missing a method for a particular directive. |
Immutable() | The 'immutable' cache control directive. |
MaxAge(Duration) | The 'max-age' cache control directive. |
MustRevalidate() | The 'must-revalidate' cache control directive. |
MustUnderstand() | The 'must-understand' cache control directive. |
NoCache() | The 'no-cache' cache control directive. |
NoStore() | The 'no-store' cache control directive. |
NoTransform() | The 'no-transform' cache control directive. |
ProxyRevalidate() | The 'proxy-revalidate' cache control directive. |
SetPrivate() | The 'private' cache control directive. |
SetPublic() | The 'public' cache control directive. |
SMaxAge(Duration) | The 's-max-age' cache control directive. |
StaleIfError(Duration) | The 'stale-if-error' cache control directive. |
StaleWhileRevalidate(Duration) | The 'stale-while-revalidate' cache control directive. |
Constructors
CacheControl(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CacheControl(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CacheControl(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CacheControl(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Value
the actual text value of the created directive.
public virtual string Value { get; set; }
Property Value
System.String
Methods
FromString(String)
Allows you to create an arbitrary cache control directive, in case our support is missing a method for a particular directive.
public static CacheControl FromString(string s)
Parameters
- s System.String
Returns
Immutable()
The 'immutable' cache control directive.
public static CacheControl Immutable()
Returns
MaxAge(Duration)
The 'max-age' cache control directive.
public static CacheControl MaxAge(Duration t)
Parameters
- t Duration
Returns
MustRevalidate()
The 'must-revalidate' cache control directive.
public static CacheControl MustRevalidate()
Returns
MustUnderstand()
The 'must-understand' cache control directive.
public static CacheControl MustUnderstand()
Returns
NoCache()
NoStore()
NoTransform()
The 'no-transform' cache control directive.
public static CacheControl NoTransform()
Returns
ProxyRevalidate()
The 'proxy-revalidate' cache control directive.
public static CacheControl ProxyRevalidate()
Returns
SetPrivate()
SetPublic()
SMaxAge(Duration)
The 's-max-age' cache control directive.
public static CacheControl SMaxAge(Duration t)
Parameters
- t Duration
Returns
StaleIfError(Duration)
The 'stale-if-error' cache control directive.
public static CacheControl StaleIfError(Duration t)
Parameters
- t Duration
Returns
StaleWhileRevalidate(Duration)
The 'stale-while-revalidate' cache control directive.
public static CacheControl StaleWhileRevalidate(Duration t)
Parameters
- t Duration
Returns