# TargetResourceProperty

A target resource in a scope, identified by a Region and target identifier.

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkflowmonitor as networkflowmonitor } from 'aws-cdk-lib';
const targetResourceProperty: networkflowmonitor.CfnScope.TargetResourceProperty = {
  region: 'region',
  targetIdentifier: {
    targetId: {
      accountId: 'accountId',
    },
    targetType: 'targetType',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkflowmonitor as networkflowmonitor

target_resource_property = networkflowmonitor.CfnScope.TargetResourceProperty(
    region="region",
    target_identifier=networkflowmonitor.CfnScope.TargetIdentifierProperty(
        target_id=networkflowmonitor.CfnScope.TargetIdProperty(
            account_id="accountId"
        ),
        target_type="targetType"
    )
)
```

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.networkflowmonitor.*;

TargetResourceProperty targetResourceProperty = TargetResourceProperty.builder()
        .region("region")
        .targetIdentifier(TargetIdentifierProperty.builder()
                .targetId(TargetIdProperty.builder()
                        .accountId("accountId")
                        .build())
                .targetType("targetType")
                .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.NetworkFlowMonitor;

var targetResourceProperty = new TargetResourceProperty {
    Region = "region",
    TargetIdentifier = new TargetIdentifierProperty {
        TargetId = new TargetIdProperty {
            AccountId = "accountId"
        },
        TargetType = "targetType"
    }
};
```

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"

targetResourceProperty := &TargetResourceProperty{
	Region: jsii.String("region"),
	TargetIdentifier: &TargetIdentifierProperty{
		TargetId: &TargetIdProperty{
			AccountId: jsii.String("accountId"),
		},
		TargetType: jsii.String("targetType"),
	},
}
```

## Properties

- `region`: string (required) — The AWS Region for the target resource.

- `targetIdentifier`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScope.TargetIdentifierProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkflowmonitor.CfnScope.TargetIdentifierProperty.html) (required) — A target identifier is a pair of identifying information for a scope target.
