Skip to content

Resource: awsDetectiveGraph

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

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.detectiveGraph.DetectiveGraph(this, "example", {
  tags: {
    Name: "example-detective-graph",
  },
});

Argument Reference

The following arguments are optional:

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

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - ARN of the Detective Graph.
  • graphArn - ARN of the Detective Graph.
  • createdTime - Date and time, in UTC and extended RFC 3339 format, when the Amazon Detective Graph was created.

Import

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

$ terraform import aws_detective_graph.example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d