AWS::GuardDuty::CustomDetectionRuleAssociation

GuardDuty CustomDetectionRuleAssociation

Resource Type definition for AWS::GuardDuty::CustomDetectionRuleAssociation. Associates a GuardDuty custom detection rule with the caller's account, enabling the rule in either LIVE or DRY_RUN mode.

Properties

3 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
Mode
string
Required
RuleId
string
RequiredCreate-only
Tags
Array<TagItem>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AccountIdstringThe AWS account ID the association applies to.
ArnstringThe Amazon Resource Name (ARN) of the association.
AssociationIdstringThe service-generated unique identifier of the association.
CreatedAtstringThe time the association was created.
UpdatedAtstringThe time the association was last updated.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::GuardDuty::CustomDetectionRuleAssociation

Resources:
  MyResource:
    Type: AWS::GuardDuty::CustomDetectionRuleAssociation
    Properties:
      RuleId: "my-ruleid"
      Mode: "LIVE"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

guardduty:CreateCustomDetectionRuleAssociationguardduty:GetCustomDetectionRuleAssociationguardduty:TagResource

read

guardduty:GetCustomDetectionRuleAssociation

update

guardduty:UpdateCustomDetectionRuleAssociationguardduty:GetCustomDetectionRuleAssociationguardduty:TagResourceguardduty:UntagResource

delete

guardduty:DeleteCustomDetectionRuleAssociationguardduty:GetCustomDetectionRuleAssociation

list

guardduty:ListCustomDetectionRuleAssociations

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceGuardDuty
Properties8
Required2
TaggingSupported
Primary IDRuleId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

RuleId

External Links