googleworkspace 0.7.0 published on Wednesday, Jan 15, 2025 by hashicorp
googleworkspace.getGroupSettings
Explore with Pulumi AI
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:
- Allow
External boolMembers - Allow
Web boolPosting - Archive
Only bool - string
- Custom
Reply stringTo - Custom
Roles boolEnabled For Settings To Be Merged - Default
Message stringDeny Notification Text - Description string
- Email string
- Enable
Collaborative boolInbox - Id string
- bool
- Include
In boolGlobal Address List - Is
Archived bool - Members
Can boolPost As The Group - Message
Moderation stringLevel - Name string
- Primary
Language string - Reply
To string - Send
Message boolDeny Notification - Spam
Moderation stringLevel - Who
Can stringAssist Content - Who
Can stringContact Owner - Who
Can stringDiscover Group - Who
Can stringJoin - Who
Can stringLeave Group - Who
Can stringModerate Content - Who
Can stringModerate Members - Who
Can stringPost Message - Who
Can stringView Group - Who
Can stringView Membership
- Allow
External boolMembers - Allow
Web boolPosting - Archive
Only bool - string
- Custom
Reply stringTo - Custom
Roles boolEnabled For Settings To Be Merged - Default
Message stringDeny Notification Text - Description string
- Email string
- Enable
Collaborative boolInbox - Id string
- bool
- Include
In boolGlobal Address List - Is
Archived bool - Members
Can boolPost As The Group - Message
Moderation stringLevel - Name string
- Primary
Language string - Reply
To string - Send
Message boolDeny Notification - Spam
Moderation stringLevel - Who
Can stringAssist Content - Who
Can stringContact Owner - Who
Can stringDiscover Group - Who
Can stringJoin - Who
Can stringLeave Group - Who
Can stringModerate Content - Who
Can stringModerate Members - Who
Can stringPost Message - Who
Can stringView Group - Who
Can stringView Membership
- allow
External BooleanMembers - allow
Web BooleanPosting - archive
Only Boolean - String
- custom
Reply StringTo - custom
Roles BooleanEnabled For Settings To Be Merged - default
Message StringDeny Notification Text - description String
- email String
- enable
Collaborative BooleanInbox - id String
- Boolean
- include
In BooleanGlobal Address List - is
Archived Boolean - members
Can BooleanPost As The Group - message
Moderation StringLevel - name String
- primary
Language String - reply
To String - send
Message BooleanDeny Notification - spam
Moderation StringLevel - who
Can StringAssist Content - who
Can StringContact Owner - who
Can StringDiscover Group - who
Can StringJoin - who
Can StringLeave Group - who
Can StringModerate Content - who
Can StringModerate Members - who
Can StringPost Message - who
Can StringView Group - who
Can StringView Membership
- allow
External booleanMembers - allow
Web booleanPosting - archive
Only boolean - string
- custom
Reply stringTo - custom
Roles booleanEnabled For Settings To Be Merged - default
Message stringDeny Notification Text - description string
- email string
- enable
Collaborative booleanInbox - id string
- boolean
- include
In booleanGlobal Address List - is
Archived boolean - members
Can booleanPost As The Group - message
Moderation stringLevel - name string
- primary
Language string - reply
To string - send
Message booleanDeny Notification - spam
Moderation stringLevel - who
Can stringAssist Content - who
Can stringContact Owner - who
Can stringDiscover Group - who
Can stringJoin - who
Can stringLeave Group - who
Can stringModerate Content - who
Can stringModerate Members - who
Can stringPost Message - who
Can stringView Group - who
Can stringView Membership
- allow_
external_ boolmembers - allow_
web_ boolposting - archive_
only bool - str
- custom_
reply_ strto - custom_
roles_ boolenabled_ for_ settings_ to_ be_ merged - default_
message_ strdeny_ notification_ text - description str
- email str
- enable_
collaborative_ boolinbox - id str
- bool
- include_
in_ boolglobal_ address_ list - is_
archived bool - members_
can_ boolpost_ as_ the_ group - message_
moderation_ strlevel - name str
- primary_
language str - reply_
to str - send_
message_ booldeny_ notification - spam_
moderation_ strlevel - who_
can_ strassist_ content - who_
can_ strcontact_ owner - who_
can_ strdiscover_ group - who_
can_ strjoin - who_
can_ strleave_ group - who_
can_ strmoderate_ content - who_
can_ strmoderate_ members - who_
can_ strpost_ message - who_
can_ strview_ group - who_
can_ strview_ membership
- allow
External BooleanMembers - allow
Web BooleanPosting - archive
Only Boolean - String
- custom
Reply StringTo - custom
Roles BooleanEnabled For Settings To Be Merged - default
Message StringDeny Notification Text - description String
- email String
- enable
Collaborative BooleanInbox - id String
- Boolean
- include
In BooleanGlobal Address List - is
Archived Boolean - members
Can BooleanPost As The Group - message
Moderation StringLevel - name String
- primary
Language String - reply
To String - send
Message BooleanDeny Notification - spam
Moderation StringLevel - who
Can StringAssist Content - who
Can StringContact Owner - who
Can StringDiscover Group - who
Can StringJoin - who
Can StringLeave Group - who
Can StringModerate Content - who
Can StringModerate Members - who
Can StringPost Message - who
Can StringView Group - who
Can StringView Membership
Package Details
- Repository
- googleworkspace hashicorp/terraform-provider-googleworkspace
- License
- Notes
- This Pulumi package is based on the
googleworkspace
Terraform Provider.
googleworkspace 0.7.0 published on Wednesday, Jan 15, 2025 by hashicorp