Skip to content

get_connector_definition_version async

get_connector_definition_version(
    connector_definition_id: __string,
    connector_definition_version_id: __string,
    *,
    config_overrides: Optional[AsyncGreengrassClientConfig] = None,
    next_token: Optional[__string] = None,
) -> GetConnectorDefinitionVersionResponse

Retrieves information about a connector definition version, including the connectors that the version contains. Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud services.

Parameters:

  • connector_definition_id (__string) –

    The ID of the connector definition.

  • connector_definition_version_id (__string) –

    The ID of the connector definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListConnectorDefinitionVersions'' requests. If the version is the last one that was associated with a connector definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object.

  • next_token (Optional[__string], default: None ) –

    The token for the next set of results, or ''null'' if there are no additional results.

Raises:

Source code in docs_src/capo_greengrass/_services/async_greengrass.py
async def get_connector_definition_version(
    self,
    connector_definition_id: "capo_greengrass.types.__string.__string",
    connector_definition_version_id: "capo_greengrass.types.__string.__string",
    *,
    config_overrides: Optional[AsyncGreengrassClientConfig] = None,
    next_token: Optional["capo_greengrass.types.__string.__string"] = None,
) -> "capo_greengrass.types.get_connector_definition_version_response.GetConnectorDefinitionVersionResponse":
    """Retrieves information about a connector definition version, including the connectors that the version contains. Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud services.

    Args:
        connector_definition_id: The ID of the connector definition.
        connector_definition_version_id: The ID of the connector definition version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListConnectorDefinitionVersions'' requests. If the version is the last one that was associated with a connector definition, the value also maps to the ''LatestVersion'' property of the corresponding ''DefinitionInformation'' object.
        next_token: The token for the next set of results, or ''null'' if there are no additional results.

    Raises:
        capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
        capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_greengrass.types.get_connector_definition_version_request.GetConnectorDefinitionVersionRequest]",
    ) -> AsyncOperationResponse[
        "capo_greengrass.types.get_connector_definition_version_response.GetConnectorDefinitionVersionResponse"
    ]:
        import capo_greengrass._operations.greengrass.get_connector_definition_version

        (
            output,
            http_response,
        ) = await capo_greengrass._operations.greengrass.get_connector_definition_version.async_get_connector_definition_version(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConnectorDefinitionVersion")
    )
    input_: capo_greengrass.types.get_connector_definition_version_request.GetConnectorDefinitionVersionRequest = {
        "connector_definition_id": connector_definition_id,
        "connector_definition_version_id": connector_definition_version_id,
    }
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output