I am trying to implement long validity signed URL for AWS S3 object. Is it possible to set 100 years in per expiration policy object like below.
public string GetPreSignedURL(string bucketName, string identifierName, string fileName)
{
var request = new GetPreSignedUrlRequest
{
BucketName = bucketName,
Key = this.GetObjectKey(identifierName, fileName),
Expires = DateTime.Now.AddYears(100)
};
return this.awsS3Client.GetPreSignedURL(request);
}
If not, kindly provide some reference to implement it.
From the docs: