github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/aws/resource_aws_opsworks_mysql_layer.go (about)

     1  package aws
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  )
     6  
     7  func resourceAwsOpsworksMysqlLayer() *schema.Resource {
     8  	layerType := &opsworksLayerType{
     9  		TypeName:         "db-master",
    10  		DefaultLayerName: "MySQL",
    11  
    12  		Attributes: map[string]*opsworksLayerTypeAttribute{
    13  			"root_password": &opsworksLayerTypeAttribute{
    14  				AttrName:  "MysqlRootPassword",
    15  				Type:      schema.TypeString,
    16  				WriteOnly: true,
    17  			},
    18  			"root_password_on_all_instances": &opsworksLayerTypeAttribute{
    19  				AttrName: "MysqlRootPasswordUbiquitous",
    20  				Type:     schema.TypeBool,
    21  				Default:  true,
    22  			},
    23  		},
    24  	}
    25  
    26  	return layerType.SchemaResource()
    27  }