Skip to main content

delivery_destinations

Creates, updates, deletes or gets a delivery_destination resource or lists delivery_destinations in a region

Overview

Namedelivery_destinations
TypeResource
DescriptionThis structure contains information about one delivery destination in your account.
A delivery destination is an AWS resource that represents an AWS service that logs can be sent to CloudWatch Logs, Amazon S3, are supported as Kinesis Data Firehose delivery destinations.
Idawscc.logs.delivery_destinations

Fields

NameDatatypeDescription
namestringThe name of this delivery destination.
arnstringThe Amazon Resource Name (ARN) that uniquely identifies this delivery destination.
tagsarrayThe tags that have been assigned to this delivery destination.
delivery_destination_typestringDisplays whether this delivery destination is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
delivery_destination_policyobjectIAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.<br />The policy must be in JSON string format.<br />Length Constraints: Maximum length of 51200
output_formatstringThe format of the logs that are sent to this delivery destination.
regionstringAWS region.

For more information, see AWS::Logs::DeliveryDestination.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual delivery_destination.

SELECT
region,
name,
arn,
destination_resource_arn,
tags,
delivery_destination_type,
delivery_destination_policy,
output_format
FROM awscc.logs.delivery_destinations
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO awscc.logs.delivery_destinations (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.logs.delivery_destinations
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

logs:PutDeliveryDestination,
logs:GetDeliveryDestination,
logs:ListTagsForResource,
logs:TagResource,
logs:UntagResource,
logs:PutDeliveryDestinationPolicy,
logs:GetDeliveryDestinationPolicy

Read

logs:GetDeliveryDestination,
logs:ListTagsForResource,
logs:GetDeliveryDestinationPolicy

Update

logs:PutDeliveryDestination,
logs:GetDeliveryDestination,
logs:ListTagsForResource,
logs:TagResource,
logs:UntagResource,
logs:DeleteDeliveryDestinationPolicy,
logs:PutDeliveryDestinationPolicy,
logs:GetDeliveryDestinationPolicy

Delete

logs:DeleteDeliveryDestination,
logs:DeleteDeliveryDestinationPolicy

List

logs:DescribeDeliveryDestinations,
logs:GetDeliveryDestinationPolicy