We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 7, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 7, 2026 by Pulumi
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.
Create CustomDetectionRuleAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomDetectionRuleAssociation(name: string, args: CustomDetectionRuleAssociationArgs, opts?: CustomResourceOptions);@overload
def CustomDetectionRuleAssociation(resource_name: str,
args: CustomDetectionRuleAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomDetectionRuleAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
mode: Optional[CustomDetectionRuleAssociationMode] = None,
rule_id: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewCustomDetectionRuleAssociation(ctx *Context, name string, args CustomDetectionRuleAssociationArgs, opts ...ResourceOption) (*CustomDetectionRuleAssociation, error)public CustomDetectionRuleAssociation(string name, CustomDetectionRuleAssociationArgs args, CustomResourceOptions? opts = null)
public CustomDetectionRuleAssociation(String name, CustomDetectionRuleAssociationArgs args)
public CustomDetectionRuleAssociation(String name, CustomDetectionRuleAssociationArgs args, CustomResourceOptions options)
type: aws-native:guardduty:CustomDetectionRuleAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_guardduty_custom_detection_rule_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CustomDetectionRuleAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomDetectionRuleAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomDetectionRuleAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomDetectionRuleAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomDetectionRuleAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CustomDetectionRuleAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomDetectionRuleAssociation resource accepts the following input properties:
- Mode
Pulumi.
Aws Native. Guard Duty. Custom Detection Rule Association Mode - Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- Rule
Id string - The catalog identifier of the custom detection rule to associate.
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags applied to the association.
- Mode
Custom
Detection Rule Association Mode - Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- Rule
Id string - The catalog identifier of the custom detection rule to associate.
-
Tag
Args - The tags applied to the association.
- mode "LIVE" | "DRY_RUN"
- Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- rule_
id string - The catalog identifier of the custom detection rule to associate.
- list(object)
- The tags applied to the association.
- mode
Custom
Detection Rule Association Mode - Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- rule
Id String - The catalog identifier of the custom detection rule to associate.
- List<Tag>
- The tags applied to the association.
- mode
Custom
Detection Rule Association Mode - Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- rule
Id string - The catalog identifier of the custom detection rule to associate.
- Tag[]
- The tags applied to the association.
- mode
Custom
Detection Rule Association Mode - Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- rule_
id str - The catalog identifier of the custom detection rule to associate.
-
Sequence[Tag
Args] - The tags applied to the association.
- mode "LIVE" | "DRY_RUN"
- Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
- rule
Id String - The catalog identifier of the custom detection rule to associate.
- List<Property Map>
- The tags applied to the association.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomDetectionRuleAssociation resource produces the following output properties:
- Account
Id string - The AWS account ID the association applies to.
- Arn string
- The Amazon Resource Name (ARN) of the association.
- Association
Id string - The service-generated unique identifier of the association.
- Created
At string - The time the association was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - The time the association was last updated.
- Account
Id string - The AWS account ID the association applies to.
- Arn string
- The Amazon Resource Name (ARN) of the association.
- Association
Id string - The service-generated unique identifier of the association.
- Created
At string - The time the association was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - The time the association was last updated.
- account_
id string - The AWS account ID the association applies to.
- arn string
- The Amazon Resource Name (ARN) of the association.
- association_
id string - The service-generated unique identifier of the association.
- created_
at string - The time the association was created.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - The time the association was last updated.
- account
Id String - The AWS account ID the association applies to.
- arn String
- The Amazon Resource Name (ARN) of the association.
- association
Id String - The service-generated unique identifier of the association.
- created
At String - The time the association was created.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - The time the association was last updated.
- account
Id string - The AWS account ID the association applies to.
- arn string
- The Amazon Resource Name (ARN) of the association.
- association
Id string - The service-generated unique identifier of the association.
- created
At string - The time the association was created.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - The time the association was last updated.
- account_
id str - The AWS account ID the association applies to.
- arn str
- The Amazon Resource Name (ARN) of the association.
- association_
id str - The service-generated unique identifier of the association.
- created_
at str - The time the association was created.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The time the association was last updated.
- account
Id String - The AWS account ID the association applies to.
- arn String
- The Amazon Resource Name (ARN) of the association.
- association
Id String - The service-generated unique identifier of the association.
- created
At String - The time the association was created.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - The time the association was last updated.
Supporting Types
CustomDetectionRuleAssociationMode, CustomDetectionRuleAssociationModeArgs
- Live
LIVE- Dry
Run DRY_RUN
- Custom
Detection Rule Association Mode Live LIVE- Custom
Detection Rule Association Mode Dry Run DRY_RUN
- "LIVE"
LIVE- "DRY_RUN"
DRY_RUN
- Live
LIVE- Dry
Run DRY_RUN
- Live
LIVE- Dry
Run DRY_RUN
- LIVE
LIVE- DRY_RUN
DRY_RUN
- "LIVE"
LIVE- "DRY_RUN"
DRY_RUN
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 7, 2026 by Pulumi