Skip to content

list_deployment_configs

list_deployment_configs(
    *,
    config_overrides: Optional[CodeDeployClientConfig] = None,
    next_token: Optional[NextToken] = None,
) -> ListDeploymentConfigsOutput

Lists the deployment configurations with the user or Amazon Web Services account.

Parameters:

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

    An identifier returned from the previous ListDeploymentConfigs call. It can be used to return the next set of deployment configurations in the list.

Raises:

Source code in docs_src/capo_codedeploy/_services/code_deploy.py
def list_deployment_configs(
    self,
    *,
    config_overrides: Optional[CodeDeployClientConfig] = None,
    next_token: Optional["capo_codedeploy.types.next_token.NextToken"] = None,
) -> "capo_codedeploy.types.list_deployment_configs_output.ListDeploymentConfigsOutput":
    """<p>Lists the deployment configurations with the user or Amazon Web Services account.</p>

    Args:
        next_token: <p>An identifier returned from the previous <code>ListDeploymentConfigs</code> call. It can be used to return the next set of deployment configurations in the list. </p>

    Raises:
        capo_codedeploy.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The next token was specified in an invalid format.</p>
        capo_codedeploy.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_codedeploy.types.list_deployment_configs_input.ListDeploymentConfigsInput]",
    ) -> OperationResponse[
        "capo_codedeploy.types.list_deployment_configs_output.ListDeploymentConfigsOutput"
    ]:
        import capo_codedeploy._operations.code_deploy_20141006.list_deployment_configs

        output, http_response = (
            capo_codedeploy._operations.code_deploy_20141006.list_deployment_configs.list_deployment_configs(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDeploymentConfigs")
    )
    input_: capo_codedeploy.types.list_deployment_configs_input.ListDeploymentConfigsInput = {}
    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