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

com.pulumi.awsnative.refactorspaces.kotlin.ServiceArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.refactorspaces.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.refactorspaces.ServiceArgs.builder
import com.pulumi.awsnative.refactorspaces.kotlin.enums.ServiceEndpointType
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.ServiceLambdaEndpointInputArgs
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.ServiceLambdaEndpointInputArgsBuilder
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.ServiceUrlEndpointInputArgs
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.ServiceUrlEndpointInputArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::RefactorSpaces::Service Resource Type
 * @property applicationIdentifier The unique identifier of the application.
 * @property description A description of the service.
 * @property endpointType The endpoint type of the service.
 * @property environmentIdentifier The unique identifier of the environment.
 * @property lambdaEndpoint A summary of the configuration for the AWS Lambda endpoint type.
 * @property name The name of the service.
 * @property tags Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
 * @property urlEndpoint The summary of the configuration for the URL endpoint type.
 * @property vpcId The ID of the virtual private cloud (VPC).
 */
public data class ServiceArgs(
    public val applicationIdentifier: Output? = null,
    public val description: Output? = null,
    public val endpointType: Output? = null,
    public val environmentIdentifier: Output? = null,
    public val lambdaEndpoint: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val urlEndpoint: Output? = null,
    public val vpcId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.refactorspaces.ServiceArgs =
        com.pulumi.awsnative.refactorspaces.ServiceArgs.builder()
            .applicationIdentifier(applicationIdentifier?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .endpointType(endpointType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .environmentIdentifier(environmentIdentifier?.applyValue({ args0 -> args0 }))
            .lambdaEndpoint(lambdaEndpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .urlEndpoint(urlEndpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceArgs].
 */
@PulumiTagMarker
public class ServiceArgsBuilder internal constructor() {
    private var applicationIdentifier: Output? = null

    private var description: Output? = null

    private var endpointType: Output? = null

    private var environmentIdentifier: Output? = null

    private var lambdaEndpoint: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var urlEndpoint: Output? = null

    private var vpcId: Output? = null

    /**
     * @param value The unique identifier of the application.
     */
    @JvmName("fcliyusmdaekwofs")
    public suspend fun applicationIdentifier(`value`: Output) {
        this.applicationIdentifier = value
    }

    /**
     * @param value A description of the service.
     */
    @JvmName("eopwfedjmeocpqus")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The endpoint type of the service.
     */
    @JvmName("oksxdnlospjaodfv")
    public suspend fun endpointType(`value`: Output) {
        this.endpointType = value
    }

    /**
     * @param value The unique identifier of the environment.
     */
    @JvmName("odovgfeuuudytuof")
    public suspend fun environmentIdentifier(`value`: Output) {
        this.environmentIdentifier = value
    }

    /**
     * @param value A summary of the configuration for the AWS Lambda endpoint type.
     */
    @JvmName("ebapqfunneeolojr")
    public suspend fun lambdaEndpoint(`value`: Output) {
        this.lambdaEndpoint = value
    }

    /**
     * @param value The name of the service.
     */
    @JvmName("bxtiocxyvyawpmat")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("ubiulxnvhhyopolc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("gouvbviapjojjebm")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("cbktdgmvxqhdmrda")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The summary of the configuration for the URL endpoint type.
     */
    @JvmName("rhrqcxmkjwuategi")
    public suspend fun urlEndpoint(`value`: Output) {
        this.urlEndpoint = value
    }

    /**
     * @param value The ID of the virtual private cloud (VPC).
     */
    @JvmName("kgfygxlhvtnwbjni")
    public suspend fun vpcId(`value`: Output) {
        this.vpcId = value
    }

    /**
     * @param value The unique identifier of the application.
     */
    @JvmName("inrumvlksyhmihsp")
    public suspend fun applicationIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationIdentifier = mapped
    }

    /**
     * @param value A description of the service.
     */
    @JvmName("mkgyiqbextvkmevj")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The endpoint type of the service.
     */
    @JvmName("toaymkfoaombjber")
    public suspend fun endpointType(`value`: ServiceEndpointType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointType = mapped
    }

    /**
     * @param value The unique identifier of the environment.
     */
    @JvmName("pimjfnalovptmhpv")
    public suspend fun environmentIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentIdentifier = mapped
    }

    /**
     * @param value A summary of the configuration for the AWS Lambda endpoint type.
     */
    @JvmName("facopqtqejqmroam")
    public suspend fun lambdaEndpoint(`value`: ServiceLambdaEndpointInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lambdaEndpoint = mapped
    }

    /**
     * @param argument A summary of the configuration for the AWS Lambda endpoint type.
     */
    @JvmName("uqxoxrkkdjgmkllu")
    public suspend fun lambdaEndpoint(argument: suspend ServiceLambdaEndpointInputArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceLambdaEndpointInputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.lambdaEndpoint = mapped
    }

    /**
     * @param value The name of the service.
     */
    @JvmName("gwcpliopjfifdpqw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("xxsfyldmcwavfxki")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("eqrtfuafrhjpxbfy")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("ordvrhcekjahtsvk")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("mknkidutgcbduyku")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("xvlfqcdqccrlcgyn")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The summary of the configuration for the URL endpoint type.
     */
    @JvmName("rfryqffjspnjnidq")
    public suspend fun urlEndpoint(`value`: ServiceUrlEndpointInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.urlEndpoint = mapped
    }

    /**
     * @param argument The summary of the configuration for the URL endpoint type.
     */
    @JvmName("urdpublhnhrpxrjj")
    public suspend fun urlEndpoint(argument: suspend ServiceUrlEndpointInputArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceUrlEndpointInputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.urlEndpoint = mapped
    }

    /**
     * @param value The ID of the virtual private cloud (VPC).
     */
    @JvmName("vqciqfuwcbsrtlnt")
    public suspend fun vpcId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcId = mapped
    }

    internal fun build(): ServiceArgs = ServiceArgs(
        applicationIdentifier = applicationIdentifier,
        description = description,
        endpointType = endpointType,
        environmentIdentifier = environmentIdentifier,
        lambdaEndpoint = lambdaEndpoint,
        name = name,
        tags = tags,
        urlEndpoint = urlEndpoint,
        vpcId = vpcId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy