Class CfnArchiveRule
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.accessanalyzer.CfnArchiveRule
- All Implemented Interfaces:
IInspectable,IArchiveRuleRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:01.895Z")
@Stability(Stable)
public class CfnArchiveRule
extends CfnResource
implements IInspectable, IArchiveRuleRef
Creates an archive rule for the specified analyzer.
Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
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.accessanalyzer.*;
CfnArchiveRule cfnArchiveRule = CfnArchiveRule.Builder.create(this, "MyCfnArchiveRule")
.analyzerName("analyzerName")
.filter(Map.of(
"filterKey", FilterItemsProperty.builder()
.contains(List.of("contains"))
.eq(List.of("eq"))
.exists(false)
.neq(List.of("neq"))
.build()))
.ruleName("ruleName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnArchiveRule.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.accessanalyzer.IArchiveRuleRef
IArchiveRuleRef.Jsii$Default, IArchiveRuleRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnArchiveRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnArchiveRule(software.amazon.jsii.JsiiObjectRef objRef) CfnArchiveRule(software.constructs.Construct scope, String id, CfnArchiveRuleProps props) Create a newAWS::AccessAnalyzer::ArchiveRule. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForArchiveRule(IArchiveRuleRef resource) The name of the analyzer for the archive rule.A reference to a ArchiveRule resource.The ARN of the archive rule.The time at which the archive rule was created.The time at which the archive rule was last updated.The criteria for the archive rule.The name of the archive rule.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnArchiveRule.renderProperties(Map<String, Object> props) voidsetAnalyzerName(String value) The name of the analyzer for the archive rule.voidThe criteria for the archive rule.voidsetFilter(IResolvable value) The criteria for the archive rule.voidsetRuleName(String value) The name of the archive rule.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
-
CfnArchiveRule
protected CfnArchiveRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnArchiveRule
protected CfnArchiveRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnArchiveRule
@Stability(Stable) public CfnArchiveRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnArchiveRuleProps props) Create a newAWS::AccessAnalyzer::ArchiveRule.- 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
-
arnForArchiveRule
@Stability(Stable) @NotNull public static String arnForArchiveRule(@NotNull IArchiveRuleRef resource) - Parameters:
resource- This parameter is required.
-
isCfnArchiveRule
Checks whether the given object is a CfnArchiveRule.- 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.
-
getArchiveRuleRef
A reference to a ArchiveRule resource.- Specified by:
getArchiveRuleRefin interfaceIArchiveRuleRef
-
getAttrArn
The ARN of the archive rule. -
getAttrCreatedAt
The time at which the archive rule was created. -
getAttrUpdatedAt
The time at which the archive rule was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getAnalyzerName
The name of the analyzer for the archive rule. -
setAnalyzerName
The name of the analyzer for the archive rule. -
getFilter
The criteria for the archive rule.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnArchiveRule.FilterItemsProperty> -
setFilter
The criteria for the archive rule. -
setFilter
The criteria for the archive rule. -
getRuleName
The name of the archive rule. -
setRuleName
The name of the archive rule.
-