Skip to content

Commit

Permalink
Merge pull request #5046 from medal-labs/healthcare_service_CORS_fix
Browse files Browse the repository at this point in the history
Healthcare resource. CORS block is fixed to avoid unnecessary diffs
  • Loading branch information
tombuildsstuff authored Dec 17, 2019
2 parents 2e1da41 + d36d777 commit e4c94be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions azurerm/resource_arm_healthcare_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ func resourceArmHealthcareService() *schema.Resource {
"cors_configuration": {
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"allowed_origins": {
Type: schema.TypeSet,
Required: true,
Optional: true,
MaxItems: 64,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -114,7 +115,7 @@ func resourceArmHealthcareService() *schema.Resource {
},
"allowed_headers": {
Type: schema.TypeSet,
Required: true,
Optional: true,
MaxItems: 64,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -123,7 +124,7 @@ func resourceArmHealthcareService() *schema.Resource {
},
"allowed_methods": {
Type: schema.TypeList,
Required: true,
Optional: true,
MaxItems: 64,
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -142,8 +143,8 @@ func resourceArmHealthcareService() *schema.Resource {
},
"max_age_in_seconds": {
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntBetween(1, 2000000000),
Optional: true,
ValidateFunc: validation.IntBetween(0, 2000000000),
},
"allow_credentials": {
Type: schema.TypeBool,
Expand Down

0 comments on commit e4c94be

Please sign in to comment.