Skip to main content

log_delivery_configurations

Creates, updates, deletes or gets a log_delivery_configuration resource or lists log_delivery_configurations in a region

Overview

Namelog_delivery_configurations
TypeResource
DescriptionResource Type definition for AWS::Cognito::LogDeliveryConfiguration
Idaws.cognito.log_delivery_configurations

Fields

NameDatatypeDescription
idstring
user_pool_idstring
log_configurationsarray
regionstringAWS region.

Methods

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

/*+ create */
INSERT INTO aws.cognito.log_delivery_configurations (
UserPoolId,
region
)
SELECT
'{{ UserPoolId }}',
'{{ region }}';

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