Skip to main content

directory_configs

Creates, updates, deletes or gets a directory_config resource or lists directory_configs in a region

Overview

Namedirectory_configs
TypeResource
DescriptionResource Type definition for AWS::AppStream::DirectoryConfig
Idaws.appstream.directory_configs

Fields

NameDatatypeDescription
organizational_unit_distinguished_namesarray
service_account_credentialsobject
directory_namestring
certificate_based_auth_propertiesobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDirectoryName, OrganizationalUnitDistinguishedNames, ServiceAccountCredentials, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all directory_configs in a region.

SELECT
region,
organizational_unit_distinguished_names,
service_account_credentials,
directory_name,
certificate_based_auth_properties
FROM aws.appstream.directory_configs
WHERE region = 'us-east-1';

Gets all properties from an individual directory_config.

SELECT
region,
organizational_unit_distinguished_names,
service_account_credentials,
directory_name,
certificate_based_auth_properties
FROM aws.appstream.directory_configs
WHERE region = 'us-east-1' AND data__Identifier = '<DirectoryName>';

INSERT example

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

/*+ create */
INSERT INTO aws.appstream.directory_configs (
OrganizationalUnitDistinguishedNames,
ServiceAccountCredentials,
DirectoryName,
region
)
SELECT
'{{ OrganizationalUnitDistinguishedNames }}',
'{{ ServiceAccountCredentials }}',
'{{ DirectoryName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appstream.directory_configs
WHERE data__Identifier = '<DirectoryName>'
AND region = 'us-east-1';

Permissions

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

Create

appstream:CreateDirectoryConfig,
appstream:DeleteDirectoryConfig,
appstream:DescribeDirectoryConfigs,
appstream:UpdateDirectoryConfig,
iam:CreateServiceLinkedRole,
iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus

Update

appstream:CreateDirectoryConfig,
appstream:DeleteDirectoryConfig,
appstream:DescribeDirectoryConfigs,
appstream:UpdateDirectoryConfig,
iam:CreateServiceLinkedRole,
iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus

Read

appstream:CreateDirectoryConfig,
appstream:DeleteDirectoryConfig,
appstream:DescribeDirectoryConfigs,
appstream:UpdateDirectoryConfig,
iam:CreateServiceLinkedRole,
iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus

Delete

appstream:CreateDirectoryConfig,
appstream:DeleteDirectoryConfig,
appstream:DescribeDirectoryConfigs,
appstream:UpdateDirectoryConfig,
iam:CreateServiceLinkedRole,
iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus

List

appstream:CreateDirectoryConfig,
appstream:DeleteDirectoryConfig,
appstream:DescribeDirectoryConfigs,
appstream:UpdateDirectoryConfig,
iam:CreateServiceLinkedRole,
iam:DeleteServiceLinkedRole,
iam:GetServiceLinkedRoleDeletionStatus