Class Expires
(deprecated) Used for HTTP expires header, which influences downstream caches.
Inheritance
Namespace: Amazon.CDK.AWS.S3.Deployment
Assembly: Amazon.CDK.AWS.S3.Deployment.dll
Syntax (csharp)
public class Expires : DeputyBase
Syntax (vb)
Public Class Expires
Inherits DeputyBase
Remarks
Does NOT influence deletion of the object.
Stability: Deprecated
See: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#SysMetadata
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3.Deployment;
using Amazon.CDK;
var expires = Expires.After(Duration.Minutes(30));
Synopsis
Constructors
Expires(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Expires(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Value | (deprecated) The raw expiration date expression. |
Methods
After(Duration) | (deprecated) Expire once the specified duration has passed since deployment time. |
AtDate(DateTime) | (deprecated) Expire at the specified date. |
AtTimestamp(Double) | (deprecated) Expire at the specified timestamp. |
FromString(String) | (deprecated) Create an expiration date from a raw date string. |
Constructors
Expires(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Expires(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Expires(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Expires(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Value
(deprecated) The raw expiration date expression.
public virtual object Value { get; }
Property Value
System.Object
Remarks
Stability: Deprecated
Methods
After(Duration)
(deprecated) Expire once the specified duration has passed since deployment time.
public static Expires After(Duration t)
Parameters
- t Duration
the duration to wait before expiring.
Returns
Remarks
Stability: Deprecated
AtDate(DateTime)
(deprecated) Expire at the specified date.
public static Expires AtDate(DateTime d)
Parameters
- d System.DateTime
date to expire at.
Returns
Remarks
Stability: Deprecated
AtTimestamp(Double)
(deprecated) Expire at the specified timestamp.
public static Expires AtTimestamp(double t)
Parameters
- t System.Double
timestamp in unix milliseconds.
Returns
Remarks
Stability: Deprecated
FromString(String)
(deprecated) Create an expiration date from a raw date string.
public static Expires FromString(string s)
Parameters
- s System.String
Returns
Remarks
Stability: Deprecated