Skip to main content

identity_providers

Creates, updates, deletes, gets or lists an identity_providers resource.

Overview

Nameidentity_providers
TypeResource
Idaws.workspaces_web.identity_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identity_provider_arnstringThe ARN of the identity provider. (pattern: <code>arn:[\w+=/,.@-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(/[a-fA-F0-9-]{36}){2,}</code>)
identity_provider_detailsobjectThe identity provider details. The following list describes the provider detail keys for each identity provider type. For Google and Login with Amazon: client_id client_secret authorize_scopes For Facebook: client_id client_secret authorize_scopes api_version For Sign in with Apple: client_id team_id key_id private_key authorize_scopes For OIDC providers: client_id client_secret attributes_request_method oidc_issuer authorize_scopes authorize_url if not available from discovery URL specified by oidc_issuer key token_url if not available from discovery URL specified by oidc_issuer key attributes_url if not available from discovery URL specified by oidc_issuer key jwks_uri if not available from discovery URL specified by oidc_issuer key For SAML providers: MetadataFile OR MetadataURL IDPSignout (boolean) optional IDPInit (boolean) optional RequestSigningAlgorithm (string) optional - Only accepts rsa-sha256 EncryptedResponses (boolean) optional
identity_provider_namestringThe identity provider name. (pattern: <code>[^][\p{L}\p{M}\p{S}\p{N}\p{P}][^]+</code>)
identity_provider_typestringThe identity provider type. (SAML, Facebook, Google, LoginWithAmazon, SignInWithApple, OIDC)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_identity_providerselectidentity_provider_arn, regionGets the identity provider.
list_identity_providersselectportal_arn, regionnextToken, maxResultsRetrieves a list of identity providers for a specific web portal.
create_identity_providerinsertregion, portalArn, identityProviderName, identityProviderType, identityProviderDetailsCreates an identity provider resource that is then associated with a web portal.
update_identity_providerupdateidentity_provider_arn, regionUpdates the identity provider.
delete_identity_providerdeleteidentity_provider_arn, regionDeletes the identity provider.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
identity_provider_arnstringThe ARN of the identity provider.
portal_arnstringThe ARN of the web portal.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to be included in the next page.
nextTokenstringThe pagination token used to retrieve the next page of results for this operation.

SELECT examples

Gets the identity provider.

SELECT
identity_provider_arn,
identity_provider_details,
identity_provider_name,
identity_provider_type
FROM aws.workspaces_web.identity_providers
WHERE identity_provider_arn = '{{ identity_provider_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an identity provider resource that is then associated with a web portal.

INSERT INTO aws.workspaces_web.identity_providers (
portalArn,
identityProviderName,
identityProviderType,
identityProviderDetails,
clientToken,
tags,
region
)
SELECT
'{{ portalArn }}' /* required */,
'{{ identityProviderName }}' /* required */,
'{{ identityProviderType }}' /* required */,
'{{ identityProviderDetails }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
identity_provider_arn
;

UPDATE examples

Updates the identity provider.

UPDATE aws.workspaces_web.identity_providers
SET
identityProviderName = '{{ identityProviderName }}',
identityProviderType = '{{ identityProviderType }}',
identityProviderDetails = '{{ identityProviderDetails }}',
clientToken = '{{ clientToken }}'
WHERE
identity_provider_arn = '{{ identity_provider_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
identity_provider;

DELETE examples

Deletes the identity provider.

DELETE FROM aws.workspaces_web.identity_providers
WHERE identity_provider_arn = '{{ identity_provider_arn }}' --required
AND region = '{{ region }}' --required
;