AWS::Detective::Graph - AWS CloudFormation

AWS::Detective::Graph

The AWS::Detective::Graph resource is an Amazon Detective resource type that creates a Detective behavior graph. The requesting account becomes the administrator account for the behavior graph.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Detective::Graph", "Properties" : { "AutoEnableMembers" : Boolean, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::Detective::Graph Properties: AutoEnableMembers: Boolean Tags: - Tag

Properties

AutoEnableMembers

Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.

By default, this property is set to false. If you want to change the value of this property, you must be the Detective administrator for the organization. For more information on setting a Detective administrator account, see AWS::Detective::OrganizationAdmin

Required: No

Type: Boolean

Update requires: No interruption

Tags

The tag values to assign to the new behavior graph.

Required: No

Type: Array of Tag

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ARN of the new behavior graph.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

The ARN of the new behavior graph.

Examples

Creating a new Detective behavior graph

This example shows how to declare a new AWS:Detective:Graph resource to create a new Detective behavior graph

JSON

"NewGraph": { "Type": "AWS::Detective::Graph" "Properties": { "Tags": [ { "Key": "Tag1Name", "Value": "Tag1Value" }, { "Key": "Tag2Name". "Value": "Tag2alue" } ] } }

YAML

NewGraph: Type: AWS::Detective::Graph Properties: Tags: - Key: Tag1Name Value: Tag1Value - Key: Tag2Name Value: Tag2Value