UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

132 lines 6.23 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Collaboration = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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 * * ```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", * analyticsEngine: "SPARK", * dataEncryptionMetadata: { * allowClearText: true, * allowDuplicates: true, * allowJoinsOnColumnsWithDifferentNames: true, * preserveNulls: false, * }, * members: [{ * accountId: "123456789012", * 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 * ``` */ class Collaboration extends pulumi.CustomResource { /** * Get an existing Collaboration resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Collaboration(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Collaboration. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Collaboration.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["analyticsEngine"] = state ? state.analyticsEngine : undefined; resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["createTime"] = state ? state.createTime : undefined; resourceInputs["creatorDisplayName"] = state ? state.creatorDisplayName : undefined; resourceInputs["creatorMemberAbilities"] = state ? state.creatorMemberAbilities : undefined; resourceInputs["dataEncryptionMetadata"] = state ? state.dataEncryptionMetadata : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["members"] = state ? state.members : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["queryLogStatus"] = state ? state.queryLogStatus : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; resourceInputs["updateTime"] = state ? state.updateTime : undefined; } else { const args = argsOrState; if ((!args || args.creatorDisplayName === undefined) && !opts.urn) { throw new Error("Missing required property 'creatorDisplayName'"); } if ((!args || args.creatorMemberAbilities === undefined) && !opts.urn) { throw new Error("Missing required property 'creatorMemberAbilities'"); } if ((!args || args.description === undefined) && !opts.urn) { throw new Error("Missing required property 'description'"); } if ((!args || args.queryLogStatus === undefined) && !opts.urn) { throw new Error("Missing required property 'queryLogStatus'"); } resourceInputs["analyticsEngine"] = args ? args.analyticsEngine : undefined; resourceInputs["creatorDisplayName"] = args ? args.creatorDisplayName : undefined; resourceInputs["creatorMemberAbilities"] = args ? args.creatorMemberAbilities : undefined; resourceInputs["dataEncryptionMetadata"] = args ? args.dataEncryptionMetadata : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["members"] = args ? args.members : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["queryLogStatus"] = args ? args.queryLogStatus : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Collaboration.__pulumiType, name, resourceInputs, opts); } } exports.Collaboration = Collaboration; /** @internal */ Collaboration.__pulumiType = 'aws:cleanrooms/collaboration:Collaboration'; //# sourceMappingURL=collaboration.js.map