Skip to main content

trust_stores

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

Overview

Nametrust_stores
TypeResource
Idaws.elbv2.trust_stores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the trust store.
number_of_ca_certificatesintegerThe number of ca certificates in the trust store.
statusstringThe current status of the trust store.
total_revoked_entriesintegerThe number of revoked certificates in the trust store.
trust_store_arnstringThe Amazon Resource Name (ARN) of the trust store.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_trust_storesselectregionTrustStoreArns, Names, Marker, PageSizeDescribes all trust stores for the specified account.
create_trust_storeinsertCaCertificatesBundleS3Bucket, CaCertificatesBundleS3Key, regionName, CaCertificatesBundleS3ObjectVersion, TagsCreates a trust store. For more information, see Mutual TLS for Application Load Balancers.
modify_trust_storeupdateTrustStoreArn, CaCertificatesBundleS3Bucket, CaCertificatesBundleS3Key, regionCaCertificatesBundleS3ObjectVersionUpdate the ca certificate bundle for the specified trust store.
delete_trust_storedeleteTrustStoreArn, regionDeletes a 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
CaCertificatesBundleS3BucketstringThe Amazon S3 bucket for the ca certificates bundle.
CaCertificatesBundleS3KeystringThe Amazon S3 path for the ca certificates bundle.
TrustStoreArnstringThe Amazon Resource Name (ARN) of the trust store.
regionstringAWS region (default: us-east-1)
CaCertificatesBundleS3ObjectVersionstringThe Amazon S3 object version for the ca certificates bundle. If undefined the current version is used.
MarkerstringThe marker for the next set of results. (You received this marker from a previous call.)
NamestringThe name of the trust store. This name must be unique per region and can't be changed after creation.
NamesarrayThe names of the trust stores.
PageSizeintegerThe maximum number of results to return with this call.
TagsarrayThe tags to assign to the trust store.
TrustStoreArnsarrayThe Amazon Resource Name (ARN) of the trust store.

SELECT examples

Describes all trust stores for the specified account.

SELECT
name,
number_of_ca_certificates,
status,
total_revoked_entries,
trust_store_arn
FROM aws.elbv2.trust_stores
WHERE region = '{{ region }}' -- required
AND TrustStoreArns = '{{ TrustStoreArns }}'
AND Names = '{{ Names }}'
AND Marker = '{{ Marker }}'
AND PageSize = '{{ PageSize }}'
;

INSERT examples

Creates a trust store. For more information, see Mutual TLS for Application Load Balancers.

INSERT INTO aws.elbv2.trust_stores (
CaCertificatesBundleS3Bucket,
CaCertificatesBundleS3Key,
region,
Name,
CaCertificatesBundleS3ObjectVersion,
Tags
)
SELECT
'{{ CaCertificatesBundleS3Bucket }}',
'{{ CaCertificatesBundleS3Key }}',
'{{ region }}',
'{{ Name }}',
'{{ CaCertificatesBundleS3ObjectVersion }}',
'{{ Tags }}'
RETURNING
line_items
;

UPDATE examples

Update the ca certificate bundle for the specified trust store.

UPDATE aws.elbv2.trust_stores
SET
-- No updatable properties
WHERE
TrustStoreArn = '{{ TrustStoreArn }}' --required
AND CaCertificatesBundleS3Bucket = '{{ CaCertificatesBundleS3Bucket }}' --required
AND CaCertificatesBundleS3Key = '{{ CaCertificatesBundleS3Key }}' --required
AND region = '{{ region }}' --required
AND CaCertificatesBundleS3ObjectVersion = '{{ CaCertificatesBundleS3ObjectVersion}}'
RETURNING
line_items;

DELETE examples

Deletes a trust store.

DELETE FROM aws.elbv2.trust_stores
WHERE TrustStoreArn = '{{ TrustStoreArn }}' --required
AND region = '{{ region }}' --required
;