Shared Directory Accepter
Accepts a shared directory in a consumer account.
NOTE: Destroying this resource removes the shared directory from the consumer account only.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.directoryservice.SharedDirectory;
import com.pulumi.aws.directoryservice.SharedDirectoryArgs;
import com.pulumi.aws.directoryservice.inputs.SharedDirectoryTargetArgs;
import com.pulumi.aws.directoryservice.SharedDirectoryAccepter;
import com.pulumi.aws.directoryservice.SharedDirectoryAccepterArgs;
import com.pulumi.resources.CustomResourceOptions;
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 exampleSharedDirectory = new SharedDirectory("exampleSharedDirectory", SharedDirectoryArgs.builder()
.directoryId(aws_directory_service_directory.example().id())
.notes("example")
.target(SharedDirectoryTargetArgs.builder()
.id(data.aws_caller_identity().receiver().account_id())
.build())
.build());
var exampleSharedDirectoryAccepter = new SharedDirectoryAccepter("exampleSharedDirectoryAccepter", SharedDirectoryAccepterArgs.builder()
.sharedDirectoryId(exampleSharedDirectory.sharedDirectoryId())
.build(), CustomResourceOptions.builder()
.provider("awsalternate")
.build());
}
}
Content copied to clipboard
Import
Directory Service Shared Directories can be imported using the shared directory ID, e.g.,
$ pulumi import aws:directoryservice/sharedDirectoryAccepter:SharedDirectoryAccepter example d-9267633ece
Content copied to clipboard
Properties
Link copied to clipboard
Account identifier of the directory owner.
Link copied to clipboard
Identifier of the Managed Microsoft AD directory from the perspective of the directory owner.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Identifier of the directory that is stored in the directory consumer account that corresponds to the shared directory in the owner account.