Skip to content

Commit

Permalink
r/aws_glue_job: Alphabetize attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jul 25, 2023
1 parent 11878aa commit d4d459e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions internal/service/glue/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ func ResourceJob() *schema.Resource {
Optional: true,
Default: "glueetl",
},
"script_location": {
Type: schema.TypeString,
Required: true,
},
"python_version": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -70,6 +66,10 @@ func ResourceJob() *schema.Resource {
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"Ray2.4"}, true),
},
"script_location": {
Type: schema.TypeString,
Required: true,
},
},
},
},
Expand All @@ -87,11 +87,6 @@ func ResourceJob() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"glue_version": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"execution_class": {
Type: schema.TypeString,
Optional: true,
Expand All @@ -113,6 +108,11 @@ func ResourceJob() *schema.Resource {
},
},
},
"glue_version": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"max_capacity": {
Type: schema.TypeFloat,
Optional: true,
Expand Down Expand Up @@ -253,7 +253,6 @@ func resourceJobCreate(ctx context.Context, d *schema.ResourceData, meta interfa
input.WorkerType = aws.String(v.(string))
}

log.Printf("[DEBUG] Creating Glue Job: %s", input)
output, err := conn.CreateJobWithContext(ctx, input)

if err != nil {
Expand Down Expand Up @@ -391,7 +390,6 @@ func resourceJobUpdate(ctx context.Context, d *schema.ResourceData, meta interfa
JobUpdate: jobUpdate,
}

log.Printf("[DEBUG] Updating Glue Job: %s", input)
_, err := conn.UpdateJobWithContext(ctx, input)

if err != nil {
Expand Down

0 comments on commit d4d459e

Please sign in to comment.