Class CfnAssessmentTarget
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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Inspector
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAssessmentTarget : CfnResource, IInspectable
Syntax (vb)
Public Class CfnAssessmentTarget
Inherits CfnResource
Implements IInspectable
Remarks
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(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 |
CfnAssessmentTarget(Construct, String, ICfnAssessmentTargetProps) |
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(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
CfnAssessmentTarget(Construct, String, ICfnAssessmentTargetProps)
public CfnAssessmentTarget(Construct scope, string id, ICfnAssessmentTargetProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnAssessmentTargetProps
Resource properties.
Properties
AssessmentTargetName
The name of the Amazon Inspector assessment target.
public virtual string AssessmentTargetName { get; set; }
Property Value
System.String
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
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>