import * as pulumi from "@pulumi/pulumi"; /** * Manages the default mail domain for an AWS WorkMail organization. * * > **NOTE:** This does not register a domain for workmail. This resource requires a verified domain name to be used as default domain for workmail organization. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.workmail.Organization("example", {organizationAlias: "example-org"}); * const exampleDefaultDomain = new aws.workmail.DefaultDomain("example", { * organizationId: example.id, * domainName: example.defaultMailDomain, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `organizationId` (String) Identifier of the WorkMail organization. * * #### Optional * * * `accountId` (String) Account ID where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import WorkMail Default Domain using the organization ID. For example: * * ```sh * $ pulumi import aws:workmail/defaultDomain:DefaultDomain example "m-1234567890abcdef0" * ``` */ export declare class DefaultDomain extends pulumi.CustomResource { /** * Get an existing DefaultDomain resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DefaultDomainState, opts?: pulumi.CustomResourceOptions): DefaultDomain; /** * Returns true if the given object is an instance of DefaultDomain. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DefaultDomain; /** * Mail domain name to set as the default. */ readonly domainName: pulumi.Output; /** * Identifier of the WorkMail organization. Changing this forces a new resource. */ readonly organizationId: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Create a DefaultDomain resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DefaultDomainArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DefaultDomain resources. */ export interface DefaultDomainState { /** * Mail domain name to set as the default. */ domainName?: pulumi.Input; /** * Identifier of the WorkMail organization. Changing this forces a new resource. */ organizationId?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; } /** * The set of arguments for constructing a DefaultDomain resource. */ export interface DefaultDomainArgs { /** * Mail domain name to set as the default. */ domainName: pulumi.Input; /** * Identifier of the WorkMail organization. Changing this forces a new resource. */ organizationId: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; } //# sourceMappingURL=defaultDomain.d.ts.map