Skip to main content

workspace_authentications

Creates, updates, deletes, gets or lists a workspace_authentications resource.

Overview

Nameworkspace_authentications
TypeResource
Idaws.grafana.workspace_authentications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_ssoobjectA structure containing information about how this workspace works with IAM Identity Center.
providersarraySpecifies whether this workspace uses IAM Identity Center, SAML, or both methods to authenticate users to use the Grafana console in the Amazon Managed Grafana workspace.
samlobjectA structure containing information about how this workspace works with SAML, including what attributes within the assertion are to be mapped to user information in the workspace.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workspace_authenticationselectworkspace_id, regionDisplays information about the authentication methods used in one Amazon Managed Grafana workspace.
update_workspace_authenticationupdateworkspace_id, region, authenticationProvidersUse this operation to define the identity provider (IdP) that this workspace authenticates users from, using SAML. You can also map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace. Changes to the authentication method for a workspace may take a few minutes to take effect.

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
regionstringAWS region (default: us-east-1)
workspace_idstringThe ID of the workspace to update the authentication for.

SELECT examples

Displays information about the authentication methods used in one Amazon Managed Grafana workspace.

SELECT
aws_sso,
providers,
saml
FROM aws.grafana.workspace_authentications
WHERE workspace_id = '{{ workspace_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Use this operation to define the identity provider (IdP) that this workspace authenticates users from, using SAML. You can also map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin and Editor roles in the workspace. Changes to the authentication method for a workspace may take a few minutes to take effect.

UPDATE aws.grafana.workspace_authentications
SET
authenticationProviders = '{{ authenticationProviders }}',
samlConfiguration = '{{ samlConfiguration }}'
WHERE
workspace_id = '{{ workspace_id }}' --required
AND region = '{{ region }}' --required
AND authenticationProviders = '{{ authenticationProviders }}' --required
RETURNING
authentication;