Returns a paginated list of the versions of a network connector. Each configuration update creates a new immutable version; this operation lists those versions for the connector you specify. You can optionally filter results by version state. Use the Marker parameter from a previous response to retrieve the next page of results.
Each item in the response includes the version-qualified ARN, version number, current state, and last modified timestamp for that version. To retrieve the current (latest) configuration of the connector, use GetNetworkConnector; to inspect a specific version, call GetNetworkConnector with a version-qualified identifier.
Parameters:
-
identifier
(NetworkConnectorIdentifier)
–
The identifier of the network connector whose versions you want to list. You can specify the connector ID, name, or full ARN. Specify an unqualified identifier — this operation lists all versions of the connector, not a specific version.
-
state
(Optional[NetworkConnectorState], default:
None
)
–
Optional filter to return only versions in the specified state (for example, ACTIVE or FAILED).
-
marker
(Optional[String], default:
None
)
–
The pagination token from a previous ListNetworkConnectorVersions response. Use this value to retrieve the next page of results.
-
max_items
(Optional[MaxHundredListItems], default:
None
)
–
The maximum number of versions to return per page. Valid range: 1 to 100.
Raises:
-
InvalidParameterValueException
–
One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.
-
ResourceNotFoundException
–
The specified network connector does not exist. Verify the identifier (ID, name, or ARN) and Region.
-
ServiceException
–
An internal service error occurred. Retry the request with exponential backoff.
-
TooManyRequestsException
–
The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_lambda_core/_services/async_lambda_core.py
| async def list_network_connector_versions(
self,
identifier: "capo_lambda_core.types.network_connector_identifier.NetworkConnectorIdentifier",
*,
config_overrides: Optional[AsyncLambdaCoreClientConfig] = None,
state: Optional[
"capo_lambda_core.types.network_connector_state.NetworkConnectorState"
] = None,
marker: Optional["capo_lambda_core.types.string.String"] = None,
max_items: Optional[
"capo_lambda_core.types.max_hundred_list_items.MaxHundredListItems"
] = None,
) -> "capo_lambda_core.types.list_network_connector_versions_response.ListNetworkConnectorVersionsResponse":
"""<p>Returns a paginated list of the versions of a network connector. Each configuration update creates a new immutable version; this operation lists those versions for the connector you specify. You can optionally filter results by version state. Use the <code>Marker</code> parameter from a previous response to retrieve the next page of results.</p> <p>Each item in the response includes the version-qualified ARN, version number, current state, and last modified timestamp for that version. To retrieve the current (latest) configuration of the connector, use <code>GetNetworkConnector</code>; to inspect a specific version, call <code>GetNetworkConnector</code> with a version-qualified identifier.</p>
Args:
identifier: <p>The identifier of the network connector whose versions you want to list. You can specify the connector ID, name, or full ARN. Specify an unqualified identifier — this operation lists all versions of the connector, not a specific version.</p>
state: <p>Optional filter to return only versions in the specified state (for example, <code>ACTIVE</code> or <code>FAILED</code>).</p>
marker: <p>The pagination token from a previous <code>ListNetworkConnectorVersions</code> response. Use this value to retrieve the next page of results.</p>
max_items: <p>The maximum number of versions to return per page. Valid range: 1 to 100.</p>
Raises:
capo_lambda_core.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
capo_lambda_core.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified network connector does not exist. Verify the identifier (ID, name, or ARN) and Region.</p>
capo_lambda_core.errors.service_exception.ServiceException: <p>An internal service error occurred. Retry the request with exponential backoff.</p>
capo_lambda_core.errors.too_many_requests_exception.TooManyRequestsException: <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
capo_lambda_core.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_lambda_core.types.list_network_connector_versions_request.ListNetworkConnectorVersionsRequest]",
) -> AsyncOperationResponse[
"capo_lambda_core.types.list_network_connector_versions_response.ListNetworkConnectorVersionsResponse"
]:
import capo_lambda_core._operations.lambda_core_api_service.list_network_connector_versions
(
output,
http_response,
) = await capo_lambda_core._operations.lambda_core_api_service.list_network_connector_versions.async_list_network_connector_versions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListNetworkConnectorVersions")
)
input_: capo_lambda_core.types.list_network_connector_versions_request.ListNetworkConnectorVersionsRequest = {
"identifier": identifier
}
if state is not None:
input_["state"] = state
if marker is not None:
input_["marker"] = marker
if max_items is not None:
input_["max_items"] = max_items
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|