github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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": &opsworksLayerTypeAttribute{
    14  				AttrName: "GangliaUrl",
    15  				Type:     schema.TypeString,
    16  				Default:  "/ganglia",
    17  			},
    18  			"username": &opsworksLayerTypeAttribute{
    19  				AttrName: "GangliaUser",
    20  				Type:     schema.TypeString,
    21  				Default:  "opsworks",
    22  			},
    23  			"password": &opsworksLayerTypeAttribute{
    24  				AttrName:  "GangliaPassword",
    25  				Type:      schema.TypeString,
    26  				Required:  true,
    27  				WriteOnly: true,
    28  			},
    29  		},
    30  	}
    31  
    32  	return layerType.SchemaResource()
    33  }