1. Packages
  2. Googleworkspace Provider
  3. API Docs
  4. getGroupSettings
googleworkspace 0.7.0 published on Wednesday, Jan 15, 2025 by hashicorp

googleworkspace.getGroupSettings

Explore with Pulumi AI

googleworkspace logo
googleworkspace 0.7.0 published on Wednesday, Jan 15, 2025 by hashicorp

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as googleworkspace from "@pulumi/googleworkspace";
    
    const sales-settings = googleworkspace.getGroupSettings({
        email: "sales@example.com",
    });
    export const whoCanJoinSales = sales_settings.then(sales_settings => sales_settings.whoCanJoin);
    
    import pulumi
    import pulumi_googleworkspace as googleworkspace
    
    sales_settings = googleworkspace.get_group_settings(email="sales@example.com")
    pulumi.export("whoCanJoinSales", sales_settings.who_can_join)
    
    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 {
    		sales_settings, err := googleworkspace.LookupGroupSettings(ctx, &googleworkspace.LookupGroupSettingsArgs{
    			Email: "sales@example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("whoCanJoinSales", sales_settings.WhoCanJoin)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Googleworkspace = Pulumi.Googleworkspace;
    
    return await Deployment.RunAsync(() => 
    {
        var sales_settings = Googleworkspace.GetGroupSettings.Invoke(new()
        {
            Email = "sales@example.com",
        });
    
        return new Dictionary<string, object?>
        {
            ["whoCanJoinSales"] = sales_settings.Apply(sales_settings => sales_settings.Apply(getGroupSettingsResult => getGroupSettingsResult.WhoCanJoin)),
        };
    });
    
    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.GetGroupSettingsArgs;
    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 sales-settings = GoogleworkspaceFunctions.getGroupSettings(GetGroupSettingsArgs.builder()
                .email("sales@example.com")
                .build());
    
            ctx.export("whoCanJoinSales", sales_settings.whoCanJoin());
        }
    }
    
    variables:
      sales-settings:
        fn::invoke:
          function: googleworkspace:getGroupSettings
          arguments:
            email: sales@example.com
    outputs:
      whoCanJoinSales: ${["sales-settings"].whoCanJoin}
    

    Using getGroupSettings

    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 getGroupSettings(args: GetGroupSettingsArgs, opts?: InvokeOptions): Promise<GetGroupSettingsResult>
    function getGroupSettingsOutput(args: GetGroupSettingsOutputArgs, opts?: InvokeOptions): Output<GetGroupSettingsResult>
    def get_group_settings(email: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetGroupSettingsResult
    def get_group_settings_output(email: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetGroupSettingsResult]
    func LookupGroupSettings(ctx *Context, args *LookupGroupSettingsArgs, opts ...InvokeOption) (*LookupGroupSettingsResult, error)
    func LookupGroupSettingsOutput(ctx *Context, args *LookupGroupSettingsOutputArgs, opts ...InvokeOption) LookupGroupSettingsResultOutput

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

    public static class GetGroupSettings 
    {
        public static Task<GetGroupSettingsResult> InvokeAsync(GetGroupSettingsArgs args, InvokeOptions? opts = null)
        public static Output<GetGroupSettingsResult> Invoke(GetGroupSettingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGroupSettingsResult> getGroupSettings(GetGroupSettingsArgs args, InvokeOptions options)
    public static Output<GetGroupSettingsResult> getGroupSettings(GetGroupSettingsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: googleworkspace:index/getGroupSettings:getGroupSettings
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Email string
    Email string
    email String
    email string
    email str
    email String

    getGroupSettings Result

    The following output properties are available:

    Package Details

    Repository
    googleworkspace hashicorp/terraform-provider-googleworkspace
    License
    Notes
    This Pulumi package is based on the googleworkspace Terraform Provider.
    googleworkspace logo
    googleworkspace 0.7.0 published on Wednesday, Jan 15, 2025 by hashicorp