Disables the outbound identity federation feature for your Amazon Web Services account. When disabled, IAM principals in the account cannot use the GetWebIdentityToken API to obtain JSON Web Tokens (JWTs) for authentication with external services. This operation does not affect tokens that were issued before the feature was disabled.
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/async_iam.py
| async def disable_outbound_web_identity_federation(
self, *, config_overrides: Optional[AsyncIAMClientConfig] = None
) -> None:
"""<p>Disables the outbound identity federation feature for your Amazon Web Services account. When disabled, IAM principals in the account cannot use the <code>GetWebIdentityToken</code> API to obtain JSON Web Tokens (JWTs) for authentication with external services. This operation does not affect tokens that were issued before the feature was disabled.</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.
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[None]:
import capo_iam._operations.aws_identity_management_v20100508.disable_outbound_web_identity_federation
(
output,
http_response,
) = await capo_iam._operations.aws_identity_management_v20100508.disable_outbound_web_identity_federation.async_disable_outbound_web_identity_federation(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisableOutboundWebIdentityFederation")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|