GraphArgs

data class GraphArgs(val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<GraphArgs>

Provides a resource to manage an AWS Detective Graph. As an AWS account may own only one Detective graph per region, provisioning multiple Detective graphs requires a separate provider configuration for each graph.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.detective.Graph;
import com.pulumi.aws.detective.GraphArgs;
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 Graph("example", GraphArgs.builder()
.tags(Map.of("Name", "example-detective-graph"))
.build());
}
}

Import

aws_detective_graph can be imported using the ARN, e.g.

$ pulumi import aws:detective/graph:Graph example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d

Constructors

Link copied to clipboard
constructor(tags: Output<Map<String, String>>? = null)

Properties

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

A map of tags to assign to the instance. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): GraphArgs