We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 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.
Look up Existing CustomDetectionRuleAssociation Resource
Get an existing CustomDetectionRuleAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): CustomDetectionRuleAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> CustomDetectionRuleAssociationfunc GetCustomDetectionRuleAssociation(ctx *Context, name string, id IDInput, state *CustomDetectionRuleAssociationState, opts ...ResourceOption) (*CustomDetectionRuleAssociation, error)public static CustomDetectionRuleAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static CustomDetectionRuleAssociation get(String name, Output<String> id, CustomResourceOptions options)resources: existingCustomDetectionRuleAssociation: type: aws-native:guardduty:CustomDetectionRuleAssociation get: id: ${id}import {
to = aws-native_guardduty_custom_detection_rule_association.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state CustomDetectionRuleAssociationState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
CustomDetectionRuleAssociationMode
Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).
| Name | Value |
|---|---|
| Live | LIVE |
| Dry | DRY_RUN |
| Name | Value |
|---|---|
| Custom | LIVE |
| Custom | DRY_RUN |
| Value |
|---|
LIVE |
DRY_RUN |
| Name | Value |
|---|---|
| Live | LIVE |
| Dry | DRY_RUN |
| Name | Value |
|---|---|
| Live | LIVE |
| Dry | DRY_RUN |
| Name | Value |
|---|---|
| LIVE | LIVE |
| DRY_RUN | DRY_RUN |
| Value |
|---|
LIVE |
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 Wednesday, Nov 18, 2026 by Pulumi