Expires

class aws_cdk.aws_s3_deployment.Expires

Bases: object

Used for HTTP expires header, which influences downstream caches.

Does NOT influence deletion of the object.

deprecated :deprecated: use core.Expiration

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

Attributes

value

stability :stability: deprecated

Return type

Any

Static Methods

classmethod after(t)

Expire once the specified duration has passed since deployment time.

Parameters

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

stability :stability: deprecated

Return type

Expires

classmethod at_date(d)

Expire at the specified date.

Parameters

d (datetime) – date to expire at.

stability :stability: deprecated

Return type

Expires

classmethod at_timestamp(t)

Expire at the specified timestamp.

Parameters

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

stability :stability: deprecated

Return type

Expires

classmethod from_string(s)
Parameters

s (str) –

stability :stability: deprecated

Return type

Expires