CacheControl¶
-
class
aws_cdk.aws_codepipeline_actions.
CacheControl
(*args, **kwargs)¶ Bases:
object
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 {@link S3DeployActionProps.cacheControl} property.
Attributes
-
value
¶ the actual text value of the created directive.
- Return type
str
Static Methods
-
classmethod
from_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 (
str
) –- Return type
-
classmethod
max_age
(t)¶ The ‘max-age’ cache control directive.
- Parameters
t (
Duration
) –- Return type
-
classmethod
must_revalidate
()¶ The ‘must-revalidate’ cache control directive.
- Return type
-
classmethod
no_cache
()¶ The ‘no-cache’ cache control directive.
- Return type
-
classmethod
no_transform
()¶ The ‘no-transform’ cache control directive.
- Return type
-
classmethod
proxy_revalidate
()¶ The ‘proxy-revalidate’ cache control directive.
- Return type
-
classmethod
s_max_age
(t)¶ The ‘s-max-age’ cache control directive.
- Parameters
t (
Duration
) –- Return type
-
classmethod
set_private
()¶ The ‘private’ cache control directive.
- Return type
-
classmethod
set_public
()¶ The ‘public’ cache control directive.
- Return type
-