github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/aws/resource_aws_opsworks_java_app_layer.go (about)

     1  package aws
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  )
     6  
     7  func resourceAwsOpsworksJavaAppLayer() *schema.Resource {
     8  	layerType := &opsworksLayerType{
     9  		TypeName:         "java-app",
    10  		DefaultLayerName: "Java App Server",
    11  
    12  		Attributes: map[string]*opsworksLayerTypeAttribute{
    13  			"jvm_type": {
    14  				AttrName: "Jvm",
    15  				Type:     schema.TypeString,
    16  				Default:  "openjdk",
    17  			},
    18  			"jvm_version": {
    19  				AttrName: "JvmVersion",
    20  				Type:     schema.TypeString,
    21  				Default:  "7",
    22  			},
    23  			"jvm_options": {
    24  				AttrName: "JvmOptions",
    25  				Type:     schema.TypeString,
    26  				Default:  "",
    27  			},
    28  			"app_server": {
    29  				AttrName: "JavaAppServer",
    30  				Type:     schema.TypeString,
    31  				Default:  "tomcat",
    32  			},
    33  			"app_server_version": {
    34  				AttrName: "JavaAppServerVersion",
    35  				Type:     schema.TypeString,
    36  				Default:  "7",
    37  			},
    38  		},
    39  	}
    40  
    41  	return layerType.SchemaResource()
    42  }