Skip to main content

publishing_destinations

Creates, updates, deletes, gets or lists a publishing_destinations resource.

Overview

Namepublishing_destinations
TypeResource
Idaws.guardduty.publishing_destinations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
destination_idstringThe ID of the publishing destination.
destination_propertiesobjectContains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.
destination_typestringThe type of publishing destination. Currently, only Amazon S3 buckets are supported. (S3)
publishing_failure_start_timestampinteger (int64)The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the destination.
statusstringThe status of the publishing destination. (PENDING_VERIFICATION, PUBLISHING, UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY, STOPPED)
tagsobjectThe tags of the publishing destination resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_publishing_destinationselectdetector_id, destination_id, regionReturns information about the publishing destination specified by the provided destinationId.
list_publishing_destinationsselectdetector_id, regionmaxResults, nextTokenReturns a list of publishing destinations associated with the specified detectorId.
create_publishing_destinationinsertdetector_id, region, DestinationType, DestinationPropertiesCreates a publishing destination where you can export your GuardDuty findings. Before you start exporting the findings, the destination resource must exist.
update_publishing_destinationupdatedetector_id, destination_id, regionUpdates information about the publishing destination specified by the destinationId.
delete_publishing_destinationdeletedetector_id, destination_id, regionDeletes the publishing definition with the specified destinationId.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
destination_idstringThe ID of the publishing destination to delete.
detector_idstringThe unique ID of the detector associated with the publishing destination to delete. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response.
nextTokenstringA token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

SELECT examples

Returns information about the publishing destination specified by the provided destinationId.

SELECT
destination_id,
destination_properties,
destination_type,
publishing_failure_start_timestamp,
status,
tags
FROM aws.guardduty.publishing_destinations
WHERE detector_id = '{{ detector_id }}' -- required
AND destination_id = '{{ destination_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a publishing destination where you can export your GuardDuty findings. Before you start exporting the findings, the destination resource must exist.

INSERT INTO aws.guardduty.publishing_destinations (
DestinationType,
DestinationProperties,
ClientToken,
Tags,
detector_id,
region
)
SELECT
'{{ DestinationType }}' /* required */,
'{{ DestinationProperties }}' /* required */,
'{{ ClientToken }}',
'{{ Tags }}',
'{{ detector_id }}',
'{{ region }}'
RETURNING
destination_id
;

UPDATE examples

Updates information about the publishing destination specified by the destinationId.

UPDATE aws.guardduty.publishing_destinations
SET
DestinationProperties = '{{ DestinationProperties }}'
WHERE
detector_id = '{{ detector_id }}' --required
AND destination_id = '{{ destination_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the publishing definition with the specified destinationId.

DELETE FROM aws.guardduty.publishing_destinations
WHERE detector_id = '{{ detector_id }}' --required
AND destination_id = '{{ destination_id }}' --required
AND region = '{{ region }}' --required
;