Skip to main content

directory_registrations

Creates, updates, deletes or gets a directory_registration resource or lists directory_registrations in a region

Overview

Namedirectory_registrations
TypeResource
DescriptionDefinition of AWS::PCAConnectorAD::DirectoryRegistration Resource Type
Idaws.pcaconnectorad.directory_registrations

Fields

NameDatatypeDescription
directory_idstring
directory_registration_arnstring
tagsobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDirectoryId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all directory_registrations in a region.

SELECT
region,
directory_id,
directory_registration_arn,
tags
FROM aws.pcaconnectorad.directory_registrations
WHERE region = 'us-east-1';

Gets all properties from an individual directory_registration.

SELECT
region,
directory_id,
directory_registration_arn,
tags
FROM aws.pcaconnectorad.directory_registrations
WHERE region = 'us-east-1' AND data__Identifier = '<DirectoryRegistrationArn>';

INSERT example

Use the following StackQL query and manifest file to create a new directory_registration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.pcaconnectorad.directory_registrations (
DirectoryId,
region
)
SELECT
'{{ DirectoryId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.pcaconnectorad.directory_registrations
WHERE data__Identifier = '<DirectoryRegistrationArn>'
AND region = 'us-east-1';

Permissions

To operate on the directory_registrations resource, the following permissions are required:

Create

pca-connector-ad:GetDirectoryRegistration,
pca-connector-ad:CreateDirectoryRegistration,
ds:AuthorizeApplication,
ds:DescribeDirectories

Read

pca-connector-ad:ListTagsForResource,
pca-connector-ad:GetDirectoryRegistration

Delete

pca-connector-ad:GetDirectoryRegistration,
pca-connector-ad:DeleteDirectoryRegistration,
ds:DescribeDirectories,
ds:UnauthorizeApplication,
ds:UpdateAuthorizedApplication

List

pca-connector-ad:ListDirectoryRegistrations

Update

pca-connector-ad:ListTagsForResource,
pca-connector-ad:TagResource,
pca-connector-ad:UntagResource