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

com.pulumi.aws.cleanrooms.kotlin.CollaborationArgs.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: 6.66.3.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.cleanrooms.kotlin

import com.pulumi.aws.cleanrooms.CollaborationArgs.builder
import com.pulumi.aws.cleanrooms.kotlin.inputs.CollaborationDataEncryptionMetadataArgs
import com.pulumi.aws.cleanrooms.kotlin.inputs.CollaborationDataEncryptionMetadataArgsBuilder
import com.pulumi.aws.cleanrooms.kotlin.inputs.CollaborationMemberArgs
import com.pulumi.aws.cleanrooms.kotlin.inputs.CollaborationMemberArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides a AWS Clean Rooms collaboration.  All members included in the definition will be invited to
 * join the collaboration and can create memberships.
 * ## Example Usage
 * ### Collaboration with tags
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const testCollaboration = new aws.cleanrooms.Collaboration("test_collaboration", {
 *     name: "pulumi-example-collaboration",
 *     creatorMemberAbilities: [
 *         "CAN_QUERY",
 *         "CAN_RECEIVE_RESULTS",
 *     ],
 *     creatorDisplayName: "Creator ",
 *     description: "I made this collaboration with Pulumi!",
 *     queryLogStatus: "DISABLED",
 *     dataEncryptionMetadata: {
 *         allowClearText: true,
 *         allowDuplicates: true,
 *         allowJoinsOnColumnsWithDifferentNames: true,
 *         preserveNulls: false,
 *     },
 *     members: [{
 *         accountId: "123456789012",
 *         displayName: "Other member",
 *         memberAbilities: [],
 *     }],
 *     tags: {
 *         Project: "Pulumi",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * test_collaboration = aws.cleanrooms.Collaboration("test_collaboration",
 *     name="pulumi-example-collaboration",
 *     creator_member_abilities=[
 *         "CAN_QUERY",
 *         "CAN_RECEIVE_RESULTS",
 *     ],
 *     creator_display_name="Creator ",
 *     description="I made this collaboration with Pulumi!",
 *     query_log_status="DISABLED",
 *     data_encryption_metadata={
 *         "allow_clear_text": True,
 *         "allow_duplicates": True,
 *         "allow_joins_on_columns_with_different_names": True,
 *         "preserve_nulls": False,
 *     },
 *     members=[{
 *         "account_id": "123456789012",
 *         "display_name": "Other member",
 *         "member_abilities": [],
 *     }],
 *     tags={
 *         "Project": "Pulumi",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var testCollaboration = new Aws.CleanRooms.Collaboration("test_collaboration", new()
 *     {
 *         Name = "pulumi-example-collaboration",
 *         CreatorMemberAbilities = new[]
 *         {
 *             "CAN_QUERY",
 *             "CAN_RECEIVE_RESULTS",
 *         },
 *         CreatorDisplayName = "Creator ",
 *         Description = "I made this collaboration with Pulumi!",
 *         QueryLogStatus = "DISABLED",
 *         DataEncryptionMetadata = new Aws.CleanRooms.Inputs.CollaborationDataEncryptionMetadataArgs
 *         {
 *             AllowClearText = true,
 *             AllowDuplicates = true,
 *             AllowJoinsOnColumnsWithDifferentNames = true,
 *             PreserveNulls = false,
 *         },
 *         Members = new[]
 *         {
 *             new Aws.CleanRooms.Inputs.CollaborationMemberArgs
 *             {
 *                 AccountId = "123456789012",
 *                 DisplayName = "Other member",
 *                 MemberAbilities = new() { },
 *             },
 *         },
 *         Tags =
 *         {
 *             { "Project", "Pulumi" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cleanrooms"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cleanrooms.NewCollaboration(ctx, "test_collaboration", &cleanrooms.CollaborationArgs{
 * 			Name: pulumi.String("pulumi-example-collaboration"),
 * 			CreatorMemberAbilities: pulumi.StringArray{
 * 				pulumi.String("CAN_QUERY"),
 * 				pulumi.String("CAN_RECEIVE_RESULTS"),
 * 			},
 * 			CreatorDisplayName: pulumi.String("Creator "),
 * 			Description:        pulumi.String("I made this collaboration with Pulumi!"),
 * 			QueryLogStatus:     pulumi.String("DISABLED"),
 * 			DataEncryptionMetadata: &cleanrooms.CollaborationDataEncryptionMetadataArgs{
 * 				AllowClearText:                        pulumi.Bool(true),
 * 				AllowDuplicates:                       pulumi.Bool(true),
 * 				AllowJoinsOnColumnsWithDifferentNames: pulumi.Bool(true),
 * 				PreserveNulls:                         pulumi.Bool(false),
 * 			},
 * 			Members: cleanrooms.CollaborationMemberArray{
 * 				&cleanrooms.CollaborationMemberArgs{
 * 					AccountId:       pulumi.String("123456789012"),
 * 					DisplayName:     pulumi.String("Other member"),
 * 					MemberAbilities: pulumi.StringArray{},
 * 				},
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"Project": pulumi.String("Pulumi"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.cleanrooms.Collaboration;
 * import com.pulumi.aws.cleanrooms.CollaborationArgs;
 * import com.pulumi.aws.cleanrooms.inputs.CollaborationDataEncryptionMetadataArgs;
 * import com.pulumi.aws.cleanrooms.inputs.CollaborationMemberArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var testCollaboration = new Collaboration("testCollaboration", CollaborationArgs.builder()
 *             .name("pulumi-example-collaboration")
 *             .creatorMemberAbilities(
 *                 "CAN_QUERY",
 *                 "CAN_RECEIVE_RESULTS")
 *             .creatorDisplayName("Creator ")
 *             .description("I made this collaboration with Pulumi!")
 *             .queryLogStatus("DISABLED")
 *             .dataEncryptionMetadata(CollaborationDataEncryptionMetadataArgs.builder()
 *                 .allowClearText(true)
 *                 .allowDuplicates(true)
 *                 .allowJoinsOnColumnsWithDifferentNames(true)
 *                 .preserveNulls(false)
 *                 .build())
 *             .members(CollaborationMemberArgs.builder()
 *                 .accountId(123456789012)
 *                 .displayName("Other member")
 *                 .memberAbilities()
 *                 .build())
 *             .tags(Map.of("Project", "Pulumi"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   testCollaboration:
 *     type: aws:cleanrooms:Collaboration
 *     name: test_collaboration
 *     properties:
 *       name: pulumi-example-collaboration
 *       creatorMemberAbilities:
 *         - CAN_QUERY
 *         - CAN_RECEIVE_RESULTS
 *       creatorDisplayName: 'Creator '
 *       description: I made this collaboration with Pulumi!
 *       queryLogStatus: DISABLED
 *       dataEncryptionMetadata:
 *         allowClearText: true
 *         allowDuplicates: true
 *         allowJoinsOnColumnsWithDifferentNames: true
 *         preserveNulls: false
 *       members:
 *         - accountId: 1.23456789012e+11
 *           displayName: Other member
 *           memberAbilities: []
 *       tags:
 *         Project: Pulumi
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import `aws_cleanrooms_collaboration` using the `id`. For example:
 * ```sh
 * $ pulumi import aws:cleanrooms/collaboration:Collaboration collaboration 1234abcd-12ab-34cd-56ef-1234567890ab
 * ```
 * @property creatorDisplayName The name for the member record for the collaboration creator.
 * @property creatorMemberAbilities The list of member abilities for the creator of the collaboration.  Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
 * @property dataEncryptionMetadata a collection of settings which determine how the [c3r client](https://docs.aws.amazon.com/clean-rooms/latest/userguide/crypto-computing.html) will encrypt data for use within this collaboration.
 * * `data_encryption_metadata.allow_clear_text` - (Required - Forces new resource) - Indicates whether encrypted tables can contain cleartext data. This is a boolea
 * field.
 * * `data_encryption_metadata.allow_duplicates` - (Required - Forces new resource ) - Indicates whether Fingerprint columns can contain duplicate entries. This is a
 * boolean field.
 * * `data_encryption_metadata.allow_joins_on_columns_with_different_names` - (Required - Forces new resource) - Indicates whether Fingerprint columns can be joined
 * n any other Fingerprint column with a different name. This is a boolean field.
 * * `data_encryption_metadata.preserve_nulls` - (Required - Forces new resource) - Indicates whether NULL values are to be copied as NULL to encrypted tables (true)
 * or cryptographically processed (false).
 * @property description A description for a collaboration.
 * @property members Additional members of the collaboration which will be invited to join the collaboration.
 * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
 * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
 * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
 * @property name The name of the collaboration.  Collaboration names do not need to be unique.
 * @property queryLogStatus Determines if members of the collaboration can enable query logs within their own.
 * emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-queryLogStatus).
 * @property tags Key value pairs which tag the collaboration.
 */
public data class CollaborationArgs(
    public val creatorDisplayName: Output? = null,
    public val creatorMemberAbilities: Output>? = null,
    public val dataEncryptionMetadata: Output? = null,
    public val description: Output? = null,
    public val members: Output>? = null,
    public val name: Output? = null,
    public val queryLogStatus: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cleanrooms.CollaborationArgs =
        com.pulumi.aws.cleanrooms.CollaborationArgs.builder()
            .creatorDisplayName(creatorDisplayName?.applyValue({ args0 -> args0 }))
            .creatorMemberAbilities(
                creatorMemberAbilities?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .dataEncryptionMetadata(
                dataEncryptionMetadata?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .members(
                members?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .queryLogStatus(queryLogStatus?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [CollaborationArgs].
 */
@PulumiTagMarker
public class CollaborationArgsBuilder internal constructor() {
    private var creatorDisplayName: Output? = null

    private var creatorMemberAbilities: Output>? = null

    private var dataEncryptionMetadata: Output? = null

    private var description: Output? = null

    private var members: Output>? = null

    private var name: Output? = null

    private var queryLogStatus: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name for the member record for the collaboration creator.
     */
    @JvmName("jusklwxhbcrtexil")
    public suspend fun creatorDisplayName(`value`: Output) {
        this.creatorDisplayName = value
    }

    /**
     * @param value The list of member abilities for the creator of the collaboration.  Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("fexpctepfvoghmvj")
    public suspend fun creatorMemberAbilities(`value`: Output>) {
        this.creatorMemberAbilities = value
    }

    @JvmName("wvaupxbthocjrmfu")
    public suspend fun creatorMemberAbilities(vararg values: Output) {
        this.creatorMemberAbilities = Output.all(values.asList())
    }

    /**
     * @param values The list of member abilities for the creator of the collaboration.  Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("xoowrodpovjcksdl")
    public suspend fun creatorMemberAbilities(values: List>) {
        this.creatorMemberAbilities = Output.all(values)
    }

    /**
     * @param value a collection of settings which determine how the [c3r client](https://docs.aws.amazon.com/clean-rooms/latest/userguide/crypto-computing.html) will encrypt data for use within this collaboration.
     * * `data_encryption_metadata.allow_clear_text` - (Required - Forces new resource) - Indicates whether encrypted tables can contain cleartext data. This is a boolea
     * field.
     * * `data_encryption_metadata.allow_duplicates` - (Required - Forces new resource ) - Indicates whether Fingerprint columns can contain duplicate entries. This is a
     * boolean field.
     * * `data_encryption_metadata.allow_joins_on_columns_with_different_names` - (Required - Forces new resource) - Indicates whether Fingerprint columns can be joined
     * n any other Fingerprint column with a different name. This is a boolean field.
     * * `data_encryption_metadata.preserve_nulls` - (Required - Forces new resource) - Indicates whether NULL values are to be copied as NULL to encrypted tables (true)
     * or cryptographically processed (false).
     */
    @JvmName("qbbflakuuvgevxtm")
    public suspend fun dataEncryptionMetadata(`value`: Output) {
        this.dataEncryptionMetadata = value
    }

    /**
     * @param value A description for a collaboration.
     */
    @JvmName("canivngnwegyrqoh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("gqodevlaexcirwro")
    public suspend fun members(`value`: Output>) {
        this.members = value
    }

    @JvmName("unsblucdfesxqklu")
    public suspend fun members(vararg values: Output) {
        this.members = Output.all(values.asList())
    }

    /**
     * @param values Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("bxgpndlukdfsnaha")
    public suspend fun members(values: List>) {
        this.members = Output.all(values)
    }

    /**
     * @param value The name of the collaboration.  Collaboration names do not need to be unique.
     */
    @JvmName("swwxgkmxjceffcgi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Determines if members of the collaboration can enable query logs within their own.
     * emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-queryLogStatus).
     */
    @JvmName("otbjshaiiqdiphgh")
    public suspend fun queryLogStatus(`value`: Output) {
        this.queryLogStatus = value
    }

    /**
     * @param value Key value pairs which tag the collaboration.
     */
    @JvmName("shyjtwkbxcejhuui")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The name for the member record for the collaboration creator.
     */
    @JvmName("vxnnkasgtnkyvaur")
    public suspend fun creatorDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.creatorDisplayName = mapped
    }

    /**
     * @param value The list of member abilities for the creator of the collaboration.  Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("smplqxtcvidsfpqy")
    public suspend fun creatorMemberAbilities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.creatorMemberAbilities = mapped
    }

    /**
     * @param values The list of member abilities for the creator of the collaboration.  Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("imogjciwnefxwvie")
    public suspend fun creatorMemberAbilities(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.creatorMemberAbilities = mapped
    }

    /**
     * @param value a collection of settings which determine how the [c3r client](https://docs.aws.amazon.com/clean-rooms/latest/userguide/crypto-computing.html) will encrypt data for use within this collaboration.
     * * `data_encryption_metadata.allow_clear_text` - (Required - Forces new resource) - Indicates whether encrypted tables can contain cleartext data. This is a boolea
     * field.
     * * `data_encryption_metadata.allow_duplicates` - (Required - Forces new resource ) - Indicates whether Fingerprint columns can contain duplicate entries. This is a
     * boolean field.
     * * `data_encryption_metadata.allow_joins_on_columns_with_different_names` - (Required - Forces new resource) - Indicates whether Fingerprint columns can be joined
     * n any other Fingerprint column with a different name. This is a boolean field.
     * * `data_encryption_metadata.preserve_nulls` - (Required - Forces new resource) - Indicates whether NULL values are to be copied as NULL to encrypted tables (true)
     * or cryptographically processed (false).
     */
    @JvmName("ivdbalsurrejnmft")
    public suspend fun dataEncryptionMetadata(`value`: CollaborationDataEncryptionMetadataArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataEncryptionMetadata = mapped
    }

    /**
     * @param argument a collection of settings which determine how the [c3r client](https://docs.aws.amazon.com/clean-rooms/latest/userguide/crypto-computing.html) will encrypt data for use within this collaboration.
     * * `data_encryption_metadata.allow_clear_text` - (Required - Forces new resource) - Indicates whether encrypted tables can contain cleartext data. This is a boolea
     * field.
     * * `data_encryption_metadata.allow_duplicates` - (Required - Forces new resource ) - Indicates whether Fingerprint columns can contain duplicate entries. This is a
     * boolean field.
     * * `data_encryption_metadata.allow_joins_on_columns_with_different_names` - (Required - Forces new resource) - Indicates whether Fingerprint columns can be joined
     * n any other Fingerprint column with a different name. This is a boolean field.
     * * `data_encryption_metadata.preserve_nulls` - (Required - Forces new resource) - Indicates whether NULL values are to be copied as NULL to encrypted tables (true)
     * or cryptographically processed (false).
     */
    @JvmName("julkixflvcielmti")
    public suspend fun dataEncryptionMetadata(argument: suspend CollaborationDataEncryptionMetadataArgsBuilder.() -> Unit) {
        val toBeMapped = CollaborationDataEncryptionMetadataArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dataEncryptionMetadata = mapped
    }

    /**
     * @param value A description for a collaboration.
     */
    @JvmName("odcmhobeiygyvusb")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("jvmwbigfnrfhacvl")
    public suspend fun members(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.members = mapped
    }

    /**
     * @param argument Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("vadgpxprdgrnlyhu")
    public suspend fun members(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CollaborationMemberArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.members = mapped
    }

    /**
     * @param argument Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("gfuqdybeqaooxbnd")
    public suspend fun members(vararg argument: suspend CollaborationMemberArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CollaborationMemberArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.members = mapped
    }

    /**
     * @param argument Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("diddtcksfapugndj")
    public suspend fun members(argument: suspend CollaborationMemberArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CollaborationMemberArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.members = mapped
    }

    /**
     * @param values Additional members of the collaboration which will be invited to join the collaboration.
     * * `member.account_id` - (Required - Forces new resource) - The account id for the invited member.
     * * `member.display_name` - (Required - Forces new resource) - The display name for the invited member.
     * * `member.member_abilities` - (Required - Forces new resource) - The list of abilities for the invited member. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-creatorMemberAbilities).
     */
    @JvmName("xopebyfghwdvujbh")
    public suspend fun members(vararg values: CollaborationMemberArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.members = mapped
    }

    /**
     * @param value The name of the collaboration.  Collaboration names do not need to be unique.
     */
    @JvmName("jfijkpweusyhfisr")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Determines if members of the collaboration can enable query logs within their own.
     * emberships. Valid values [may be found here](https://docs.aws.amazon.com/clean-rooms/latest/apireference/API_CreateCollaboration.html#API-CreateCollaboration-request-queryLogStatus).
     */
    @JvmName("oihjyptwqcwaktmp")
    public suspend fun queryLogStatus(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryLogStatus = mapped
    }

    /**
     * @param value Key value pairs which tag the collaboration.
     */
    @JvmName("uqsaemcbejsswhva")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key value pairs which tag the collaboration.
     */
    @JvmName("aanynqxigfmdgvrv")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CollaborationArgs = CollaborationArgs(
        creatorDisplayName = creatorDisplayName,
        creatorMemberAbilities = creatorMemberAbilities,
        dataEncryptionMetadata = dataEncryptionMetadata,
        description = description,
        members = members,
        name = name,
        queryLogStatus = queryLogStatus,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy