Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . ds ]

accept-shared-directory

Description

Accepts a directory sharing request that was sent from the directory owner account.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  accept-shared-directory
--shared-directory-id <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--shared-directory-id (string)

Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

SharedDirectory -> (structure)

The shared directory in the directory consumer account.

OwnerAccountId -> (string)

Identifier of the directory owner account, which contains the directory that has been shared to the consumer account.

OwnerDirectoryId -> (string)

Identifier of the directory in the directory owner account.

ShareMethod -> (string)

The method used when sharing a directory to determine whether the directory should be shared within your AWS organization (ORGANIZATIONS ) or with any AWS account by sending a shared directory request (HANDSHAKE ).

SharedAccountId -> (string)

Identifier of the directory consumer account that has access to the shared directory (OwnerDirectoryId ) in the directory owner account.

SharedDirectoryId -> (string)

Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

ShareStatus -> (string)

Current directory status of the shared AWS Managed Microsoft AD directory.

ShareNotes -> (string)

A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

CreatedDateTime -> (timestamp)

The date and time that the shared directory was created.

LastUpdatedDateTime -> (timestamp)

The date and time that the shared directory was last updated.