GetUrlOptions: ReadOptions & CommonOptions & {
    expiresIn?: number;
    validateObjectExistence?: boolean;
}

Input options type for S3 getUrl API.

Type declaration

  • Optional expiresIn?: number

    Number of seconds till the URL expires.

    Default

    900 (15 minutes)
    
  • Optional validateObjectExistence?: boolean

    Whether to head object to make sure the object existence before downloading.

    Default

    false