Skip to content

list_security_configurations

list_security_configurations(
    *,
    config_overrides: Optional[EMRClientConfig] = None,
    marker: Optional[Marker] = None,
) -> ListSecurityConfigurationsOutput

Lists all the security configurations visible to this account, providing their creation dates and times, and their names. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListSecurityConfigurations calls.

Parameters:

  • marker (Optional[Marker], default: None ) –

    The pagination token that indicates the set of results to retrieve.

Raises:

Source code in docs_src/capo_emr/_services/emr.py
def list_security_configurations(
    self,
    *,
    config_overrides: Optional[EMRClientConfig] = None,
    marker: Optional["capo_emr.types.marker.Marker"] = None,
) -> "capo_emr.types.list_security_configurations_output.ListSecurityConfigurationsOutput":
    """<p>Lists all the security configurations visible to this account, providing their creation dates and times, and their names. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListSecurityConfigurations calls.</p>

    Args:
        marker: <p>The pagination token that indicates the set of results to retrieve.</p>

    Raises:
        capo_emr.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Amazon EMR service.</p>
        capo_emr.errors.invalid_request_exception.InvalidRequestException: <p>This exception occurs when there is something wrong with user input.</p>
        capo_emr.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_emr.types.list_security_configurations_input.ListSecurityConfigurationsInput]",
    ) -> OperationResponse[
        "capo_emr.types.list_security_configurations_output.ListSecurityConfigurationsOutput"
    ]:
        import capo_emr._operations.elastic_map_reduce.list_security_configurations

        output, http_response = (
            capo_emr._operations.elastic_map_reduce.list_security_configurations.list_security_configurations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSecurityConfigurations")
    )
    input_: capo_emr.types.list_security_configurations_input.ListSecurityConfigurationsInput = {}
    if marker is not None:
        input_["marker"] = marker

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output