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
5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 | |