All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.connect.amazon.s3.s3Extensions.kt Maven / Gradle / Ivy

There is a newer version: 5.41.0.0
Show newest version
package org.http4k.connect.amazon.s3

import dev.forkhandles.result4k.Result
import kotlin.Unit
import org.http4k.connect.RemoteFailure
import org.http4k.connect.amazon.core.model.Region
import org.http4k.connect.amazon.s3.action.BucketList
import org.http4k.connect.amazon.s3.action.CreateBucket
import org.http4k.connect.amazon.s3.action.ListBuckets
import org.http4k.connect.amazon.s3.model.BucketName

/**
 * @see org.http4k.connect.amazon.s3.action.CreateBucket
 */
public fun S3.createBucket(bucketName: BucketName, region: Region): Result =
    invoke(CreateBucket(bucketName, region))

/**
 * @see org.http4k.connect.amazon.s3.action.ListBuckets
 */
public fun S3.listBuckets(): Result = invoke(ListBuckets())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy