# ResourceAttributes

Attributes that can be specified when importing a Resource.

- Source: [`aws-apigateway/lib/resource.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-apigateway/lib/resource.ts#L403)

## 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';

declare const restApi: apigateway.RestApi;
const resourceAttributes: apigateway.ResourceAttributes = {
  path: 'path',
  resourceId: 'resourceId',
  restApi: restApi,
};
```

## Properties

- `path`: string (required) — The full path of this resource.

- `resourceId`: string (required) — The ID of the resource.

- `restApi`: [IRestApi](/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.IRestApi.html) (required) — The rest API that this resource is part of.
