CacheControl

class aws_cdk.aws_codepipeline_actions.CacheControl

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.

see :see: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9

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

CacheControl

classmethod max_age(t)

The ‘max-age’ cache control directive.

Parameters

t (Duration) –

Return type

CacheControl

classmethod must_revalidate()

The ‘must-revalidate’ cache control directive.

Return type

CacheControl

classmethod no_cache()

The ‘no-cache’ cache control directive.

Return type

CacheControl

classmethod no_transform()

The ‘no-transform’ cache control directive.

Return type

CacheControl

classmethod proxy_revalidate()

The ‘proxy-revalidate’ cache control directive.

Return type

CacheControl

classmethod s_max_age(t)

The ‘s-max-age’ cache control directive.

Parameters

t (Duration) –

Return type

CacheControl

classmethod set_private()

The ‘private’ cache control directive.

Return type

CacheControl

classmethod set_public()

The ‘public’ cache control directive.

Return type

CacheControl