Workspace

class Workspace : KotlinCustomResource

Manages an Amazon Managed Service for Prometheus (AMP) Workspace.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.amp.Workspace;
import com.pulumi.aws.amp.WorkspaceArgs;
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 example = new Workspace("example", WorkspaceArgs.builder()
.alias("example")
.tags(Map.of("Environment", "production"))
.build());
}
}

CloudWatch Logging

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.LogGroup;
import com.pulumi.aws.amp.Workspace;
import com.pulumi.aws.amp.WorkspaceArgs;
import com.pulumi.aws.amp.inputs.WorkspaceLoggingConfigurationArgs;
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 exampleLogGroup = new LogGroup("exampleLogGroup");
var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
.loggingConfiguration(WorkspaceLoggingConfigurationArgs.builder()
.logGroupArn(exampleLogGroup.arn().applyValue(arn -> String.format("%s:*", arn)))
.build())
.build());
}
}

Import

AMP Workspaces can be imported using the identifier, e.g.,

$ pulumi import aws:amp/workspace:Workspace demo ws-C6DCB907-F2D7-4D96-957B-66691F865D8B

Properties

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

The alias of the prometheus workspace. See more in AWS Docs.

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the workspace.

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

Logging configuration for the workspace. See Logging Configuration below for details.

Link copied to clipboard

Prometheus endpoint available for this workspace.

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

A map of tags to assign to the resource. 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>>

A 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>