create_configured_audience_model_association
async
¶
create_configured_audience_model_association(
membership_identifier: MembershipIdentifier,
configured_audience_model_arn: ConfiguredAudienceModelArn,
configured_audience_model_association_name: ConfiguredAudienceModelAssociationName,
manage_resource_policies: bool,
*,
config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
tags: Optional[TagMap] = None,
description: Optional[ResourceDescription] = None,
) -> CreateConfiguredAudienceModelAssociationOutput
Provides the details necessary to create a configured audience model association.
Parameters:
-
membership_identifier(MembershipIdentifier) –A unique identifier for one of your memberships for a collaboration. The configured audience model is associated to the collaboration that this membership belongs to. Accepts a membership ID.
-
configured_audience_model_arn(ConfiguredAudienceModelArn) –A unique identifier for the configured audience model that you want to associate.
-
configured_audience_model_association_name(ConfiguredAudienceModelAssociationName) –The name of the configured audience model association.
-
manage_resource_policies(bool) –When
TRUE, indicates that the resource policy for the configured audience model resource being associated is configured for Clean Rooms to manage permissions related to the given collaboration. WhenFALSE, indicates that the configured audience model resource owner will manage permissions related to the given collaboration.Setting this to
TRUErequires you to have permissions to create, update, and delete the resource policy for thecleanrooms-mlresource when you call the DeleteConfiguredAudienceModelAssociation resource. In addition, if you are the collaboration creator and specifyTRUE, you must have the same permissions when you call the DeleteMember and DeleteCollaboration APIs. -
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.
-
description(Optional[ResourceDescription], default:None) –A description of the configured audience model association.
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
2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 | |