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

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

package com.pulumi.awsnative.apigateway.kotlin

import com.pulumi.awsnative.apigateway.ResourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The ``AWS::ApiGateway::Resource`` resource creates a resource in an API.
 * @property parentId The parent resource's identifier.
 * @property pathPart The last path segment for this resource.
 * @property restApiId The string identifier of the associated RestApi.
 */
public data class ResourceArgs(
    public val parentId: Output? = null,
    public val pathPart: Output? = null,
    public val restApiId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigateway.ResourceArgs =
        com.pulumi.awsnative.apigateway.ResourceArgs.builder()
            .parentId(parentId?.applyValue({ args0 -> args0 }))
            .pathPart(pathPart?.applyValue({ args0 -> args0 }))
            .restApiId(restApiId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourceArgs].
 */
@PulumiTagMarker
public class ResourceArgsBuilder internal constructor() {
    private var parentId: Output? = null

    private var pathPart: Output? = null

    private var restApiId: Output? = null

    /**
     * @param value The parent resource's identifier.
     */
    @JvmName("gttmhjdbwdwsaqqk")
    public suspend fun parentId(`value`: Output) {
        this.parentId = value
    }

    /**
     * @param value The last path segment for this resource.
     */
    @JvmName("sblwaseqlafkmeur")
    public suspend fun pathPart(`value`: Output) {
        this.pathPart = value
    }

    /**
     * @param value The string identifier of the associated RestApi.
     */
    @JvmName("bojaxdxnthvmgqym")
    public suspend fun restApiId(`value`: Output) {
        this.restApiId = value
    }

    /**
     * @param value The parent resource's identifier.
     */
    @JvmName("pagygrqtdrlyhykb")
    public suspend fun parentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parentId = mapped
    }

    /**
     * @param value The last path segment for this resource.
     */
    @JvmName("ayrniqblvxvbgflf")
    public suspend fun pathPart(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pathPart = mapped
    }

    /**
     * @param value The string identifier of the associated RestApi.
     */
    @JvmName("gfinewghdvbdaevt")
    public suspend fun restApiId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.restApiId = mapped
    }

    internal fun build(): ResourceArgs = ResourceArgs(
        parentId = parentId,
        pathPart = pathPart,
        restApiId = restApiId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy