Grafana

This page documents function available when using the Grafana module, created with @service Grafana.

Index

Documentation

Main.Grafana.associate_licenseMethod
associate_license(license_type, workspace_id)
associate_license(license_type, workspace_id, params::Dict{String,<:Any})

Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana Enterprise incurs additional fees. For more information, see Upgrade a workspace to Grafana Enterprise.

Arguments

  • license_type: The type of license to associate with the workspace.
  • workspace_id: The ID of the workspace to associate the license with.
source
Main.Grafana.create_workspaceMethod
create_workspace(account_access_type, authentication_providers, permission_type)
create_workspace(account_access_type, authentication_providers, permission_type, params::Dict{String,<:Any})

Creates a workspace. In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server. Don't use CreateWorkspace to modify an existing workspace. Instead, use UpdateWorkspace.

Arguments

  • account_access_type: Specifies whether the workspace can access Amazon Web Services resources in this Amazon Web Services account only, or whether it can also access Amazon Web Services resources in other accounts in the same organization. If you specify ORGANIZATION, you must specify which organizational units the workspace can access in the workspaceOrganizationalUnits parameter.
  • authentication_providers: Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor to Single Sign-On), or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana.
  • permission_type: When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels. You must also specify a workspaceRoleArn for a role that you will manage for the workspace to use when accessing those datasources and notification channels. The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to SERVICEMANAGED. Use only the CUSTOMERMANAGED permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation. For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "clientToken": A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
  • "configuration": The configuration string for the workspace that you create. For more information about the format and configuration options available, see Working in your Grafana workspace.
  • "grafanaVersion": Specifies the version of Grafana to support in the new workspace. Supported values are 8.4 and 9.4.
  • "networkAccessControl": Configuration for network access to your workspace. When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required. If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
  • "organizationRoleName": The name of an IAM role that already exists to use with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.
  • "stackSetName": The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
  • "tags": The list of tags associated with the workspace.
  • "vpcConfiguration": The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
  • "workspaceDataSources": This parameter is for internal use only, and should not be used.
  • "workspaceDescription": A description for the workspace. This is used only to help you identify this workspace. Pattern: ^[p{L}p{Z}p{N}p{P}]{0,2048}
  • "workspaceName": The name for the workspace. It does not have to be unique.
  • "workspaceNotificationDestinations": Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.
  • "workspaceOrganizationalUnits": Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.
  • "workspaceRoleArn": Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added.
source
Main.Grafana.create_workspace_api_keyMethod
create_workspace_api_key(key_name, key_role, seconds_to_live, workspace_id)
create_workspace_api_key(key_name, key_role, seconds_to_live, workspace_id, params::Dict{String,<:Any})

Creates a Grafana API key for the workspace. This key can be used to authenticate requests sent to the workspace's HTTP API. See https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html for available APIs and example requests.

Arguments

  • key_name: Specifies the name of the key. Keynames must be unique to the workspace.
  • key_role: Specifies the permission level of the key. Valid values: VIEWER|EDITOR|ADMIN
  • seconds_to_live: Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
  • workspace_id: The ID of the workspace to create an API key.
source
Main.Grafana.delete_workspaceMethod
delete_workspace(workspace_id)
delete_workspace(workspace_id, params::Dict{String,<:Any})

Deletes an Amazon Managed Grafana workspace.

Arguments

  • workspace_id: The ID of the workspace to delete.
source
Main.Grafana.delete_workspace_api_keyMethod
delete_workspace_api_key(key_name, workspace_id)
delete_workspace_api_key(key_name, workspace_id, params::Dict{String,<:Any})

Deletes a Grafana API key for the workspace.

Arguments

  • key_name: The name of the API key to delete.
  • workspace_id: The ID of the workspace to delete.
source
Main.Grafana.describe_workspaceMethod
describe_workspace(workspace_id)
describe_workspace(workspace_id, params::Dict{String,<:Any})

Displays information about one Amazon Managed Grafana workspace.

