@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.752Z") @Stability(value=Stable) public class ManagedRule extends Resource implements IRule
Example:
// https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html
// https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html
ManagedRule.Builder.create(this, "AccessKeysRotated")
.identifier(ManagedRuleIdentifiers.ACCESS_KEYS_ROTATED)
.inputParameters(Map.of(
"maxAccessKeyAge", 60))
// default is 24 hours
.maximumExecutionFrequency(MaximumExecutionFrequency.TWELVE_HOURS)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedRule.Builder
A fluent builder for
ManagedRule. |
software.amazon.jsii.JsiiObject.InitializationModeIRule.Jsii$Default, IRule.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ManagedRule(software.constructs.Construct scope,
String id,
ManagedRuleProps props) |
protected |
ManagedRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ManagedRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IRule |
fromConfigRuleName(software.constructs.Construct scope,
String id,
String configRuleName)
Imports an existing rule.
|
String |
getConfigRuleArn()
The arn of the rule.
|
String |
getConfigRuleComplianceType()
The compliance status of the rule.
|
String |
getConfigRuleId()
The id of the rule.
|
String |
getConfigRuleName()
The name of the rule.
|
protected Boolean |
getIsCustomWithChanges() |
protected Boolean |
getIsManaged() |
protected RuleScope |
getRuleScope() |
Rule |
onComplianceChange(String id)
Defines an EventBridge event rule which triggers for rule compliance events.
|
Rule |
onComplianceChange(String id,
OnEventOptions options)
Defines an EventBridge event rule which triggers for rule compliance events.
|
Rule |
onEvent(String id)
Defines an EventBridge event rule which triggers for rule events.
|
Rule |
onEvent(String id,
OnEventOptions options)
Defines an EventBridge event rule which triggers for rule events.
|
Rule |
onReEvaluationStatus(String id)
Defines an EventBridge event rule which triggers for rule re-evaluation status events.
|
Rule |
onReEvaluationStatus(String id,
OnEventOptions options)
Defines an EventBridge event rule which triggers for rule re-evaluation status events.
|
protected void |
setIsCustomWithChanges(Boolean value) |
protected void |
setIsManaged(Boolean value) |
protected void |
setRuleScope(RuleScope value) |
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected ManagedRule(software.amazon.jsii.JsiiObjectRef objRef)
protected ManagedRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ManagedRule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ManagedRuleProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IRule fromConfigRuleName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String configRuleName)
scope - This parameter is required.id - This parameter is required.configRuleName - the name of the rule. This parameter is required.@Stability(value=Stable) @NotNull public Rule onComplianceChange(@NotNull String id, @Nullable OnEventOptions options)
onComplianceChange in interface IRuleid - This parameter is required.options - @Stability(value=Stable) @NotNull public Rule onComplianceChange(@NotNull String id)
onComplianceChange in interface IRuleid - This parameter is required.@Stability(value=Stable) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
Use
rule.addEventPattern(pattern) to specify a filter.
@Stability(value=Stable) @NotNull public Rule onEvent(@NotNull String id)
Use
rule.addEventPattern(pattern) to specify a filter.
@Stability(value=Stable) @NotNull public Rule onReEvaluationStatus(@NotNull String id, @Nullable OnEventOptions options)
onReEvaluationStatus in interface IRuleid - This parameter is required.options - @Stability(value=Stable) @NotNull public Rule onReEvaluationStatus(@NotNull String id)
onReEvaluationStatus in interface IRuleid - This parameter is required.@Stability(value=Stable) @NotNull public String getConfigRuleArn()
@Stability(value=Stable) @NotNull public String getConfigRuleComplianceType()
@Stability(value=Stable) @NotNull public String getConfigRuleId()
@Stability(value=Stable) @NotNull public String getConfigRuleName()
getConfigRuleName in interface IRule@Stability(value=Stable) @Nullable protected Boolean getIsCustomWithChanges()
@Stability(value=Stable)
protected void setIsCustomWithChanges(@Nullable
Boolean value)
@Stability(value=Stable) @Nullable protected Boolean getIsManaged()
@Stability(value=Stable)
protected void setIsManaged(@Nullable
Boolean value)
@Stability(value=Stable) @Nullable protected RuleScope getRuleScope()
@Stability(value=Stable)
protected void setRuleScope(@Nullable
RuleScope value)
Copyright © 2022. All rights reserved.