# CfnAuthPolicyProps

Properties for defining a `CfnAuthPolicy`.

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

- Source: Generated at build time
- Type last changed: v2.70.0 · 22 Mar 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_vpclattice as vpclattice } from 'aws-cdk-lib';

declare const policy: any;
const cfnAuthPolicyProps: vpclattice.CfnAuthPolicyProps = {
  policy: policy,
  resourceIdentifier: 'resourceIdentifier',
};
```

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_vpclattice as vpclattice

# policy: Any

cfn_auth_policy_props = vpclattice.CfnAuthPolicyProps(
    policy=policy,
    resource_identifier="resourceIdentifier"
)
```

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

Object policy;

CfnAuthPolicyProps cfnAuthPolicyProps = CfnAuthPolicyProps.builder()
        .policy(policy)
        .resourceIdentifier("resourceIdentifier")
        .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.VpcLattice;

var policy;

var cfnAuthPolicyProps = new CfnAuthPolicyProps {
    Policy = policy,
    ResourceIdentifier = "resourceIdentifier"
};
```

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"

var policy interface{}

cfnAuthPolicyProps := &CfnAuthPolicyProps{
	Policy: policy,
	ResourceIdentifier: jsii.String("resourceIdentifier"),
}
```

## Properties

- `policy`: any (required) — The auth policy.

- `resourceIdentifier`: string (required) — The ID or ARN of the service network or service for which the policy is created.
