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 StartAssessmentRun operation. Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.

Inheritance Hierarchy

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

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

Syntax

C#
public class StartAssessmentRunRequest : AmazonInspectorRequest
         IAmazonWebServiceRequest

The StartAssessmentRunRequest type exposes the following members

Constructors

NameDescription
Public Method StartAssessmentRunRequest()

Properties

NameTypeDescription
Public Property AssessmentRunName System.String

Gets and sets the property AssessmentRunName.

You can specify the name for the assessment run. The name must be unique for the assessment template whose ARN is used to start the assessment run.

Public Property AssessmentTemplateArn System.String

Gets and sets the property AssessmentTemplateArn.

The ARN of the assessment template of the assessment run that you want to start.

Examples

Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.

Start assessment run


var client = new AmazonInspectorClient();
var response = client.StartAssessmentRun(new StartAssessmentRunRequest 
{
    AssessmentRunName = "examplerun",
    AssessmentTemplateArn = "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
});

string assessmentRunArn = response.AssessmentRunArn;

            

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