github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/aws/resource_aws_opsworks_ganglia_layer.go (about) 1 package aws 2 3 import ( 4 "github.com/hashicorp/terraform/helper/schema" 5 ) 6 7 func resourceAwsOpsworksGangliaLayer() *schema.Resource { 8 layerType := &opsworksLayerType{ 9 TypeName: "monitoring-master", 10 DefaultLayerName: "Ganglia", 11 12 Attributes: map[string]*opsworksLayerTypeAttribute{ 13 "url": { 14 AttrName: "GangliaUrl", 15 Type: schema.TypeString, 16 Default: "/ganglia", 17 }, 18 "username": { 19 AttrName: "GangliaUser", 20 Type: schema.TypeString, 21 Default: "opsworks", 22 }, 23 "password": { 24 AttrName: "GangliaPassword", 25 Type: schema.TypeString, 26 Required: true, 27 WriteOnly: true, 28 }, 29 }, 30 } 31 32 return layerType.SchemaResource() 33 }