Skip to main content

trust_stores

Creates, updates, deletes or gets a trust_store resource or lists trust_stores in a region

Overview

Nametrust_stores
TypeResource
DescriptionResource Type definition for AWS::ElasticLoadBalancingV2::TrustStore
Idaws.elasticloadbalancingv2.trust_stores

Fields

NameDatatypeDescription
namestringThe name of the trust store.
ca_certificates_bundle_s3_bucketstringThe name of the S3 bucket to fetch the CA certificate bundle from.
ca_certificates_bundle_s3_keystringThe name of the S3 object to fetch the CA certificate bundle from.
ca_certificates_bundle_s3_object_versionstringThe version of the S3 bucket that contains the CA certificate bundle.
statusstringThe status of the trust store, could be either of ACTIVE or CREATING.
number_of_ca_certificatesintegerThe number of certificates associated with the trust store.
tagsarrayThe tags to assign to the trust store.
trust_store_arnstringThe Amazon Resource Name (ARN) of the trust store.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.elasticloadbalancingv2.trust_stores (
Name,
CaCertificatesBundleS3Bucket,
CaCertificatesBundleS3Key,
CaCertificatesBundleS3ObjectVersion,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ CaCertificatesBundleS3Bucket }}',
'{{ CaCertificatesBundleS3Key }}',
'{{ CaCertificatesBundleS3ObjectVersion }}',
'{{ Tags }}',
'{{ region }}';

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