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.103.1 (build bef2dea)", date="2024-09-24T10:56:29.267Z") @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:
  • Constructor Details

    • CacheControl

      protected CacheControl(software.amazon.jsii.JsiiObjectRef objRef)
    • CacheControl

      protected CacheControl(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromString

      @Stability(Stable) @NotNull public static CacheControl fromString(@NotNull String s)
      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

      @Stability(Stable) @NotNull public static CacheControl immutable()
      The 'immutable' cache control directive.
    • maxAge

      @Stability(Stable) @NotNull public static CacheControl maxAge(@NotNull Duration t)
      The 'max-age' cache control directive.

      Parameters:
      t - This parameter is required.
    • mustRevalidate

      @Stability(Stable) @NotNull public static CacheControl mustRevalidate()
      The 'must-revalidate' cache control directive.
    • mustUnderstand

      @Stability(Stable) @NotNull public static CacheControl mustUnderstand()
      The 'must-understand' cache control directive.
    • noCache

      @Stability(Stable) @NotNull public static CacheControl noCache()
      The 'no-cache' cache control directive.
    • noStore

      @Stability(Stable) @NotNull public static CacheControl noStore()
      The 'no-store' cache control directive.
    • noTransform

      @Stability(Stable) @NotNull public static CacheControl noTransform()
      The 'no-transform' cache control directive.
    • proxyRevalidate

      @Stability(Stable) @NotNull public static CacheControl proxyRevalidate()
      The 'proxy-revalidate' cache control directive.
    • setPrivate

      @Stability(Stable) @NotNull public static CacheControl setPrivate()
      The 'private' cache control directive.
    • setPublic

      @Stability(Stable) @NotNull public static CacheControl setPublic()
      The 'public' cache control directive.
    • sMaxAge

      @Stability(Stable) @NotNull public static CacheControl sMaxAge(@NotNull Duration t)
      The 's-max-age' cache control directive.

      Parameters:
      t - This parameter is required.
    • staleIfError

      @Stability(Stable) @NotNull public static CacheControl staleIfError(@NotNull Duration t)
      The 'stale-if-error' cache control directive.

      Parameters:
      t - This parameter is required.
    • staleWhileRevalidate

      @Stability(Stable) @NotNull public static CacheControl staleWhileRevalidate(@NotNull Duration t)
      The 'stale-while-revalidate' cache control directive.

      Parameters:
      t - This parameter is required.
    • getValue

      @Stability(Stable) @NotNull public String getValue()
      the actual text value of the created directive.
    • setValue

      @Stability(Stable) public void setValue(@NotNull String value)
      the actual text value of the created directive.