Skip to content
v2.278.0

SessionCommandProperty Struct ​

The SessionCommand that runs the job.

Example ​

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
# 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
// 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();
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"
};
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 ​

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
Specifies the name of the SessionCommand.

Can be 'glueetl' or 'gluestreaming'.

pythonVersionoptionalstringpython_versionoptionalstrpythonVersionoptionalStringPythonVersionoptionalstringPythonVersionoptional*string #
Specifies the Python version.

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