Skip to content

describe_launch_configuration_templates

describe_launch_configuration_templates(
    *,
    config_overrides: Optional[drsClientConfig] = None,
    launch_configuration_template_i_ds: Optional[LaunchConfigurationTemplateIDs] = None,
    max_results: Optional[MaxResultsType] = None,
    next_token: Optional[PaginationToken] = None,
) -> DescribeLaunchConfigurationTemplatesResponse

Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs

Parameters:

  • launch_configuration_template_i_ds (Optional[LaunchConfigurationTemplateIDs], default: None ) –

    Request to filter Launch Configuration Templates list by Launch Configuration Template ID.

  • max_results (Optional[MaxResultsType], default: None ) –

    Maximum results to be returned in DescribeLaunchConfigurationTemplates.

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

    The token of the next Launch Configuration Template to retrieve.

Raises:

Source code in docs_src/capo_drs/_services/drs.py
def describe_launch_configuration_templates(
    self,
    *,
    config_overrides: Optional[drsClientConfig] = None,
    launch_configuration_template_i_ds: Optional[
        "capo_drs.types.launch_configuration_template_i_ds.LaunchConfigurationTemplateIDs"
    ] = None,
    max_results: Optional["capo_drs.types.max_results_type.MaxResultsType"] = None,
    next_token: Optional["capo_drs.types.pagination_token.PaginationToken"] = None,
) -> "capo_drs.types.describe_launch_configuration_templates_response.DescribeLaunchConfigurationTemplatesResponse":
    """<p>Lists all Launch Configuration Templates, filtered by Launch Configuration Template IDs</p>

    Args:
        launch_configuration_template_i_ds: <p>Request to filter Launch Configuration Templates list by Launch Configuration Template ID.</p>
        max_results: <p>Maximum results to be returned in DescribeLaunchConfigurationTemplates.</p>
        next_token: <p>The token of the next Launch Configuration Template to retrieve.</p>

    Raises:
        capo_drs.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_drs.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource for this operation was not found.</p>
        capo_drs.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_drs.errors.uninitialized_account_exception.UninitializedAccountException: <p>The account performing the request has not been initialized.</p>
        capo_drs.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the AWS service.</p>
        capo_drs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_drs.types.describe_launch_configuration_templates_request.DescribeLaunchConfigurationTemplatesRequest]",
    ) -> OperationResponse[
        "capo_drs.types.describe_launch_configuration_templates_response.DescribeLaunchConfigurationTemplatesResponse"
    ]:
        import capo_drs._operations.elastic_disaster_recovery_service.describe_launch_configuration_templates

        output, http_response = (
            capo_drs._operations.elastic_disaster_recovery_service.describe_launch_configuration_templates.describe_launch_configuration_templates(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_drs.types.describe_launch_configuration_templates_response.DescribeLaunchConfigurationTemplatesResponse",
    ) -> dict[str, Any]:
        import capo_drs.types.describe_launch_configuration_templates_response

        return capo_drs.types.describe_launch_configuration_templates_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "DescribeLaunchConfigurationTemplates", redact_output=_redact_output
        ),
    )
    input_: capo_drs.types.describe_launch_configuration_templates_request.DescribeLaunchConfigurationTemplatesRequest = {}
    if launch_configuration_template_i_ds is not None:
        input_["launch_configuration_template_i_ds"] = (
            launch_configuration_template_i_ds
        )
    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