github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/builtin/providers/aws/resource_aws_opsworks_nodejs_app_layer.go (about)

     1  package aws
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  )
     6  
     7  func resourceAwsOpsworksNodejsAppLayer() *schema.Resource {
     8  	layerType := &opsworksLayerType{
     9  		TypeName:         "nodejs-app",
    10  		DefaultLayerName: "Node.js App Server",
    11  
    12  		Attributes: map[string]*opsworksLayerTypeAttribute{
    13  			"nodejs_version": &opsworksLayerTypeAttribute{
    14  				AttrName: "NodejsVersion",
    15  				Type:     schema.TypeString,
    16  				Default:  "0.10.38",
    17  			},
    18  		},
    19  	}
    20  
    21  	return layerType.SchemaResource()
    22  }