# CfnStateMachineProps

Properties for defining a `CfnStateMachine`.

Extends: CfnStateMachineProps
Used as props by: CfnStateMachine

- Source: Generated code

## Example

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

declare const definition: any;
const cfnStateMachineProps: sam.CfnStateMachineProps = {
  definition: definition,
  definitionSubstitutions: {
    definitionSubstitutionsKey: 'definitionSubstitutions',
  },
  definitionUri: 'definitionUri',
  events: {
    eventsKey: {
      properties: {
        method: 'method',
        path: 'path',

        // the properties below are optional
        restApiId: 'restApiId',
      },
      type: 'type',
    },
  },
  logging: {
    destinations: [{
      cloudWatchLogsLogGroup: {
        logGroupArn: 'logGroupArn',
      },
    }],
    includeExecutionData: false,
    level: 'level',
  },
  name: 'name',
  permissionsBoundaries: 'permissionsBoundaries',
  policies: 'policies',
  role: 'role',
  tags: {
    tagsKey: 'tags',
  },
  tracing: {
    enabled: false,
  },
  type: 'type',
};
```

## Properties

- `definition`: any

- `definitionSubstitutions`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string }

- `definitionUri`: string | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.S3LocationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.S3LocationProperty.html)

- `events`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.EventSourceProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.EventSourceProperty.html) }

- `logging`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.LoggingConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.LoggingConfigurationProperty.html)

- `name`: string

- `permissionsBoundaries`: string

- `policies`: string | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.IAMPolicyDocumentProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.IAMPolicyDocumentProperty.html) | string | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.IAMPolicyDocumentProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.IAMPolicyDocumentProperty.html) | [CfnStateMachine.SAMPolicyTemplateProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.SAMPolicyTemplateProperty.html)[]

- `role`: string

- `tags`: { [key: string]: string }

- `tracing`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.TracingConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.TracingConfigurationProperty.html)

- `type`: string
