Class CfnCustomDetectionRuleAssociation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.guardduty.CfnCustomDetectionRuleAssociation
- All Implemented Interfaces:
IInspectable,ICustomDetectionRuleAssociationRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:11.359Z")
@Stability(Stable)
public class CfnCustomDetectionRuleAssociation
extends CfnResource
implements IInspectable, ICustomDetectionRuleAssociationRef, ITaggableV2
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.guardduty.*;
CfnCustomDetectionRuleAssociation cfnCustomDetectionRuleAssociation = CfnCustomDetectionRuleAssociation.Builder.create(this, "MyCfnCustomDetectionRuleAssociation")
.mode("mode")
.ruleId("ruleId")
// the properties below are optional
.tags(List.of(TagItemProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCustomDetectionRuleAssociation.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.guardduty.ICustomDetectionRuleAssociationRef
ICustomDetectionRuleAssociationRef.Jsii$Default, ICustomDetectionRuleAssociationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCustomDetectionRuleAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCustomDetectionRuleAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnCustomDetectionRuleAssociation(software.constructs.Construct scope, String id, CfnCustomDetectionRuleAssociationProps props) Create a newAWS::GuardDuty::CustomDetectionRuleAssociation. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe AWS account ID the association applies to.The Amazon Resource Name (ARN) of the association.The service-generated unique identifier of the association.The time the association was created.The time the association was last updated.Tag Manager which manages the tags for this resource.A reference to a CustomDetectionRuleAssociation resource.getMode()Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).The catalog identifier of the custom detection rule to associate.getTags()The tags applied to the association.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnCustomDetectionRuleAssociation.renderProperties(Map<String, Object> props) voidWhether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings).voidThe catalog identifier of the custom detection rule to associate.voidThe tags applied to the association.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCustomDetectionRuleAssociation
protected CfnCustomDetectionRuleAssociation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCustomDetectionRuleAssociation
protected CfnCustomDetectionRuleAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCustomDetectionRuleAssociation
@Stability(Stable) public CfnCustomDetectionRuleAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCustomDetectionRuleAssociationProps props) Create a newAWS::GuardDuty::CustomDetectionRuleAssociation.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForCustomDetectionRuleAssociation
@Stability(Stable) @NotNull public static String arnForCustomDetectionRuleAssociation(@NotNull ICustomDetectionRuleAssociationRef resource) - Parameters:
resource- This parameter is required.
-
isCfnCustomDetectionRuleAssociation
@Stability(Stable) @NotNull public static Boolean isCfnCustomDetectionRuleAssociation(@NotNull Object x) Checks whether the given object is a CfnCustomDetectionRuleAssociation.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAccountId
The AWS account ID the association applies to. -
getAttrArn
The Amazon Resource Name (ARN) of the association. -
getAttrAssociationId
The service-generated unique identifier of the association. -
getAttrCreatedAt
The time the association was created. -
getAttrUpdatedAt
The time the association was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getCustomDetectionRuleAssociationRef
@Stability(Stable) @NotNull public CustomDetectionRuleAssociationReference getCustomDetectionRuleAssociationRef()A reference to a CustomDetectionRuleAssociation resource.- Specified by:
getCustomDetectionRuleAssociationRefin interfaceICustomDetectionRuleAssociationRef
-
getMode
Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings). -
setMode
Whether the rule runs in LIVE mode (generates findings) or DRY_RUN mode (evaluates without generating findings). -
getRuleId
The catalog identifier of the custom detection rule to associate. -
setRuleId
The catalog identifier of the custom detection rule to associate. -
getTags
@Stability(Stable) @Nullable public List<CfnCustomDetectionRuleAssociation.TagItemProperty> getTags()The tags applied to the association. -
setTags
@Stability(Stable) public void setTags(@Nullable List<CfnCustomDetectionRuleAssociation.TagItemProperty> value) The tags applied to the association.
-