com.pulumi.awsnative.cleanrooms.kotlin.Collaboration.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.CollaborationMemberAbility
import com.pulumi.awsnative.cleanrooms.kotlin.enums.CollaborationQueryLogStatus
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.CollaborationDataEncryptionMetadata
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.CollaborationMemberSpecification
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.CollaborationPaymentConfiguration
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.CollaborationMemberAbility.Companion.toKotlin as collaborationMemberAbilityToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.enums.CollaborationQueryLogStatus.Companion.toKotlin as collaborationQueryLogStatusToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.CollaborationDataEncryptionMetadata.Companion.toKotlin as collaborationDataEncryptionMetadataToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.CollaborationMemberSpecification.Companion.toKotlin as collaborationMemberSpecificationToKotlin
import com.pulumi.awsnative.cleanrooms.kotlin.outputs.CollaborationPaymentConfiguration.Companion.toKotlin as collaborationPaymentConfigurationToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [Collaboration].
*/
@PulumiTagMarker
public class CollaborationResourceBuilder internal constructor() {
public var name: String? = null
public var args: CollaborationArgs = CollaborationArgs()
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 CollaborationArgsBuilder.() -> Unit) {
val builder = CollaborationArgsBuilder()
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(): Collaboration {
val builtJavaResource = com.pulumi.awsnative.cleanrooms.Collaboration(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Collaboration(builtJavaResource)
}
}
/**
* Represents a collaboration between AWS accounts that allows for secure data collaboration
*/
public class Collaboration internal constructor(
override val javaResource: com.pulumi.awsnative.cleanrooms.Collaboration,
) : KotlinCustomResource(javaResource, CollaborationMapper) {
/**
* Returns the Amazon Resource Name (ARN) of the specified collaboration.
* Example: `arn:aws:cleanrooms:us-east-1:111122223333:collaboration/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Returns the unique identifier of the specified collaboration.
* Example: `a1b2c3d4-5678-90ab-cdef-EXAMPLE11111`
*/
public val collaborationIdentifier: Output
get() = javaResource.collaborationIdentifier().applyValue({ args0 -> args0 })
/**
* A display name of the collaboration creator.
*/
public val creatorDisplayName: Output
get() = javaResource.creatorDisplayName().applyValue({ args0 -> args0 })
/**
* The abilities granted to the collaboration creator.
* *Allowed values* `CAN_QUERY` | `CAN_RECEIVE_RESULTS`
*/
public val creatorMemberAbilities: Output>
get() = javaResource.creatorMemberAbilities().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> collaborationMemberAbilityToKotlin(args0) })
})
})
/**
* An object representing the collaboration member's payment responsibilities set by the collaboration creator.
*/
public val creatorPaymentConfiguration: Output?
get() = javaResource.creatorPaymentConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> collaborationPaymentConfigurationToKotlin(args0) })
}).orElse(null)
})
/**
* The settings for client-side encryption for cryptographic computing.
*/
public val dataEncryptionMetadata: Output?
get() = javaResource.dataEncryptionMetadata().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> collaborationDataEncryptionMetadataToKotlin(args0) })
}).orElse(null)
})
/**
* A description of the collaboration provided by the collaboration owner.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* A list of initial members, not including the creator. This list is immutable.
*/
public val members: Output>
get() = javaResource.members().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
collaborationMemberSpecificationToKotlin(args0)
})
})
})
/**
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* An indicator as to whether query logging has been enabled or disabled for the collaboration.
*/
public val queryLogStatus: Output
get() = javaResource.queryLogStatus().applyValue({ args0 ->
args0.let({ args0 ->
collaborationQueryLogStatusToKotlin(args0)
})
})
/**
* An arbitrary set of tags (key-value pairs) for this cleanrooms collaboration.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
}
public object CollaborationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.cleanrooms.Collaboration::class == javaResource::class
override fun map(javaResource: Resource): Collaboration = Collaboration(
javaResource as
com.pulumi.awsnative.cleanrooms.Collaboration,
)
}
/**
* @see [Collaboration].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Collaboration].
*/
public suspend fun collaboration(
name: String,
block: suspend CollaborationResourceBuilder.() -> Unit,
): Collaboration {
val builder = CollaborationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Collaboration].
* @param name The _unique_ name of the resulting resource.
*/
public fun collaboration(name: String): Collaboration {
val builder = CollaborationResourceBuilder()
builder.name(name)
return builder.build()
}