deliveries
Creates, updates, deletes or gets a delivery
resource or lists deliveries
in a region
Overview
Name | deliveries |
Type | Resource |
Description | This structure contains information about one delivery in your account. A delivery is a connection between a logical delivery source and a logical delivery destination. For more information, see [CreateDelivery](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html). |
Id | aws.logs.deliveries |
Fields
Name | Datatype | Description |
---|---|---|
delivery_id | string | The unique ID that identifies this delivery in your account. |
arn | string | The Amazon Resource Name (ARN) that uniquely identifies this delivery. |
delivery_source_name | string | The name of the delivery source that is associated with this delivery. |
delivery_destination_arn | string | The ARN of the delivery destination that is associated with this delivery. |
delivery_destination_type | string | Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose. |
tags | array | The tags that have been assigned to this delivery. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | DeliverySourceName, DeliveryDestinationArn, 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 deliveries
in a region.
SELECT
region,
delivery_id,
arn,
delivery_source_name,
delivery_destination_arn,
delivery_destination_type,
tags
FROM aws.logs.deliveries
WHERE region = 'us-east-1';
Gets all properties from an individual delivery
.
SELECT
region,
delivery_id,
arn,
delivery_source_name,
delivery_destination_arn,
delivery_destination_type,
tags
FROM aws.logs.deliveries
WHERE region = 'us-east-1' AND data__Identifier = '<DeliveryId>';
INSERT
example
Use the following StackQL query and manifest file to create a new delivery
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.logs.deliveries (
DeliverySourceName,
DeliveryDestinationArn,
region
)
SELECT
'{{ DeliverySourceName }}',
'{{ DeliveryDestinationArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.logs.deliveries (
DeliverySourceName,
DeliveryDestinationArn,
Tags,
region
)
SELECT
'{{ DeliverySourceName }}',
'{{ DeliveryDestinationArn }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: delivery
props:
- name: DeliverySourceName
value: '{{ DeliverySourceName }}'
- name: DeliveryDestinationArn
value: '{{ DeliveryDestinationArn }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.logs.deliveries
WHERE data__Identifier = '<DeliveryId>'
AND region = 'us-east-1';
Permissions
To operate on the deliveries
resource, the following permissions are required:
Create
logs:CreateDelivery,
logs:GetDelivery,
logs:DescribeDeliveries,
logs:ListTagsForResource,
logs:TagResource,
logs:GetDeliverySource,
logs:GetDeliveryDestination
Read
logs:GetDelivery,
logs:ListTagsForResource
Update
logs:GetDelivery,
logs:ListTagsForResource,
logs:TagResource,
logs:UntagResource
Delete
logs:DeleteDelivery,
logs:ListTagsForResource,
logs:UntagResource
List
logs:DescribeDeliveries,
logs:ListTagsForResource