Package com.pulumi.aws.grafana
Class WorkspaceServiceAccount
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.grafana.WorkspaceServiceAccount
-
public class WorkspaceServiceAccount extends com.pulumi.resources.CustomResource> **Note:** You cannot update a service account. If you change any attribute, Terraform will delete the current and create a new one. Read about Service Accounts in the [Amazon Managed Grafana user guide](https://docs.aws.amazon.com/grafana/latest/userguide/service-accounts.html). ## Example Usage ### Basic Usage
## Import Using `pulumi import`, import Managed Grafana Workspace Service Account using the `workspaceId` and `serviceAccountId` separated by a comma (`,`). For example: ```sh $ pulumi import aws:grafana/workspaceServiceAccount:WorkspaceServiceAccount example g-abc12345,1 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.grafana.WorkspaceServiceAccount; import com.pulumi.aws.grafana.WorkspaceServiceAccountArgs; import java.util.ArrayList; import java.util.Arrays; 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 example = new WorkspaceServiceAccount("example", WorkspaceServiceAccountArgs.builder() .name("example-admin") .grafanaRole("ADMIN") .workspaceId(exampleAwsGrafanaWorkspace.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description WorkspaceServiceAccount(java.lang.String name)WorkspaceServiceAccount(java.lang.String name, WorkspaceServiceAccountArgs args)WorkspaceServiceAccount(java.lang.String name, WorkspaceServiceAccountArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkspaceServiceAccountget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, WorkspaceServiceAccountState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>grafanaRole()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>serviceAccountId()com.pulumi.core.Output<java.lang.String>workspaceId()
-
-
-
Constructor Detail
-
WorkspaceServiceAccount
public WorkspaceServiceAccount(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
WorkspaceServiceAccount
public WorkspaceServiceAccount(java.lang.String name, WorkspaceServiceAccountArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
WorkspaceServiceAccount
public WorkspaceServiceAccount(java.lang.String name, WorkspaceServiceAccountArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
grafanaRole
public com.pulumi.core.Output<java.lang.String> grafanaRole()
- Returns:
- Permission level to use for this service account. For more information about the roles and the permissions each has, see the [User roles](https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-user-roles.html) documentation.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- Name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
serviceAccountId
public com.pulumi.core.Output<java.lang.String> serviceAccountId()
- Returns:
- Identifier of the service account in the given Grafana workspace
-
workspaceId
public com.pulumi.core.Output<java.lang.String> workspaceId()
- Returns:
- Grafana workspace with which the service account is associated.
-
get
public static WorkspaceServiceAccount get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable WorkspaceServiceAccountState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-