# DefinitionConfig

Partial object from the StateMachine L1 construct properties containing definition information.

- Source: [`aws-stepfunctions/lib/state-machine.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts#L789)
- Type last changed: v2.85.0 · 21 Jun 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';

declare const definition: any;
const definitionConfig: stepfunctions.DefinitionConfig = {
  definition: definition,
  definitionS3Location: {
    bucket: 'bucket',
    key: 'key',

    // the properties below are optional
    version: 'version',
  },
  definitionString: 'definitionString',
};
```

## Properties

- `definition`: any

- `definitionS3Location`: [CfnStateMachine.S3LocationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.CfnStateMachine.S3LocationProperty.html)

- `definitionString`: string
