Expires

class aws_cdk.aws_s3_deployment.Expires(*args: Any, **kwargs)

Bases: object

(deprecated) Used for HTTP expires header, which influences downstream caches.

Does NOT influence deletion of the object.

Deprecated

use core.Expiration

See

https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#SysMetadata

Stability

deprecated

Attributes

value

(deprecated) The raw expiration date expression.

Stability

deprecated

Return type

Any

Static Methods

classmethod after(t)

(deprecated) Expire once the specified duration has passed since deployment time.

Parameters

t (Duration) – the duration to wait before expiring.

Stability

deprecated

Return type

Expires

classmethod at_date(d)

(deprecated) Expire at the specified date.

Parameters

d (datetime) – date to expire at.

Stability

deprecated

Return type

Expires

classmethod at_timestamp(t)

(deprecated) Expire at the specified timestamp.

Parameters

t (Union[int, float]) – timestamp in unix milliseconds.

Stability

deprecated

Return type

Expires

classmethod from_string(s)

(deprecated) Create an expiration date from a raw date string.

Parameters

s (str) –

Stability

deprecated

Return type

Expires