# SessionCommandProperty

The SessionCommand that runs the job.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const sessionCommandProperty: glue.CfnSession.SessionCommandProperty = {
  name: 'name',
  pythonVersion: 'pythonVersion',
};
```

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_glue as glue

session_command_property = glue.CfnSession.SessionCommandProperty(
    name="name",
    python_version="pythonVersion"
)
```

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.glue.*;

SessionCommandProperty sessionCommandProperty = SessionCommandProperty.builder()
        .name("name")
        .pythonVersion("pythonVersion")
        .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.Glue;

var sessionCommandProperty = new SessionCommandProperty {
    Name = "name",
    PythonVersion = "pythonVersion"
};
```

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"

sessionCommandProperty := &SessionCommandProperty{
	Name: jsii.String("name"),
	PythonVersion: jsii.String("pythonVersion"),
}
```

## Properties

- `name`: string — Specifies the name of the SessionCommand.

  Can be 'glueetl' or 'gluestreaming'.

- `pythonVersion`: string — Specifies the Python version.

  The Python version indicates the version supported for jobs of type Spark.
