1. Packages
  2. Palo Alto Networks Cloud NGFW for AWS Provider
  3. API Docs
  4. getCountry
Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi

cloudngfwaws.getCountry

Explore with Pulumi AI

Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi

Data source get a list of countries and their country codes.

Admin Permission Type

  • Rulestack

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";

const example = cloudngfwaws.getCountry({});
Copy
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws

example = cloudngfwaws.get_country()
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudngfwaws/sdk/go/cloudngfwaws"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudngfwaws.GetCountry(ctx, &cloudngfwaws.GetCountryArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;

return await Deployment.RunAsync(() => 
{
    var example = CloudNgfwAws.GetCountry.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.CloudngfwawsFunctions;
import com.pulumi.cloudngfwaws.inputs.GetCountryArgs;
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 example = CloudngfwawsFunctions.getCountry();

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: cloudngfwaws:getCountry
      arguments: {}
Copy

Using getCountry

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 getCountry(args: GetCountryArgs, opts?: InvokeOptions): Promise<GetCountryResult>
function getCountryOutput(args: GetCountryOutputArgs, opts?: InvokeOptions): Output<GetCountryResult>
Copy
def get_country(max_results: Optional[int] = None,
                token: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetCountryResult
def get_country_output(max_results: Optional[pulumi.Input[int]] = None,
                token: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetCountryResult]
Copy
func GetCountry(ctx *Context, args *GetCountryArgs, opts ...InvokeOption) (*GetCountryResult, error)
func GetCountryOutput(ctx *Context, args *GetCountryOutputArgs, opts ...InvokeOption) GetCountryResultOutput
Copy

> Note: This function is named GetCountry in the Go SDK.

public static class GetCountry 
{
    public static Task<GetCountryResult> InvokeAsync(GetCountryArgs args, InvokeOptions? opts = null)
    public static Output<GetCountryResult> Invoke(GetCountryInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCountryResult> getCountry(GetCountryArgs args, InvokeOptions options)
public static Output<GetCountryResult> getCountry(GetCountryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudngfwaws:index/getCountry:getCountry
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MaxResults int
Max number of results. Defaults to 100.
Token string
Pagination token.
MaxResults int
Max number of results. Defaults to 100.
Token string
Pagination token.
maxResults Integer
Max number of results. Defaults to 100.
token String
Pagination token.
maxResults number
Max number of results. Defaults to 100.
token string
Pagination token.
max_results int
Max number of results. Defaults to 100.
token str
Pagination token.
maxResults Number
Max number of results. Defaults to 100.
token String
Pagination token.

getCountry Result

The following output properties are available:

Codes Dictionary<string, string>
The country code (as the key) and description (as the value).
Id string
The provider-assigned unique ID for this managed resource.
NextToken string
Token for the next page of results.
MaxResults int
Max number of results. Defaults to 100.
Token string
Pagination token.
Codes map[string]string
The country code (as the key) and description (as the value).
Id string
The provider-assigned unique ID for this managed resource.
NextToken string
Token for the next page of results.
MaxResults int
Max number of results. Defaults to 100.
Token string
Pagination token.
codes Map<String,String>
The country code (as the key) and description (as the value).
id String
The provider-assigned unique ID for this managed resource.
nextToken String
Token for the next page of results.
maxResults Integer
Max number of results. Defaults to 100.
token String
Pagination token.
codes {[key: string]: string}
The country code (as the key) and description (as the value).
id string
The provider-assigned unique ID for this managed resource.
nextToken string
Token for the next page of results.
maxResults number
Max number of results. Defaults to 100.
token string
Pagination token.
codes Mapping[str, str]
The country code (as the key) and description (as the value).
id str
The provider-assigned unique ID for this managed resource.
next_token str
Token for the next page of results.
max_results int
Max number of results. Defaults to 100.
token str
Pagination token.
codes Map<String>
The country code (as the key) and description (as the value).
id String
The provider-assigned unique ID for this managed resource.
nextToken String
Token for the next page of results.
maxResults Number
Max number of results. Defaults to 100.
token String
Pagination token.

Package Details

Repository
cloudngfwaws pulumi/pulumi-cloudngfwaws
License
Apache-2.0
Notes
This Pulumi package is based on the cloudngfwaws Terraform Provider.
Palo Alto Networks Cloud NGFW for AWS v0.1.1 published on Saturday, Mar 15, 2025 by Pulumi