Skip to content

Enables a custom detection rule for your account by creating an association

Description

Enables a custom detection rule for your account by creating an association. You specify the rule and the mode in which it operates.

Usage

guardduty_create_custom_detection_rule_association(RuleId, Mode,
  ClientToken, Tags)

Arguments

  • RuleId

[required] The unique identifier for the custom detection rule.

  • Mode

[required] The rule execution mode. Valid values: LIVE | DRY_RUN.

  • ClientToken

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. Maximum 64 characters.

  • Tags

The tags to be added to the new custom detection rule association resource.

Value

A list with the following syntax:

list(
  RuleAssociation = list(
    AssociationId = "string",
    Arn = "string",
    RuleId = "string",
    AccountId = "string",
    Mode = "LIVE"|"DRY_RUN",
    CreatedAt = as.POSIXct(
      "2015-01-01"
    ),
    UpdatedAt = as.POSIXct(
      "2015-01-01"
    ),
    ExpiresAt = as.POSIXct(
      "2015-01-01"
    )
  )
)

Request syntax

svc$create_custom_detection_rule_association(
  RuleId = "string",
  Mode = "LIVE"|"DRY_RUN",
  ClientToken = "string",
  Tags = list(
    "string"
  )
)