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 example = googleworkspace.getDomain({
domainName: "example.com",
});
export const domainVerified = example.then(example => example.verified);
import pulumi
import pulumi_googleworkspace as googleworkspace
example = googleworkspace.get_domain(domain_name="example.com")
pulumi.export("domainVerified", example.verified)
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.LookupDomain(ctx, &googleworkspace.LookupDomainArgs{
DomainName: "example.com",
}, nil)
if err != nil {
return err
}
ctx.Export("domainVerified", example.Verified)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Googleworkspace = Pulumi.Googleworkspace;
return await Deployment.RunAsync(() =>
{
var example = Googleworkspace.GetDomain.Invoke(new()
{
DomainName = "example.com",
});
return new Dictionary<string, object?>
{
["domainVerified"] = example.Apply(getDomainResult => getDomainResult.Verified),
};
});
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.GetDomainArgs;
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.getDomain(GetDomainArgs.builder()
.domainName("example.com")
.build());
ctx.export("domainVerified", example.applyValue(getDomainResult -> getDomainResult.verified()));
}
}
variables:
example:
fn::invoke:
function: googleworkspace:getDomain
arguments:
domainName: example.com
outputs:
domainVerified: ${example.verified}
Using getDomain
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 getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>
function getDomainOutput(args: GetDomainOutputArgs, opts?: InvokeOptions): Output<GetDomainResult>def get_domain(domain_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainResult
def get_domain_output(domain_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainResult]func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)
func LookupDomainOutput(ctx *Context, args *LookupDomainOutputArgs, opts ...InvokeOption) LookupDomainResultOutput> Note: This function is named LookupDomain in the Go SDK.
public static class GetDomain
{
public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
public static Output<GetDomainResult> Invoke(GetDomainInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
public static Output<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
fn::invoke:
function: googleworkspace:index/getDomain:getDomain
arguments:
# arguments dictionaryThe following arguments are supported:
- Domain
Name string - The domain name of the customer.
- Domain
Name string - The domain name of the customer.
- domain
Name String - The domain name of the customer.
- domain
Name string - The domain name of the customer.
- domain_
name str - The domain name of the customer.
- domain
Name String - The domain name of the customer.
getDomain Result
The following output properties are available:
- Creation
Time double - Creation time of the domain. Expressed in Unix time format.
- Domain
Aliases List<string> - asps.list of domain alias objects.
- Domain
Name string - The domain name of the customer.
- Etag string
- ETag of the resource.
- Id string
- The ID of this resource.
- Is
Primary bool - Indicates if the domain is a primary domain.
- Verified bool
- Indicates the verification state of a domain.
- Creation
Time float64 - Creation time of the domain. Expressed in Unix time format.
- Domain
Aliases []string - asps.list of domain alias objects.
- Domain
Name string - The domain name of the customer.
- Etag string
- ETag of the resource.
- Id string
- The ID of this resource.
- Is
Primary bool - Indicates if the domain is a primary domain.
- Verified bool
- Indicates the verification state of a domain.
- creation
Time Double - Creation time of the domain. Expressed in Unix time format.
- domain
Aliases List<String> - asps.list of domain alias objects.
- domain
Name String - The domain name of the customer.
- etag String
- ETag of the resource.
- id String
- The ID of this resource.
- is
Primary Boolean - Indicates if the domain is a primary domain.
- verified Boolean
- Indicates the verification state of a domain.
- creation
Time number - Creation time of the domain. Expressed in Unix time format.
- domain
Aliases string[] - asps.list of domain alias objects.
- domain
Name string - The domain name of the customer.
- etag string
- ETag of the resource.
- id string
- The ID of this resource.
- is
Primary boolean - Indicates if the domain is a primary domain.
- verified boolean
- Indicates the verification state of a domain.
- creation_
time float - Creation time of the domain. Expressed in Unix time format.
- domain_
aliases Sequence[str] - asps.list of domain alias objects.
- domain_
name str - The domain name of the customer.
- etag str
- ETag of the resource.
- id str
- The ID of this resource.
- is_
primary bool - Indicates if the domain is a primary domain.
- verified bool
- Indicates the verification state of a domain.
- creation
Time Number - Creation time of the domain. Expressed in Unix time format.
- domain
Aliases List<String> - asps.list of domain alias objects.
- domain
Name String - The domain name of the customer.
- etag String
- ETag of the resource.
- id String
- The ID of this resource.
- is
Primary Boolean - Indicates if the domain is a primary domain.
- verified Boolean
- Indicates the verification state of a domain.
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