Arguments

  • workspace_id: The ID of the workspace to display information about.
source
Main.Grafana.describe_workspace_authenticationMethod
describe_workspace_authentication(workspace_id)
describe_workspace_authentication(workspace_id, params::Dict{String,<:Any})

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

Arguments

  • workspace_id: The ID of the workspace to return authentication information about.
source
Main.Grafana.describe_workspace_configurationMethod
describe_workspace_configuration(workspace_id)
describe_workspace_configuration(workspace_id, params::Dict{String,<:Any})

Gets the current configuration string for the given workspace.

Arguments

  • workspace_id: The ID of the workspace to get configuration information for.
source
Main.Grafana.disassociate_licenseMethod
disassociate_license(license_type, workspace_id)
disassociate_license(license_type, workspace_id, params::Dict{String,<:Any})

Removes the Grafana Enterprise license from a workspace.

Arguments

  • license_type: The type of license to remove from the workspace.
  • workspace_id: The ID of the workspace to remove the Grafana Enterprise license from.
source
Main.Grafana.list_permissionsMethod
list_permissions(workspace_id)
list_permissions(workspace_id, params::Dict{String,<:Any})

Lists the users and groups who have the Grafana Admin and Editor roles in this workspace. If you use this operation without specifying userId or groupId, the operation returns the roles of all users and groups. If you specify a userId or a groupId, only the roles for that user or group are returned. If you do this, you can specify only one userId or one groupId.

Arguments

  • workspace_id: The ID of the workspace to list permissions for. This parameter is required.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "groupId": (Optional) Limits the results to only the group that matches this ID.
  • "maxResults": The maximum number of results to include in the response.
  • "nextToken": The token to use when requesting the next set of results. You received this token from a previous ListPermissions operation.
  • "userId": (Optional) Limits the results to only the user that matches this ID.
  • "userType": (Optional) If you specify SSOUSER, then only the permissions of IAM Identity Center users are returned. If you specify SSOGROUP, only the permissions of IAM Identity Center groups are returned.
source
Main.Grafana.list_tags_for_resourceMethod
list_tags_for_resource(resource_arn)
list_tags_for_resource(resource_arn, params::Dict{String,<:Any})

The ListTagsForResource operation returns the tags that are associated with the Amazon Managed Service for Grafana resource specified by the resourceArn. Currently, the only resource that can be tagged is a workspace.

Arguments

  • resource_arn: The ARN of the resource the list of tags are associated with.
source
Main.Grafana.list_workspacesMethod
list_workspaces()
list_workspaces(params::Dict{String,<:Any})

Returns a list of Amazon Managed Grafana workspaces in the account, with some information about each workspace. For more complete information about one workspace, use DescribeWorkspace.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "maxResults": The maximum number of workspaces to include in the results.
  • "nextToken": The token for the next set of workspaces to return. (You receive this token from a previous ListWorkspaces operation.)
source
Main.Grafana.tag_resourceMethod
tag_resource(resource_arn, tags)
tag_resource(resource_arn, tags, params::Dict{String,<:Any})

The TagResource operation associates tags with an Amazon Managed Grafana resource. Currently, the only resource that can be tagged is workspaces. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.

Arguments

  • resource_arn: The ARN of the resource the tag is associated with.
  • tags: The list of tag keys and values to associate with the resource. You can associate tag keys only, tags (key and values) only or a combination of tag keys and tags.
source
Main.Grafana.untag_resourceMethod
untag_resource(resource_arn, tag_keys)
untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any})

The UntagResource operation removes the association of the tag with the Amazon Managed Grafana resource.

Arguments

  • resource_arn: The ARN of the resource the tag association is removed from.
  • tag_keys: The key values of the tag to be removed from the resource.
source
Main.Grafana.update_permissionsMethod
update_permissions(update_instruction_batch, workspace_id)
update_permissions(update_instruction_batch, workspace_id, params::Dict{String,<:Any})

Updates which users in a workspace have the Grafana Admin or Editor roles.

