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

com.pulumi.awsnative.location.kotlin.outputs.GetApiKeyResult.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.location.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn The Amazon Resource Name (ARN) for the resource. Used when you need to specify a resource across all AWS .
 * @property createTime The timestamp for when the API key resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.
 * @property description Updates the description for the API key resource.
 * @property expireTime The optional timestamp for when the API key resource will expire in [ISO 8601 format](https://docs.aws.amazon.com/https://www.iso.org/iso-8601-date-and-time-format.html) .
 * @property keyArn The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all AWS .
 * @property restrictions The API key restrictions for the API key resource.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property updateTime The timestamp for when the API key resource was last updated in ISO 8601 format: `YYYY-MM-DDThh:mm:ss.sssZ` .
 */
public data class GetApiKeyResult(
    public val arn: String? = null,
    public val createTime: String? = null,
    public val description: String? = null,
    public val expireTime: String? = null,
    public val keyArn: String? = null,
    public val restrictions: ApiKeyRestrictions? = null,
    public val tags: List? = null,
    public val updateTime: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.location.outputs.GetApiKeyResult): GetApiKeyResult = GetApiKeyResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            createTime = javaType.createTime().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            expireTime = javaType.expireTime().map({ args0 -> args0 }).orElse(null),
            keyArn = javaType.keyArn().map({ args0 -> args0 }).orElse(null),
            restrictions = javaType.restrictions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.location.kotlin.outputs.ApiKeyRestrictions.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            updateTime = javaType.updateTime().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy