Class CfnAnalyzer
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.CfnAnalyzer
- All Implemented Interfaces:
IInspectable,IAnalyzerRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:11.142Z")
@Stability(Stable)
public class CfnAnalyzer
extends CfnResource
implements IInspectable, IAnalyzerRef, ITaggable
The
AWS::AccessAnalyzer::Analyzer resource specifies a new analyzer.
The analyzer is an object that represents the IAM Access Analyzer feature. An analyzer is required for Access Analyzer to become operational.
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.*;
CfnAnalyzer cfnAnalyzer = CfnAnalyzer.Builder.create(this, "MyCfnAnalyzer")
.type("type")
// the properties below are optional
.analyzerConfiguration(AnalyzerConfigurationProperty.builder()
.internalAccessConfiguration(InternalAccessConfigurationProperty.builder()
.internalAccessAnalysisRule(InternalAccessAnalysisRuleProperty.builder()
.inclusions(List.of(InternalAccessAnalysisRuleCriteriaProperty.builder()
.accountIds(List.of("accountIds"))
.resourceArns(List.of("resourceArns"))
.resourceTypes(List.of("resourceTypes"))
.build()))
.build())
.build())
.unusedAccessConfiguration(UnusedAccessConfigurationProperty.builder()
.analysisRule(AnalysisRuleProperty.builder()
.exclusions(List.of(AnalysisRuleCriteriaProperty.builder()
.accountIds(List.of("accountIds"))
.resourceTags(List.of(List.of(CfnTag.builder()
.key("key")
.value("value")
.build())))
.build()))
.build())
.unusedAccessAge(123)
.build())
.build())
.analyzerName("analyzerName")
.archiveRules(List.of(ArchiveRuleProperty.builder()
.filter(List.of(FilterProperty.builder()
.property("property")
// the properties below are optional
.contains(List.of("contains"))
.eq(List.of("eq"))
.exists(false)
.neq(List.of("neq"))
.build()))
.ruleName("ruleName")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe criteria for an analysis rule for an analyzer.static interfaceContains information about analysis rules for the analyzer.static interfaceContains information about the configuration of an analyzer for an AWS organization or account.static interfaceContains information about an archive rule.static final classA fluent builder forCfnAnalyzer.static interfaceThe criteria that defines the archive rule.static interfaceThe criteria for an analysis rule for an internal access analyzer.static interfaceContains information about analysis rules for the internal access analyzer.static interfaceSpecifies the configuration of an internal access analyzer for an AWS organization or account.static interfaceContains information about an unused access analyzer.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.IAnalyzerRef
IAnalyzerRef.Jsii$Default, IAnalyzerRef.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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAnalyzer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAnalyzer(software.amazon.jsii.JsiiObjectRef objRef) CfnAnalyzer(software.constructs.Construct scope, String id, CfnAnalyzerProps props) Create a newAWS::AccessAnalyzer::Analyzer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAnalyzer(IAnalyzerRef resource) Contains information about the configuration of an analyzer for an AWS organization or account.The name of the analyzer.A reference to a Analyzer resource.Specifies the archive rules to add for the analyzer.The ARN of the analyzer that was created.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to the analyzer.getType()The type represents the zone of trust for the analyzer.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAnalyzer.renderProperties(Map<String, Object> props) voidContains information about the configuration of an analyzer for an AWS organization or account.voidContains information about the configuration of an analyzer for an AWS organization or account.voidsetAnalyzerName(String value) The name of the analyzer.voidsetArchiveRules(List<Object> value) Specifies the archive rules to add for the analyzer.voidsetArchiveRules(IResolvable value) Specifies the archive rules to add for the analyzer.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to the analyzer.voidThe type represents the zone of trust for the analyzer.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnAnalyzer
protected CfnAnalyzer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAnalyzer
protected CfnAnalyzer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAnalyzer
@Stability(Stable) public CfnAnalyzer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAnalyzerProps props) Create a newAWS::AccessAnalyzer::Analyzer.- 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
-
arnForAnalyzer
- Parameters:
resource- This parameter is required.
-
isCfnAnalyzer
Checks whether the given object is a CfnAnalyzer.- 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.
-
getAnalyzerRef
A reference to a Analyzer resource.- Specified by:
getAnalyzerRefin interfaceIAnalyzerRef
-
getAttrArn
The ARN of the analyzer that was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getType
The type represents the zone of trust for the analyzer. -
setType
The type represents the zone of trust for the analyzer. -
getAnalyzerConfiguration
Contains information about the configuration of an analyzer for an AWS organization or account.Returns union: either
IResolvableorCfnAnalyzer.AnalyzerConfigurationProperty -
setAnalyzerConfiguration
Contains information about the configuration of an analyzer for an AWS organization or account. -
setAnalyzerConfiguration
@Stability(Stable) public void setAnalyzerConfiguration(@Nullable CfnAnalyzer.AnalyzerConfigurationProperty value) Contains information about the configuration of an analyzer for an AWS organization or account. -
getAnalyzerName
The name of the analyzer. -
setAnalyzerName
The name of the analyzer. -
getArchiveRules
Specifies the archive rules to add for the analyzer.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAnalyzer.ArchiveRuleProperty> -
setArchiveRules
Specifies the archive rules to add for the analyzer. -
setArchiveRules
Specifies the archive rules to add for the analyzer. -
getTagsRaw
An array of key-value pairs to apply to the analyzer. -
setTagsRaw
An array of key-value pairs to apply to the analyzer.
-