Skip to content

Create Publishing Destination

guardduty_create_publishing_destination R Documentation

Creates a publishing destination where you can export your GuardDuty findings

Description

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

Usage

guardduty_create_publishing_destination(DetectorId, DestinationType,
  DestinationProperties, ClientToken)

Arguments

DetectorId

[required] The ID of the GuardDuty detector associated with the publishing destination.

To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the list_detectors API.

DestinationType

[required] The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported.

DestinationProperties

[required] The properties of the publishing destination, including the ARNs for the destination and the KMS key used for encryption.

ClientToken

The idempotency token for the request.

Value

A list with the following syntax:

list(
  DestinationId = "string"
)

Request syntax

svc$create_publishing_destination(
  DetectorId = "string",
  DestinationType = "S3",
  DestinationProperties = list(
    DestinationArn = "string",
    KmsKeyArn = "string"
  ),
  ClientToken = "string"
)