Skip to content

Commit

Permalink
r/aws_licensemanager_license_configuration: Use '_Values()' for enums (
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jul 21, 2022
1 parent d549705 commit d179587
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions internal/service/licensemanager/license_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,10 @@ func ResourceLicenseConfiguration() *schema.Resource {
Default: false,
},
"license_counting_type": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{
licensemanager.LicenseCountingTypeVCpu,
licensemanager.LicenseCountingTypeInstance,
licensemanager.LicenseCountingTypeCore,
licensemanager.LicenseCountingTypeSocket,
}, false),
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice(licensemanager.LicenseCountingType_Values(), false),
},
"license_rules": {
Type: schema.TypeList,
Expand Down

0 comments on commit d179587

Please sign in to comment.