
com.pulumi.awsnative.quicksight.kotlin.VpcConnection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.quicksight.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.quicksight.kotlin.enums.VpcConnectionVpcConnectionAvailabilityStatus
import com.pulumi.awsnative.quicksight.kotlin.enums.VpcConnectionVpcConnectionResourceStatus
import com.pulumi.awsnative.quicksight.kotlin.outputs.VpcConnectionNetworkInterface
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.quicksight.kotlin.enums.VpcConnectionVpcConnectionAvailabilityStatus.Companion.toKotlin as vpcConnectionVpcConnectionAvailabilityStatusToKotlin
import com.pulumi.awsnative.quicksight.kotlin.enums.VpcConnectionVpcConnectionResourceStatus.Companion.toKotlin as vpcConnectionVpcConnectionResourceStatusToKotlin
import com.pulumi.awsnative.quicksight.kotlin.outputs.VpcConnectionNetworkInterface.Companion.toKotlin as vpcConnectionNetworkInterfaceToKotlin
/**
* Builder for [VpcConnection].
*/
@PulumiTagMarker
public class VpcConnectionResourceBuilder internal constructor() {
public var name: String? = null
public var args: VpcConnectionArgs = VpcConnectionArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend VpcConnectionArgsBuilder.() -> Unit) {
val builder = VpcConnectionArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): VpcConnection {
val builtJavaResource = com.pulumi.awsnative.quicksight.VpcConnection(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VpcConnection(builtJavaResource)
}
}
/**
* Definition of the AWS::QuickSight::VPCConnection Resource Type.
*/
public class VpcConnection internal constructor(
override val javaResource: com.pulumi.awsnative.quicksight.VpcConnection,
) : KotlinCustomResource(javaResource, VpcConnectionMapper) {
/**
* The Amazon Resource Name (ARN) of the VPC connection.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The availability status of the VPC connection.
*/
public val availabilityStatus: Output?
get() = javaResource.availabilityStatus().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
vpcConnectionVpcConnectionAvailabilityStatusToKotlin(args0)
})
}).orElse(null)
})
/**
* The AWS account ID of the account where you want to create a new VPC connection.
*/
public val awsAccountId: Output?
get() = javaResource.awsAccountId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The time that the VPC connection was created.
*/
public val createdTime: Output
get() = javaResource.createdTime().applyValue({ args0 -> args0 })
/**
* A list of IP addresses of DNS resolver endpoints for the VPC connection.
*/
public val dnsResolvers: Output>?
get() = javaResource.dnsResolvers().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* The time that the VPC connection was last updated.
*/
public val lastUpdatedTime: Output
get() = javaResource.lastUpdatedTime().applyValue({ args0 -> args0 })
/**
* The display name for the VPC connection.
*/
public val name: Output?
get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* A list of network interfaces.
*/
public val networkInterfaces: Output>
get() = javaResource.networkInterfaces().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> vpcConnectionNetworkInterfaceToKotlin(args0) })
})
})
/**
* The ARN of the IAM role associated with the VPC connection.
*/
public val roleArn: Output?
get() = javaResource.roleArn().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The Amazon EC2 security group IDs associated with the VPC connection.
*/
public val securityGroupIds: Output>?
get() = javaResource.securityGroupIds().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* The HTTP status of the request.
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 ->
args0.let({ args0 ->
vpcConnectionVpcConnectionResourceStatusToKotlin(args0)
})
})
/**
* A list of subnet IDs for the VPC connection.
*/
public val subnetIds: Output>?
get() = javaResource.subnetIds().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* A map of the key-value pairs for the resource tag or tags assigned to the VPC connection.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* The ID of the VPC connection that you're creating. This ID is a unique identifier for each AWS Region in an AWS account.
*/
public val vpcConnectionId: Output?
get() = javaResource.vpcConnectionId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon EC2 VPC ID associated with the VPC connection.
*/
public val vpcId: Output
get() = javaResource.vpcId().applyValue({ args0 -> args0 })
}
public object VpcConnectionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.quicksight.VpcConnection::class == javaResource::class
override fun map(javaResource: Resource): VpcConnection = VpcConnection(
javaResource as
com.pulumi.awsnative.quicksight.VpcConnection,
)
}
/**
* @see [VpcConnection].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [VpcConnection].
*/
public suspend fun vpcConnection(
name: String,
block: suspend VpcConnectionResourceBuilder.() -> Unit,
): VpcConnection {
val builder = VpcConnectionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [VpcConnection].
* @param name The _unique_ name of the resulting resource.
*/
public fun vpcConnection(name: String): VpcConnection {
val builder = VpcConnectionResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy