published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
Manages an AWS WorkMail Organization.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.workmail.Organization("example", {organizationAlias: "example-org"});
import pulumi
import pulumi_aws as aws
example = aws.workmail.Organization("example", organization_alias="example-org")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/workmail"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := workmail.NewOrganization(ctx, "example", &workmail.OrganizationArgs{
OrganizationAlias: pulumi.String("example-org"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.WorkMail.Organization("example", new()
{
OrganizationAlias = "example-org",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.workmail.Organization;
import com.pulumi.aws.workmail.OrganizationArgs;
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) {
var example = new Organization("example", OrganizationArgs.builder()
.organizationAlias("example-org")
.build());
}
}
resources:
example:
type: aws:workmail:Organization
properties:
organizationAlias: example-org
Create Organization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Organization(name: string, args: OrganizationArgs, opts?: CustomResourceOptions);@overload
def Organization(resource_name: str,
args: OrganizationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Organization(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_alias: Optional[str] = None,
delete_directory: Optional[bool] = None,
delete_identity_center_application: Optional[bool] = None,
directory_id: Optional[str] = None,
interoperability_enabled: Optional[bool] = None,
kms_key_arn: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[OrganizationTimeoutsArgs] = None)func NewOrganization(ctx *Context, name string, args OrganizationArgs, opts ...ResourceOption) (*Organization, error)public Organization(string name, OrganizationArgs args, CustomResourceOptions? opts = null)
public Organization(String name, OrganizationArgs args)
public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
type: aws:workmail:Organization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsOrganizationResource = new Aws.WorkMail.Organization("awsOrganizationResource", new()
{
OrganizationAlias = "string",
DeleteDirectory = false,
DeleteIdentityCenterApplication = false,
DirectoryId = "string",
InteroperabilityEnabled = false,
KmsKeyArn = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.WorkMail.Inputs.OrganizationTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := workmail.NewOrganization(ctx, "awsOrganizationResource", &workmail.OrganizationArgs{
OrganizationAlias: pulumi.String("string"),
DeleteDirectory: pulumi.Bool(false),
DeleteIdentityCenterApplication: pulumi.Bool(false),
DirectoryId: pulumi.String("string"),
InteroperabilityEnabled: pulumi.Bool(false),
KmsKeyArn: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &workmail.OrganizationTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var awsOrganizationResource = new com.pulumi.aws.workmail.Organization("awsOrganizationResource", com.pulumi.aws.workmail.OrganizationArgs.builder()
.organizationAlias("string")
.deleteDirectory(false)
.deleteIdentityCenterApplication(false)
.directoryId("string")
.interoperabilityEnabled(false)
.kmsKeyArn("string")
.region("string")
.tags(Map.of("string", "string"))
.timeouts(OrganizationTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
aws_organization_resource = aws.workmail.Organization("awsOrganizationResource",
organization_alias="string",
delete_directory=False,
delete_identity_center_application=False,
directory_id="string",
interoperability_enabled=False,
kms_key_arn="string",
region="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
})
const awsOrganizationResource = new aws.workmail.Organization("awsOrganizationResource", {
organizationAlias: "string",
deleteDirectory: false,
deleteIdentityCenterApplication: false,
directoryId: "string",
interoperabilityEnabled: false,
kmsKeyArn: "string",
region: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: aws:workmail:Organization
properties:
deleteDirectory: false
deleteIdentityCenterApplication: false
directoryId: string
interoperabilityEnabled: false
kmsKeyArn: string
organizationAlias: string
region: string
tags:
string: string
timeouts:
create: string
delete: string
Organization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Organization resource accepts the following input properties:
- Organization
Alias string Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- Delete
Directory bool - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Delete
Identity boolCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Directory
Id string - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- Interoperability
Enabled bool - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- Kms
Key stringArn - 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.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Organization
Timeouts
- Organization
Alias string Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- Delete
Directory bool - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Delete
Identity boolCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Directory
Id string - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- Interoperability
Enabled bool - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- Kms
Key stringArn - 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.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Organization
Timeouts Args
- organization
Alias String Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- delete
Directory Boolean - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete
Identity BooleanCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory
Id String - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- interoperability
Enabled Boolean - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms
Key StringArn - 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.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Organization
Timeouts
- organization
Alias string Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- delete
Directory boolean - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete
Identity booleanCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory
Id string - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- interoperability
Enabled boolean - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms
Key stringArn - 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.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Organization
Timeouts
- organization_
alias str Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- delete_
directory bool - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete_
identity_ boolcenter_ application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory_
id str - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- interoperability_
enabled bool - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms_
key_ strarn - 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.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Organization
Timeouts Args
- organization
Alias String Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- delete
Directory Boolean - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete
Identity BooleanCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory
Id String - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- interoperability
Enabled Boolean - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms
Key StringArn - 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.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Organization resource produces the following output properties:
- Arn string
- ARN of the Organization.
- Completed
Date string - Date and time (RFC3339) at which the organization became active.
- Default
Mail stringDomain - Default mail domain for the organization.
- Directory
Type string - Type of the associated directory.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Admin string - User ID of the migration admin if migration is enabled.
- Organization
Id string - ID of the WorkMail Organization.
- State string
- State of the organization.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the Organization.
- Completed
Date string - Date and time (RFC3339) at which the organization became active.
- Default
Mail stringDomain - Default mail domain for the organization.
- Directory
Type string - Type of the associated directory.
- Id string
- The provider-assigned unique ID for this managed resource.
- Migration
Admin string - User ID of the migration admin if migration is enabled.
- Organization
Id string - ID of the WorkMail Organization.
- State string
- State of the organization.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the Organization.
- completed
Date String - Date and time (RFC3339) at which the organization became active.
- default
Mail StringDomain - Default mail domain for the organization.
- directory
Type String - Type of the associated directory.
- id String
- The provider-assigned unique ID for this managed resource.
- migration
Admin String - User ID of the migration admin if migration is enabled.
- organization
Id String - ID of the WorkMail Organization.
- state String
- State of the organization.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the Organization.
- completed
Date string - Date and time (RFC3339) at which the organization became active.
- default
Mail stringDomain - Default mail domain for the organization.
- directory
Type string - Type of the associated directory.
- id string
- The provider-assigned unique ID for this managed resource.
- migration
Admin string - User ID of the migration admin if migration is enabled.
- organization
Id string - ID of the WorkMail Organization.
- state string
- State of the organization.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the Organization.
- completed_
date str - Date and time (RFC3339) at which the organization became active.
- default_
mail_ strdomain - Default mail domain for the organization.
- directory_
type str - Type of the associated directory.
- id str
- The provider-assigned unique ID for this managed resource.
- migration_
admin str - User ID of the migration admin if migration is enabled.
- organization_
id str - ID of the WorkMail Organization.
- state str
- State of the organization.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the Organization.
- completed
Date String - Date and time (RFC3339) at which the organization became active.
- default
Mail StringDomain - Default mail domain for the organization.
- directory
Type String - Type of the associated directory.
- id String
- The provider-assigned unique ID for this managed resource.
- migration
Admin String - User ID of the migration admin if migration is enabled.
- organization
Id String - ID of the WorkMail Organization.
- state String
- State of the organization.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Look up Existing Organization Resource
Get an existing Organization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OrganizationState, opts?: CustomResourceOptions): Organization@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
completed_date: Optional[str] = None,
default_mail_domain: Optional[str] = None,
delete_directory: Optional[bool] = None,
delete_identity_center_application: Optional[bool] = None,
directory_id: Optional[str] = None,
directory_type: Optional[str] = None,
interoperability_enabled: Optional[bool] = None,
kms_key_arn: Optional[str] = None,
migration_admin: Optional[str] = None,
organization_alias: Optional[str] = None,
organization_id: Optional[str] = None,
region: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[OrganizationTimeoutsArgs] = None) -> Organizationfunc GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)resources: _: type: aws:workmail:Organization get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the Organization.
- Completed
Date string - Date and time (RFC3339) at which the organization became active.
- Default
Mail stringDomain - Default mail domain for the organization.
- Delete
Directory bool - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Delete
Identity boolCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Directory
Id string - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- Directory
Type string - Type of the associated directory.
- Interoperability
Enabled bool - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- Kms
Key stringArn - 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.
- Migration
Admin string - User ID of the migration admin if migration is enabled.
- Organization
Alias string Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- Organization
Id string - ID of the WorkMail Organization.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- State string
- State of the organization.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Timeouts
Organization
Timeouts
- Arn string
- ARN of the Organization.
- Completed
Date string - Date and time (RFC3339) at which the organization became active.
- Default
Mail stringDomain - Default mail domain for the organization.
- Delete
Directory bool - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Delete
Identity boolCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - Directory
Id string - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- Directory
Type string - Type of the associated directory.
- Interoperability
Enabled bool - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- Kms
Key stringArn - 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.
- Migration
Admin string - User ID of the migration admin if migration is enabled.
- Organization
Alias string Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- Organization
Id string - ID of the WorkMail Organization.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- State string
- State of the organization.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Timeouts
Organization
Timeouts Args
- arn String
- ARN of the Organization.
- completed
Date String - Date and time (RFC3339) at which the organization became active.
- default
Mail StringDomain - Default mail domain for the organization.
- delete
Directory Boolean - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete
Identity BooleanCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory
Id String - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- directory
Type String - Type of the associated directory.
- interoperability
Enabled Boolean - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms
Key StringArn - 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.
- migration
Admin String - User ID of the migration admin if migration is enabled.
- organization
Alias String Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- organization
Id String - ID of the WorkMail Organization.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- state String
- State of the organization.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - timeouts
Organization
Timeouts
- arn string
- ARN of the Organization.
- completed
Date string - Date and time (RFC3339) at which the organization became active.
- default
Mail stringDomain - Default mail domain for the organization.
- delete
Directory boolean - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete
Identity booleanCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory
Id string - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- directory
Type string - Type of the associated directory.
- interoperability
Enabled boolean - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms
Key stringArn - 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.
- migration
Admin string - User ID of the migration admin if migration is enabled.
- organization
Alias string Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- organization
Id string - ID of the WorkMail Organization.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- state string
- State of the organization.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - timeouts
Organization
Timeouts
- arn str
- ARN of the Organization.
- completed_
date str - Date and time (RFC3339) at which the organization became active.
- default_
mail_ strdomain - Default mail domain for the organization.
- delete_
directory bool - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete_
identity_ boolcenter_ application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory_
id str - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- directory_
type str - Type of the associated directory.
- interoperability_
enabled bool - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms_
key_ strarn - 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.
- migration_
admin str - User ID of the migration admin if migration is enabled.
- organization_
alias str Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- organization_
id str - ID of the WorkMail Organization.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- state str
- State of the organization.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - timeouts
Organization
Timeouts Args
- arn String
- ARN of the Organization.
- completed
Date String - Date and time (RFC3339) at which the organization became active.
- default
Mail StringDomain - Default mail domain for the organization.
- delete
Directory Boolean - Whether to delete the AWS Directory Service directory associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - delete
Identity BooleanCenter Application - Whether to delete the IAM Identity Center application associated with the organization on destroy. To update this value after creation, run
pulumi upbefore runningterraform destroy. Defaults tofalse. - directory
Id String - ID of an existing directory to associate with the organization. Changing this creates a new resource.
- directory
Type String - Type of the associated directory.
- interoperability
Enabled Boolean - Whether to enable interoperability between WorkMail and Microsoft Exchange. Changing this creates a new resource.
- kms
Key StringArn - 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.
- migration
Admin String - User ID of the migration admin if migration is enabled.
- organization
Alias String Alias for the organization. Must be unique globally. Changing this creates a new resource.
The following arguments are optional:
- organization
Id String - ID of the WorkMail Organization.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- state String
- State of the organization.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - timeouts Property Map
Supporting Types
OrganizationTimeouts, OrganizationTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
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:
$ pulumi import aws:workmail/organization:Organization example m-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NOTE: The
kmsKeyArn,deleteDirectory, anddeleteIdentityCenterApplicationattributes are not returned by the AWS API and will not be set after import. Add them back to your configuration manually if needed.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Tuesday, Mar 31, 2026 by Pulumi
