list_memberships
async
¶
list_memberships(
application_id: ApplicationId,
agent_space_id: AgentSpaceId,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
member_type: Optional[MembershipTypeFilter] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListMembershipsResponse
Returns a paginated list of membership summaries for the specified 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 list memberships for.
-
member_type(Optional[MembershipTypeFilter], default:None) –Filter memberships by member type.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[NextToken], default:None) –A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/async_security_agent.py
3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 | |