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

com.pulumi.awsnative.b2bi.kotlin.Partnership.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.b2bi.kotlin

import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
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 [Partnership].
 */
@PulumiTagMarker
public class PartnershipResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: PartnershipArgs = PartnershipArgs()

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

/**
 * Definition of AWS::B2BI::Partnership Resource Type
 */
public class Partnership internal constructor(
    override val javaResource: com.pulumi.awsnative.b2bi.Partnership,
) : KotlinCustomResource(javaResource, PartnershipMapper) {
    /**
     * Returns one or more capabilities associated with this partnership.
     */
    public val capabilities: Output>?
        get() = javaResource.capabilities().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }).orElse(null)
        })

    /**
     * Returns a timestamp for creation date and time of the partnership.
     */
    public val createdAt: Output
        get() = javaResource.createdAt().applyValue({ args0 -> args0 })

    public val email: Output
        get() = javaResource.email().applyValue({ args0 -> args0 })

    /**
     * Returns a timestamp that identifies the most recent date and time that the partnership was modified.
     */
    public val modifiedAt: Output
        get() = javaResource.modifiedAt().applyValue({ args0 -> args0 })

    /**
     * Returns the name of the partnership.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * Returns an Amazon Resource Name (ARN) for a specific AWS resource, such as a capability, partnership, profile, or transformer.
     */
    public val partnershipArn: Output
        get() = javaResource.partnershipArn().applyValue({ args0 -> args0 })

    /**
     * Returns the unique, system-generated identifier for a partnership.
     */
    public val partnershipId: Output
        get() = javaResource.partnershipId().applyValue({ args0 -> args0 })

    public val phone: Output?
        get() = javaResource.phone().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    /**
     * Returns the unique, system-generated identifier for the profile connected to this partnership.
     */
    public val profileId: Output
        get() = javaResource.profileId().applyValue({ args0 -> args0 })

    /**
     * A key-value pair for a specific partnership. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> toKotlin(args0) })
                })
            }).orElse(null)
        })

    /**
     * Returns the unique, system-generated identifier for a trading partner.
     */
    public val tradingPartnerId: Output
        get() = javaResource.tradingPartnerId().applyValue({ args0 -> args0 })
}

public object PartnershipMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.b2bi.Partnership::class == javaResource::class

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy