com.pulumi.gcp.networkconnectivity.kotlin.outputs.ServiceConnectionPolicyPscConnection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networkconnectivity.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property consumerAddress The resource reference of the consumer address.
* @property consumerForwardingRule The resource reference of the PSC Forwarding Rule within the consumer VPC.
* @property consumerTargetProject The project where the PSC connection is created.
* @property error The most recent error during operating this connection.
* Structure is documented below.
* @property errorInfo The error info for the latest error during operating this connection.
* Structure is documented below.
* @property errorType The error type indicates whether the error is consumer facing, producer
* facing or system internal.
* Possible values are: `CONNECTION_ERROR_TYPE_UNSPECIFIED`, `ERROR_INTERNAL`, `ERROR_CONSUMER_SIDE`, `ERROR_PRODUCER_SIDE`.
* @property gceOperation The last Compute Engine operation to setup PSC connection.
* @property pscConnectionId The PSC connection id of the PSC forwarding rule.
* @property state The state of the PSC connection.
* Possible values are: `STATE_UNSPECIFIED`, `ACTIVE`, `CREATING`, `DELETING`, `FAILED`.
*/
public data class ServiceConnectionPolicyPscConnection(
public val consumerAddress: String? = null,
public val consumerForwardingRule: String? = null,
public val consumerTargetProject: String? = null,
public val error: ServiceConnectionPolicyPscConnectionError? = null,
public val errorInfo: ServiceConnectionPolicyPscConnectionErrorInfo? = null,
public val errorType: String? = null,
public val gceOperation: String? = null,
public val pscConnectionId: String? = null,
public val state: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkconnectivity.outputs.ServiceConnectionPolicyPscConnection): ServiceConnectionPolicyPscConnection = ServiceConnectionPolicyPscConnection(
consumerAddress = javaType.consumerAddress().map({ args0 -> args0 }).orElse(null),
consumerForwardingRule = javaType.consumerForwardingRule().map({ args0 -> args0 }).orElse(null),
consumerTargetProject = javaType.consumerTargetProject().map({ args0 -> args0 }).orElse(null),
error = javaType.error().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkconnectivity.kotlin.outputs.ServiceConnectionPolicyPscConnectionError.Companion.toKotlin(args0)
})
}).orElse(null),
errorInfo = javaType.errorInfo().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkconnectivity.kotlin.outputs.ServiceConnectionPolicyPscConnectionErrorInfo.Companion.toKotlin(args0)
})
}).orElse(null),
errorType = javaType.errorType().map({ args0 -> args0 }).orElse(null),
gceOperation = javaType.gceOperation().map({ args0 -> args0 }).orElse(null),
pscConnectionId = javaType.pscConnectionId().map({ args0 -> args0 }).orElse(null),
state = javaType.state().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy