Skip to content

Commit

Permalink
azurerm_spring_cloud_custom_domain: thumbprint is required when s…
Browse files Browse the repository at this point in the history
…pecifying `certificate_name` (#11145)
  • Loading branch information
favoretti authored Mar 30, 2021
1 parent 01086ec commit 840fdcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ func resourceSpringCloudCustomDomain() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringIsNotEmpty,
RequiredWith: []string{"thumbprint"},
},

"thumbprint": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validation.StringIsNotEmpty,
RequiredWith: []string{"certificate_name"},
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/spring_cloud_custom_domain.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ The following arguments are supported:

* `spring_cloud_app_id` - (Required) Specifies the resource ID of the Spring Cloud Application. Changing this forces a new resource to be created.

* `certificate_name` - (Optional) Specifies the name of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain.
* `certificate_name` - (Optional) Specifies the name of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `thumbprint` is specified

* `thumbprint` - (Optional) Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Changing this forces a new resource to be created.
* `thumbprint` - (Optional) Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `certificate_name` is specified. Changing this forces a new resource to be created.

## Attributes Reference

Expand Down

0 comments on commit 840fdcf

Please sign in to comment.