Akamai

v3.1.1 published on Tuesday, Nov 1, 2022 by Pulumi

getIamCountries

Use akamai.getIamCountries to retrieve all the possible countries that Akamai supports. Use the values from this data source to add or update a user’s country information.

Attributes reference

These attributes are returned:

  • countries — A list of countries.

API Reference

Example Usage

Basic usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var countries = Output.Create(Akamai.GetIamCountries.InvokeAsync());
        this.SupportedCountries = countries;
    }

    [Output("supportedCountries")]
    public Output<string> SupportedCountries { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		countries, err := akamai.GetIamCountries(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("supportedCountries", countries)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

countries = akamai.get_iam_countries()
pulumi.export("supportedCountries", countries)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const countries = akamai.getIamCountries({});
export const supportedCountries = countries;
variables:
  countries:
    Fn::Invoke:
      Function: akamai:getIamCountries
      Arguments: {}
outputs:
  supportedCountries: ${countries}

Using getIamCountries

function getIamCountries(opts?: InvokeOptions): Promise<GetIamCountriesResult>
def get_iam_countries(opts: Optional[InvokeOptions] = None) -> GetIamCountriesResult
func GetIamCountries(ctx *Context, opts ...InvokeOption) (*GetIamCountriesResult, error)

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

public static class GetIamCountries 
{
    public static Task<GetIamCountriesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamCountriesResult> getIamCountries(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getIamCountries:getIamCountries
  arguments:
    # arguments dictionary

getIamCountries Result

The following output properties are available:

Countries List<string>
Id string

The provider-assigned unique ID for this managed resource.

Countries []string
Id string

The provider-assigned unique ID for this managed resource.

countries List<String>
id String

The provider-assigned unique ID for this managed resource.

countries string[]
id string

The provider-assigned unique ID for this managed resource.

countries Sequence[str]
id str

The provider-assigned unique ID for this managed resource.

countries List<String>
id String

The provider-assigned unique ID for this managed resource.

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.