![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.rds.kotlin.DbProxyEndpoint.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.rds.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.rds.kotlin.enums.DbProxyEndpointTargetRole
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.rds.kotlin.enums.DbProxyEndpointTargetRole.Companion.toKotlin as dbProxyEndpointTargetRoleToKotlin
/**
* Builder for [DbProxyEndpoint].
*/
@PulumiTagMarker
public class DbProxyEndpointResourceBuilder internal constructor() {
public var name: String? = null
public var args: DbProxyEndpointArgs = DbProxyEndpointArgs()
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 DbProxyEndpointArgsBuilder.() -> Unit) {
val builder = DbProxyEndpointArgsBuilder()
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(): DbProxyEndpoint {
val builtJavaResource = com.pulumi.awsnative.rds.DbProxyEndpoint(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return DbProxyEndpoint(builtJavaResource)
}
}
/**
* Resource schema for AWS::RDS::DBProxyEndpoint.
*/
public class DbProxyEndpoint internal constructor(
override val javaResource: com.pulumi.awsnative.rds.DbProxyEndpoint,
) : KotlinCustomResource(javaResource, DbProxyEndpointMapper) {
/**
* The Amazon Resource Name (ARN) for the DB proxy endpoint.
*/
public val dbProxyEndpointArn: Output
get() = javaResource.dbProxyEndpointArn().applyValue({ args0 -> args0 })
/**
* The identifier for the DB proxy endpoint. This name must be unique for all DB proxy endpoints owned by your AWS account in the specified AWS Region.
*/
public val dbProxyEndpointName: Output
get() = javaResource.dbProxyEndpointName().applyValue({ args0 -> args0 })
/**
* The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region.
*/
public val dbProxyName: Output
get() = javaResource.dbProxyName().applyValue({ args0 -> args0 })
/**
* The endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection string for a database client application.
*/
public val endpoint: Output
get() = javaResource.endpoint().applyValue({ args0 -> args0 })
/**
* A value that indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
*/
public val isDefault: Output
get() = javaResource.isDefault().applyValue({ args0 -> args0 })
/**
* An optional set of key-value pairs to associate arbitrary data of your choosing with the DB proxy endpoint.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
*/
public val targetRole: Output?
get() = javaResource.targetRole().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
dbProxyEndpointTargetRoleToKotlin(args0)
})
}).orElse(null)
})
/**
* VPC ID to associate with the new DB proxy endpoint.
*/
public val vpcId: Output
get() = javaResource.vpcId().applyValue({ args0 -> args0 })
/**
* VPC security group IDs to associate with the new DB proxy endpoint.
*/
public val vpcSecurityGroupIds: Output>?
get() = javaResource.vpcSecurityGroupIds().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* VPC subnet IDs to associate with the new DB proxy endpoint.
*/
public val vpcSubnetIds: Output>
get() = javaResource.vpcSubnetIds().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
}
public object DbProxyEndpointMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.rds.DbProxyEndpoint::class == javaResource::class
override fun map(javaResource: Resource): DbProxyEndpoint = DbProxyEndpoint(
javaResource as
com.pulumi.awsnative.rds.DbProxyEndpoint,
)
}
/**
* @see [DbProxyEndpoint].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [DbProxyEndpoint].
*/
public suspend fun dbProxyEndpoint(
name: String,
block: suspend DbProxyEndpointResourceBuilder.() -> Unit,
): DbProxyEndpoint {
val builder = DbProxyEndpointResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [DbProxyEndpoint].
* @param name The _unique_ name of the resulting resource.
*/
public fun dbProxyEndpoint(name: String): DbProxyEndpoint {
val builder = DbProxyEndpointResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy