![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lightsail.kotlin.outputs.GetBucketResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lightsail.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property ableToUpdateBundle Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly AWS billing cycle.
* @property accessRules An object that describes the access rules for the bucket.
* @property bucketArn The Amazon Resource Name (ARN) of the bucket.
* @property bundleId The ID of the bundle to use for the bucket.
* @property objectVersioning Specifies whether to enable or disable versioning of objects in the bucket.
* @property readOnlyAccessAccounts An array of strings to specify the AWS account IDs that can access the bucket.
* @property resourcesReceivingAccess The names of the Lightsail resources for which to set bucket access.
* @property tags An array of key-value pairs to apply to this resource.
* @property url The URL of the bucket.
*/
public data class GetBucketResult(
public val ableToUpdateBundle: Boolean? = null,
public val accessRules: BucketAccessRules? = null,
public val bucketArn: String? = null,
public val bundleId: String? = null,
public val objectVersioning: Boolean? = null,
public val readOnlyAccessAccounts: List? = null,
public val resourcesReceivingAccess: List? = null,
public val tags: List? = null,
public val url: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.lightsail.outputs.GetBucketResult): GetBucketResult = GetBucketResult(
ableToUpdateBundle = javaType.ableToUpdateBundle().map({ args0 -> args0 }).orElse(null),
accessRules = javaType.accessRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.lightsail.kotlin.outputs.BucketAccessRules.Companion.toKotlin(args0)
})
}).orElse(null),
bucketArn = javaType.bucketArn().map({ args0 -> args0 }).orElse(null),
bundleId = javaType.bundleId().map({ args0 -> args0 }).orElse(null),
objectVersioning = javaType.objectVersioning().map({ args0 -> args0 }).orElse(null),
readOnlyAccessAccounts = javaType.readOnlyAccessAccounts().map({ args0 -> args0 }),
resourcesReceivingAccess = javaType.resourcesReceivingAccess().map({ args0 -> args0 }),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
url = javaType.url().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy