# CfnResourceProps

- Source: [`core/lib/cfn-resource.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/core/lib/cfn-resource.ts#L30)

## Example

```ts
class MyConstruct extends Resource implements ITaggable {
  public readonly tags = new TagManager(TagType.KEY_VALUE, 'Whatever::The::Type');

  constructor(scope: Construct, id: string) {
    super(scope, id);

    new CfnResource(this, 'Resource', {
      type: 'Whatever::The::Type',
      properties: {
        // ...
        Tags: this.tags.renderedTags,
      },
    });
  }
}
```

## Properties

- `properties`: { [key: string]: any } = No resource properties. — Resource properties.

- `type`: string (required) — CloudFormation resource type (e.g. `AWS::S3::Bucket`).

## Used as props by

- [`CfnResource`](/v2/docs/aws-cdk-lib.CfnResource)
