getIamTimeoutPolicies

Use akamai.getIamTimeoutPolicies to list all the possible session timeout policies that Akamai supports. Use the values from this data source to set the session timeout for a user. The name for each timeout period is in minutes, and the time value is in seconds.

Attributes reference

These attributes are returned:

  • policies — A map of session timeout policy names to their value in seconds.

API Reference

Example Usage

Basic usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var timeoutPolicies = Output.Create(Akamai.GetIamTimeoutPolicies.InvokeAsync());
        this.SupportedTimeoutPolicies = timeoutPolicies;
    }

    [Output("supportedTimeoutPolicies")]
    public Output<string> SupportedTimeoutPolicies { 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 {
		timeoutPolicies, err := akamai.GetIamTimeoutPolicies(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("supportedTimeoutPolicies", timeoutPolicies)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

timeout_policies = akamai.get_iam_timeout_policies()
pulumi.export("supportedTimeoutPolicies", timeout_policies)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const timeoutPolicies = akamai.getIamTimeoutPolicies({});
export const supportedTimeoutPolicies = timeoutPolicies;
variables:
  timeoutPolicies:
    Fn::Invoke:
      Function: akamai:getIamTimeoutPolicies
      Arguments: {}
outputs:
  supportedTimeoutPolicies: ${timeoutPolicies}

Using getIamTimeoutPolicies

function getIamTimeoutPolicies(opts?: InvokeOptions): Promise<GetIamTimeoutPoliciesResult>
def get_iam_timeout_policies(opts: Optional[InvokeOptions] = None) -> GetIamTimeoutPoliciesResult
func GetIamTimeoutPolicies(ctx *Context, opts ...InvokeOption) (*GetIamTimeoutPoliciesResult, error)

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

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

getIamTimeoutPolicies Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Policies Dictionary<string, int>
Id string

The provider-assigned unique ID for this managed resource.

Policies map[string]int
id String

The provider-assigned unique ID for this managed resource.

policies Map<String,Integer>
id string

The provider-assigned unique ID for this managed resource.

policies {[key: string]: number}
id str

The provider-assigned unique ID for this managed resource.

policies Mapping[str, int]
id String

The provider-assigned unique ID for this managed resource.

policies Map<Number>

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.