constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
constellix.getGeoProximity
Explore with Pulumi AI
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix
Data source for Geoproximity for A, AAAA, CNAME or ANAME records.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as constellix from "@pulumi/constellix";
const firstgeoproximity = constellix.getGeoProximity({
name: "practice",
});
import pulumi
import pulumi_constellix as constellix
firstgeoproximity = constellix.get_geo_proximity(name="practice")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := constellix.LookupGeoProximity(ctx, &constellix.LookupGeoProximityArgs{
Name: "practice",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Constellix = Pulumi.Constellix;
return await Deployment.RunAsync(() =>
{
var firstgeoproximity = Constellix.GetGeoProximity.Invoke(new()
{
Name = "practice",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.constellix.ConstellixFunctions;
import com.pulumi.constellix.inputs.GetGeoProximityArgs;
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 firstgeoproximity = ConstellixFunctions.getGeoProximity(GetGeoProximityArgs.builder()
.name("practice")
.build());
}
}
variables:
firstgeoproximity:
fn::invoke:
function: constellix:getGeoProximity
arguments:
name: practice
Attribute Reference
country
- (Optional) Country code. Default is null.region
- (Optional)Region or state or province code. Default is null.latitude
- (Optional) Latitude value.longitude
- (Optional) Longitude value.city
- (Optional)City code. Default is null.
Using getGeoProximity
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGeoProximity(args: GetGeoProximityArgs, opts?: InvokeOptions): Promise<GetGeoProximityResult>
function getGeoProximityOutput(args: GetGeoProximityOutputArgs, opts?: InvokeOptions): Output<GetGeoProximityResult>
def get_geo_proximity(city: Optional[float] = None,
country: Optional[str] = None,
id: Optional[str] = None,
latitude: Optional[float] = None,
longitude: Optional[float] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGeoProximityResult
def get_geo_proximity_output(city: Optional[pulumi.Input[float]] = None,
country: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
latitude: Optional[pulumi.Input[float]] = None,
longitude: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGeoProximityResult]
func LookupGeoProximity(ctx *Context, args *LookupGeoProximityArgs, opts ...InvokeOption) (*LookupGeoProximityResult, error)
func LookupGeoProximityOutput(ctx *Context, args *LookupGeoProximityOutputArgs, opts ...InvokeOption) LookupGeoProximityResultOutput
> Note: This function is named LookupGeoProximity
in the Go SDK.
public static class GetGeoProximity
{
public static Task<GetGeoProximityResult> InvokeAsync(GetGeoProximityArgs args, InvokeOptions? opts = null)
public static Output<GetGeoProximityResult> Invoke(GetGeoProximityInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGeoProximityResult> getGeoProximity(GetGeoProximityArgs args, InvokeOptions options)
public static Output<GetGeoProximityResult> getGeoProximity(GetGeoProximityArgs args, InvokeOptions options)
fn::invoke:
function: constellix:index/getGeoProximity:getGeoProximity
arguments:
# arguments dictionary
The following arguments are supported:
getGeoProximity Result
The following output properties are available:
Package Details
- Repository
- constellix constellix/terraform-provider-constellix
- License
- Notes
- This Pulumi package is based on the
constellix
Terraform Provider.
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix