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

com.pulumi.awsnative.ec2.kotlin.outputs.GetIpamResourceDiscoveryResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.outputs

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

/**
 *
 * @property description The resource discovery description.
 * @property ipamResourceDiscoveryArn Amazon Resource Name (Arn) for the Resource Discovery.
 * @property ipamResourceDiscoveryId Id of the IPAM Pool.
 * @property ipamResourceDiscoveryRegion The region the resource discovery is setup in.
 * @property isDefault Determines whether or not address space from this pool is publicly advertised. Must be set if and only if the pool is IPv6.
 * @property operatingRegions The regions Resource Discovery is enabled for. Allows resource discoveries to be created in these regions, as well as enabling monitoring
 * @property ownerId Owner Account ID of the Resource Discovery
 * @property state The state of this Resource Discovery.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class GetIpamResourceDiscoveryResult(
    public val description: String? = null,
    public val ipamResourceDiscoveryArn: String? = null,
    public val ipamResourceDiscoveryId: String? = null,
    public val ipamResourceDiscoveryRegion: String? = null,
    public val isDefault: Boolean? = null,
    public val operatingRegions: List? = null,
    public val ownerId: String? = null,
    public val state: String? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetIpamResourceDiscoveryResult): GetIpamResourceDiscoveryResult = GetIpamResourceDiscoveryResult(
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            ipamResourceDiscoveryArn = javaType.ipamResourceDiscoveryArn().map({ args0 -> args0 }).orElse(null),
            ipamResourceDiscoveryId = javaType.ipamResourceDiscoveryId().map({ args0 -> args0 }).orElse(null),
            ipamResourceDiscoveryRegion = javaType.ipamResourceDiscoveryRegion().map({ args0 ->
                args0
            }).orElse(null),
            isDefault = javaType.isDefault().map({ args0 -> args0 }).orElse(null),
            operatingRegions = javaType.operatingRegions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ec2.kotlin.outputs.IpamResourceDiscoveryIpamOperatingRegion.Companion.toKotlin(args0)
                })
            }),
            ownerId = javaType.ownerId().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().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