Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as googleworkspace from "@pulumi/googleworkspace";
const group-admin = googleworkspace.getRole({
name: "_GROUPS_ADMIN_ROLE",
});
export const isSystemRole = group_admin.then(group_admin => group_admin.isSystemRole);
import pulumi
import pulumi_googleworkspace as googleworkspace
group_admin = googleworkspace.get_role(name="_GROUPS_ADMIN_ROLE")
pulumi.export("isSystemRole", group_admin.is_system_role)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/googleworkspace/googleworkspace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
group_admin, err := googleworkspace.LookupRole(ctx, &googleworkspace.LookupRoleArgs{
Name: "_GROUPS_ADMIN_ROLE",
}, nil)
if err != nil {
return err
}
ctx.Export("isSystemRole", group_admin.IsSystemRole)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Googleworkspace = Pulumi.Googleworkspace;
return await Deployment.RunAsync(() =>
{
var group_admin = Googleworkspace.GetRole.Invoke(new()
{
Name = "_GROUPS_ADMIN_ROLE",
});
return new Dictionary<string, object?>
{
["isSystemRole"] = group_admin.Apply(group_admin => group_admin.Apply(getRoleResult => getRoleResult.IsSystemRole)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.googleworkspace.GoogleworkspaceFunctions;
import com.pulumi.googleworkspace.inputs.GetRoleArgs;
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 group-admin = GoogleworkspaceFunctions.getRole(GetRoleArgs.builder()
.name("_GROUPS_ADMIN_ROLE")
.build());
ctx.export("isSystemRole", group_admin.isSystemRole());
}
}
variables:
group-admin:
fn::invoke:
function: googleworkspace:getRole
arguments:
name: _GROUPS_ADMIN_ROLE
outputs:
isSystemRole: ${["group-admin"].isSystemRole}
Using getRole
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 getRole(args: GetRoleArgs, opts?: InvokeOptions): Promise<GetRoleResult>
function getRoleOutput(args: GetRoleOutputArgs, opts?: InvokeOptions): Output<GetRoleResult>def get_role(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRoleResult
def get_role_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoleResult]func LookupRole(ctx *Context, args *LookupRoleArgs, opts ...InvokeOption) (*LookupRoleResult, error)
func LookupRoleOutput(ctx *Context, args *LookupRoleOutputArgs, opts ...InvokeOption) LookupRoleResultOutput> Note: This function is named LookupRole in the Go SDK.
public static class GetRole
{
public static Task<GetRoleResult> InvokeAsync(GetRoleArgs args, InvokeOptions? opts = null)
public static Output<GetRoleResult> Invoke(GetRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
public static Output<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
fn::invoke:
function: googleworkspace:index/getRole:getRole
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name of the role.
- Name string
- Name of the role.
- name String
- Name of the role.
- name string
- Name of the role.
- name str
- Name of the role.
- name String
- Name of the role.
getRole Result
The following output properties are available:
- Description string
- A short description of the role.
- Etag string
- ETag of the resource.
- Id string
- ID of the role.
- Is
Super boolAdmin Role - Returns true if the role is a super admin role.
- Is
System boolRole - Returns true if this is a pre-defined system role.
- Name string
- Name of the role.
- Privileges
List<Get
Role Privilege> - The set of privileges that are granted to this role.
- Description string
- A short description of the role.
- Etag string
- ETag of the resource.
- Id string
- ID of the role.
- Is
Super boolAdmin Role - Returns true if the role is a super admin role.
- Is
System boolRole - Returns true if this is a pre-defined system role.
- Name string
- Name of the role.
- Privileges
[]Get
Role Privilege - The set of privileges that are granted to this role.
- description String
- A short description of the role.
- etag String
- ETag of the resource.
- id String
- ID of the role.
- is
Super BooleanAdmin Role - Returns true if the role is a super admin role.
- is
System BooleanRole - Returns true if this is a pre-defined system role.
- name String
- Name of the role.
- privileges
List<Get
Role Privilege> - The set of privileges that are granted to this role.
- description string
- A short description of the role.
- etag string
- ETag of the resource.
- id string
- ID of the role.
- is
Super booleanAdmin Role - Returns true if the role is a super admin role.
- is
System booleanRole - Returns true if this is a pre-defined system role.
- name string
- Name of the role.
- privileges
Get
Role Privilege[] - The set of privileges that are granted to this role.
- description str
- A short description of the role.
- etag str
- ETag of the resource.
- id str
- ID of the role.
- is_
super_ booladmin_ role - Returns true if the role is a super admin role.
- is_
system_ boolrole - Returns true if this is a pre-defined system role.
- name str
- Name of the role.
- privileges
Sequence[Get
Role Privilege] - The set of privileges that are granted to this role.
- description String
- A short description of the role.
- etag String
- ETag of the resource.
- id String
- ID of the role.
- is
Super BooleanAdmin Role - Returns true if the role is a super admin role.
- is
System BooleanRole - Returns true if this is a pre-defined system role.
- name String
- Name of the role.
- privileges List<Property Map>
- The set of privileges that are granted to this role.
Supporting Types
GetRolePrivilege
- Privilege
Name string - Service
Id string
- Privilege
Name string - Service
Id string
- privilege
Name String - service
Id String
- privilege
Name string - service
Id string
- privilege_
name str - service_
id str
- privilege
Name String - service
Id String
Package Details
- Repository
- googleworkspace hashicorp/terraform-provider-googleworkspace
- License
- Notes
- This Pulumi package is based on the
googleworkspaceTerraform Provider.
Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
