com.pulumi.awsnative.cleanrooms.kotlin.AnalysisTemplate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cleanrooms.kotlin
import com.pulumi.awsnative.cleanrooms.kotlin.enums.AnalysisTemplateFormat
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.AnalysisTemplateAnalysisParameter
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.AnalysisTemplateAnalysisSchema
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.AnalysisTemplateAnalysisSource
import com.pulumi.awsnative.kotlin.outputs.Tag
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
import com.pulumi.awsnative.cleanrooms.kotlin.enums.AnalysisTemplateFormat.Companion.toKotlin as analysisTemplateFormatToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.AnalysisTemplateAnalysisParameter.Companion.toKotlin as analysisTemplateAnalysisParameterToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.AnalysisTemplateAnalysisSchema.Companion.toKotlin as analysisTemplateAnalysisSchemaToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.AnalysisTemplateAnalysisSource.Companion.toKotlin as analysisTemplateAnalysisSourceToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [AnalysisTemplate].
*/
@PulumiTagMarker
public class AnalysisTemplateResourceBuilder internal constructor() {
public var name: String? = null
public var args: AnalysisTemplateArgs = AnalysisTemplateArgs()
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 AnalysisTemplateArgsBuilder.() -> Unit) {
val builder = AnalysisTemplateArgsBuilder()
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(): AnalysisTemplate {
val builtJavaResource =
com.pulumi.awsnative.cleanrooms.AnalysisTemplate(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return AnalysisTemplate(builtJavaResource)
}
}
/**
* Represents a stored analysis within a collaboration
*/
public class AnalysisTemplate internal constructor(
override val javaResource: com.pulumi.awsnative.cleanrooms.AnalysisTemplate,
) : KotlinCustomResource(javaResource, AnalysisTemplateMapper) {
/**
* The member who can query can provide this placeholder for a literal data value in an analysis template
*/
public val analysisParameters: Output>?
get() = javaResource.analysisParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
analysisTemplateAnalysisParameterToKotlin(args0)
})
})
}).orElse(null)
})
/**
* Returns the identifier for the analysis template.
* Example: `a1b2c3d4-5678-90ab-cdef-EXAMPLE2222`
*/
public val analysisTemplateIdentifier: Output
get() = javaResource.analysisTemplateIdentifier().applyValue({ args0 -> args0 })
/**
* Returns the Amazon Resource Name (ARN) of the analysis template.
* Example: `arn:aws:cleanrooms:us-east-1:111122223333:membership/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/analysistemplates/a1b2c3d4-5678-90ab-cdef-EXAMPLE2222`
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Returns the unique ARN for the analysis template’s associated collaboration.
* Example: `arn:aws:cleanrooms:us-east-1:111122223333:collaboration/a1b2c3d4-5678-90ab-cdef-EXAMPLE33333`
*/
public val collaborationArn: Output
get() = javaResource.collaborationArn().applyValue({ args0 -> args0 })
/**
* Returns the unique ID for the associated collaboration of the analysis template.
* Example: `a1b2c3d4-5678-90ab-cdef-EXAMPLE33333`
*/
public val collaborationIdentifier: Output
get() = javaResource.collaborationIdentifier().applyValue({ args0 -> args0 })
/**
* The description of the analysis template.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The format of the analysis template.
*/
public val format: Output
get() = javaResource.format().applyValue({ args0 ->
args0.let({ args0 ->
analysisTemplateFormatToKotlin(args0)
})
})
/**
* Returns the Amazon Resource Name (ARN) of the member who created the analysis template.
* Example: `arn:aws:cleanrooms:us-east-1:111122223333:membership/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`
*/
public val membershipArn: Output
get() = javaResource.membershipArn().applyValue({ args0 -> args0 })
/**
* The identifier for a membership resource.
*/
public val membershipIdentifier: Output
get() = javaResource.membershipIdentifier().applyValue({ args0 -> args0 })
/**
* The name of the analysis template.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val schema: Output
get() = javaResource.schema().applyValue({ args0 ->
args0.let({ args0 ->
analysisTemplateAnalysisSchemaToKotlin(args0)
})
})
/**
* The source of the analysis template.
*/
public val source: Output
get() = javaResource.source().applyValue({ args0 ->
args0.let({ args0 ->
analysisTemplateAnalysisSourceToKotlin(args0)
})
})
/**
* An arbitrary set of tags (key-value pairs) for this cleanrooms analysis template.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object AnalysisTemplateMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.cleanrooms.AnalysisTemplate::class == javaResource::class
override fun map(javaResource: Resource): AnalysisTemplate = AnalysisTemplate(
javaResource as
com.pulumi.awsnative.cleanrooms.AnalysisTemplate,
)
}
/**
* @see [AnalysisTemplate].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [AnalysisTemplate].
*/
public suspend fun analysisTemplate(
name: String,
block: suspend AnalysisTemplateResourceBuilder.() -> Unit,
): AnalysisTemplate {
val builder = AnalysisTemplateResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [AnalysisTemplate].
* @param name The _unique_ name of the resulting resource.
*/
public fun analysisTemplate(name: String): AnalysisTemplate {
val builder = AnalysisTemplateResourceBuilder()
builder.name(name)
return builder.build()
}