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";
export = async () => {
const example = await googleworkspace.getDomainAlias({
domainAliasName: "alias-example.com",
});
return {
"parent-domain": example.parentDomainName,
};
}
import pulumi
import pulumi_googleworkspace as googleworkspace
example = googleworkspace.get_domain_alias(domain_alias_name="alias-example.com")
pulumi.export("parent-domain", example.parent_domain_name)
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 {
example, err := googleworkspace.LookupDomainAlias(ctx, &googleworkspace.LookupDomainAliasArgs{
DomainAliasName: "alias-example.com",
}, nil)
if err != nil {
return err
}
ctx.Export("parent-domain", example.ParentDomainName)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Googleworkspace = Pulumi.Googleworkspace;
return await Deployment.RunAsync(() =>
{
var example = Googleworkspace.GetDomainAlias.Invoke(new()
{
DomainAliasName = "alias-example.com",
});
return new Dictionary<string, object?>
{
["parent-domain"] = example.Apply(getDomainAliasResult => getDomainAliasResult.ParentDomainName),
};
});
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.GetDomainAliasArgs;
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 example = GoogleworkspaceFunctions.getDomainAlias(GetDomainAliasArgs.builder()
.domainAliasName("alias-example.com")
.build());
ctx.export("parent-domain", example.applyValue(getDomainAliasResult -> getDomainAliasResult.parentDomainName()));
}
}
variables:
example:
fn::invoke:
function: googleworkspace:getDomainAlias
arguments:
domainAliasName: alias-example.com
outputs:
parent-domain: ${example.parentDomainName}
Using getDomainAlias
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 getDomainAlias(args: GetDomainAliasArgs, opts?: InvokeOptions): Promise<GetDomainAliasResult>
function getDomainAliasOutput(args: GetDomainAliasOutputArgs, opts?: InvokeOptions): Output<GetDomainAliasResult>def get_domain_alias(domain_alias_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainAliasResult
def get_domain_alias_output(domain_alias_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainAliasResult]func LookupDomainAlias(ctx *Context, args *LookupDomainAliasArgs, opts ...InvokeOption) (*LookupDomainAliasResult, error)
func LookupDomainAliasOutput(ctx *Context, args *LookupDomainAliasOutputArgs, opts ...InvokeOption) LookupDomainAliasResultOutput> Note: This function is named LookupDomainAlias in the Go SDK.
public static class GetDomainAlias
{
public static Task<GetDomainAliasResult> InvokeAsync(GetDomainAliasArgs args, InvokeOptions? opts = null)
public static Output<GetDomainAliasResult> Invoke(GetDomainAliasInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainAliasResult> getDomainAlias(GetDomainAliasArgs args, InvokeOptions options)
public static Output<GetDomainAliasResult> getDomainAlias(GetDomainAliasArgs args, InvokeOptions options)
fn::invoke:
function: googleworkspace:index/getDomainAlias:getDomainAlias
arguments:
# arguments dictionaryThe following arguments are supported:
- Domain
Alias stringName - The domain alias name.
- Domain
Alias stringName - The domain alias name.
- domain
Alias StringName - The domain alias name.
- domain
Alias stringName - The domain alias name.
- domain_
alias_ strname - The domain alias name.
- domain
Alias StringName - The domain alias name.
getDomainAlias Result
The following output properties are available:
- Creation
Time double - Creation time of the domain alias.
- Domain
Alias stringName - The domain alias name.
- Etag string
- ETag of the resource.
- Id string
- The ID of this resource.
- Parent
Domain stringName - The parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
- Verified bool
- Indicates the verification state of a domain alias.
- Creation
Time float64 - Creation time of the domain alias.
- Domain
Alias stringName - The domain alias name.
- Etag string
- ETag of the resource.
- Id string
- The ID of this resource.
- Parent
Domain stringName - The parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
- Verified bool
- Indicates the verification state of a domain alias.
- creation
Time Double - Creation time of the domain alias.
- domain
Alias StringName - The domain alias name.
- etag String
- ETag of the resource.
- id String
- The ID of this resource.
- parent
Domain StringName - The parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
- verified Boolean
- Indicates the verification state of a domain alias.
- creation
Time number - Creation time of the domain alias.
- domain
Alias stringName - The domain alias name.
- etag string
- ETag of the resource.
- id string
- The ID of this resource.
- parent
Domain stringName - The parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
- verified boolean
- Indicates the verification state of a domain alias.
- creation_
time float - Creation time of the domain alias.
- domain_
alias_ strname - The domain alias name.
- etag str
- ETag of the resource.
- id str
- The ID of this resource.
- parent_
domain_ strname - The parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
- verified bool
- Indicates the verification state of a domain alias.
- creation
Time Number - Creation time of the domain alias.
- domain
Alias StringName - The domain alias name.
- etag String
- ETag of the resource.
- id String
- The ID of this resource.
- parent
Domain StringName - The parent domain name that the domain alias is associated with. This can either be a primary or secondary domain name within a customer.
- verified Boolean
- Indicates the verification state of a domain alias.
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
