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:

Region string

The region you’d like the zone for. By default, fetches the current region.

Region string

The region you’d like the zone for. By default, fetches the current region.

region string

The region you’d like the zone for. By default, fetches the current region.

region str

The region you’d like the zone for. By default, fetches the current region.

GetHostedZone Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Region string

The region of the hosted zone.

Id string

The provider-assigned unique ID for this managed resource.

Region string

The region of the hosted zone.

id string

The provider-assigned unique ID for this managed resource.

region string

The region of the hosted zone.

id str

The provider-assigned unique ID for this managed resource.

region str

The region of the hosted zone.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.