github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/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": &opsworksLayerTypeAttribute{
    14  				AttrName: "Jvm",
    15  				Type:     schema.TypeString,
    16  				Default:  "openjdk",
    17  			},
    18  			"jvm_version": &opsworksLayerTypeAttribute{
    19  				AttrName: "JvmVersion",
    20  				Type:     schema.TypeString,
    21  				Default:  "7",
    22  			},
    23  			"jvm_options": &opsworksLayerTypeAttribute{
    24  				AttrName: "JvmOptions",
    25  				Type:     schema.TypeString,
    26  				Default:  "",
    27  			},
    28  			"app_server": &opsworksLayerTypeAttribute{
    29  				AttrName: "JavaAppServer",
    30  				Type:     schema.TypeString,
    31  				Default:  "tomcat",
    32  			},
    33  			"app_server_version": &opsworksLayerTypeAttribute{
    34  				AttrName: "JavaAppServerVersion",
    35  				Type:     schema.TypeString,
    36  				Default:  "7",
    37  			},
    38  		},
    39  	}
    40  
    41  	return layerType.SchemaResource()
    42  }