JobAttributes Struct
A subset of Job attributes are required for importing an existing job into a CDK project.
This is only used when using fromJobAttributes to identify and reference the existing job.
| Source | aws-glue/lib/jobs/job.ts |
|---|---|
| Type last changed |
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';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const role: iam.Role;
const jobAttributes: glue.JobAttributes = {
jobName: 'jobName',
// the properties below are optional
role: role,
};
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
from aws_cdk import aws_iam as iam
# role: iam.Role
job_attributes = glue.JobAttributes(
job_name="jobName",
# the properties below are optional
role=role
)
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.*;
import software.amazon.awscdk.services.iam.*;
Role role;
JobAttributes jobAttributes = JobAttributes.builder()
.jobName("jobName")
// the properties below are optional
.role(role)
.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;
using Amazon.CDK.AWS.IAM;
Role role;
var jobAttributes = new JobAttributes {
JobName = "jobName",
// the properties below are optional
Role = role
};
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"
import "github.com/aws/aws-cdk-go/awscdk"
var role Role
jobAttributes := &JobAttributes{
JobName: jsii.String("jobName"),
// the properties below are optional
Role: role,
}