![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.servicecatalogappregistry.kotlin.AttributeGroupAssociation.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.servicecatalogappregistry.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
/**
* Builder for [AttributeGroupAssociation].
*/
@PulumiTagMarker
public class AttributeGroupAssociationResourceBuilder internal constructor() {
public var name: String? = null
public var args: AttributeGroupAssociationArgs = AttributeGroupAssociationArgs()
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 AttributeGroupAssociationArgsBuilder.() -> Unit) {
val builder = AttributeGroupAssociationArgsBuilder()
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(): AttributeGroupAssociation {
val builtJavaResource =
com.pulumi.awsnative.servicecatalogappregistry.AttributeGroupAssociation(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return AttributeGroupAssociation(builtJavaResource)
}
}
/**
* Resource Schema for AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation.
*/
public class AttributeGroupAssociation internal constructor(
override val javaResource: com.pulumi.awsnative.servicecatalogappregistry.AttributeGroupAssociation,
) : KotlinCustomResource(javaResource, AttributeGroupAssociationMapper) {
/**
* The name or the Id of the Application.
*/
public val application: Output
get() = javaResource.application().applyValue({ args0 -> args0 })
/**
* The Amazon resource name (ARN) of the application that was augmented with attributes.
*/
public val applicationArn: Output
get() = javaResource.applicationArn().applyValue({ args0 -> args0 })
/**
* The name or the Id of the AttributeGroup.
*/
public val attributeGroup: Output
get() = javaResource.attributeGroup().applyValue({ args0 -> args0 })
/**
* The Amazon resource name (ARN) of the attribute group which contains the application's new attributes.
*/
public val attributeGroupArn: Output
get() = javaResource.attributeGroupArn().applyValue({ args0 -> args0 })
}
public object AttributeGroupAssociationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.servicecatalogappregistry.AttributeGroupAssociation::class == javaResource::class
override fun map(javaResource: Resource): AttributeGroupAssociation =
AttributeGroupAssociation(
javaResource as
com.pulumi.awsnative.servicecatalogappregistry.AttributeGroupAssociation,
)
}
/**
* @see [AttributeGroupAssociation].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [AttributeGroupAssociation].
*/
public suspend fun attributeGroupAssociation(
name: String,
block: suspend AttributeGroupAssociationResourceBuilder.() -> Unit,
): AttributeGroupAssociation {
val builder = AttributeGroupAssociationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [AttributeGroupAssociation].
* @param name The _unique_ name of the resulting resource.
*/
public fun attributeGroupAssociation(name: String): AttributeGroupAssociation {
val builder = AttributeGroupAssociationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy