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

com.pulumi.awsnative.elasticloadbalancingv2.kotlin.TrustStore.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticloadbalancingv2.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List

/**
 * Builder for [TrustStore].
 */
@PulumiTagMarker
public class TrustStoreResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: TrustStoreArgs = TrustStoreArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend TrustStoreArgsBuilder.() -> Unit) {
        val builder = TrustStoreArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): TrustStore {
        val builtJavaResource =
            com.pulumi.awsnative.elasticloadbalancingv2.TrustStore(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return TrustStore(builtJavaResource)
    }
}

/**
 * Resource Type definition for AWS::ElasticLoadBalancingV2::TrustStore
 */
public class TrustStore internal constructor(
    override val javaResource: com.pulumi.awsnative.elasticloadbalancingv2.TrustStore,
) : KotlinCustomResource(javaResource, TrustStoreMapper) {
    /**
     * The name of the S3 bucket to fetch the CA certificate bundle from.
     */
    public val caCertificatesBundleS3Bucket: Output?
        get() = javaResource.caCertificatesBundleS3Bucket().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The name of the S3 object to fetch the CA certificate bundle from.
     */
    public val caCertificatesBundleS3Key: Output?
        get() = javaResource.caCertificatesBundleS3Key().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * The version of the S3 bucket that contains the CA certificate bundle.
     */
    public val caCertificatesBundleS3ObjectVersion: Output?
        get() = javaResource.caCertificatesBundleS3ObjectVersion().applyValue({ args0 ->
            args0.map({ args0 -> args0 }).orElse(null)
        })

    /**
     * The name of the trust store.
     */
    public val name: Output?
        get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    /**
     * The number of certificates associated with the trust store.
     */
    public val numberOfCaCertificates: Output
        get() = javaResource.numberOfCaCertificates().applyValue({ args0 -> args0 })

    /**
     * The status of the trust store, could be either of ACTIVE or CREATING.
     */
    public val status: Output
        get() = javaResource.status().applyValue({ args0 -> args0 })

    /**
     * The tags to assign to the trust store.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> toKotlin(args0) })
                })
            }).orElse(null)
        })

    /**
     * The Amazon Resource Name (ARN) of the trust store.
     */
    public val trustStoreArn: Output
        get() = javaResource.trustStoreArn().applyValue({ args0 -> args0 })
}

public object TrustStoreMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.elasticloadbalancingv2.TrustStore::class == javaResource::class

    override fun map(javaResource: Resource): TrustStore = TrustStore(
        javaResource as
            com.pulumi.awsnative.elasticloadbalancingv2.TrustStore,
    )
}

/**
 * @see [TrustStore].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [TrustStore].
 */
public suspend fun trustStore(name: String, block: suspend TrustStoreResourceBuilder.() -> Unit): TrustStore {
    val builder = TrustStoreResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [TrustStore].
 * @param name The _unique_ name of the resulting resource.
 */
public fun trustStore(name: String): TrustStore {
    val builder = TrustStoreResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy