GetHostedZone
Use this data source to get the ID of an elastic beanstalk hosted zone.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Aws.ElasticBeanstalk.GetHostedZone.InvokeAsync());
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticbeanstalk.GetHostedZone(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
current = aws.elasticbeanstalk.get_hosted_zone()import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = pulumi.output(aws.elasticbeanstalk.getHostedZone({ async: true }));Using GetHostedZone
function getHostedZone(args: GetHostedZoneArgs, opts?: InvokeOptions): Promise<GetHostedZoneResult>function get_hosted_zone(region=None, opts=None)func GetHostedZone(ctx *Context, args *GetHostedZoneArgs, opts ...InvokeOption) (*GetHostedZoneResult, error)public static class GetHostedZone {
public static Task<GetHostedZoneResult> InvokeAsync(GetHostedZoneArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetHostedZone Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.