realtime_log_configs
Creates, updates, deletes or gets a realtime_log_config
resource or lists realtime_log_configs
in a region
Overview
Name | realtime_log_configs |
Type | Resource |
Description | Resource Type definition for AWS::CloudFront::RealtimeLogConfig |
Id | aws.cloudfront.realtime_log_configs |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | |
end_points | array | |
fields | array | |
name | string | |
sampling_rate | number | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, EndPoints, Fields, SamplingRate, 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 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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.cloudfront.realtime_log_configs (
EndPoints,
Fields,
Name,
SamplingRate,
region
)
SELECT
'{{ EndPoints }}',
'{{ Fields }}',
'{{ Name }}',
'{{ SamplingRate }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.cloudfront.realtime_log_configs (
EndPoints,
Fields,
Name,
SamplingRate,
region
)
SELECT
'{{ EndPoints }}',
'{{ Fields }}',
'{{ Name }}',
'{{ SamplingRate }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: realtime_log_config
props:
- name: EndPoints
value:
- KinesisStreamConfig:
RoleArn: '{{ RoleArn }}'
StreamArn: '{{ StreamArn }}'
StreamType: '{{ StreamType }}'
- name: Fields
value:
- '{{ Fields[0] }}'
- name: Name
value: '{{ Name }}'
- name: SamplingRate
value: null
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