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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.349Z")
@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");
-
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 'max-age' cache control directive.static CacheControl
The 'must-revalidate' cache control directive.static CacheControl
noCache()
The 'no-cache' 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.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.
-
maxAge
The 'max-age' cache control directive.- Parameters:
t
- This parameter is required.
-
mustRevalidate
The 'must-revalidate' cache control directive. -
noCache
The 'no-cache' 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.
-
getValue
the actual text value of the created directive. -
setValue
the actual text value of the created directive.
-