S3BucketPreSigner

class S3BucketPreSigner(bucketName: BucketName, region: Region, credentialsProvider: CredentialsProvider, clock: Clock = Clock.systemUTC(), forcePathStyle: Boolean = false)

Constructors

Link copied to clipboard
constructor(bucketName: BucketName, region: Region, credentials: AwsCredentials, clock: Clock = Clock.systemUTC(), forcePathStyle: Boolean = false)
constructor(bucketName: BucketName, region: Region, env: Environment = Environment.ENV, clock: Clock = Clock.systemUTC(), forcePathStyle: Boolean = false, credentialsProvider: CredentialsProvider = CredentialsProvider.Environment(env))

Convenience constructor to create an S3BucketPreSigner from an http4k Environment

constructor(bucketName: BucketName, region: Region, credentialsProvider: CredentialsProvider, clock: Clock = Clock.systemUTC(), forcePathStyle: Boolean = false)

Functions

Link copied to clipboard
fun delete(key: BucketKey, duration: Duration, headers: Headers = emptyList()): AwsPreSignedRequest
Link copied to clipboard
fun get(key: BucketKey, duration: Duration, headers: Headers = emptyList()): AwsPreSignedRequest
Link copied to clipboard
fun put(key: BucketKey, duration: Duration, headers: Headers = emptyList()): AwsPreSignedRequest