Workspace Args
data class WorkspaceArgs(val accountAccessType: Output<String>? = null, val authenticationProviders: Output<List<String>>? = null, val configuration: Output<String>? = null, val dataSources: Output<List<String>>? = null, val description: Output<String>? = null, val grafanaVersion: Output<String>? = null, val name: Output<String>? = null, val networkAccessControl: Output<WorkspaceNetworkAccessControlArgs>? = null, val notificationDestinations: Output<List<String>>? = null, val organizationRoleName: Output<String>? = null, val organizationalUnits: Output<List<String>>? = null, val permissionType: Output<String>? = null, val roleArn: Output<String>? = null, val stackSetName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vpcConfiguration: Output<WorkspaceVpcConfigurationArgs>? = null) : ConvertibleToJava<WorkspaceArgs>
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());
}
}
Content copied to clipboard
Import
Grafana Workspace can be imported using the workspace's id
, e.g.,
$ pulumi import aws:grafana/workspace:Workspace example g-2054c75a02
Content copied to clipboard
Constructors
Link copied to clipboard
fun WorkspaceArgs(accountAccessType: Output<String>? = null, authenticationProviders: Output<List<String>>? = null, configuration: Output<String>? = null, dataSources: Output<List<String>>? = null, description: Output<String>? = null, grafanaVersion: Output<String>? = null, name: Output<String>? = null, networkAccessControl: Output<WorkspaceNetworkAccessControlArgs>? = null, notificationDestinations: Output<List<String>>? = null, organizationRoleName: Output<String>? = null, organizationalUnits: Output<List<String>>? = null, permissionType: Output<String>? = null, roleArn: Output<String>? = null, stackSetName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vpcConfiguration: Output<WorkspaceVpcConfigurationArgs>? = null)
Functions
Properties
Link copied to clipboard
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
Link copied to clipboard
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.