create_membership
¶
create_membership(
collaboration_identifier: CollaborationIdentifier,
query_log_status: MembershipQueryLogStatus,
*,
config_overrides: Optional[CleanRoomsClientConfig] = None,
job_log_status: Optional[MembershipJobLogStatus] = None,
tags: Optional[TagMap] = None,
default_result_configuration: Optional[
MembershipProtectedQueryResultConfiguration
] = None,
default_job_result_configuration: Optional[
MembershipProtectedJobResultConfiguration
] = None,
payment_configuration: Optional[MembershipPaymentConfiguration] = None,
is_metrics_enabled: Optional[bool] = None,
) -> CreateMembershipOutput
Creates a membership for a specific collaboration identifier and joins the collaboration.
Parameters:
-
collaboration_identifier(CollaborationIdentifier) –The unique ID for the associated collaboration.
-
query_log_status(MembershipQueryLogStatus) –An indicator as to whether query logging has been enabled or disabled for the membership.
When
ENABLED, Clean Rooms logs details about queries run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value isDISABLED. -
job_log_status(Optional[MembershipJobLogStatus], default:None) –An indicator as to whether job logging has been enabled or disabled for the collaboration.
When
ENABLED, Clean Rooms logs details about jobs run within this collaboration and those logs can be viewed in Amazon CloudWatch Logs. The default value isDISABLED. -
tags(Optional[TagMap], default:None) –An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
-
default_result_configuration(Optional[MembershipProtectedQueryResultConfiguration], default:None) –The default protected query result configuration as specified by the member who can receive results.
-
default_job_result_configuration(Optional[MembershipProtectedJobResultConfiguration], default:None) –The default job result configuration that determines how job results are protected and managed within this membership. This configuration applies to all jobs.
-
payment_configuration(Optional[MembershipPaymentConfiguration], default:None) –The payment responsibilities accepted by the collaboration member.
Not required if the collaboration member has the member ability to run queries.
Required if the collaboration member doesn't have the member ability to run queries but is configured as a payer by the collaboration creator.
-
is_metrics_enabled(Optional[bool], default:None) –An indicator as to whether Amazon CloudWatch metrics have been enabled or disabled for the membership.
Amazon CloudWatch metrics are only available when the collaboration has metrics enabled. This option can be set by collaboration members who have the ability to run queries (analysis runners) or by members who are configured as payers.
When
true, metrics about query execution are collected in Amazon CloudWatch. The default value isfalse.
Raises:
-
AccessDeniedException–Caller does not have sufficient access to perform this action.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request denied because service quota has been exceeded.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 | |