AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi
aws.grafana.getWorkspace
Explore with Pulumi AI
Provides an Amazon Managed Grafana workspace data source.
Example Usage
Basic configuration
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.grafana.getWorkspace({
    workspaceId: "g-2054c75a02",
});
import pulumi
import pulumi_aws as aws
example = aws.grafana.get_workspace(workspace_id="g-2054c75a02")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/grafana"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := grafana.LookupWorkspace(ctx, &grafana.LookupWorkspaceArgs{
			WorkspaceId: "g-2054c75a02",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Grafana.GetWorkspace.Invoke(new()
    {
        WorkspaceId = "g-2054c75a02",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.grafana.GrafanaFunctions;
import com.pulumi.aws.grafana.inputs.GetWorkspaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = GrafanaFunctions.getWorkspace(GetWorkspaceArgs.builder()
            .workspaceId("g-2054c75a02")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:grafana:getWorkspace
      arguments:
        workspaceId: g-2054c75a02
Using getWorkspace
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkspace(args: GetWorkspaceArgs, opts?: InvokeOptions): Promise<GetWorkspaceResult>
function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceResult>def get_workspace(tags: Optional[Mapping[str, str]] = None,
                  workspace_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetWorkspaceResult
def get_workspace_output(tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  workspace_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceResult]func LookupWorkspace(ctx *Context, args *LookupWorkspaceArgs, opts ...InvokeOption) (*LookupWorkspaceResult, error)
func LookupWorkspaceOutput(ctx *Context, args *LookupWorkspaceOutputArgs, opts ...InvokeOption) LookupWorkspaceResultOutput> Note: This function is named LookupWorkspace in the Go SDK.
public static class GetWorkspace 
{
    public static Task<GetWorkspaceResult> InvokeAsync(GetWorkspaceArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkspaceResult> Invoke(GetWorkspaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOptions options)
public static Output<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOptions options)
fn::invoke:
  function: aws:grafana/getWorkspace:getWorkspace
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Workspace
Id string - Grafana workspace ID.
 - Dictionary<string, string>
 - Tags assigned to the resource
 
- Workspace
Id string - Grafana workspace ID.
 - map[string]string
 - Tags assigned to the resource
 
- workspace
Id String - Grafana workspace ID.
 - Map<String,String>
 - Tags assigned to the resource
 
- workspace
Id string - Grafana workspace ID.
 - {[key: string]: string}
 - Tags assigned to the resource
 
- workspace_
id str - Grafana workspace ID.
 - Mapping[str, str]
 - Tags assigned to the resource
 
- workspace
Id String - Grafana workspace ID.
 - Map<String>
 - Tags assigned to the resource
 
getWorkspace Result
The following output properties are available:
- Account
Access stringType  - (Required) Type of account access for the workspace. Valid values are 
CURRENT_ACCOUNTandORGANIZATION. IfORGANIZATIONis specified, thenorganizational_unitsmust also be present. - Arn string
 - ARN of the Grafana workspace.
 - Authentication
Providers List<string> - (Required) Authentication providers for the workspace. Valid values are 
AWS_SSO,SAML, or both. - Created
Date string - Creation date of the Grafana workspace.
 - Data
Sources List<string> - Data sources for the workspace.
 - Description string
 - Workspace description.
 - Endpoint string
 - Endpoint of the Grafana workspace.
 - string
 - Version of Grafana running on the workspace.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Last
Updated stringDate  - Last updated date of the Grafana workspace.
 - Name string
 - Grafana workspace name.
 - Notification
Destinations List<string> - The notification destinations.
 - Organization
Role stringName  - The role name that the workspace uses to access resources through Amazon Organizations.
 - Organizational
Units List<string> - The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
 - Permission
Type string - Permission type of the workspace.
 - Role
Arn string - IAM role ARN that the workspace assumes.
 - Saml
Configuration stringStatus  - Stack
Set stringName  - AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
 - Status string
 - Status of the Grafana workspace.
 - Dictionary<string, string>
 - Tags assigned to the resource
 - Workspace
Id string 
- Account
Access stringType  - (Required) Type of account access for the workspace. Valid values are 
CURRENT_ACCOUNTandORGANIZATION. IfORGANIZATIONis specified, thenorganizational_unitsmust also be present. - Arn string
 - ARN of the Grafana workspace.
 - Authentication
Providers []string - (Required) Authentication providers for the workspace. Valid values are 
AWS_SSO,SAML, or both. - Created
Date string - Creation date of the Grafana workspace.
 - Data
Sources []string - Data sources for the workspace.
 - Description string
 - Workspace description.
 - Endpoint string
 - Endpoint of the Grafana workspace.
 - string
 - Version of Grafana running on the workspace.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Last
Updated stringDate  - Last updated date of the Grafana workspace.
 - Name string
 - Grafana workspace name.
 - Notification
Destinations []string - The notification destinations.
 - Organization
Role stringName  - The role name that the workspace uses to access resources through Amazon Organizations.
 - Organizational
Units []string - The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
 - Permission
Type string - Permission type of the workspace.
 - Role
Arn string - IAM role ARN that the workspace assumes.
 - Saml
Configuration stringStatus  - Stack
Set stringName  - AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
 - Status string
 - Status of the Grafana workspace.
 - map[string]string
 - Tags assigned to the resource
 - Workspace
Id string 
- account
Access StringType  - (Required) Type of account access for the workspace. Valid values are 
CURRENT_ACCOUNTandORGANIZATION. IfORGANIZATIONis specified, thenorganizational_unitsmust also be present. - arn String
 - ARN of the Grafana workspace.
 - authentication
Providers List<String> - (Required) Authentication providers for the workspace. Valid values are 
AWS_SSO,SAML, or both. - created
Date String - Creation date of the Grafana workspace.
 - data
Sources List<String> - Data sources for the workspace.
 - description String
 - Workspace description.
 - endpoint String
 - Endpoint of the Grafana workspace.
 - String
 - Version of Grafana running on the workspace.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - last
Updated StringDate  - Last updated date of the Grafana workspace.
 - name String
 - Grafana workspace name.
 - notification
Destinations List<String> - The notification destinations.
 - organization
Role StringName  - The role name that the workspace uses to access resources through Amazon Organizations.
 - organizational
Units List<String> - The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
 - permission
Type String - Permission type of the workspace.
 - role
Arn String - IAM role ARN that the workspace assumes.
 - saml
Configuration StringStatus  - stack
Set StringName  - AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
 - status String
 - Status of the Grafana workspace.
 - Map<String,String>
 - Tags assigned to the resource
 - workspace
Id String 
- account
Access stringType  - (Required) Type of account access for the workspace. Valid values are 
CURRENT_ACCOUNTandORGANIZATION. IfORGANIZATIONis specified, thenorganizational_unitsmust also be present. - arn string
 - ARN of the Grafana workspace.
 - authentication
Providers string[] - (Required) Authentication providers for the workspace. Valid values are 
AWS_SSO,SAML, or both. - created
Date string - Creation date of the Grafana workspace.
 - data
Sources string[] - Data sources for the workspace.
 - description string
 - Workspace description.
 - endpoint string
 - Endpoint of the Grafana workspace.
 - string
 - Version of Grafana running on the workspace.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - last
Updated stringDate  - Last updated date of the Grafana workspace.
 - name string
 - Grafana workspace name.
 - notification
Destinations string[] - The notification destinations.
 - organization
Role stringName  - The role name that the workspace uses to access resources through Amazon Organizations.
 - organizational
Units string[] - The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
 - permission
Type string - Permission type of the workspace.
 - role
Arn string - IAM role ARN that the workspace assumes.
 - saml
Configuration stringStatus  - stack
Set stringName  - AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
 - status string
 - Status of the Grafana workspace.
 - {[key: string]: string}
 - Tags assigned to the resource
 - workspace
Id string 
- account_
access_ strtype  - (Required) Type of account access for the workspace. Valid values are 
CURRENT_ACCOUNTandORGANIZATION. IfORGANIZATIONis specified, thenorganizational_unitsmust also be present. - arn str
 - ARN of the Grafana workspace.
 - authentication_
providers Sequence[str] - (Required) Authentication providers for the workspace. Valid values are 
AWS_SSO,SAML, or both. - created_
date str - Creation date of the Grafana workspace.
 - data_
sources Sequence[str] - Data sources for the workspace.
 - description str
 - Workspace description.
 - endpoint str
 - Endpoint of the Grafana workspace.
 - grafana_
version str - Version of Grafana running on the workspace.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - last_
updated_ strdate  - Last updated date of the Grafana workspace.
 - name str
 - Grafana workspace name.
 - notification_
destinations Sequence[str] - The notification destinations.
 - organization_
role_ strname  - The role name that the workspace uses to access resources through Amazon Organizations.
 - organizational_
units Sequence[str] - The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
 - permission_
type str - Permission type of the workspace.
 - role_
arn str - IAM role ARN that the workspace assumes.
 - saml_
configuration_ strstatus  - stack_
set_ strname  - AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
 - status str
 - Status of the Grafana workspace.
 - Mapping[str, str]
 - Tags assigned to the resource
 - workspace_
id str 
- account
Access StringType  - (Required) Type of account access for the workspace. Valid values are 
CURRENT_ACCOUNTandORGANIZATION. IfORGANIZATIONis specified, thenorganizational_unitsmust also be present. - arn String
 - ARN of the Grafana workspace.
 - authentication
Providers List<String> - (Required) Authentication providers for the workspace. Valid values are 
AWS_SSO,SAML, or both. - created
Date String - Creation date of the Grafana workspace.
 - data
Sources List<String> - Data sources for the workspace.
 - description String
 - Workspace description.
 - endpoint String
 - Endpoint of the Grafana workspace.
 - String
 - Version of Grafana running on the workspace.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - last
Updated StringDate  - Last updated date of the Grafana workspace.
 - name String
 - Grafana workspace name.
 - notification
Destinations List<String> - The notification destinations.
 - organization
Role StringName  - The role name that the workspace uses to access resources through Amazon Organizations.
 - organizational
Units List<String> - The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
 - permission
Type String - Permission type of the workspace.
 - role
Arn String - IAM role ARN that the workspace assumes.
 - saml
Configuration StringStatus  - stack
Set StringName  - AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
 - status String
 - Status of the Grafana workspace.
 - Map<String>
 - Tags assigned to the resource
 - workspace
Id String 
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.