Workspace

class Workspace : KotlinCustomResource

Provides an Amazon Managed Grafana workspace resource.

Example Usage

Basic configuration

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.grafana.Workspace;
import com.pulumi.aws.grafana.WorkspaceArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
var assume = new Role("assume", RoleArgs.builder()
.assumeRolePolicy(serializeJson(
jsonObject(
jsonProperty("Version", "2012-10-17"),
jsonProperty("Statement", jsonArray(jsonObject(
jsonProperty("Action", "sts:AssumeRole"),
jsonProperty("Effect", "Allow"),
jsonProperty("Sid", ""),
jsonProperty("Principal", jsonObject(
jsonProperty("Service", "grafana.amazonaws.com")
))
)))
)))
.build());
var example = new Workspace("example", WorkspaceArgs.builder()
.accountAccessType("CURRENT_ACCOUNT")
.authenticationProviders("SAML")
.permissionType("SERVICE_MANAGED")
.roleArn(assume.arn())
.build());
}
}

Import

Grafana Workspace can be imported using the workspace's id, e.g.,

$ pulumi import aws:grafana/workspace:Workspace example g-2054c75a02

Properties

Link copied to clipboard

The type of account access for the workspace. Valid values are CURRENT_ACCOUNT and ORGANIZATION. If ORGANIZATION is specified, then organizational_units must also be present.

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the Grafana workspace.

Link copied to clipboard

The authentication providers for the workspace. Valid values are AWS_SSO, SAML, or both.

Link copied to clipboard
val configuration: Output<String>

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.

Link copied to clipboard
val dataSources: Output<List<String>>?

The data sources for the workspace. Valid values are AMAZON_OPENSEARCH_SERVICE, ATHENA, CLOUDWATCH, PROMETHEUS, REDSHIFT, SITEWISE, TIMESTREAM, XRAY

Link copied to clipboard
val description: Output<String>?

The workspace description.

Link copied to clipboard
val endpoint: Output<String>

The endpoint of the Grafana workspace.

Link copied to clipboard
val grafanaVersion: Output<String>

Specifies the version of Grafana to support in the new workspace. Supported values are 8.4 and 9.4. If not specified, defaults to 8.4. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official migration tool.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The Grafana workspace name.

Link copied to clipboard

Configuration for network access to your workspace.See Network Access Control below.

Link copied to clipboard

The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to SNS.

Link copied to clipboard

The Amazon Organizations organizational units that the workspace is authorized to use data sources from.

Link copied to clipboard

The role name that the workspace uses to access resources through Amazon Organizations.

Link copied to clipboard
val permissionType: Output<String>

The permission type of the workspace. If SERVICE_MANAGED is specified, the IAM roles and IAM policy attachments are generated automatically. If CUSTOMER_MANAGED is specified, the IAM roles and IAM policy attachments will not be created. The following arguments are optional:

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleArn: Output<String>?

The IAM role ARN that the workspace assumes.

Link copied to clipboard
Link copied to clipboard
val stackSetName: Output<String>?

The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value mapping of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below.