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

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

package com.pulumi.awsnative.vpclattice.kotlin.outputs

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

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the service network.
 * @property authType The type of IAM policy.
 * - `NONE` : The resource does not use an IAM policy. This is the default.
 * - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
 * @property createdAt The date and time that the service network was created, specified in ISO-8601 format.
 * @property id The ID of the service network.
 * @property lastUpdatedAt The date and time of the last update, specified in ISO-8601 format.
 * @property tags The tags for the service network.
 */
public data class GetServiceNetworkResult(
    public val arn: String? = null,
    public val authType: ServiceNetworkAuthType? = null,
    public val createdAt: String? = null,
    public val id: String? = null,
    public val lastUpdatedAt: String? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.vpclattice.outputs.GetServiceNetworkResult): GetServiceNetworkResult = GetServiceNetworkResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            authType = javaType.authType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.vpclattice.kotlin.enums.ServiceNetworkAuthType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            lastUpdatedAt = javaType.lastUpdatedAt().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy