create_membership
async
¶
create_membership(
collaboration_identifier: CollaborationIdentifier,
query_log_status: MembershipQueryLogStatus,
*,
config_overrides: Optional[AsyncCleanRoomsClientConfig] = 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/async_clean_rooms.py
5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 | |