list_engagement_resource_associations
¶
list_engagement_resource_associations(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[PartnerCentralSellingClientConfig] = None,
max_results: Optional[PageSize] = None,
next_token: Optional[str] = None,
engagement_identifier: Optional[EngagementIdentifier] = None,
resource_type: Optional[ResourceType] = None,
resource_identifier: Optional[ResourceIdentifier] = None,
created_by: Optional[AwsAccount] = None,
) -> ListEngagementResourceAssociationsResponse
Lists the associations between resources and engagements where the caller is a member and has at least one snapshot in the engagement.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog in which to search for engagement-resource associations. Valid Values: "AWS" or "Sandbox"
-
AWSfor production environments. -
Sandboxfor testing and development purposes.
-
-
max_results(Optional[PageSize], default:None) –Limits the number of results returned in a single call. Use this to control the number of results returned, especially useful for pagination.
-
next_token(Optional[str], default:None) –A token used for pagination of results. Include this token in subsequent requests to retrieve the next set of results.
-
engagement_identifier(Optional[EngagementIdentifier], default:None) –Filters the results to include only associations related to the specified engagement. Use this when you want to find all resources associated with a specific engagement.
-
resource_type(Optional[ResourceType], default:None) –Filters the results to include only associations with resources of the specified type.
-
resource_identifier(Optional[ResourceIdentifier], default:None) –Filters the results to include only associations with the specified resource. Varies depending on the resource type. Use this when you want to find all engagements associated with a specific resource.
-
created_by(Optional[AwsAccount], default:None) –Filters the response to include only snapshots of resources owned by the specified AWS account ID. Use this when you want to find associations related to resources owned by a particular account.
Raises:
-
AccessDeniedException–This error occurs when you don't have permission to perform the requested action.
You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.
-
InternalServerException–This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.
Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.
-
ResourceNotFoundException–This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.
Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.
-
ThrottlingException–This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.
This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.
-
ValidationException–The input fails to satisfy the constraints specified by the service or business validation rules.
Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_selling/_services/partner_central_selling.py
3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 | |