Palo Alto Networks Cloud NGFW for AWS v0.0.2 published on Wednesday, Nov 13, 2024 by Pulumi
cloudngfwaws.getCountry
Explore with Pulumi AI
Palo Alto Networks Cloud NGFW for AWS v0.0.2 published on Wednesday, Nov 13, 2024 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({});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
example = cloudngfwaws.get_country()
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;
return await Deployment.RunAsync(() =>
{
var example = CloudNgfwAws.GetCountry.Invoke();
});
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();
}
}
variables:
example:
fn::invoke:
Function: cloudngfwaws:getCountry
Arguments: {}
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>
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]
func GetCountry(ctx *Context, args *GetCountryArgs, opts ...InvokeOption) (*GetCountryResult, error)
func GetCountryOutput(ctx *Context, args *GetCountryOutputArgs, opts ...InvokeOption) GetCountryResultOutput
> 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)
}
public static CompletableFuture<GetCountryResult> getCountry(GetCountryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: cloudngfwaws:index/getCountry:getCountry
arguments:
# arguments dictionary
The following arguments are supported:
- Max
Results int - Max number of results. Defaults to
100
. - Token string
- Pagination token.
- Max
Results int - Max number of results. Defaults to
100
. - Token string
- Pagination token.
- max
Results Integer - Max number of results. Defaults to
100
. - token String
- Pagination token.
- max
Results 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.
- max
Results 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.
- Next
Token string - Token for the next page of results.
- Max
Results 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.
- Next
Token string - Token for the next page of results.
- Max
Results 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.
- next
Token String - Token for the next page of results.
- max
Results 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.
- next
Token string - Token for the next page of results.
- max
Results 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.
- next
Token String - Token for the next page of results.
- max
Results 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.0.2 published on Wednesday, Nov 13, 2024 by Pulumi