Class CacheControl
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codepipeline.actions.CacheControl
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:06.165Z")
@Stability(Stable)
public class CacheControl
extends software.amazon.jsii.JsiiObject
Used for HTTP cache-control header, which influences downstream caches.
Use the provided static factory methods to construct instances of this class.
Used in the S3DeployActionProps.cacheControl
property.
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.codepipeline.actions.*; CacheControl cacheControl = CacheControl.fromString("s");
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
CacheControl
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CacheControl
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheControl
fromString
(String s) Allows you to create an arbitrary cache control directive, in case our support is missing a method for a particular directive.getValue()
the actual text value of the created directive.static CacheControl
The 'immutable' cache control directive.static CacheControl
The 'max-age' cache control directive.static CacheControl
The 'must-revalidate' cache control directive.static CacheControl
The 'must-understand' cache control directive.static CacheControl
noCache()
The 'no-cache' cache control directive.static CacheControl
noStore()
The 'no-store' cache control directive.static CacheControl
The 'no-transform' cache control directive.static CacheControl
The 'proxy-revalidate' cache control directive.static CacheControl
The 'private' cache control directive.static CacheControl
The 'public' cache control directive.void
the actual text value of the created directive.static CacheControl
The 's-max-age' cache control directive.static CacheControl
The 'stale-if-error' cache control directive.static CacheControl
The 'stale-while-revalidate' cache control directive.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CacheControl
protected CacheControl(software.amazon.jsii.JsiiObjectRef objRef) -
CacheControl
protected CacheControl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromString
Allows you to create an arbitrary cache control directive, in case our support is missing a method for a particular directive.- Parameters:
s
- This parameter is required.
-
immutable
The 'immutable' cache control directive. -
maxAge
The 'max-age' cache control directive.- Parameters:
t
- This parameter is required.
-
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
The 's-max-age' cache control directive.- Parameters:
t
- This parameter is required.
-
staleIfError
The 'stale-if-error' cache control directive.- Parameters:
t
- This parameter is required.
-
staleWhileRevalidate
The 'stale-while-revalidate' cache control directive.- Parameters:
t
- This parameter is required.
-
getValue
the actual text value of the created directive. -
setValue
the actual text value of the created directive.
-