Updates the name of the trusted token issuer, or the path of a source attribute or destination attribute for a trusted token issuer configuration.
Updating this trusted token issuer configuration might cause users to lose access to any applications that are configured to use the trusted token issuer.
Parameters:
-
trusted_token_issuer_arn
(TrustedTokenIssuerArn)
–
Specifies the ARN of the trusted token issuer configuration that you want to update.
-
name
(Optional[TrustedTokenIssuerName], default:
None
)
–
Specifies the updated name to be applied to the trusted token issuer configuration.
-
trusted_token_issuer_configuration
(Optional[TrustedTokenIssuerUpdateConfiguration], default:
None
)
–
Specifies a structure with settings to apply to the specified trusted token issuer. The settings that you can provide are determined by the type of the trusted token issuer that you are updating.
Raises:
-
AccessDeniedException
–
You do not have sufficient access to perform this action.
-
ConflictException
–
Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
InternalServerException
–
The request processing has failed because of an unknown error, exception, or failure with an internal server.
-
ResourceNotFoundException
–
Indicates that a requested resource is not found.
-
ThrottlingException
–
Indicates that the principal has crossed the throttling limits of the API operations.
-
ValidationException
–
The request failed because it contains a syntax error.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_sso_admin/_services/sso_admin.py
| def update_trusted_token_issuer(
self,
trusted_token_issuer_arn: "capo_sso_admin.types.trusted_token_issuer_arn.TrustedTokenIssuerArn",
*,
config_overrides: Optional[SSOAdminClientConfig] = None,
name: Optional[
"capo_sso_admin.types.trusted_token_issuer_name.TrustedTokenIssuerName"
] = None,
trusted_token_issuer_configuration: Optional[
"capo_sso_admin.types.trusted_token_issuer_update_configuration.TrustedTokenIssuerUpdateConfiguration"
] = None,
) -> "capo_sso_admin.types.update_trusted_token_issuer_response.UpdateTrustedTokenIssuerResponse":
"""<p>Updates the name of the trusted token issuer, or the path of a source attribute or destination attribute for a trusted token issuer configuration.</p> <note> <p>Updating this trusted token issuer configuration might cause users to lose access to any applications that are configured to use the trusted token issuer.</p> </note>
Args:
trusted_token_issuer_arn: <p>Specifies the ARN of the trusted token issuer configuration that you want to update.</p>
name: <p>Specifies the updated name to be applied to the trusted token issuer configuration.</p>
trusted_token_issuer_configuration: <p>Specifies a structure with settings to apply to the specified trusted token issuer. The settings that you can provide are determined by the type of the trusted token issuer that you are updating.</p>
Raises:
capo_sso_admin.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_sso_admin.errors.conflict_exception.ConflictException: <p>Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.</p>
capo_sso_admin.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
capo_sso_admin.errors.resource_not_found_exception.ResourceNotFoundException: <p>Indicates that a requested resource is not found.</p>
capo_sso_admin.errors.throttling_exception.ThrottlingException: <p>Indicates that the principal has crossed the throttling limits of the API operations.</p>
capo_sso_admin.errors.validation_exception.ValidationException: <p>The request failed because it contains a syntax error.</p>
capo_sso_admin.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sso_admin.types.update_trusted_token_issuer_request.UpdateTrustedTokenIssuerRequest]",
) -> OperationResponse[
"capo_sso_admin.types.update_trusted_token_issuer_response.UpdateTrustedTokenIssuerResponse"
]:
import capo_sso_admin._operations.swb_external_service.update_trusted_token_issuer
output, http_response = (
capo_sso_admin._operations.swb_external_service.update_trusted_token_issuer.update_trusted_token_issuer(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateTrustedTokenIssuer")
)
input_: capo_sso_admin.types.update_trusted_token_issuer_request.UpdateTrustedTokenIssuerRequest = {
"trusted_token_issuer_arn": trusted_token_issuer_arn
}
if name is not None:
input_["name"] = name
if trusted_token_issuer_configuration is not None:
input_["trusted_token_issuer_configuration"] = (
trusted_token_issuer_configuration
)
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|