SharedDirectoryAccepter

class SharedDirectoryAccepter : KotlinCustomResource

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());
}
}

Import

Directory Service Shared Directories can be imported using the shared directory ID, e.g.,

$ pulumi import aws:directoryservice/sharedDirectoryAccepter:SharedDirectoryAccepter example d-9267633ece

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val method: Output<String>

Method used when sharing a directory (i.e., ORGANIZATIONS or HANDSHAKE).

Link copied to clipboard
val notes: Output<String>

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.

Link copied to clipboard
val ownerAccountId: Output<String>

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
val pulumiChildResources: Set<KotlinResource>
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.

Link copied to clipboard
val urn: Output<String>