log_delivery_configurations
Creates, updates, deletes or gets a log_delivery_configuration
resource or lists log_delivery_configurations
in a region
Overview
Name | log_delivery_configurations |
Type | Resource |
Description | Resource Type definition for AWS::Cognito::LogDeliveryConfiguration |
Id | aws.cognito.log_delivery_configurations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
user_pool_id | string | |
log_configurations | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | UserPoolId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all properties from an individual log_delivery_configuration
.
SELECT
region,
id,
user_pool_id,
log_configurations
FROM aws.cognito.log_delivery_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new log_delivery_configuration
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.cognito.log_delivery_configurations (
UserPoolId,
region
)
SELECT
'{{ UserPoolId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.cognito.log_delivery_configurations (
UserPoolId,
LogConfigurations,
region
)
SELECT
'{{ UserPoolId }}',
'{{ LogConfigurations }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: log_delivery_configuration
props:
- name: UserPoolId
value: '{{ UserPoolId }}'
- name: LogConfigurations
value:
- LogLevel: '{{ LogLevel }}'
EventSource: '{{ EventSource }}'
CloudWatchLogsConfiguration:
LogGroupArn: '{{ LogGroupArn }}'
DELETE
example
/*+ delete */
DELETE FROM aws.cognito.log_delivery_configurations
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the log_delivery_configurations
resource, the following permissions are required:
Create
cognito-idp:GetLogDeliveryConfiguration,
cognito-idp:SetLogDeliveryConfiguration,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups
Read
cognito-idp:GetLogDeliveryConfiguration
Update
cognito-idp:GetLogDeliveryConfiguration,
cognito-idp:SetLogDeliveryConfiguration,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups
Delete
cognito-idp:GetLogDeliveryConfiguration,
cognito-idp:SetLogDeliveryConfiguration,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups