get Hosted Zone
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();
}
}
Content copied to clipboard
Return
A collection of values returned by getHostedZone.
Parameters
argument
A collection of arguments for invoking getHostedZone.
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
suspend fun getHostedZone(argument: suspend GetHostedZonePlainArgsBuilder.() -> Unit): GetHostedZoneResult
Return
A collection of values returned by getHostedZone.
Parameters
argument
Builder for com.pulumi.aws.elasticbeanstalk.kotlin.inputs.GetHostedZonePlainArgs.