Skip to content

get_outbound_web_identity_federation_info

get_outbound_web_identity_federation_info(
    *, config_overrides: Optional[IAMClientConfig] = None
) -> GetOutboundWebIdentityFederationInfoResponse

Retrieves the configuration information for the outbound identity federation feature in your Amazon Web Services account. The response includes the unique issuer URL for your Amazon Web Services account and the current enabled/disabled status of the feature. Use this operation to obtain the issuer URL that you need to configure trust relationships with external services.

Raises:

  • FeatureDisabledException –

    The request failed because outbound identity federation is already disabled for your Amazon Web Services account. You cannot disable the feature multiple times

  • UnknownServiceError –

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

Source code in docs_src/capo_iam/_services/iam.py
def get_outbound_web_identity_federation_info(
    self, *, config_overrides: Optional[IAMClientConfig] = None
) -> "capo_iam.types.get_outbound_web_identity_federation_info_response.GetOutboundWebIdentityFederationInfoResponse":
    """<p>Retrieves the configuration information for the outbound identity federation feature in your Amazon Web Services account. The response includes the unique issuer URL for your Amazon Web Services account and the current enabled/disabled status of the feature. Use this operation to obtain the issuer URL that you need to configure trust relationships with external services.</p>

    Raises:
        capo_iam.errors.feature_disabled_exception.FeatureDisabledException: <p>The request failed because outbound identity federation is already disabled for your Amazon Web Services account. You cannot disable the feature multiple times</p>
        capo_iam.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "capo_iam.types.get_outbound_web_identity_federation_info_response.GetOutboundWebIdentityFederationInfoResponse"
    ]:
        import capo_iam._operations.aws_identity_management_v20100508.get_outbound_web_identity_federation_info

        output, http_response = (
            capo_iam._operations.aws_identity_management_v20100508.get_outbound_web_identity_federation_info.get_outbound_web_identity_federation_info(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetOutboundWebIdentityFederationInfo")
    )

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