trust_stores
Creates, updates, deletes or gets a trust_store
resource or lists trust_stores
in a region
Overview
Name | trust_stores |
Type | Resource |
Description | Definition of AWS::WorkSpacesWeb::TrustStore Resource Type |
Id | aws.workspacesweb.trust_stores |
Fields
Name | Datatype | Description |
---|---|---|
associated_portal_arns | array | |
certificate_list | array | |
tags | array | |
trust_store_arn | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | CertificateList, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all trust_stores
in a region.
SELECT
region,
associated_portal_arns,
certificate_list,
tags,
trust_store_arn
FROM aws.workspacesweb.trust_stores
WHERE region = 'us-east-1';
Gets all properties from an individual trust_store
.
SELECT
region,
associated_portal_arns,
certificate_list,
tags,
trust_store_arn
FROM aws.workspacesweb.trust_stores
WHERE region = 'us-east-1' AND data__Identifier = '<TrustStoreArn>';
INSERT
example
Use the following StackQL query and manifest file to create a new trust_store
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.workspacesweb.trust_stores (
CertificateList,
region
)
SELECT
'{{ CertificateList }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.workspacesweb.trust_stores (
CertificateList,
Tags,
region
)
SELECT
'{{ CertificateList }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: trust_store
props:
- name: CertificateList
value:
- '{{ CertificateList[0] }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.workspacesweb.trust_stores
WHERE data__Identifier = '<TrustStoreArn>'
AND region = 'us-east-1';
Permissions
To operate on the trust_stores
resource, the following permissions are required:
Create
workspaces-web:CreateTrustStore,
workspaces-web:GetTrustStore,
workspaces-web:GetTrustStoreCertificate,
workspaces-web:ListTrustStoreCertificates,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource
Read
workspaces-web:GetTrustStore,
workspaces-web:GetTrustStoreCertificate,
workspaces-web:ListTagsForResource,
workspaces-web:ListTrustStoreCertificates
Update
workspaces-web:UpdateTrustStore,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetTrustStore,
workspaces-web:GetTrustStoreCertificate,
workspaces-web:ListTagsForResource,
workspaces-web:ListTrustStoreCertificates
Delete
workspaces-web:GetTrustStore,
workspaces-web:GetTrustStoreCertificate,
workspaces-web:DeleteTrustStore
List
workspaces-web:ListTrustStores,
workspaces-web:ListTrustStoreCertificates