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

com.pulumi.awsnative.neptunegraph.kotlin.PrivateGraphEndpoint.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.neptunegraph.kotlin

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

/**
 * Builder for [PrivateGraphEndpoint].
 */
@PulumiTagMarker
public class PrivateGraphEndpointResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: PrivateGraphEndpointArgs = PrivateGraphEndpointArgs()

    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 PrivateGraphEndpointArgsBuilder.() -> Unit) {
        val builder = PrivateGraphEndpointArgsBuilder()
        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(): PrivateGraphEndpoint {
        val builtJavaResource =
            com.pulumi.awsnative.neptunegraph.PrivateGraphEndpoint(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return PrivateGraphEndpoint(builtJavaResource)
    }
}

/**
 * The AWS::NeptuneGraph::PrivateGraphEndpoint resource creates an Amazon NeptuneGraph PrivateGraphEndpoint.
 */
public class PrivateGraphEndpoint internal constructor(
    override val javaResource: com.pulumi.awsnative.neptunegraph.PrivateGraphEndpoint,
) : KotlinCustomResource(javaResource, PrivateGraphEndpointMapper) {
    /**
     * The auto-generated Graph Id assigned by the service.
     */
    public val graphIdentifier: Output
        get() = javaResource.graphIdentifier().applyValue({ args0 -> args0 })

    /**
     * PrivateGraphEndpoint resource identifier generated by concatenating the associated GraphIdentifier and VpcId with an underscore separator.
     *  For example, if GraphIdentifier is `g-12a3bcdef4` and VpcId is `vpc-0a12bc34567de8f90`, the generated PrivateGraphEndpointIdentifier will be `g-12a3bcdef4_vpc-0a12bc34567de8f90`
     */
    public val privateGraphEndpointIdentifier: Output
        get() = javaResource.privateGraphEndpointIdentifier().applyValue({ args0 -> args0 })

    /**
     * The security group Ids associated with the VPC where you want the private graph endpoint to be created, ie, the graph will be reachable from within the VPC.
     */
    public val securityGroupIds: Output>?
        get() = javaResource.securityGroupIds().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 -> args0 })
            }).orElse(null)
        })

    /**
     * The subnet Ids associated with the VPC where you want the private graph endpoint to be created, ie, the graph will be reachable from within the VPC.
     */
    public val subnetIds: Output>?
        get() = javaResource.subnetIds().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }).orElse(null)
        })

    /**
     * VPC endpoint that provides a private connection between the Graph and specified VPC.
     */
    public val vpcEndpointId: Output
        get() = javaResource.vpcEndpointId().applyValue({ args0 -> args0 })

    /**
     * The VPC where you want the private graph endpoint to be created, ie, the graph will be reachable from within the VPC.
     */
    public val vpcId: Output
        get() = javaResource.vpcId().applyValue({ args0 -> args0 })
}

public object PrivateGraphEndpointMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.neptunegraph.PrivateGraphEndpoint::class == javaResource::class

    override fun map(javaResource: Resource): PrivateGraphEndpoint = PrivateGraphEndpoint(
        javaResource
            as com.pulumi.awsnative.neptunegraph.PrivateGraphEndpoint,
    )
}

/**
 * @see [PrivateGraphEndpoint].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [PrivateGraphEndpoint].
 */
public suspend fun privateGraphEndpoint(
    name: String,
    block: suspend PrivateGraphEndpointResourceBuilder.() -> Unit,
): PrivateGraphEndpoint {
    val builder = PrivateGraphEndpointResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [PrivateGraphEndpoint].
 * @param name The _unique_ name of the resulting resource.
 */
public fun privateGraphEndpoint(name: String): PrivateGraphEndpoint {
    val builder = PrivateGraphEndpointResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy