update_saml_provider
¶
update_saml_provider(
saml_provider_arn: arnType,
*,
config_overrides: Optional[IAMClientConfig] = None,
saml_metadata_document: Optional[SAMLMetadataDocumentType] = None,
assertion_encryption_mode: Optional[assertionEncryptionModeType] = None,
add_private_key: Optional[privateKeyType] = None,
remove_private_key: Optional[privateKeyIdType] = None,
) -> UpdateSAMLProviderResponse
Updates the metadata document, SAML encryption settings, and private keys for an existing SAML provider. To rotate private keys, add your new private key and then remove the old key in a separate request.
Parameters:
-
saml_metadata_document(Optional[SAMLMetadataDocumentType], default:None) –An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the issuer's name, expiration information, and keys that can be used to validate the SAML authentication response (assertions) that are received from the IdP. You must generate the metadata document using the identity management software that is used as your IdP.
-
saml_provider_arn(arnType) –The Amazon Resource Name (ARN) of the SAML provider to update.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
-
assertion_encryption_mode(Optional[assertionEncryptionModeType], default:None) –Specifies the encryption setting for the SAML provider.
-
add_private_key(Optional[privateKeyType], default:None) –Specifies the new private key from your external identity provider. The private key must be a .pem file that uses AES-GCM or AES-CBC encryption algorithm to decrypt SAML assertions.
-
remove_private_key(Optional[privateKeyIdType], default:None) –The Key ID of the private key to remove.
Raises:
-
ConcurrentModificationException–The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
NoSuchEntityException–The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
-
ServiceFailureException–The request processing has failed because of an unknown error, exception or failure.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iam/_services/iam.py
10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 | |