@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.691Z") @Stability(value=Stable) public class CfnConfigRule extends CfnResource implements IInspectable
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.config.*;
Object inputParameters;
CfnConfigRule cfnConfigRule = CfnConfigRule.Builder.create(this, "MyCfnConfigRule")
.source(SourceProperty.builder()
.owner("owner")
.sourceIdentifier("sourceIdentifier")
// the properties below are optional
.sourceDetails(List.of(SourceDetailProperty.builder()
.eventSource("eventSource")
.messageType("messageType")
// the properties below are optional
.maximumExecutionFrequency("maximumExecutionFrequency")
.build()))
.build())
// the properties below are optional
.configRuleName("configRuleName")
.description("description")
.inputParameters(inputParameters)
.maximumExecutionFrequency("maximumExecutionFrequency")
.scope(ScopeProperty.builder()
.complianceResourceId("complianceResourceId")
.complianceResourceTypes(List.of("complianceResourceTypes"))
.tagKey("tagKey")
.tagValue("tagValue")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnConfigRule.Builder
A fluent builder for
CfnConfigRule. |
static interface |
CfnConfigRule.ScopeProperty
Example:
|
static interface |
CfnConfigRule.SourceDetailProperty
Example:
|
static interface |
CfnConfigRule.SourceProperty
Example:
|
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 |
|---|---|
|
CfnConfigRule(software.constructs.Construct scope,
String id,
CfnConfigRuleProps props)
Create a new `AWS::Config::ConfigRule`.
|
protected |
CfnConfigRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConfigRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn() |
String |
getAttrComplianceType() |
String |
getAttrConfigRuleId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getConfigRuleName()
`AWS::Config::ConfigRule.ConfigRuleName`.
|
String |
getDescription()
`AWS::Config::ConfigRule.Description`.
|
Object |
getInputParameters()
`AWS::Config::ConfigRule.InputParameters`.
|
String |
getMaximumExecutionFrequency()
`AWS::Config::ConfigRule.MaximumExecutionFrequency`.
|
Object |
getScope()
`AWS::Config::ConfigRule.Scope`.
|
Object |
getSource()
`AWS::Config::ConfigRule.Source`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setConfigRuleName(String value)
`AWS::Config::ConfigRule.ConfigRuleName`.
|
void |
setDescription(String value)
`AWS::Config::ConfigRule.Description`.
|
void |
setInputParameters(Object value)
`AWS::Config::ConfigRule.InputParameters`.
|
void |
setMaximumExecutionFrequency(String value)
`AWS::Config::ConfigRule.MaximumExecutionFrequency`.
|
void |
setScope(CfnConfigRule.ScopeProperty value)
`AWS::Config::ConfigRule.Scope`.
|
void |
setScope(IResolvable value)
`AWS::Config::ConfigRule.Scope`.
|
void |
setSource(CfnConfigRule.SourceProperty value)
`AWS::Config::ConfigRule.Source`.
|
void |
setSource(IResolvable value)
`AWS::Config::ConfigRule.Source`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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 CfnConfigRule(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConfigRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnConfigRule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnConfigRuleProps 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 public String getAttrComplianceType()
@Stability(value=Stable) @NotNull public String getAttrConfigRuleId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getConfigRuleName()
@Stability(value=Stable)
public void setConfigRuleName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getInputParameters()
@Stability(value=Stable)
public void setInputParameters(@NotNull
Object value)
@Stability(value=Stable) @Nullable public String getMaximumExecutionFrequency()
@Stability(value=Stable)
public void setMaximumExecutionFrequency(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getScope()
@Stability(value=Stable)
public void setScope(@Nullable
CfnConfigRule.ScopeProperty value)
@Stability(value=Stable)
public void setScope(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public Object getSource()
@Stability(value=Stable)
public void setSource(@NotNull
CfnConfigRule.SourceProperty value)
@Stability(value=Stable)
public void setSource(@NotNull
IResolvable value)
Copyright © 2021. All rights reserved.