Skip to content
GitHubXDiscordRSS

Membership

Learn how to create, update, and manage AWS CleanRooms Memberships using Alchemy Cloud Control.

The Membership resource allows you to manage AWS CleanRooms Memberships that enable collaboration across data in a secure environment.

Create a basic membership with required properties and one optional property.

import AWS from "alchemy/aws/control";
const basicMembership = await AWS.CleanRooms.Membership("basicMembership", {
CollaborationIdentifier: "collaboration-12345",
QueryLogStatus: "ENABLED",
JobLogStatus: "DISABLED"
});

Configure a membership with a default result configuration and payment configuration for enhanced settings.

const advancedMembership = await AWS.CleanRooms.Membership("advancedMembership", {
CollaborationIdentifier: "collaboration-12345",
QueryLogStatus: "ENABLED",
DefaultResultConfiguration: {
OutputFormat: "PARQUET",
EncryptionConfiguration: {
EncryptionOption: "SSE_S3"
}
},
PaymentConfiguration: {
PaymentMethod: "CREDIT_CARD",
BillingAddress: {
AddressLine1: "123 Main St",
City: "Seattle",
State: "WA",
ZipCode: "98101",
Country: "US"
}
},
Tags: [
{ Key: "Project", Value: "Data Collaboration" },
{ Key: "Environment", Value: "Production" }
]
});

Set the membership with a custom job result configuration to specify output behavior.

const customJobConfigMembership = await AWS.CleanRooms.Membership("customJobConfigMembership", {
CollaborationIdentifier: "collaboration-12345",
QueryLogStatus: "ENABLED",
DefaultJobResultConfiguration: {
OutputLocation: "s3://my-bucket/results/",
OutputFormat: "CSV",
CompressionType: "GZIP"
}
});

Create a membership with tags for better resource organization and management.

const taggedMembership = await AWS.CleanRooms.Membership("taggedMembership", {
CollaborationIdentifier: "collaboration-12345",
QueryLogStatus: "ENABLED",
Tags: [
{ Key: "Owner", Value: "DataTeam" },
{ Key: "Purpose", Value: "Data Sharing" }
]
});