Skip to main content

trust_stores

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

Overview

Nametrust_stores
TypeResource
Idaws.workspaces_web.trust_stores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_portal_arnsarrayA list of web portal ARNs that this trust store is associated with.
trust_store_arnstringThe ARN of the trust store. (pattern: <code>arn:[\w+=/,.@-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(/[a-fA-F0-9-]{36})+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_trust_storeselecttrust_store_arn, regionGets the trust store.
list_trust_storesselectregionnextToken, maxResultsRetrieves a list of trust stores.
create_trust_storeinsertregion, certificateListCreates a trust store that can be associated with a web portal. A trust store contains certificate authority (CA) certificates. Once associated with a web portal, the browser in a streaming session will recognize certificates that have been issued using any of the CAs in the trust store. If your organization has internal websites that use certificates issued by private CAs, you should add the private CA certificate to the trust store.
associate_trust_storeupdateportal_arn, trustStoreArn, regionAssociates a trust store with a web portal.
disassociate_trust_storeupdateportal_arn, regionDisassociates a trust store from a web portal.
update_trust_storeupdatetrust_store_arn, regionUpdates the trust store.
delete_trust_storedeletetrust_store_arn, regionDeletes the trust store.

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
portal_arnstringThe ARN of the web portal.
regionstringAWS region (default: us-east-1)
trustStoreArnstringThe ARN of the trust store.
trust_store_arnstringThe ARN of the trust store.
maxResultsintegerThe maximum number of results to be included in the next page.
nextTokenstringThe pagination token used to retrieve the next page of results for this operation.

SELECT examples

Gets the trust store.

SELECT
associated_portal_arns,
trust_store_arn
FROM aws.workspaces_web.trust_stores
WHERE trust_store_arn = '{{ trust_store_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a trust store that can be associated with a web portal. A trust store contains certificate authority (CA) certificates. Once associated with a web portal, the browser in a streaming session will recognize certificates that have been issued using any of the CAs in the trust store. If your organization has internal websites that use certificates issued by private CAs, you should add the private CA certificate to the trust store.

INSERT INTO aws.workspaces_web.trust_stores (
certificateList,
tags,
clientToken,
region
)
SELECT
'{{ certificateList }}' /* required */,
'{{ tags }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
trust_store_arn
;

UPDATE examples

Associates a trust store with a web portal.

UPDATE aws.workspaces_web.trust_stores
SET
-- No updatable properties
WHERE
portal_arn = '{{ portal_arn }}' --required
AND trustStoreArn = '{{ trustStoreArn }}' --required
AND region = '{{ region }}' --required
RETURNING
portal_arn,
trust_store_arn;

DELETE examples

Deletes the trust store.

DELETE FROM aws.workspaces_web.trust_stores
WHERE trust_store_arn = '{{ trust_store_arn }}' --required
AND region = '{{ region }}' --required
;