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
Idawscc.appstream.directory_configs

Fields

NameDatatypeDescription
organizational_unit_distinguished_namesarray
service_account_credentialsobject
directory_namestring
certificate_based_auth_propertiesobject
regionstringAWS region.

For more information, see AWS::AppStream::DirectoryConfig.

Methods

NameResourceAccessible byRequired Params
create_resourcedirectory_configsINSERTDirectoryName, OrganizationalUnitDistinguishedNames, ServiceAccountCredentials, region
delete_resourcedirectory_configsDELETEIdentifier, region
update_resourcedirectory_configsUPDATEIdentifier, PatchDocument, region
list_resourcesdirectory_configs_list_onlySELECTregion
get_resourcedirectory_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual directory_config.

SELECT
region,
organizational_unit_distinguished_names,
service_account_credentials,
directory_name,
certificate_based_auth_properties
FROM awscc.appstream.directory_configs
WHERE
region = '{{ region }}' AND
Identifier = '{{ directory_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.appstream.directory_configs (
OrganizationalUnitDistinguishedNames,
ServiceAccountCredentials,
DirectoryName,
region
)
SELECT
'{{ organizational_unit_distinguished_names }}',
'{{ service_account_credentials }}',
'{{ directory_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.appstream.directory_configs
SET PatchDocument = string('{{ {
"OrganizationalUnitDistinguishedNames": organizational_unit_distinguished_names,
"ServiceAccountCredentials": service_account_credentials,
"CertificateBasedAuthProperties": certificate_based_auth_properties
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ directory_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.appstream.directory_configs
WHERE
Identifier = '{{ directory_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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