search_opportunities
async
¶
search_opportunities(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
max_results: Optional[PageSize] = None,
next_token: Optional[str] = None,
keyword: Optional[SearchKeyword] = None,
filter: Optional[OpportunitySearchFilter] = None,
sort: Optional[OpportunitySearchSort] = None,
) -> SearchOpportunitiesResponse
The SearchOpportunities operation in the AWS Partner Central Selling API searches and filters the opportunities available to you in AWS Partner Central.
You can optionally provide a free-text Keyword, a structured Filter tree, and Sort options. The operation returns a curated summary view of each matching opportunity. If you supply both Keyword and Filter, the operation combines them with a logical AND, so each one narrows the result set.
Results are paginated. Use the NextToken parameter to retrieve additional pages of results.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog in which you run the search. Use
AWSto search production opportunities, or useSandboxto search opportunities in a testing environment. -
max_results(Optional[PageSize], default:None) –The maximum number of results to return in a single call. Use this value to control pagination together with
NextToken. If you omit this parameter, the service applies a default page size and returns the remaining results on subsequent pages. -
next_token(Optional[str], default:None) –A pagination token returned by a previous call. Pass it in a subsequent call to retrieve the next page of results. Omit it on the first call.
-
keyword(Optional[SearchKeyword], default:None) –An optional free-text query string matched against opportunity fields. When provided together with
Filter, both narrow the result set. -
filter(Optional[OpportunitySearchFilter], default:None) –A recursive, structured filter tree. Each node is either a boolean combinator (
AndAllFilters,OrAllFilters, orNotFilter) or a leaf predicate (a single comparison such asEqualsTo). When provided together withKeyword, both narrow the result set. -
sort(Optional[OpportunitySearchSort], default:None) –Specifies the field and direction used to sort the search results.
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
3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 | |