Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of entityId, ChangeSetName, and status. If you provide more than one filter, the API operation applies a logical AND between the filters.
You can describe a change during the 60-day request history retention period for API calls.
Parameters:
-
catalog
(Catalog)
–
The catalog related to the request. Fixed value: AWSMarketplace
-
filter_list
(Optional[FilterList], default:
None
)
–
An array of filter objects.
-
sort
(Optional[Sort], default:
None
)
–
An object that contains two attributes, SortBy and SortOrder.
-
max_results
(Optional[ListChangeSetsMaxResultInteger], default:
None
)
–
The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results. By default, this value is 20.
-
next_token
(Optional[NextToken], default:
None
)
–
The token value retrieved from a previous call to access the next page of results.
Raises:
Source code in docs_src/capo_marketplace_catalog/_services/marketplace_catalog.py
| def list_change_sets(
self,
catalog: "capo_marketplace_catalog.types.catalog.Catalog",
*,
config_overrides: Optional[MarketplaceCatalogClientConfig] = None,
filter_list: Optional[
"capo_marketplace_catalog.types.filter_list.FilterList"
] = None,
sort: Optional["capo_marketplace_catalog.types.sort.Sort"] = None,
max_results: Optional[
"capo_marketplace_catalog.types.list_change_sets_max_result_integer.ListChangeSetsMaxResultInteger"
] = None,
next_token: Optional[
"capo_marketplace_catalog.types.next_token.NextToken"
] = None,
) -> "capo_marketplace_catalog.types.list_change_sets_response.ListChangeSetsResponse":
"""<p>Returns the list of change sets owned by the account being used to make the call. You can filter this list by providing any combination of <code>entityId</code>, <code>ChangeSetName</code>, and status. If you provide more than one filter, the API operation applies a logical AND between the filters.</p> <p>You can describe a change during the 60-day request history retention period for API calls.</p>
Args:
catalog: <p>The catalog related to the request. Fixed value: <code>AWSMarketplace</code> </p>
filter_list: <p>An array of filter objects.</p>
sort: <p>An object that contains two attributes, <code>SortBy</code> and <code>SortOrder</code>.</p>
max_results: <p>The maximum number of results returned by a single call. This value must be provided in the next call to retrieve the next set of results. By default, this value is 20.</p>
next_token: <p>The token value retrieved from a previous call to access the next page of results.</p>
Raises:
capo_marketplace_catalog.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p> <p>HTTP status code: 403</p>
capo_marketplace_catalog.errors.internal_service_exception.InternalServiceException: <p>There was an internal service exception.</p> <p>HTTP status code: 500</p>
capo_marketplace_catalog.errors.throttling_exception.ThrottlingException: <p>Too many requests.</p> <p>HTTP status code: 429</p>
capo_marketplace_catalog.errors.validation_exception.ValidationException: <p>An error occurred during validation.</p> <p>HTTP status code: 422</p>
capo_marketplace_catalog.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_marketplace_catalog.types.list_change_sets_request.ListChangeSetsRequest]",
) -> OperationResponse[
"capo_marketplace_catalog.types.list_change_sets_response.ListChangeSetsResponse"
]:
import capo_marketplace_catalog._operations.awsmp_seymour.list_change_sets
output, http_response = (
capo_marketplace_catalog._operations.awsmp_seymour.list_change_sets.list_change_sets(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListChangeSets")
)
input_: capo_marketplace_catalog.types.list_change_sets_request.ListChangeSetsRequest = {
"catalog": catalog
}
if filter_list is not None:
input_["filter_list"] = filter_list
if sort is not None:
input_["sort"] = sort
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|