Class CfnAutomationRuleV2PropsMixin
Creates a V2 automation rule.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.SecurityHub
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnAutomationRuleV2PropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnAutomationRuleV2PropsMixin Inherits Mixin Implements IMixin
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecurityHub;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnAutomationRuleV2PropsMixin = new CfnAutomationRuleV2PropsMixin(new CfnAutomationRuleV2MixinProps {
Actions = new [] { new AutomationRulesActionV2Property {
ExternalIntegrationConfiguration = new ExternalIntegrationConfigurationProperty {
ConnectorArn = "connectorArn"
},
FindingFieldsUpdate = new AutomationRulesFindingFieldsUpdateV2Property {
Comment = "comment",
SeverityId = 123,
StatusId = 123
},
Type = "type"
} },
Criteria = new CriteriaProperty {
OcsfFindingCriteria = new OcsfFindingFiltersProperty {
CompositeFilters = new [] { new CompositeFilterProperty {
BooleanFilters = new [] { new OcsfBooleanFilterProperty {
FieldName = "fieldName",
Filter = new BooleanFilterProperty {
Value = false
}
} },
DateFilters = new [] { new OcsfDateFilterProperty {
FieldName = "fieldName",
Filter = new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
}
} },
MapFilters = new [] { new OcsfMapFilterProperty {
FieldName = "fieldName",
Filter = new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
}
} },
NumberFilters = new [] { new OcsfNumberFilterProperty {
FieldName = "fieldName",
Filter = new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
}
} },
Operator = "operator",
StringFilters = new [] { new OcsfStringFilterProperty {
FieldName = "fieldName",
Filter = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
}
} }
} },
CompositeOperator = "compositeOperator"
}
},
Description = "description",
RuleName = "ruleName",
RuleOrder = 123,
RuleStatus = "ruleStatus",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Synopsis
Constructors
| CfnAutomationRuleV2PropsMixin(ICfnAutomationRuleV2MixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | Creates a V2 automation rule. |
| Props | Creates a V2 automation rule. |
| Strategy | Creates a V2 automation rule. |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnAutomationRuleV2PropsMixin(ICfnAutomationRuleV2MixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::SecurityHub::AutomationRuleV2.
public CfnAutomationRuleV2PropsMixin(ICfnAutomationRuleV2MixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnAutomationRuleV2MixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
Creates a V2 automation rule.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecurityHub;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnAutomationRuleV2PropsMixin = new CfnAutomationRuleV2PropsMixin(new CfnAutomationRuleV2MixinProps {
Actions = new [] { new AutomationRulesActionV2Property {
ExternalIntegrationConfiguration = new ExternalIntegrationConfigurationProperty {
ConnectorArn = "connectorArn"
},
FindingFieldsUpdate = new AutomationRulesFindingFieldsUpdateV2Property {
Comment = "comment",
SeverityId = 123,
StatusId = 123
},
Type = "type"
} },
Criteria = new CriteriaProperty {
OcsfFindingCriteria = new OcsfFindingFiltersProperty {
CompositeFilters = new [] { new CompositeFilterProperty {
BooleanFilters = new [] { new OcsfBooleanFilterProperty {
FieldName = "fieldName",
Filter = new BooleanFilterProperty {
Value = false
}
} },
DateFilters = new [] { new OcsfDateFilterProperty {
FieldName = "fieldName",
Filter = new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
}
} },
MapFilters = new [] { new OcsfMapFilterProperty {
FieldName = "fieldName",
Filter = new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
}
} },
NumberFilters = new [] { new OcsfNumberFilterProperty {
FieldName = "fieldName",
Filter = new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
}
} },
Operator = "operator",
StringFilters = new [] { new OcsfStringFilterProperty {
FieldName = "fieldName",
Filter = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
}
} }
} },
CompositeOperator = "compositeOperator"
}
},
Description = "description",
RuleName = "ruleName",
RuleOrder = 123,
RuleStatus = "ruleStatus",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Props
Creates a V2 automation rule.
protected virtual ICfnAutomationRuleV2MixinProps Props { get; }
Property Value
ICfnAutomationRuleV2MixinProps
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecurityHub;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnAutomationRuleV2PropsMixin = new CfnAutomationRuleV2PropsMixin(new CfnAutomationRuleV2MixinProps {
Actions = new [] { new AutomationRulesActionV2Property {
ExternalIntegrationConfiguration = new ExternalIntegrationConfigurationProperty {
ConnectorArn = "connectorArn"
},
FindingFieldsUpdate = new AutomationRulesFindingFieldsUpdateV2Property {
Comment = "comment",
SeverityId = 123,
StatusId = 123
},
Type = "type"
} },
Criteria = new CriteriaProperty {
OcsfFindingCriteria = new OcsfFindingFiltersProperty {
CompositeFilters = new [] { new CompositeFilterProperty {
BooleanFilters = new [] { new OcsfBooleanFilterProperty {
FieldName = "fieldName",
Filter = new BooleanFilterProperty {
Value = false
}
} },
DateFilters = new [] { new OcsfDateFilterProperty {
FieldName = "fieldName",
Filter = new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
}
} },
MapFilters = new [] { new OcsfMapFilterProperty {
FieldName = "fieldName",
Filter = new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
}
} },
NumberFilters = new [] { new OcsfNumberFilterProperty {
FieldName = "fieldName",
Filter = new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
}
} },
Operator = "operator",
StringFilters = new [] { new OcsfStringFilterProperty {
FieldName = "fieldName",
Filter = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
}
} }
} },
CompositeOperator = "compositeOperator"
}
},
Description = "description",
RuleName = "ruleName",
RuleOrder = 123,
RuleStatus = "ruleStatus",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Strategy
Creates a V2 automation rule.
protected virtual IMergeStrategy Strategy { get; }
Property Value
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SecurityHub;
using Amazon.CDK;
IMergeStrategy mergeStrategy;
var cfnAutomationRuleV2PropsMixin = new CfnAutomationRuleV2PropsMixin(new CfnAutomationRuleV2MixinProps {
Actions = new [] { new AutomationRulesActionV2Property {
ExternalIntegrationConfiguration = new ExternalIntegrationConfigurationProperty {
ConnectorArn = "connectorArn"
},
FindingFieldsUpdate = new AutomationRulesFindingFieldsUpdateV2Property {
Comment = "comment",
SeverityId = 123,
StatusId = 123
},
Type = "type"
} },
Criteria = new CriteriaProperty {
OcsfFindingCriteria = new OcsfFindingFiltersProperty {
CompositeFilters = new [] { new CompositeFilterProperty {
BooleanFilters = new [] { new OcsfBooleanFilterProperty {
FieldName = "fieldName",
Filter = new BooleanFilterProperty {
Value = false
}
} },
DateFilters = new [] { new OcsfDateFilterProperty {
FieldName = "fieldName",
Filter = new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
}
} },
MapFilters = new [] { new OcsfMapFilterProperty {
FieldName = "fieldName",
Filter = new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
}
} },
NumberFilters = new [] { new OcsfNumberFilterProperty {
FieldName = "fieldName",
Filter = new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
}
} },
Operator = "operator",
StringFilters = new [] { new OcsfStringFilterProperty {
FieldName = "fieldName",
Filter = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
}
} }
} },
CompositeOperator = "compositeOperator"
}
},
Description = "description",
RuleName = "ruleName",
RuleOrder = 123,
RuleStatus = "ruleStatus",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
}, new CfnPropertyMixinOptions {
Strategy = mergeStrategy
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override void ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Overrides
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
CloudformationResource: AWS::SecurityHub::AutomationRuleV2
Mixin: true
ExampleMetadata: fixture=_generated