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

com.pulumi.gcp.redis.kotlin.outputs.GetInstanceResult.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.redis.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * A collection of values returned by getInstance.
 * @property alternativeLocationId
 * @property authEnabled
 * @property authString
 * @property authorizedNetwork
 * @property connectMode
 * @property createTime
 * @property currentLocationId
 * @property customerManagedKey
 * @property displayName
 * @property effectiveLabels
 * @property host
 * @property id The provider-assigned unique ID for this managed resource.
 * @property labels
 * @property locationId
 * @property maintenancePolicies
 * @property maintenanceSchedules
 * @property memorySizeGb
 * @property name
 * @property nodes
 * @property persistenceConfigs
 * @property persistenceIamIdentity
 * @property port
 * @property project
 * @property pulumiLabels
 * @property readEndpoint
 * @property readEndpointPort
 * @property readReplicasMode
 * @property redisConfigs
 * @property redisVersion
 * @property region
 * @property replicaCount
 * @property reservedIpRange
 * @property secondaryIpRange
 * @property serverCaCerts
 * @property tier
 * @property transitEncryptionMode
 */
public data class GetInstanceResult(
    public val alternativeLocationId: String,
    public val authEnabled: Boolean,
    public val authString: String,
    public val authorizedNetwork: String,
    public val connectMode: String,
    public val createTime: String,
    public val currentLocationId: String,
    public val customerManagedKey: String,
    public val displayName: String,
    public val effectiveLabels: Map,
    public val host: String,
    public val id: String,
    public val labels: Map,
    public val locationId: String,
    public val maintenancePolicies: List,
    public val maintenanceSchedules: List,
    public val memorySizeGb: Int,
    public val name: String,
    public val nodes: List,
    public val persistenceConfigs: List,
    public val persistenceIamIdentity: String,
    public val port: Int,
    public val project: String? = null,
    public val pulumiLabels: Map,
    public val readEndpoint: String,
    public val readEndpointPort: Int,
    public val readReplicasMode: String,
    public val redisConfigs: Map,
    public val redisVersion: String,
    public val region: String? = null,
    public val replicaCount: Int,
    public val reservedIpRange: String,
    public val secondaryIpRange: String,
    public val serverCaCerts: List,
    public val tier: String,
    public val transitEncryptionMode: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.redis.outputs.GetInstanceResult): GetInstanceResult = GetInstanceResult(
            alternativeLocationId = javaType.alternativeLocationId(),
            authEnabled = javaType.authEnabled(),
            authString = javaType.authString(),
            authorizedNetwork = javaType.authorizedNetwork(),
            connectMode = javaType.connectMode(),
            createTime = javaType.createTime(),
            currentLocationId = javaType.currentLocationId(),
            customerManagedKey = javaType.customerManagedKey(),
            displayName = javaType.displayName(),
            effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            host = javaType.host(),
            id = javaType.id(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            locationId = javaType.locationId(),
            maintenancePolicies = javaType.maintenancePolicies().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.GetInstanceMaintenancePolicy.Companion.toKotlin(args0)
                })
            }),
            maintenanceSchedules = javaType.maintenanceSchedules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.GetInstanceMaintenanceSchedule.Companion.toKotlin(args0)
                })
            }),
            memorySizeGb = javaType.memorySizeGb(),
            name = javaType.name(),
            nodes = javaType.nodes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.GetInstanceNode.Companion.toKotlin(args0)
                })
            }),
            persistenceConfigs = javaType.persistenceConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.GetInstancePersistenceConfig.Companion.toKotlin(args0)
                })
            }),
            persistenceIamIdentity = javaType.persistenceIamIdentity(),
            port = javaType.port(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            readEndpoint = javaType.readEndpoint(),
            readEndpointPort = javaType.readEndpointPort(),
            readReplicasMode = javaType.readReplicasMode(),
            redisConfigs = javaType.redisConfigs().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            redisVersion = javaType.redisVersion(),
            region = javaType.region().map({ args0 -> args0 }).orElse(null),
            replicaCount = javaType.replicaCount(),
            reservedIpRange = javaType.reservedIpRange(),
            secondaryIpRange = javaType.secondaryIpRange(),
            serverCaCerts = javaType.serverCaCerts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.redis.kotlin.outputs.GetInstanceServerCaCert.Companion.toKotlin(args0)
                })
            }),
            tier = javaType.tier(),
            transitEncryptionMode = javaType.transitEncryptionMode(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy