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

com.pulumi.awsnative.pcaconnectorad.kotlin.outputs.TemplatePrivateKeyAttributesV3.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pcaconnectorad.kotlin.outputs

import com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplateKeySpec
import com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplatePrivateKeyAlgorithm
import com.pulumi.core.Either
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property algorithm
 * @property cryptoProviders
 * @property keySpec
 * @property keyUsageProperty
 * @property minimalKeyLength
 */
public data class TemplatePrivateKeyAttributesV3(
    public val algorithm: TemplatePrivateKeyAlgorithm,
    public val cryptoProviders: List? = null,
    public val keySpec: TemplateKeySpec,
    public val keyUsageProperty: Either,
    public val minimalKeyLength: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pcaconnectorad.outputs.TemplatePrivateKeyAttributesV3): TemplatePrivateKeyAttributesV3 = TemplatePrivateKeyAttributesV3(
            algorithm = javaType.algorithm().let({ args0 ->
                com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplatePrivateKeyAlgorithm.Companion.toKotlin(args0)
            }),
            cryptoProviders = javaType.cryptoProviders().map({ args0 -> args0 }),
            keySpec = javaType.keySpec().let({ args0 ->
                com.pulumi.awsnative.pcaconnectorad.kotlin.enums.TemplateKeySpec.Companion.toKotlin(args0)
            }),
            keyUsageProperty = javaType.keyUsageProperty().transform(
                { args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.pcaconnectorad.kotlin.outputs.TemplateKeyUsageProperty0Properties.Companion.toKotlin(args0)
                    })
                },
                { args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.pcaconnectorad.kotlin.outputs.TemplateKeyUsageProperty1Properties.Companion.toKotlin(args0)
                    })
                },
            ),
            minimalKeyLength = javaType.minimalKeyLength(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy