Skip to content

Commit 8711b4e

Browse files
committed
replace "instance_type" with names.AttrInstanceType
1 parent 8e8d17b commit 8711b4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/service/codebuild/fleet.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func resourceFleet() *schema.Resource {
5858
Optional: true,
5959
Computed: true,
6060
},
61-
"instance_type": {
61+
names.AttrInstanceType: {
6262
Type: schema.TypeString,
6363
Optional: true,
6464
Computed: true,
@@ -591,7 +591,7 @@ func expandComputeConfiguration(tfMap map[string]any) *types.ComputeConfiguratio
591591
apiObject.MachineType = types.MachineType(v)
592592
}
593593

594-
if v, ok := tfMap["instance_type"].(string); ok && v != "" {
594+
if v, ok := tfMap[names.AttrInstanceType].(string); ok && v != "" {
595595
apiObject.InstanceType = aws.String(v)
596596
}
597597

@@ -685,7 +685,7 @@ func flattenComputeConfiguration(apiObject *types.ComputeConfiguration) map[stri
685685
}
686686

687687
if v := apiObject.InstanceType; v != nil {
688-
tfMap["instance_type"] = aws.ToString(v)
688+
tfMap[names.AttrInstanceType] = aws.ToString(v)
689689
}
690690

691691
if v := apiObject.Memory; v != nil {

internal/service/codebuild/fleet_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func dataSourceFleet() *schema.Resource {
4040
Type: schema.TypeInt,
4141
Computed: true,
4242
},
43-
"instance_type": {
43+
names.AttrInstanceType: {
4444
Type: schema.TypeString,
4545
Computed: true,
4646
},

0 commit comments

Comments
 (0)