@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.965Z") @Stability(value=Stable) public class CfnAnalyzer extends CfnResource implements IInspectable
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
.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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnAnalyzer.ArchiveRuleProperty
The criteria for an archive rule.
|
static class |
CfnAnalyzer.Builder
A fluent builder for
CfnAnalyzer. |
static interface |
CfnAnalyzer.FilterProperty
The criteria that defines the rule.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAnalyzer(software.constructs.Construct scope,
String id,
CfnAnalyzerProps props)
Create a new `AWS::AccessAnalyzer::Analyzer`.
|
protected |
CfnAnalyzer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAnalyzer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnalyzerName()
The name of the analyzer.
|
Object |
getArchiveRules()
Specifies the archive rules to add for the analyzer.
|
String |
getAttrArn() |
protected Map<String,Object> |
getCfnProperties() |
TagManager |
getTags()
The tags to apply to the analyzer.
|
String |
getType()
The type represents the zone of trust for the analyzer.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAnalyzerName(String value)
The name of the analyzer.
|
void |
setArchiveRules(IResolvable value)
Specifies the archive rules to add for the analyzer.
|
void |
setArchiveRules(List<Object> value)
Specifies the archive rules to add for the analyzer.
|
void |
setType(String value)
The type represents the zone of trust for the analyzer.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAnalyzer(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAnalyzer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAnalyzer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAnalyzerProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getType()
Allowed Values : ACCOUNT | ORGANIZATION
@Stability(value=Stable)
public void setType(@NotNull
String value)
Allowed Values : ACCOUNT | ORGANIZATION
@Stability(value=Stable) @Nullable public String getAnalyzerName()
@Stability(value=Stable)
public void setAnalyzerName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getArchiveRules()
@Stability(value=Stable)
public void setArchiveRules(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.