getHostedZone

Use this data source to get the ID of an elastic beanstalk hosted zone.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticbeanstalk.ElasticbeanstalkFunctions;
import com.pulumi.aws.elasticbeanstalk.inputs.GetHostedZoneArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = ElasticbeanstalkFunctions.getHostedZone();
}
}

Return

A collection of values returned by getHostedZone.

Parameters

argument

A collection of arguments for invoking getHostedZone.


suspend fun getHostedZone(region: String? = null): GetHostedZoneResult

Return

A collection of values returned by getHostedZone.

Parameters

region

Region you'd like the zone for. By default, fetches the current region.

See also


Return

A collection of values returned by getHostedZone.

Parameters

argument

Builder for com.pulumi.aws.elasticbeanstalk.kotlin.inputs.GetHostedZonePlainArgs.

See also