Arguments

  • update_instruction_batch: An array of structures that contain the permission updates to make.
  • workspace_id: The ID of the workspace to update.
source
Main.Grafana.update_workspaceMethod
update_workspace(workspace_id)
update_workspace(workspace_id, params::Dict{String,<:Any})

Modifies an existing Amazon Managed Grafana workspace. If you use this operation and omit any optional parameters, the existing values of those parameters are not changed. To modify the user authentication methods that the workspace uses, such as SAML or IAM Identity Center, use UpdateWorkspaceAuthentication. To modify which users in the workspace have the Admin and Editor Grafana roles, use UpdatePermissions.

Arguments

  • workspace_id: The ID of the workspace to update.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "accountAccessType": Specifies whether the workspace can access Amazon Web Services resources in this Amazon Web Services account only, or whether it can also access Amazon Web Services resources in other accounts in the same organization. If you specify ORGANIZATION, you must specify which organizational units the workspace can access in the workspaceOrganizationalUnits parameter.
  • "networkAccessControl": The configuration settings for network access to your workspace. When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required. If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
  • "organizationRoleName": The name of an IAM role that already exists to use to access resources through Organizations. This can only be used with a workspace that has the permissionType set to CUSTOMER_MANAGED.
  • "permissionType": Use this parameter if you want to change a workspace from SERVICEMANAGED to CUSTOMERMANAGED. This allows you to manage the permissions that the workspace uses to access datasources and notification channels. If the workspace is in a member Amazon Web Services account of an organization, and that account is not a delegated administrator account, and you want the workspace to access data sources in other Amazon Web Services accounts in the organization, you must choose CUSTOMERMANAGED. If you specify this as CUSTOMERMANAGED, you must also specify a workspaceRoleArn that the workspace will use for accessing Amazon Web Services resources. For more information on the role and permissions needed, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels Do not use this to convert a CUSTOMERMANAGED workspace to SERVICEMANAGED. Do not include this parameter if you want to leave the workspace as SERVICEMANAGED. You can convert a CUSTOMERMANAGED workspace to SERVICE_MANAGED using the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels.
  • "removeNetworkAccessConfiguration": Whether to remove the network access configuration from the workspace. Setting this to true and providing a networkAccessControl to set will return an error. If you remove this configuration by setting this to true, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
  • "removeVpcConfiguration": Whether to remove the VPC configuration from the workspace. Setting this to true and providing a vpcConfiguration to set will return an error.
  • "stackSetName": The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
  • "vpcConfiguration": The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
  • "workspaceDataSources": This parameter is for internal use only, and should not be used.
  • "workspaceDescription": A description for the workspace. This is used only to help you identify this workspace.
  • "workspaceName": A new name for the workspace to update.
  • "workspaceNotificationDestinations": Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.
  • "workspaceOrganizationalUnits": Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is in an account that is part of an organization.
  • "workspaceRoleArn": Specifies an IAM role that grants permissions to Amazon Web Services resources that the workspace accesses, such as data sources and notification channels. If this workspace has permissionType CUSTOMER_MANAGED, then this role is required.
source
Main.Grafana.update_workspace_authenticationMethod
update_workspace_authentication(authentication_providers, workspace_id)
update_workspace_authentication(authentication_providers, workspace_id, params::Dict{String,<:Any})

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.

Arguments

  • authentication_providers: Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor to Single Sign-On), or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana.
  • workspace_id: The ID of the workspace to update the authentication for.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "samlConfiguration": If the workspace uses SAML, use this structure to 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.
source
Main.Grafana.update_workspace_configurationMethod
update_workspace_configuration(configuration, workspace_id)
update_workspace_configuration(configuration, workspace_id, params::Dict{String,<:Any})

Updates the configuration string for the given workspace

Arguments

  • configuration: The new configuration string for the workspace. For more information about the format and configuration options available, see Working in your Grafana workspace.
  • workspace_id: The ID of the workspace to update.
source