S3Functions
object S3Functions
Functions
Link copied to clipboard
suspend fun getAccountPublicAccessBlock(argument: GetAccountPublicAccessBlockPlainArgs): GetAccountPublicAccessBlockResult
The S3 account public access block data source returns account-level public access block configuration.
suspend fun getAccountPublicAccessBlock(accountId: String? = null): GetAccountPublicAccessBlockResult
suspend fun getAccountPublicAccessBlock(argument: suspend GetAccountPublicAccessBlockPlainArgsBuilder.() -> Unit): GetAccountPublicAccessBlockResult
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.
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(argument: suspend GetBucketObjectPlainArgsBuilder.() -> Unit): GetBucketObjectResult
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(argument: suspend GetBucketObjectsPlainArgsBuilder.() -> Unit): GetBucketObjectsResult
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.
suspend fun getBucketPolicy(argument: suspend GetBucketPolicyPlainArgsBuilder.() -> Unit): GetBucketPolicyResult
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.
Link copied to clipboard
suspend fun getObjects(bucket: String, delimiter: String? = null, encodingType: String? = null, fetchOwner: Boolean? = null, maxKeys: Int? = null, prefix: String? = null, startAfter: String? = null): GetObjectsResult