Skip to main content

realtime_log_configs

Creates, updates, deletes or gets a realtime_log_config resource or lists realtime_log_configs in a region

Overview

Namerealtime_log_configs
TypeResource
DescriptionResource Type definition for AWS::CloudFront::RealtimeLogConfig
Idaws.cloudfront.realtime_log_configs

Fields

NameDatatypeDescription
arnstring
end_pointsarray
fieldsarray
namestring
sampling_ratenumber
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, EndPoints, Fields, SamplingRate, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all realtime_log_configs in a region.

SELECT
region,
arn,
end_points,
fields,
name,
sampling_rate
FROM aws.cloudfront.realtime_log_configs
;

Gets all properties from an individual realtime_log_config.

SELECT
region,
arn,
end_points,
fields,
name,
sampling_rate
FROM aws.cloudfront.realtime_log_configs
WHERE data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.cloudfront.realtime_log_configs (
EndPoints,
Fields,
Name,
SamplingRate,
region
)
SELECT
'{{ EndPoints }}',
'{{ Fields }}',
'{{ Name }}',
'{{ SamplingRate }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

cloudfront:CreateRealtimeLogConfig,
iam:PassRole

Delete

cloudfront:DeleteRealtimeLogConfig,
cloudfront:GetRealtimeLogConfig

List

cloudfront:ListRealtimeLogConfigs

Read

cloudfront:GetRealtimeLogConfig

Update

cloudfront:UpdateRealtimeLogConfig,
cloudfront:GetRealtimeLogConfig,
iam:PassRole