create_membership
¶
create_membership(
application_id: ApplicationId,
agent_space_id: AgentSpaceId,
membership_id: MembershipId,
member_type: MembershipType,
*,
config_overrides: Optional[SecurityAgentClientConfig] = None,
config: Optional[MembershipConfig] = None,
) -> CreateMembershipResponse
Creates a new membership, granting a user access to an agent space within an application.
Parameters:
-
application_id(ApplicationId) –The unique identifier of the application that contains the agent space.
-
agent_space_id(AgentSpaceId) –The unique identifier of the agent space to grant access to.
-
membership_id(MembershipId) –The unique identifier for the membership.
-
member_type(MembershipType) –The type of member. Currently, only USER is supported.
-
config(Optional[MembershipConfig], default:None) –The configuration for the membership, such as the user role.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.