import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS 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"}); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `organizationId` - (String) ID of the WorkMail Organization. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import WorkMail Organization using the `organizationId`. For example: * * ```sh * $ pulumi import aws:workmail/organization:Organization example m-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx * ``` * * > **NOTE:** The `kmsKeyArn`, `deleteDirectory`, and `deleteIdentityCenterApplication` attributes are not returned by the AWS API and will not be set after import. Add them back to your configuration manually if needed. */ export declare class Organization extends pulumi.CustomResource { /** * Get an existing Organization 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?: OrganizationState, opts?: pulumi.CustomResourceOptions): Organization; /** * Returns true if the given object is an instance of Organization. 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 Organization; /** * ARN of the Organization. */ readonly arn: pulumi.Output; /** * Date and time (RFC3339) at which the organization became active. */ readonly completedDate: pulumi.Output; /** * Default mail domain for the organization. */ readonly defaultMailDomain: pulumi.Output; /** * Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run `pulumi up` before running `terraform destroy`. Defaults to `false`. */ readonly deleteDirectory: pulumi.Output; /** * Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run `pulumi up` before running `terraform destroy`. Defaults to `false`. */ readonly deleteIdentityCenterApplication: pulumi.Output; /** * ID of an existing directory to associate with the organization. Changing this creates a new resource. */ readonly directoryId: pulumi.Output; /** * Type of the associated directory. */ readonly directoryType: pulumi.Output; /** * Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource. */ readonly interoperabilityEnabled: pulumi.Output; /** * ARN of a customer-managed KMS key to encrypt the organization's data. If omitted, AWS managed keys are used. Changing this creates a new resource. */ readonly kmsKeyArn: pulumi.Output; /** * User ID of the migration admin if migration is enabled. */ readonly migrationAdmin: pulumi.Output; /** * Alias for the organization. Must be unique globally. Changing this creates a new resource. * * The following arguments are optional: */ readonly organizationAlias: pulumi.Output; /** * ID of the WorkMail Organization. */ 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; /** * State of the organization. */ readonly state: pulumi.Output; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output; /** * Create a Organization 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: OrganizationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Organization resources. */ export interface OrganizationState { /** * ARN of the Organization. */ arn?: pulumi.Input; /** * Date and time (RFC3339) at which the organization became active. */ completedDate?: pulumi.Input; /** * Default mail domain for the organization. */ defaultMailDomain?: pulumi.Input; /** * Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run `pulumi up` before running `terraform destroy`. Defaults to `false`. */ deleteDirectory?: pulumi.Input; /** * Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run `pulumi up` before running `terraform destroy`. Defaults to `false`. */ deleteIdentityCenterApplication?: pulumi.Input; /** * ID of an existing directory to associate with the organization. Changing this creates a new resource. */ directoryId?: pulumi.Input; /** * Type of the associated directory. */ directoryType?: pulumi.Input; /** * Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource. */ interoperabilityEnabled?: pulumi.Input; /** * ARN of a customer-managed KMS key to encrypt the organization's data. If omitted, AWS managed keys are used. Changing this creates a new resource. */ kmsKeyArn?: pulumi.Input; /** * User ID of the migration admin if migration is enabled. */ migrationAdmin?: pulumi.Input; /** * Alias for the organization. Must be unique globally. Changing this creates a new resource. * * The following arguments are optional: */ organizationAlias?: pulumi.Input; /** * ID of the WorkMail Organization. */ 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; /** * State of the organization. */ state?: pulumi.Input; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a Organization resource. */ export interface OrganizationArgs { /** * Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run `pulumi up` before running `terraform destroy`. Defaults to `false`. */ deleteDirectory?: pulumi.Input; /** * Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run `pulumi up` before running `terraform destroy`. Defaults to `false`. */ deleteIdentityCenterApplication?: pulumi.Input; /** * ID of an existing directory to associate with the organization. Changing this creates a new resource. */ directoryId?: pulumi.Input; /** * Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource. */ interoperabilityEnabled?: pulumi.Input; /** * ARN of a customer-managed KMS key to encrypt the organization's data. If omitted, AWS managed keys are used. Changing this creates a new resource. */ kmsKeyArn?: pulumi.Input; /** * Alias for the organization. Must be unique globally. Changing this creates a new resource. * * The following arguments are optional: */ organizationAlias: 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; /** * A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=organization.d.ts.map