Resource: awsDirectoryServiceSharedDirectoryAccepter
Accepts a shared directory in a consumer account.
\~> NOTE: Destroying this resource removes the shared directory from the consumer account only.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsDirectoryServiceSharedDirectoryExample =
new aws.directoryServiceSharedDirectory.DirectoryServiceSharedDirectory(
this,
"example",
{
directoryId: "${aws_directory_service_directory.example.id}",
notes: "example",
target: {
id: "${data.aws_caller_identity.receiver.account_id}",
},
}
);
const awsDirectoryServiceSharedDirectoryAccepterExample =
new aws.directoryServiceSharedDirectoryAccepter.DirectoryServiceSharedDirectoryAccepter(
this,
"example_1",
{
provider: "awsalternate",
sharedDirectoryId:
awsDirectoryServiceSharedDirectoryExample.sharedDirectoryId,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsDirectoryServiceSharedDirectoryAccepterExample.overrideLogicalId("example");
Argument Reference
The following arguments are required:
sharedDirectoryId
- (Required) Identifier of the directory that is stored in the directory consumer account that corresponds to the shared directory in the owner account.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- Identifier of the shared directory.method
- Method used when sharing a directory (i.e.,organizations
orhandshake
).notes
- Message sent by the directory owner to the directory consumer to help the directory consumer administrator determine whether to approve or reject the share invitation.ownerAccountId
- Account identifier of the directory owner.ownerDirectoryId
- Identifier of the Managed Microsoft AD directory from the perspective of the directory owner.
Timeouts
awsDirectoryServiceSharedDirectoryAccepter
provides the following Timeouts configuration options:
create
- (Default60Minutes
) Used for directory creationdelete
- (Default60Minutes
) Used for directory deletion
Import
Directory Service Shared Directories can be imported using the shared directory ID, e.g.,