Class CfnAssessmentTarget
A CloudFormation AWS::Inspector::AssessmentTarget
.
Inherited Members
Namespace: Amazon.CDK.AWS.Inspector
Assembly: Amazon.CDK.AWS.Inspector.dll
Syntax (csharp)
public class CfnAssessmentTarget : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnAssessmentTarget
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Inspector::AssessmentTarget
resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run.
CloudformationResource: AWS::Inspector::AssessmentTarget
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.Inspector;
var cfnAssessmentTarget = new CfnAssessmentTarget(this, "MyCfnAssessmentTarget", new CfnAssessmentTargetProps {
AssessmentTargetName = "assessmentTargetName",
ResourceGroupArn = "resourceGroupArn"
});
Synopsis
Constructors
CfnAssessmentTarget(Construct, String, ICfnAssessmentTargetProps) | Create a new |
CfnAssessmentTarget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnAssessmentTarget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AssessmentTargetName | The name of the Amazon Inspector assessment target. |
AttrArn | The Amazon Resource Name (ARN) that specifies the assessment target that is created. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ResourceGroupArn | The ARN that specifies the resource group that is used to create the assessment target. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnAssessmentTarget(Construct, String, ICfnAssessmentTargetProps)
Create a new AWS::Inspector::AssessmentTarget
.
public CfnAssessmentTarget(Construct scope, string id, ICfnAssessmentTargetProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnAssessmentTargetProps
- resource properties.
CfnAssessmentTarget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnAssessmentTarget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnAssessmentTarget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnAssessmentTarget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AssessmentTargetName
The name of the Amazon Inspector assessment target.
public virtual string AssessmentTargetName { get; set; }
Property Value
System.String
Remarks
The name must be unique within the AWS account .
AttrArn
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
public virtual string AttrArn { get; }
Property Value
System.String
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
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ResourceGroupArn
The ARN that specifies the resource group that is used to create the assessment target.
public virtual string ResourceGroupArn { get; set; }
Property Value
System.String
Remarks
If resourceGroupArn
is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
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>