Smaws_Client_IAM.CreateOpenIDConnectProviderCreates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).
The OIDC provider that you create with this operation can be used as a principal in a role's trust policy. Such a policy establishes a trust relationship between Amazon Web Services and the OIDC provider.
If you are using an OIDC identity provider from Google, Facebook, or Amazon Cognito, you don't need to create a separate IAM identity provider. These OIDC identity providers are already built-in to Amazon Web Services and are available for your use. Instead, you can move directly to creating new roles using your identity provider. To learn more, see Creating a role for web identity or OpenID connect federation in the IAM User Guide.
When you create the IAM OIDC provider, you specify the following:
You get all of this information from the OIDC IdP you want to use to access Amazon Web Services.
Amazon Web Services secures communication with OIDC identity providers (IdPs) using our library of trusted root certificate authorities (CAs) to verify the JSON Web Key Set (JWKS) endpoint's TLS certificate. If your OIDC IdP relies on a certificate that is not signed by one of these trusted CAs, only then we secure communication using the thumbprints set in the IdP's configuration.
The trust for the OIDC provider is derived from the IAM provider that this operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged users.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `ConcurrentModificationException of Types.concurrent_modification_exception
| `EntityAlreadyExistsException of Types.entity_already_exists_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OpenIdIdpCommunicationErrorException of
Types.open_id_idp_communication_error_exception
| `ServiceFailureException of Types.service_failure_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_open_id_connect_provider_request ->
(Types.create_open_id_connect_provider_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `EntityAlreadyExistsException of Types.entity_already_exists_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OpenIdIdpCommunicationErrorException of
Types.open_id_idp_communication_error_exception
| `ServiceFailureException of Types.service_failure_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_open_id_connect_provider_request ->
(Types.create_open_id_connect_provider_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `EntityAlreadyExistsException of Types.entity_already_exists_exception
| `InvalidInputException of Types.invalid_input_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `OpenIdIdpCommunicationErrorException of
Types.open_id_idp_communication_error_exception
| `ServiceFailureException of Types.service_failure_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result