/
getHostedZone.go
32 lines (27 loc) · 1.14 KB
/
getHostedZone.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package elasticbeanstalk
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to get the ID of an [elastic beanstalk hosted zone](http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticbeanstalk_region).
func GetHostedZone(ctx *pulumi.Context, args *GetHostedZoneArgs, opts ...pulumi.InvokeOption) (*GetHostedZoneResult, error) {
var rv GetHostedZoneResult
err := ctx.Invoke("aws:elasticbeanstalk/getHostedZone:getHostedZone", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getHostedZone.
type GetHostedZoneArgs struct {
// The region you'd like the zone for. By default, fetches the current region.
Region *string `pulumi:"region"`
}
// A collection of values returned by getHostedZone.
type GetHostedZoneResult struct {
// id is the provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The region of the hosted zone.
Region *string `pulumi:"region"`
}