# CfnPolicyAssociationProps

Properties for defining a `CfnPolicyAssociation`.

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

- Source: Generated at build time
- Type last changed: v2.145.0 · 7 Jun 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityhub as securityhub } from 'aws-cdk-lib';
const cfnPolicyAssociationProps: securityhub.CfnPolicyAssociationProps = {
  configurationPolicyId: 'configurationPolicyId',
  targetId: 'targetId',
  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_securityhub as securityhub

cfn_policy_association_props = securityhub.CfnPolicyAssociationProps(
    configuration_policy_id="configurationPolicyId",
    target_id="targetId",
    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.securityhub.*;

CfnPolicyAssociationProps cfnPolicyAssociationProps = CfnPolicyAssociationProps.builder()
        .configurationPolicyId("configurationPolicyId")
        .targetId("targetId")
        .targetType("targetType")
        .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.SecurityHub;

var cfnPolicyAssociationProps = new CfnPolicyAssociationProps {
    ConfigurationPolicyId = "configurationPolicyId",
    TargetId = "targetId",
    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"

cfnPolicyAssociationProps := &CfnPolicyAssociationProps{
	ConfigurationPolicyId: jsii.String("configurationPolicyId"),
	TargetId: jsii.String("targetId"),
	TargetType: jsii.String("targetType"),
}
```

## Properties

- `configurationPolicyId`: string (required) — The universally unique identifier (UUID) of the configuration policy.

  A self-managed configuration has no UUID. The identifier of a self-managed configuration is `SELF_MANAGED_SECURITY_HUB` .

- `targetId`: string (required) — The identifier of the target account, organizational unit, or the root.

- `targetType`: string (required) — Specifies whether the target is an AWS account , organizational unit, or the root.
