'How to create AWS Identity Provider via the python code?

I am trying to configure authentication to AWS account via the AD creds. In order to do that I need to create an Identity Provider. I know how to do that via the console. enter image description here

But is there a way I can do that via the python code using boto3? (I do have a metadata document file)



Solution 1:[1]

To create a SAML identity provider you can use the create_saml_provider API.

To create an OpenID connect identity provider you can use the create_open_id_connect_provider API.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Paolo