# DefinitionConfig

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

Returned by: [DefinitionBody.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.DefinitionBody.html#bind)

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

## Example

TypeScript:

```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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions

# definition: Any

definition_config = stepfunctions.DefinitionConfig(
    definition=definition,
    definition_s3_location=stepfunctions.CfnStateMachine.S3LocationProperty(
        bucket="bucket",
        key="key",

        # the properties below are optional
        version="version"
    ),
    definition_string="definitionString"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;

Object definition;

DefinitionConfig definitionConfig = DefinitionConfig.builder()
        .definition(definition)
        .definitionS3Location(S3LocationProperty.builder()
                .bucket("bucket")
                .key("key")

                // the properties below are optional
                .version("version")
                .build())
        .definitionString("definitionString")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;

var definition;

var definitionConfig = new DefinitionConfig {
    Definition = definition,
    DefinitionS3Location = new S3LocationProperty {
        Bucket = "bucket",
        Key = "key",

        // the properties below are optional
        Version = "version"
    },
    DefinitionString = "definitionString"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var definition interface{}

definitionConfig := &DefinitionConfig{
	Definition: definition,
	DefinitionS3Location: &S3LocationProperty{
		Bucket: jsii.String("bucket"),
		Key: jsii.String("key"),

		// the properties below are optional
		Version: jsii.String("version"),
	},
	DefinitionString: jsii.String("definitionString"),
}
```

## Properties

- `definition`: any

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

- `definitionString`: string
