# CfnGraphProps

Properties for defining a `CfnGraph`.

Used as props by: [CfnGraph](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_detective.CfnGraph.html)

- Source: Generated at build time
- Type last changed: v2.88.0 · 20 Jul 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

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

- `autoEnableMembers`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — 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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-detective-organizationadmin.html) .

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tag values to assign to the new behavior graph.
