Created
July 8, 2018 21:34
-
-
Save MattHodge/b061ce77d39210ac552e8a8c0c43a5b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getDeploymentStepIISSchema() *schema.Schema { | |
schmeaToReturn := &schema.Schema{ | |
Type: schema.TypeList, | |
Optional: true, | |
Elem: &schema.Resource{ | |
Schema: map[string]*schema.Schema{ | |
"web_application_parent_website_name": { | |
Type: schema.TypeString, | |
Description: "Create or update an IIS Web Application as a child of an existing IIS Web Site", | |
Optional: true, | |
ConflictsWith: []string{"website_name", "virtual_directory_parent_website_name", "virtual_directory_virtual_path"}, | |
}, | |
"web_application_virtual_path": { | |
Type: schema.TypeString, | |
Description: "Create or update an IIS Web Site", | |
Optional: true, | |
ConflictsWith: []string{"website_name", "virtual_directory_parent_website_name", "virtual_directory_virtual_path"}, | |
}, | |
"virtual_directory_parent_website_name": { | |
Type: schema.TypeString, | |
Description: "The name of the parent Web Site for this Virtual Directory in IIS. The Web Site should already exist when this step runs.", | |
Optional: true, | |
ConflictsWith: []string{"website_name", "web_application_parent_website_name", "web_application_virtual_path"}, | |
}, | |
"virtual_directory_virtual_path": { | |
Type: schema.TypeString, | |
Description: "The virtual path in IIS relative to the parent Web Site. E.g. /application1/directory2/mydirectory. Note: All parent directories/applications must already exist.", | |
Optional: true, | |
ConflictsWith: []string{"website_name", "web_application_parent_website_name", "web_application_virtual_path"}, | |
}, | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment