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
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_s3_deployment as s3_deployment import aws_cdk.core as cdk expires = s3_deployment.Expires.after(cdk.Duration.minutes(30))
Attributes
- value
(deprecated) The raw expiration date expression.
- Stability:
deprecated
Static Methods
- classmethod after(t)
(deprecated) Expire once the specified duration has passed since deployment time.
- classmethod at_date(d)
(deprecated) Expire at the specified date.
- Parameters:
d (
datetime
) – date to expire at.- Stability:
deprecated
- Return type:
- classmethod at_timestamp(t)
(deprecated) Expire at the specified timestamp.
- Parameters:
t (
Union
[int
,float
]) – timestamp in unix milliseconds.- Stability:
deprecated
- Return type: