Class CfnCisScanConfiguration
The CIS scan configuration.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.InspectorV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCisScanConfiguration : CfnResource, IInspectable, ICisScanConfigurationRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnCisScanConfiguration Inherits CfnResource Implements IInspectable, ICisScanConfigurationRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
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.InspectorV2;
var oneTime;
var cfnCisScanConfiguration = new CfnCisScanConfiguration(this, "MyCfnCisScanConfiguration", new CfnCisScanConfigurationProps {
ScanName = "scanName",
Schedule = new ScheduleProperty {
Daily = new DailyScheduleProperty {
StartTime = new TimeProperty {
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
}
},
Monthly = new MonthlyScheduleProperty {
Day = "day",
StartTime = new TimeProperty {
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
}
},
OneTime = oneTime,
Weekly = new WeeklyScheduleProperty {
Days = new [] { "days" },
StartTime = new TimeProperty {
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
}
}
},
SecurityLevel = "securityLevel",
Targets = new CisTargetsProperty {
AccountIds = new [] { "accountIds" },
TargetResourceTags = new Dictionary<string, string[]> {
{ "targetResourceTagsKey", new [] { "targetResourceTags" } }
}
},
// the properties below are optional
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
});
Synopsis
Constructors
| CfnCisScanConfiguration(Construct, string, ICfnCisScanConfigurationProps) | Create a new |
Properties
| AttrArn | The CIS scan configuration's scan configuration ARN. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | The CIS scan configuration. |
| CisScanConfigurationRef | A reference to a CisScanConfiguration resource. |
| ScanName | The name of the CIS scan configuration. |
| Schedule | The CIS scan configuration's schedule. |
| SecurityLevel | The CIS scan configuration's CIS Benchmark level. |
| Tags | The CIS scan configuration's tags. |
| Targets | The CIS scan configuration's targets. |
Methods
| ArnForCisScanConfiguration(ICisScanConfigurationRef) | The CIS scan configuration. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnCisScanConfiguration(object) | Checks whether the given object is a CfnCisScanConfiguration. |
| RenderProperties(IDictionary<string, object>) | The CIS scan configuration. |
Constructors
CfnCisScanConfiguration(Construct, string, ICfnCisScanConfigurationProps)
Create a new AWS::InspectorV2::CisScanConfiguration.
public CfnCisScanConfiguration(Construct scope, string id, ICfnCisScanConfigurationProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnCisScanConfigurationProps
Resource properties.
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
Properties
AttrArn
The CIS scan configuration's scan configuration ARN.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
CfnProperties
The CIS scan configuration.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
CisScanConfigurationRef
A reference to a CisScanConfiguration resource.
public virtual ICisScanConfigurationReference CisScanConfigurationRef { get; }
Property Value
ICisScanConfigurationReference
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
ScanName
The name of the CIS scan configuration.
public virtual string ScanName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
Schedule
The CIS scan configuration's schedule.
public virtual object Schedule { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnCisScanConfiguration.IScheduleProperty
SecurityLevel
The CIS scan configuration's CIS Benchmark level.
public virtual string SecurityLevel { get; set; }
Property Value
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
Tags
The CIS scan configuration's tags.
public virtual IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
Targets
The CIS scan configuration's targets.
public virtual object Targets { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnCisScanConfiguration.ICisTargetsProperty
Methods
ArnForCisScanConfiguration(ICisScanConfigurationRef)
The CIS scan configuration.
public static string ArnForCisScanConfiguration(ICisScanConfigurationRef resource)
Parameters
- resource ICisScanConfigurationRef
Returns
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
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.InspectorV2;
var oneTime;
var cfnCisScanConfiguration = new CfnCisScanConfiguration(this, "MyCfnCisScanConfiguration", new CfnCisScanConfigurationProps {
ScanName = "scanName",
Schedule = new ScheduleProperty {
Daily = new DailyScheduleProperty {
StartTime = new TimeProperty {
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
}
},
Monthly = new MonthlyScheduleProperty {
Day = "day",
StartTime = new TimeProperty {
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
}
},
OneTime = oneTime,
Weekly = new WeeklyScheduleProperty {
Days = new [] { "days" },
StartTime = new TimeProperty {
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
}
}
},
SecurityLevel = "securityLevel",
Targets = new CisTargetsProperty {
AccountIds = new [] { "accountIds" },
TargetResourceTags = new Dictionary<string, string[]> {
{ "targetResourceTagsKey", new [] { "targetResourceTags" } }
}
},
// the properties below are optional
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
});
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.
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
IsCfnCisScanConfiguration(object)
Checks whether the given object is a CfnCisScanConfiguration.
public static bool IsCfnCisScanConfiguration(object x)
Parameters
- x object
Returns
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The CIS scan configuration.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::InspectorV2::CisScanConfiguration
ExampleMetadata: fixture=_generated