AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the UpdateAssessmentTarget operation. Updates the assessment target that is specified by the ARN of the assessment target.

If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Inspector.AmazonInspectorRequest
      Amazon.Inspector.Model.UpdateAssessmentTargetRequest

Namespace: Amazon.Inspector.Model
Assembly: AWSSDK.Inspector.dll
Version: 3.x.y.z

Syntax

C#
public class UpdateAssessmentTargetRequest : AmazonInspectorRequest
         IAmazonWebServiceRequest

The UpdateAssessmentTargetRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AssessmentTargetArn System.String

Gets and sets the property AssessmentTargetArn.

The ARN of the assessment target that you want to update.

Public Property AssessmentTargetName System.String

Gets and sets the property AssessmentTargetName.

The name of the assessment target that you want to update.

Public Property ResourceGroupArn System.String

Gets and sets the property ResourceGroupArn.

The ARN of the resource group that is used to specify the new resource group to associate with the assessment target.

Examples

Updates the assessment target that is specified by the ARN of the assessment target.

Update assessment target


var client = new AmazonInspectorClient();
var response = client.UpdateAssessmentTarget(new UpdateAssessmentTargetRequest 
{
    AssessmentTargetArn = "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX",
    AssessmentTargetName = "Example",
    ResourceGroupArn = "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt"
});


            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5