
com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.FormFileUploaderFieldConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs
import com.pulumi.awsnative.amplifyuibuilder.inputs.FormFileUploaderFieldConfigArgs.builder
import com.pulumi.awsnative.amplifyuibuilder.kotlin.enums.FormStorageAccessLevel
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property acceptedFileTypes The file types that are allowed to be uploaded by the file uploader. Provide this information in an array of strings specifying the valid file extensions.
* @property accessLevel The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored. The valid values for this property are `private` , `protected` , or `public` . For detailed information about the permissions associated with each access level, see [File access levels](https://docs.aws.amazon.com/https://docs.amplify.aws/lib/storage/configureaccess/q/platform/js/) in the *Amplify documentation* .
* @property isResumable Allows the file upload operation to be paused and resumed. The default value is `false` .
* When `isResumable` is set to `true` , the file uploader uses a multipart upload to break the files into chunks before upload. The progress of the upload isn't continuous, because the file uploader uploads a chunk at a time.
* @property maxFileCount Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.
* @property maxSize The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.
* @property showThumbnails Specifies whether to display or hide the image preview after selecting a file for upload. The default value is `true` to display the image preview.
*/
public data class FormFileUploaderFieldConfigArgs(
public val acceptedFileTypes: Output>,
public val accessLevel: Output,
public val isResumable: Output? = null,
public val maxFileCount: Output? = null,
public val maxSize: Output? = null,
public val showThumbnails: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.FormFileUploaderFieldConfigArgs =
com.pulumi.awsnative.amplifyuibuilder.inputs.FormFileUploaderFieldConfigArgs.builder()
.acceptedFileTypes(acceptedFileTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.accessLevel(accessLevel.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.isResumable(isResumable?.applyValue({ args0 -> args0 }))
.maxFileCount(maxFileCount?.applyValue({ args0 -> args0 }))
.maxSize(maxSize?.applyValue({ args0 -> args0 }))
.showThumbnails(showThumbnails?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FormFileUploaderFieldConfigArgs].
*/
@PulumiTagMarker
public class FormFileUploaderFieldConfigArgsBuilder internal constructor() {
private var acceptedFileTypes: Output>? = null
private var accessLevel: Output? = null
private var isResumable: Output? = null
private var maxFileCount: Output? = null
private var maxSize: Output? = null
private var showThumbnails: Output? = null
/**
* @param value The file types that are allowed to be uploaded by the file uploader. Provide this information in an array of strings specifying the valid file extensions.
*/
@JvmName("wchnijmslknuppou")
public suspend fun acceptedFileTypes(`value`: Output>) {
this.acceptedFileTypes = value
}
@JvmName("kdxjyxxoqhxcsnyo")
public suspend fun acceptedFileTypes(vararg values: Output) {
this.acceptedFileTypes = Output.all(values.asList())
}
/**
* @param values The file types that are allowed to be uploaded by the file uploader. Provide this information in an array of strings specifying the valid file extensions.
*/
@JvmName("voxwjlcwqcnxtmmh")
public suspend fun acceptedFileTypes(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy