Skip to main content

monitoring_subscriptions

Creates, updates, deletes or gets a monitoring_subscription resource or lists monitoring_subscriptions in a region

Overview

Namemonitoring_subscriptions
TypeResource
DescriptionResource Type definition for AWS::CloudFront::MonitoringSubscription
Idaws.cloudfront.monitoring_subscriptions

Fields

NameDatatypeDescription
distribution_idstring
monitoring_subscriptionobjectResource Type definition for AWS::CloudFront::MonitoringSubscription
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDistributionId, MonitoringSubscription, region
delete_resourceDELETEdata__Identifier, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual monitoring_subscription.

SELECT
region,
distribution_id,
monitoring_subscription
FROM aws.cloudfront.monitoring_subscriptions
WHERE data__Identifier = '<DistributionId>';

INSERT example

Use the following StackQL query and manifest file to create a new monitoring_subscription resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cloudfront.monitoring_subscriptions (
DistributionId,
MonitoringSubscription,
region
)
SELECT
'{{ DistributionId }}',
'{{ MonitoringSubscription }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cloudfront.monitoring_subscriptions
WHERE data__Identifier = '<DistributionId>'
AND region = 'us-east-1';

Permissions

To operate on the monitoring_subscriptions resource, the following permissions are required:

Create

cloudfront:CreateMonitoringSubscription

Delete

cloudfront:DeleteMonitoringSubscription

Read

cloudfront:GetMonitoringSubscription