list_engagement_resource_associations
async
¶
list_engagement_resource_associations(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = 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/async_partner_central_selling.py
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 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 | |