Akamai

Pulumi Official
Package maintained by Pulumi
v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

getIamContactTypes

Use akamai.getIamContactTypes to retrieve all the possible contact_types that Akamai supports. Use the values from this data source to add or update a user’s contact type.

Attributes reference

These attributes are returned:

  • contact_types — A list of contact types.

API Reference

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var contactTypes = Output.Create(Akamai.GetIamContactTypes.InvokeAsync());
        this.SupportedContactTypes = contactTypes;
    }

    [Output("supportedContactTypes")]
    public Output<string> SupportedContactTypes { 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 {
		contactTypes, err := akamai.GetIamContactTypes(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("supportedContactTypes", contactTypes)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

contact_types = akamai.get_iam_contact_types()
pulumi.export("supportedContactTypes", contact_types)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const contactTypes = akamai.getIamContactTypes({});
export const supportedContactTypes = contactTypes;
variables:
  contactTypes:
    Fn::Invoke:
      Function: akamai:getIamContactTypes
      Arguments: {}
outputs:
  supportedContactTypes: ${contactTypes}

Using getIamContactTypes

function getIamContactTypes(opts?: InvokeOptions): Promise<GetIamContactTypesResult>
def get_iam_contact_types(opts: Optional[InvokeOptions] = None) -> GetIamContactTypesResult
func GetIamContactTypes(ctx *Context, opts ...InvokeOption) (*GetIamContactTypesResult, error)

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

public static class GetIamContactTypes 
{
    public static Task<GetIamContactTypesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamContactTypesResult> getIamContactTypes(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getIamContactTypes:getIamContactTypes
  Arguments:
    # Arguments dictionary

getIamContactTypes Result

The following output properties are available:

ContactTypes List<string>
Id string

The provider-assigned unique ID for this managed resource.

ContactTypes []string
Id string

The provider-assigned unique ID for this managed resource.

contactTypes List<String>
id String

The provider-assigned unique ID for this managed resource.

contactTypes string[]
id string

The provider-assigned unique ID for this managed resource.

contact_types Sequence[str]
id str

The provider-assigned unique ID for this managed resource.

contactTypes 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.