Class CfnInsight
The AWS::SecurityHub::Insight
resource creates a custom insight in AWS Security Hub .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SecurityHub
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInsight : CfnResource, IInspectable
Syntax (vb)
Public Class CfnInsight
Inherits CfnResource
Implements IInspectable
Remarks
An insight is a collection of findings that relate to a security issue that requires attention or remediation. For more information, see Insights in AWS Security Hub in the AWS Security Hub User Guide .
Tags aren't supported for this resource.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-insight.html
CloudformationResource: AWS::SecurityHub::Insight
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.AWS.SecurityHub;
var cfnInsight = new CfnInsight(this, "MyCfnInsight", new CfnInsightProps {
Filters = new AwsSecurityFindingFiltersProperty {
AwsAccountId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
AwsAccountName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
CompanyName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComplianceAssociatedStandardsId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComplianceSecurityControlId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComplianceSecurityControlParametersName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComplianceSecurityControlParametersValue = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComplianceStatus = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Confidence = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
CreatedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
Criticality = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
Description = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingProviderFieldsConfidence = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
FindingProviderFieldsCriticality = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
FindingProviderFieldsRelatedFindingsId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingProviderFieldsRelatedFindingsProductArn = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingProviderFieldsSeverityLabel = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingProviderFieldsSeverityOriginal = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingProviderFieldsTypes = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FirstObservedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
GeneratorId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Id = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Keyword = new [] { new KeywordFilterProperty {
Value = "value"
} },
LastObservedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
MalwareName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
MalwarePath = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
MalwareState = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
MalwareType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NetworkDestinationDomain = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NetworkDestinationIpV4 = new [] { new IpFilterProperty {
Cidr = "cidr"
} },
NetworkDestinationIpV6 = new [] { new IpFilterProperty {
Cidr = "cidr"
} },
NetworkDestinationPort = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
NetworkDirection = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NetworkProtocol = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NetworkSourceDomain = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NetworkSourceIpV4 = new [] { new IpFilterProperty {
Cidr = "cidr"
} },
NetworkSourceIpV6 = new [] { new IpFilterProperty {
Cidr = "cidr"
} },
NetworkSourceMac = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NetworkSourcePort = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
NoteText = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
NoteUpdatedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
NoteUpdatedBy = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ProcessLaunchedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
ProcessName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ProcessParentPid = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
ProcessPath = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ProcessPid = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
ProcessTerminatedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
ProductArn = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ProductFields = new [] { new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
} },
ProductName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
RecommendationText = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
RecordState = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Region = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
RelatedFindingsId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
RelatedFindingsProductArn = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceApplicationArn = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceApplicationName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsEc2InstanceIamInstanceProfileArn = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsEc2InstanceImageId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsEc2InstanceIpV4Addresses = new [] { new IpFilterProperty {
Cidr = "cidr"
} },
ResourceAwsEc2InstanceIpV6Addresses = new [] { new IpFilterProperty {
Cidr = "cidr"
} },
ResourceAwsEc2InstanceKeyName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsEc2InstanceLaunchedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
ResourceAwsEc2InstanceSubnetId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsEc2InstanceType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsEc2InstanceVpcId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsIamAccessKeyCreatedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
ResourceAwsIamAccessKeyPrincipalName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsIamAccessKeyStatus = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsIamAccessKeyUserName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsIamUserUserName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsS3BucketOwnerId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceAwsS3BucketOwnerName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceContainerImageId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceContainerImageName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceContainerLaunchedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
ResourceContainerName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceDetailsOther = new [] { new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
} },
ResourceId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourcePartition = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceRegion = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceTags = new [] { new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
} },
ResourceType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Sample = new [] { new BooleanFilterProperty {
Value = false
} },
SeverityLabel = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
SeverityNormalized = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
SeverityProduct = new [] { new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
} },
SourceUrl = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ThreatIntelIndicatorCategory = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ThreatIntelIndicatorLastObservedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
ThreatIntelIndicatorSource = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ThreatIntelIndicatorSourceUrl = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ThreatIntelIndicatorType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ThreatIntelIndicatorValue = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Title = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Type = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
UpdatedAt = new [] { new DateFilterProperty {
DateRange = new DateRangeProperty {
Unit = "unit",
Value = 123
},
End = "end",
Start = "start"
} },
UserDefinedFields = new [] { new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
} },
VerificationState = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
VulnerabilitiesExploitAvailable = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
VulnerabilitiesFixAvailable = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
WorkflowState = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
WorkflowStatus = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} }
},
GroupByAttribute = "groupByAttribute",
Name = "name"
});
Synopsis
Constructors
CfnInsight(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnInsight(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnInsight(Construct, String, ICfnInsightProps) |
Properties
AttrInsightArn | The ARN of a Security Hub insight. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Filters | One or more attributes used to filter the findings included in the insight. |
GroupByAttribute | The grouping attribute for the insight's findings. |
Name | The name of a Security Hub insight. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnInsight(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnInsight(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnInsight(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnInsight(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnInsight(Construct, String, ICfnInsightProps)
public CfnInsight(Construct scope, string id, ICfnInsightProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnInsightProps
Resource properties.
Properties
AttrInsightArn
The ARN of a Security Hub insight.
public virtual string AttrInsightArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: InsightArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Filters
One or more attributes used to filter the findings included in the insight.
public virtual object Filters { get; set; }
Property Value
System.Object
GroupByAttribute
The grouping attribute for the insight's findings.
public virtual string GroupByAttribute { get; set; }
Property Value
System.String
Name
The name of a Security Hub insight.
public virtual string Name { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>