Fix formatting

This commit is contained in:
Steve Hoeksema 2016-09-08 10:58:13 +12:00
parent 74587baa4a
commit 55ac68e0a2
1 changed files with 14 additions and 14 deletions

View File

@ -1,31 +1,31 @@
package aws package aws
import ( import (
"fmt" "fmt"
"github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/schema"
) )
// See http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-getting-started.html#step-2 // See http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-getting-started.html#step-2
var billingAccountId = "386209384616" var billingAccountId = "386209384616"
func dataSourceAwsBillingServiceAccount() *schema.Resource { func dataSourceAwsBillingServiceAccount() *schema.Resource {
return &schema.Resource{ return &schema.Resource{
Read: dataSourceAwsBillingServiceAccountRead, Read: dataSourceAwsBillingServiceAccountRead,
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"arn": &schema.Schema{ "arn": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Computed: true, Computed: true,
}, },
}, },
} }
} }
func dataSourceAwsBillingServiceAccountRead(d *schema.ResourceData, meta interface{}) error { func dataSourceAwsBillingServiceAccountRead(d *schema.ResourceData, meta interface{}) error {
d.SetId(billingAccountId) d.SetId(billingAccountId)
d.Set("arn", "arn:aws:iam::"+billingAccountId+":root") d.Set("arn", "arn:aws:iam::"+billingAccountId+":root")
return nil return nil
} }