Skip to content

get_identity_source

get_identity_source(
    identity_source_arn: String, *, config_overrides: Optional[MPAClientConfig] = None
) -> GetIdentitySourceResponse

Returns details for an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

Parameters:

  • identity_source_arn (String) –

    Amazon Resource Name (ARN) for the identity source.

Raises:

  • AccessDeniedException –

    You do not have sufficient access to perform this action. Check your permissions, and try again.

  • InternalServerException –

    The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.

  • ResourceNotFoundException –

    The specified resource doesn't exist. Check the resource ID, and try again.

  • ThrottlingException –

    The request was denied due to request throttling.

  • ValidationException –

    The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_mpa/_services/mpa.py
def get_identity_source(
    self,
    identity_source_arn: "capo_mpa.types.string.String",
    *,
    config_overrides: Optional[MPAClientConfig] = None,
) -> "capo_mpa.types.get_identity_source_response.GetIdentitySourceResponse":
    """<p>Returns details for an identity source. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Identity Source</a> in the <i>Multi-party approval User Guide</i>.</p>

    Args:
        identity_source_arn: <p>Amazon Resource Name (ARN) for the identity source.</p>

    Raises:
        capo_mpa.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
        capo_mpa.errors.internal_server_exception.InternalServerException: <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
        capo_mpa.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
        capo_mpa.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_mpa.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_mpa.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_mpa.types.get_identity_source_request.GetIdentitySourceRequest]",
    ) -> OperationResponse[
        "capo_mpa.types.get_identity_source_response.GetIdentitySourceResponse"
    ]:
        import capo_mpa._operations.aws_fluffy_core_service.get_identity_source

        output, http_response = (
            capo_mpa._operations.aws_fluffy_core_service.get_identity_source.get_identity_source(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetIdentitySource")
    )
    input_: capo_mpa.types.get_identity_source_request.GetIdentitySourceRequest = {
        "identity_source_arn": identity_source_arn
    }

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