# CfnCustomResourceProps

Properties for defining a `CfnCustomResource`.

- Source: Generated code
- Type last changed: v2.162.0 · 10 Oct 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as cloudformation } from 'aws-cdk-lib';
const cfnCustomResourceProps: cloudformation.CfnCustomResourceProps = {
  serviceToken: 'serviceToken',

  // the properties below are optional
  serviceTimeout: 123,
};
```

## Properties

- `serviceTimeout`: number — The maximum time, in seconds, that can elapse before a custom resource operation times out.

  The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).

- `serviceToken`: string (required) — The service token, such as an Amazon topic ARN or Lambda function ARN.

  The service token must be from the same Region as the stack.

  Updates aren't supported.

## Used as props by

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