Akamai

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

getIamGrantableRoles

List which grantable roles you can include in a new custom role or add to an existing custom role.

Basic usage

This example returns the available roles to grant to users:

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

const example = akamai.getIamGrantableRoles({});
export const akaGrantableRolesCount = data.akamai_iam_grantable_roles.test.grantable_roles.length;
export const akaGrantableRoles = data.akamai_iam_grantable_roles.test;
import pulumi
import pulumi_akamai as akamai

example = akamai.get_iam_grantable_roles()
pulumi.export("akaGrantableRolesCount", len(data["akamai_iam_grantable_roles"]["test"]["grantable_roles"]))
pulumi.export("akaGrantableRoles", data["akamai_iam_grantable_roles"]["test"])
using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Akamai.GetIamGrantableRoles.InvokeAsync());
        this.AkaGrantableRolesCount = data.Akamai_iam_grantable_roles.Test.Grantable_roles.Length;
        this.AkaGrantableRoles = data.Akamai_iam_grantable_roles.Test;
    }

    [Output("akaGrantableRolesCount")]
    public Output<string> AkaGrantableRolesCount { get; set; }
    [Output("akaGrantableRoles")]
    public Output<string> AkaGrantableRoles { get; set; }
}

Attributes reference

This resource returns this attribute:

  • grantable_roles - Lists which grantable roles you can include in a new custom role or add to an existing custom role.
    • granted_role_id - Granted role ID.
    • name - Granted role name.
    • description - Granted role description.

Using getIamGrantableRoles

function getIamGrantableRoles(opts?: InvokeOptions): Promise<GetIamGrantableRolesResult>
def get_iam_grantable_roles(opts: Optional[InvokeOptions] = None) -> GetIamGrantableRolesResult
func GetIamGrantableRoles(ctx *Context, opts ...InvokeOption) (*GetIamGrantableRolesResult, error)

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

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

getIamGrantableRoles Result

The following output properties are available:

GrantableRoles List<GetIamGrantableRolesGrantableRole>
Id string

The provider-assigned unique ID for this managed resource.

GrantableRoles []GetIamGrantableRolesGrantableRole
Id string

The provider-assigned unique ID for this managed resource.

grantableRoles List<GetIamGrantableRolesGrantableRole>
id String

The provider-assigned unique ID for this managed resource.

grantableRoles GetIamGrantableRolesGrantableRole[]
id string

The provider-assigned unique ID for this managed resource.

grantable_roles Sequence[GetIamGrantableRolesGrantableRole]
id str

The provider-assigned unique ID for this managed resource.

grantableRoles List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetIamGrantableRolesGrantableRole

description String
grantedRoleId Integer
name String
description string
grantedRoleId number
name string
description String
grantedRoleId Number
name String

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.