# CfnResourceProps

Properties for defining a `CfnResource`.

Extends: CfnResourceProps
Used as props by: CfnResource

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnResourceProps: apigateway.CfnResourceProps = {
  parentId: 'parentId',
  pathPart: 'pathPart',
  restApiId: 'restApiId',
};
```

## Properties

- `parentId`: string | [IResourceRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IResourceRef.html) (required) — The parent resource's identifier.

- `pathPart`: string (required) — The last path segment for this resource.

- `restApiId`: string | [IRestApiRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IRestApiRef.html) (required) — The string identifier of the associated RestApi.
