WorkSpacesWeb / Client / create_identity_provider
create_identity_provider¶
- WorkSpacesWeb.Client.create_identity_provider(**kwargs)¶
Creates an identity provider resource that is then associated with a web portal.
See also: AWS API Documentation
Request Syntax
response = client.create_identity_provider( portalArn='string', identityProviderName='string', identityProviderType='SAML'|'Facebook'|'Google'|'LoginWithAmazon'|'SignInWithApple'|'OIDC', identityProviderDetails={ 'string': 'string' }, clientToken='string', tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
portalArn (string) –
[REQUIRED]
The ARN of the web portal.
identityProviderName (string) –
[REQUIRED]
The identity provider name.
identityProviderType (string) –
[REQUIRED]
The identity provider type.
identityProviderDetails (dict) –
[REQUIRED]
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google and Login with Amazon:
client_idclient_secretauthorize_scopes
For Facebook:
client_idclient_secretauthorize_scopesapi_version
For Sign in with Apple:
client_idteam_idkey_idprivate_keyauthorize_scopes
For OIDC providers:
client_idclient_secretattributes_request_methodoidc_issuerauthorize_scopesauthorize_urlif not available from discovery URL specified byoidc_issuerkeytoken_urlif not available from discovery URL specified byoidc_issuerkeyattributes_urlif not available from discovery URL specified byoidc_issuerkeyjwks_uriif not available from discovery URL specified byoidc_issuerkey
For SAML providers:
MetadataFileORMetadataURLIDPSignout(boolean) optionalIDPInit(boolean) optionalRequestSigningAlgorithm(string) optional - Only acceptsrsa-sha256EncryptedResponses(boolean) optional
(string) –
(string) –
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
This field is autopopulated if not provided.
tags (list) –
The tags to add to the identity provider resource. A tag is a key-value pair.
(dict) –
The tag.
Key (string) – [REQUIRED]
The key of the tag.
Value (string) – [REQUIRED]
The value of the tag
- Return type:
dict
- Returns:
Response Syntax
{ 'identityProviderArn': 'string' }
Response Structure
(dict) –
identityProviderArn (string) –
The ARN of the identity provider.
Exceptions