Skip to content
v2.277.0

CfnGraphProps Struct ​

Properties for defining a CfnGraph.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_detective as detective } from 'aws-cdk-lib';
const cfnGraphProps: detective.CfnGraphProps = {
  autoEnableMembers: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_detective as detective

cfn_graph_props = detective.CfnGraphProps(
    auto_enable_members=False,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.detective.*;

CfnGraphProps cfnGraphProps = CfnGraphProps.builder()
        .autoEnableMembers(false)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Detective;

var cfnGraphProps = new CfnGraphProps {
    AutoEnableMembers = false,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnGraphProps := &CfnGraphProps{
	AutoEnableMembers: jsii.Boolean(false),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

autoEnableMembersoptionalboolean | IResolvableauto_enable_membersoptionaltyping.Union[bool, IResolvable]autoEnableMembersoptionalBooleanAutoEnableMembersoptionalboolAutoEnableMembersoptionalinterface{}= false#
Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.
notes

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 .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tag values to assign to the new behavior graph.