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 | Resource Type definition for AWS::ElasticLoadBalancingV2::TrustStore |
Id | aws.elasticloadbalancingv2.trust_stores |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the trust store. |
ca_certificates_bundle_s3_bucket | string | The name of the S3 bucket to fetch the CA certificate bundle from. |
ca_certificates_bundle_s3_key | string | The name of the S3 object to fetch the CA certificate bundle from. |
ca_certificates_bundle_s3_object_version | string | The version of the S3 bucket that contains the CA certificate bundle. |
status | string | The status of the trust store, could be either of ACTIVE or CREATING. |
number_of_ca_certificates | integer | The number of certificates associated with the trust store. |
tags | array | The tags to assign to the trust store. |
trust_store_arn | string | The Amazon Resource Name (ARN) of the trust store. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | 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,
name,
ca_certificates_bundle_s3_bucket,
ca_certificates_bundle_s3_key,
ca_certificates_bundle_s3_object_version,
status,
number_of_ca_certificates,
tags,
trust_store_arn
FROM aws.elasticloadbalancingv2.trust_stores
WHERE region = 'us-east-1';
Gets all properties from an individual trust_store
.
SELECT
region,
name,
ca_certificates_bundle_s3_bucket,
ca_certificates_bundle_s3_key,
ca_certificates_bundle_s3_object_version,
status,
number_of_ca_certificates,
tags,
trust_store_arn
FROM aws.elasticloadbalancingv2.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.elasticloadbalancingv2.trust_stores (
Name,
CaCertificatesBundleS3Bucket,
CaCertificatesBundleS3Key,
CaCertificatesBundleS3ObjectVersion,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ CaCertificatesBundleS3Bucket }}',
'{{ CaCertificatesBundleS3Key }}',
'{{ CaCertificatesBundleS3ObjectVersion }}',
'{{ Tags }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.elasticloadbalancingv2.trust_stores (
Name,
CaCertificatesBundleS3Bucket,
CaCertificatesBundleS3Key,
CaCertificatesBundleS3ObjectVersion,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ CaCertificatesBundleS3Bucket }}',
'{{ CaCertificatesBundleS3Key }}',
'{{ CaCertificatesBundleS3ObjectVersion }}',
'{{ 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: Name
value: '{{ Name }}'
- name: CaCertificatesBundleS3Bucket
value: '{{ CaCertificatesBundleS3Bucket }}'
- name: CaCertificatesBundleS3Key
value: '{{ CaCertificatesBundleS3Key }}'
- name: CaCertificatesBundleS3ObjectVersion
value: '{{ CaCertificatesBundleS3ObjectVersion }}'
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
DELETE
example
/*+ delete */
DELETE FROM aws.elasticloadbalancingv2.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
elasticloadbalancing:CreateTrustStore,
elasticloadbalancing:DescribeTrustStores,
elasticloadbalancing:AddTags,
s3:GetObject,
s3:GetObjectVersion
Delete
elasticloadbalancing:DescribeTrustStores,
elasticloadbalancing:DeleteTrustStore
List
elasticloadbalancing:DescribeTrustStores,
s3:GetObject,
s3:GetObjectVersion
Read
elasticloadbalancing:DescribeTrustStores,
elasticloadbalancing:DescribeTags
Update
elasticloadbalancing:ModifyTrustStore,
elasticloadbalancing:AddTags,
elasticloadbalancing:RemoveTags,
s3:GetObject,
s3:GetObjectVersion