S3Functions

Functions

Link copied to clipboard

The S3 account public access block data source returns account-level public access block configuration.

Link copied to clipboard

Provides details about a specific S3 bucket. This resource may prove useful when setting up a Route53 record, or an origin for a CloudFront Distribution.

suspend fun getBucket(bucket: String): GetBucketResult
suspend fun getBucket(argument: suspend GetBucketPlainArgsBuilder.() -> Unit): GetBucketResult
Link copied to clipboard

The following example retrieves a text object (which must have a Content-Type value starting with text/) and uses it as the user_data for an EC2 instance:

suspend fun getBucketObject(bucket: String, key: String, range: String? = null, tags: Map<String, String>? = null, versionId: String? = null): GetBucketObjectResult
Link copied to clipboard
suspend fun getBucketObjects(bucket: String, delimiter: String? = null, encodingType: String? = null, fetchOwner: Boolean? = null, maxKeys: Int? = null, prefix: String? = null, startAfter: String? = null): GetBucketObjectsResult
Link copied to clipboard

The bucket policy data source returns IAM policy of an S3 bucket.

Link copied to clipboard

The Canonical User ID data source allows access to the canonical user ID for the effective account in which this provider is working.

Link copied to clipboard

The S3 object data source allows access to the metadata and optionally (see below) content of an object stored inside S3 bucket.

suspend fun getObject(argument: suspend GetObjectPlainArgsBuilder.() -> Unit): GetObjectResult
suspend fun getObject(bucket: String, key: String, range: String? = null, tags: Map<String, String>? = null, versionId: String? = null): GetObjectResult
Link copied to clipboard
suspend fun getObjects(argument: suspend GetObjectsPlainArgsBuilder.() -> Unit): GetObjectsResult
suspend fun getObjects(bucket: String, delimiter: String? = null, encodingType: String? = null, fetchOwner: Boolean? = null, maxKeys: Int? = null, prefix: String? = null, startAfter: String? = null): GetObjectsResult