Skip to main content

directory_registrations

Creates, updates, deletes, gets or lists a directory_registrations resource.

Overview

Namedirectory_registrations
TypeResource
Idaws.pca_connector_ad.directory_registrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) that was returned when you called CreateDirectoryRegistration. (pattern: <code>^arn:[\w-]+:pca-connector-ad:[\w-]+:[0-9]+:directory-registration/d-[0-9a-f]{10}$</code>)
created_atstring (date-time)The date and time that the directory registration was created.
directory_idstringThe identifier of the Active Directory. (pattern: <code>^d-[0-9a-f]{10}$</code>)
statusstringStatus of the directory registration. (CREATING, ACTIVE, DELETING, FAILED)
status_reasonstringAdditional information about the directory registration status if the status is failed. (DIRECTORY_ACCESS_DENIED, DIRECTORY_RESOURCE_NOT_FOUND, DIRECTORY_NOT_ACTIVE, DIRECTORY_NOT_REACHABLE, DIRECTORY_TYPE_NOT_SUPPORTED, INTERNAL_FAILURE)
updated_atstring (date-time)The date and time that the directory registration was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_directory_registrationselectdirectory_registration_arn, regionA structure that contains information about your directory registration.
list_directory_registrationsselectregionMaxResults, NextTokenLists the directory registrations that you created by using the https:​//docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateDirectoryRegistration action.
create_directory_registrationinsertregion, DirectoryIdCreates a directory registration that authorizes communication between Amazon Web Services Private CA and an Active Directory
delete_directory_registrationdeletedirectory_registration_arn, regionDeletes a directory registration. Deleting a directory registration deauthorizes Amazon Web Services Private CA with the directory.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
directory_registration_arnstringThe Amazon Resource Name (ARN) that was returned when you called CreateDirectoryRegistration.
regionstringAWS region (default: us-east-1)
MaxResultsintegerUse this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
NextTokenstringUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received.

SELECT examples

A structure that contains information about your directory registration.

SELECT
arn,
created_at,
directory_id,
status,
status_reason,
updated_at
FROM aws.pca_connector_ad.directory_registrations
WHERE directory_registration_arn = '{{ directory_registration_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a directory registration that authorizes communication between Amazon Web Services Private CA and an Active Directory

INSERT INTO aws.pca_connector_ad.directory_registrations (
ClientToken,
DirectoryId,
Tags,
region
)
SELECT
'{{ ClientToken }}',
'{{ DirectoryId }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
directory_registration_arn
;

DELETE examples

Deletes a directory registration. Deleting a directory registration deauthorizes Amazon Web Services Private CA with the directory.

DELETE FROM aws.pca_connector_ad.directory_registrations
WHERE directory_registration_arn = '{{ directory_registration_arn }}' --required
AND region = '{{ region }}' --required
;