/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the inspector-2016-02-16.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Inspector.Model; using Amazon.Inspector.Model.Internal.MarshallTransformations; using Amazon.Inspector.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Inspector { /// /// Implementation for accessing Inspector /// /// Amazon Inspector /// /// Amazon Inspector enables you to analyze the behavior of your AWS resources and to /// identify potential security issues. For more information, see /// Amazon Inspector User Guide. /// /// public partial class AmazonInspectorClient : AmazonServiceClient, IAmazonInspector { private static IServiceMetadata serviceMetadata = new AmazonInspectorMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IInspectorPaginatorFactory _paginators; /// /// Paginators for the service /// public IInspectorPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new InspectorPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonInspectorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonInspectorClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonInspectorConfig()) { } /// /// Constructs AmazonInspectorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonInspectorClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonInspectorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonInspectorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonInspectorClient Configuration Object public AmazonInspectorClient(AmazonInspectorConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonInspectorClient with AWS Credentials /// /// AWS Credentials public AmazonInspectorClient(AWSCredentials credentials) : this(credentials, new AmazonInspectorConfig()) { } /// /// Constructs AmazonInspectorClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonInspectorClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonInspectorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonInspectorClient with AWS Credentials and an /// AmazonInspectorClient Configuration object. /// /// AWS Credentials /// The AmazonInspectorClient Configuration Object public AmazonInspectorClient(AWSCredentials credentials, AmazonInspectorConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonInspectorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonInspectorClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonInspectorConfig()) { } /// /// Constructs AmazonInspectorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonInspectorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonInspectorConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonInspectorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonInspectorClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonInspectorClient Configuration Object public AmazonInspectorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonInspectorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonInspectorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonInspectorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonInspectorConfig()) { } /// /// Constructs AmazonInspectorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonInspectorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonInspectorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonInspectorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonInspectorClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonInspectorClient Configuration Object public AmazonInspectorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonInspectorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonInspectorEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddAttributesToFindings /// /// Assigns attributes (key and value pairs) to the findings that are specified by the /// ARNs of the findings. /// /// Container for the necessary parameters to execute the AddAttributesToFindings service method. /// /// The response from the AddAttributesToFindings service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for AddAttributesToFindings Operation public virtual AddAttributesToFindingsResponse AddAttributesToFindings(AddAttributesToFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddAttributesToFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddAttributesToFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AddAttributesToFindings operation. /// /// /// Container for the necessary parameters to execute the AddAttributesToFindings operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddAttributesToFindings /// operation. /// REST API Reference for AddAttributesToFindings Operation public virtual IAsyncResult BeginAddAttributesToFindings(AddAttributesToFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AddAttributesToFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddAttributesToFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AddAttributesToFindings operation. /// /// /// The IAsyncResult returned by the call to BeginAddAttributesToFindings. /// /// Returns a AddAttributesToFindingsResult from Inspector. /// REST API Reference for AddAttributesToFindings Operation public virtual AddAttributesToFindingsResponse EndAddAttributesToFindings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateAssessmentTarget /// /// Creates a new assessment target using the ARN of the resource group that is generated /// by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances /// in the current AWS account and region are included in the assessment target. If the /// service-linked /// role isn’t already registered, this action also creates and registers a service-linked /// role to grant Amazon Inspector access to AWS Services needed to perform security assessments. /// You can create up to 50 assessment targets per AWS account. You can run up to 500 /// concurrent agents per AWS account. For more information, see /// Amazon Inspector Assessment Targets. /// /// Container for the necessary parameters to execute the CreateAssessmentTarget service method. /// /// The response from the CreateAssessmentTarget service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 /// instances during the assessment run. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error code describes the limit exceeded. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for CreateAssessmentTarget Operation public virtual CreateAssessmentTargetResponse CreateAssessmentTarget(CreateAssessmentTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAssessmentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAssessmentTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateAssessmentTarget operation. /// /// /// Container for the necessary parameters to execute the CreateAssessmentTarget operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAssessmentTarget /// operation. /// REST API Reference for CreateAssessmentTarget Operation public virtual IAsyncResult BeginCreateAssessmentTarget(CreateAssessmentTargetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAssessmentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAssessmentTargetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateAssessmentTarget operation. /// /// /// The IAsyncResult returned by the call to BeginCreateAssessmentTarget. /// /// Returns a CreateAssessmentTargetResult from Inspector. /// REST API Reference for CreateAssessmentTarget Operation public virtual CreateAssessmentTargetResponse EndCreateAssessmentTarget(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateAssessmentTemplate /// /// Creates an assessment template for the assessment target that is specified by the /// ARN of the assessment target. If the service-linked /// role isn’t already registered, this action also creates and registers a service-linked /// role to grant Amazon Inspector access to AWS Services needed to perform security assessments. /// /// Container for the necessary parameters to execute the CreateAssessmentTemplate service method. /// /// The response from the CreateAssessmentTemplate service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error code describes the limit exceeded. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for CreateAssessmentTemplate Operation public virtual CreateAssessmentTemplateResponse CreateAssessmentTemplate(CreateAssessmentTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAssessmentTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAssessmentTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateAssessmentTemplate operation. /// /// /// Container for the necessary parameters to execute the CreateAssessmentTemplate operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAssessmentTemplate /// operation. /// REST API Reference for CreateAssessmentTemplate Operation public virtual IAsyncResult BeginCreateAssessmentTemplate(CreateAssessmentTemplateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAssessmentTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAssessmentTemplateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateAssessmentTemplate operation. /// /// /// The IAsyncResult returned by the call to BeginCreateAssessmentTemplate. /// /// Returns a CreateAssessmentTemplateResult from Inspector. /// REST API Reference for CreateAssessmentTemplate Operation public virtual CreateAssessmentTemplateResponse EndCreateAssessmentTemplate(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateExclusionsPreview /// /// Starts the generation of an exclusions preview for the specified assessment template. /// The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector /// can detect before it runs the assessment. /// /// Container for the necessary parameters to execute the CreateExclusionsPreview service method. /// /// The response from the CreateExclusionsPreview service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The request is rejected. The specified assessment template is currently generating /// an exclusions preview. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for CreateExclusionsPreview Operation public virtual CreateExclusionsPreviewResponse CreateExclusionsPreview(CreateExclusionsPreviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateExclusionsPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateExclusionsPreviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateExclusionsPreview operation. /// /// /// Container for the necessary parameters to execute the CreateExclusionsPreview operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateExclusionsPreview /// operation. /// REST API Reference for CreateExclusionsPreview Operation public virtual IAsyncResult BeginCreateExclusionsPreview(CreateExclusionsPreviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateExclusionsPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateExclusionsPreviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateExclusionsPreview operation. /// /// /// The IAsyncResult returned by the call to BeginCreateExclusionsPreview. /// /// Returns a CreateExclusionsPreviewResult from Inspector. /// REST API Reference for CreateExclusionsPreview Operation public virtual CreateExclusionsPreviewResponse EndCreateExclusionsPreview(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateResourceGroup /// /// Creates a resource group using the specified set of tags (key and value pairs) that /// are used to select the EC2 instances to be included in an Amazon Inspector assessment /// target. The created resource group is then used to create an Amazon Inspector assessment /// target. For more information, see CreateAssessmentTarget. /// /// Container for the necessary parameters to execute the CreateResourceGroup service method. /// /// The response from the CreateResourceGroup service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error code describes the limit exceeded. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for CreateResourceGroup Operation public virtual CreateResourceGroupResponse CreateResourceGroup(CreateResourceGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateResourceGroup operation. /// /// /// Container for the necessary parameters to execute the CreateResourceGroup operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateResourceGroup /// operation. /// REST API Reference for CreateResourceGroup Operation public virtual IAsyncResult BeginCreateResourceGroup(CreateResourceGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateResourceGroup operation. /// /// /// The IAsyncResult returned by the call to BeginCreateResourceGroup. /// /// Returns a CreateResourceGroupResult from Inspector. /// REST API Reference for CreateResourceGroup Operation public virtual CreateResourceGroupResponse EndCreateResourceGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAssessmentRun /// /// Deletes the assessment run that is specified by the ARN of the assessment run. /// /// Container for the necessary parameters to execute the DeleteAssessmentRun service method. /// /// The response from the DeleteAssessmentRun service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// You cannot perform a specified action if an assessment run is currently in progress. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for DeleteAssessmentRun Operation public virtual DeleteAssessmentRunResponse DeleteAssessmentRun(DeleteAssessmentRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssessmentRunRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssessmentRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAssessmentRun operation. /// /// /// Container for the necessary parameters to execute the DeleteAssessmentRun operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAssessmentRun /// operation. /// REST API Reference for DeleteAssessmentRun Operation public virtual IAsyncResult BeginDeleteAssessmentRun(DeleteAssessmentRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssessmentRunRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssessmentRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAssessmentRun operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAssessmentRun. /// /// Returns a DeleteAssessmentRunResult from Inspector. /// REST API Reference for DeleteAssessmentRun Operation public virtual DeleteAssessmentRunResponse EndDeleteAssessmentRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAssessmentTarget /// /// Deletes the assessment target that is specified by the ARN of the assessment target. /// /// Container for the necessary parameters to execute the DeleteAssessmentTarget service method. /// /// The response from the DeleteAssessmentTarget service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// You cannot perform a specified action if an assessment run is currently in progress. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for DeleteAssessmentTarget Operation public virtual DeleteAssessmentTargetResponse DeleteAssessmentTarget(DeleteAssessmentTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssessmentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssessmentTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAssessmentTarget operation. /// /// /// Container for the necessary parameters to execute the DeleteAssessmentTarget operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAssessmentTarget /// operation. /// REST API Reference for DeleteAssessmentTarget Operation public virtual IAsyncResult BeginDeleteAssessmentTarget(DeleteAssessmentTargetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssessmentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssessmentTargetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAssessmentTarget operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAssessmentTarget. /// /// Returns a DeleteAssessmentTargetResult from Inspector. /// REST API Reference for DeleteAssessmentTarget Operation public virtual DeleteAssessmentTargetResponse EndDeleteAssessmentTarget(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAssessmentTemplate /// /// Deletes the assessment template that is specified by the ARN of the assessment template. /// /// Container for the necessary parameters to execute the DeleteAssessmentTemplate service method. /// /// The response from the DeleteAssessmentTemplate service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// You cannot perform a specified action if an assessment run is currently in progress. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for DeleteAssessmentTemplate Operation public virtual DeleteAssessmentTemplateResponse DeleteAssessmentTemplate(DeleteAssessmentTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssessmentTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssessmentTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAssessmentTemplate operation. /// /// /// Container for the necessary parameters to execute the DeleteAssessmentTemplate operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAssessmentTemplate /// operation. /// REST API Reference for DeleteAssessmentTemplate Operation public virtual IAsyncResult BeginDeleteAssessmentTemplate(DeleteAssessmentTemplateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssessmentTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssessmentTemplateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAssessmentTemplate operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAssessmentTemplate. /// /// Returns a DeleteAssessmentTemplateResult from Inspector. /// REST API Reference for DeleteAssessmentTemplate Operation public virtual DeleteAssessmentTemplateResponse EndDeleteAssessmentTemplate(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeAssessmentRuns /// /// Describes the assessment runs that are specified by the ARNs of the assessment runs. /// /// Container for the necessary parameters to execute the DescribeAssessmentRuns service method. /// /// The response from the DescribeAssessmentRuns service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeAssessmentRuns Operation public virtual DescribeAssessmentRunsResponse DescribeAssessmentRuns(DescribeAssessmentRunsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssessmentRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssessmentRunsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeAssessmentRuns operation. /// /// /// Container for the necessary parameters to execute the DescribeAssessmentRuns operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAssessmentRuns /// operation. /// REST API Reference for DescribeAssessmentRuns Operation public virtual IAsyncResult BeginDescribeAssessmentRuns(DescribeAssessmentRunsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssessmentRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssessmentRunsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeAssessmentRuns operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeAssessmentRuns. /// /// Returns a DescribeAssessmentRunsResult from Inspector. /// REST API Reference for DescribeAssessmentRuns Operation public virtual DescribeAssessmentRunsResponse EndDescribeAssessmentRuns(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeAssessmentTargets /// /// Describes the assessment targets that are specified by the ARNs of the assessment /// targets. /// /// Container for the necessary parameters to execute the DescribeAssessmentTargets service method. /// /// The response from the DescribeAssessmentTargets service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeAssessmentTargets Operation public virtual DescribeAssessmentTargetsResponse DescribeAssessmentTargets(DescribeAssessmentTargetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeAssessmentTargets operation. /// /// /// Container for the necessary parameters to execute the DescribeAssessmentTargets operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAssessmentTargets /// operation. /// REST API Reference for DescribeAssessmentTargets Operation public virtual IAsyncResult BeginDescribeAssessmentTargets(DescribeAssessmentTargetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeAssessmentTargets operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeAssessmentTargets. /// /// Returns a DescribeAssessmentTargetsResult from Inspector. /// REST API Reference for DescribeAssessmentTargets Operation public virtual DescribeAssessmentTargetsResponse EndDescribeAssessmentTargets(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeAssessmentTemplates /// /// Describes the assessment templates that are specified by the ARNs of the assessment /// templates. /// /// Container for the necessary parameters to execute the DescribeAssessmentTemplates service method. /// /// The response from the DescribeAssessmentTemplates service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeAssessmentTemplates Operation public virtual DescribeAssessmentTemplatesResponse DescribeAssessmentTemplates(DescribeAssessmentTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssessmentTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssessmentTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeAssessmentTemplates operation. /// /// /// Container for the necessary parameters to execute the DescribeAssessmentTemplates operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAssessmentTemplates /// operation. /// REST API Reference for DescribeAssessmentTemplates Operation public virtual IAsyncResult BeginDescribeAssessmentTemplates(DescribeAssessmentTemplatesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssessmentTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssessmentTemplatesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeAssessmentTemplates operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeAssessmentTemplates. /// /// Returns a DescribeAssessmentTemplatesResult from Inspector. /// REST API Reference for DescribeAssessmentTemplates Operation public virtual DescribeAssessmentTemplatesResponse EndDescribeAssessmentTemplates(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeCrossAccountAccessRole /// /// Describes the IAM role that enables Amazon Inspector to access your AWS account. /// /// Container for the necessary parameters to execute the DescribeCrossAccountAccessRole service method. /// /// The response from the DescribeCrossAccountAccessRole service method, as returned by Inspector. /// /// Internal server error. /// /// REST API Reference for DescribeCrossAccountAccessRole Operation public virtual DescribeCrossAccountAccessRoleResponse DescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeCrossAccountAccessRole operation. /// /// /// Container for the necessary parameters to execute the DescribeCrossAccountAccessRole operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCrossAccountAccessRole /// operation. /// REST API Reference for DescribeCrossAccountAccessRole Operation public virtual IAsyncResult BeginDescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeCrossAccountAccessRole operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeCrossAccountAccessRole. /// /// Returns a DescribeCrossAccountAccessRoleResult from Inspector. /// REST API Reference for DescribeCrossAccountAccessRole Operation public virtual DescribeCrossAccountAccessRoleResponse EndDescribeCrossAccountAccessRole(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeExclusions /// /// Describes the exclusions that are specified by the exclusions' ARNs. /// /// Container for the necessary parameters to execute the DescribeExclusions service method. /// /// The response from the DescribeExclusions service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeExclusions Operation public virtual DescribeExclusionsResponse DescribeExclusions(DescribeExclusionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExclusionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExclusionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeExclusions operation. /// /// /// Container for the necessary parameters to execute the DescribeExclusions operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeExclusions /// operation. /// REST API Reference for DescribeExclusions Operation public virtual IAsyncResult BeginDescribeExclusions(DescribeExclusionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeExclusionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeExclusionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeExclusions operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeExclusions. /// /// Returns a DescribeExclusionsResult from Inspector. /// REST API Reference for DescribeExclusions Operation public virtual DescribeExclusionsResponse EndDescribeExclusions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeFindings /// /// Describes the findings that are specified by the ARNs of the findings. /// /// Container for the necessary parameters to execute the DescribeFindings service method. /// /// The response from the DescribeFindings service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeFindings Operation public virtual DescribeFindingsResponse DescribeFindings(DescribeFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeFindings operation. /// /// /// Container for the necessary parameters to execute the DescribeFindings operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeFindings /// operation. /// REST API Reference for DescribeFindings Operation public virtual IAsyncResult BeginDescribeFindings(DescribeFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeFindings operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeFindings. /// /// Returns a DescribeFindingsResult from Inspector. /// REST API Reference for DescribeFindings Operation public virtual DescribeFindingsResponse EndDescribeFindings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeResourceGroups /// /// Describes the resource groups that are specified by the ARNs of the resource groups. /// /// Container for the necessary parameters to execute the DescribeResourceGroups service method. /// /// The response from the DescribeResourceGroups service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeResourceGroups Operation public virtual DescribeResourceGroupsResponse DescribeResourceGroups(DescribeResourceGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourceGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourceGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeResourceGroups operation. /// /// /// Container for the necessary parameters to execute the DescribeResourceGroups operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeResourceGroups /// operation. /// REST API Reference for DescribeResourceGroups Operation public virtual IAsyncResult BeginDescribeResourceGroups(DescribeResourceGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeResourceGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeResourceGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeResourceGroups operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeResourceGroups. /// /// Returns a DescribeResourceGroupsResult from Inspector. /// REST API Reference for DescribeResourceGroups Operation public virtual DescribeResourceGroupsResponse EndDescribeResourceGroups(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeRulesPackages /// /// Describes the rules packages that are specified by the ARNs of the rules packages. /// /// Container for the necessary parameters to execute the DescribeRulesPackages service method. /// /// The response from the DescribeRulesPackages service method, as returned by Inspector. /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for DescribeRulesPackages Operation public virtual DescribeRulesPackagesResponse DescribeRulesPackages(DescribeRulesPackagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRulesPackages operation. /// /// /// Container for the necessary parameters to execute the DescribeRulesPackages operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRulesPackages /// operation. /// REST API Reference for DescribeRulesPackages Operation public virtual IAsyncResult BeginDescribeRulesPackages(DescribeRulesPackagesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRulesPackages operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRulesPackages. /// /// Returns a DescribeRulesPackagesResult from Inspector. /// REST API Reference for DescribeRulesPackages Operation public virtual DescribeRulesPackagesResponse EndDescribeRulesPackages(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAssessmentReport /// /// Produces an assessment report that includes detailed and comprehensive results of /// a specified assessment run. /// /// Container for the necessary parameters to execute the GetAssessmentReport service method. /// /// The response from the GetAssessmentReport service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// You cannot perform a specified action if an assessment run is currently in progress. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// /// Used by the GetAssessmentReport API. The request was rejected because you tried /// to generate a report for an assessment run that existed before reporting was supported /// in Amazon Inspector. You can only generate reports for assessment runs that took place /// or will take place after generating reports in Amazon Inspector became available. /// /// REST API Reference for GetAssessmentReport Operation public virtual GetAssessmentReportResponse GetAssessmentReport(GetAssessmentReportRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetAssessmentReport operation. /// /// /// Container for the necessary parameters to execute the GetAssessmentReport operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAssessmentReport /// operation. /// REST API Reference for GetAssessmentReport Operation public virtual IAsyncResult BeginGetAssessmentReport(GetAssessmentReportRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAssessmentReport operation. /// /// /// The IAsyncResult returned by the call to BeginGetAssessmentReport. /// /// Returns a GetAssessmentReportResult from Inspector. /// REST API Reference for GetAssessmentReport Operation public virtual GetAssessmentReportResponse EndGetAssessmentReport(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetExclusionsPreview /// /// Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by /// the preview token. You can obtain the preview token by running the CreateExclusionsPreview /// API. /// /// Container for the necessary parameters to execute the GetExclusionsPreview service method. /// /// The response from the GetExclusionsPreview service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for GetExclusionsPreview Operation public virtual GetExclusionsPreviewResponse GetExclusionsPreview(GetExclusionsPreviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetExclusionsPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = GetExclusionsPreviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetExclusionsPreview operation. /// /// /// Container for the necessary parameters to execute the GetExclusionsPreview operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetExclusionsPreview /// operation. /// REST API Reference for GetExclusionsPreview Operation public virtual IAsyncResult BeginGetExclusionsPreview(GetExclusionsPreviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetExclusionsPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = GetExclusionsPreviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetExclusionsPreview operation. /// /// /// The IAsyncResult returned by the call to BeginGetExclusionsPreview. /// /// Returns a GetExclusionsPreviewResult from Inspector. /// REST API Reference for GetExclusionsPreview Operation public virtual GetExclusionsPreviewResponse EndGetExclusionsPreview(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetTelemetryMetadata /// /// Information about the data that is collected for the specified assessment run. /// /// Container for the necessary parameters to execute the GetTelemetryMetadata service method. /// /// The response from the GetTelemetryMetadata service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for GetTelemetryMetadata Operation public virtual GetTelemetryMetadataResponse GetTelemetryMetadata(GetTelemetryMetadataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTelemetryMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTelemetryMetadataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetTelemetryMetadata operation. /// /// /// Container for the necessary parameters to execute the GetTelemetryMetadata operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTelemetryMetadata /// operation. /// REST API Reference for GetTelemetryMetadata Operation public virtual IAsyncResult BeginGetTelemetryMetadata(GetTelemetryMetadataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTelemetryMetadataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTelemetryMetadataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetTelemetryMetadata operation. /// /// /// The IAsyncResult returned by the call to BeginGetTelemetryMetadata. /// /// Returns a GetTelemetryMetadataResult from Inspector. /// REST API Reference for GetTelemetryMetadata Operation public virtual GetTelemetryMetadataResponse EndGetTelemetryMetadata(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAssessmentRunAgents /// /// Lists the agents of the assessment runs that are specified by the ARNs of the assessment /// runs. /// /// Container for the necessary parameters to execute the ListAssessmentRunAgents service method. /// /// The response from the ListAssessmentRunAgents service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListAssessmentRunAgents Operation public virtual ListAssessmentRunAgentsResponse ListAssessmentRunAgents(ListAssessmentRunAgentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentRunAgentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentRunAgentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAssessmentRunAgents operation. /// /// /// Container for the necessary parameters to execute the ListAssessmentRunAgents operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAssessmentRunAgents /// operation. /// REST API Reference for ListAssessmentRunAgents Operation public virtual IAsyncResult BeginListAssessmentRunAgents(ListAssessmentRunAgentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentRunAgentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentRunAgentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAssessmentRunAgents operation. /// /// /// The IAsyncResult returned by the call to BeginListAssessmentRunAgents. /// /// Returns a ListAssessmentRunAgentsResult from Inspector. /// REST API Reference for ListAssessmentRunAgents Operation public virtual ListAssessmentRunAgentsResponse EndListAssessmentRunAgents(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAssessmentRuns /// /// Lists the assessment runs that correspond to the assessment templates that are specified /// by the ARNs of the assessment templates. /// /// Container for the necessary parameters to execute the ListAssessmentRuns service method. /// /// The response from the ListAssessmentRuns service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListAssessmentRuns Operation public virtual ListAssessmentRunsResponse ListAssessmentRuns(ListAssessmentRunsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAssessmentRuns operation. /// /// /// Container for the necessary parameters to execute the ListAssessmentRuns operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAssessmentRuns /// operation. /// REST API Reference for ListAssessmentRuns Operation public virtual IAsyncResult BeginListAssessmentRuns(ListAssessmentRunsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAssessmentRuns operation. /// /// /// The IAsyncResult returned by the call to BeginListAssessmentRuns. /// /// Returns a ListAssessmentRunsResult from Inspector. /// REST API Reference for ListAssessmentRuns Operation public virtual ListAssessmentRunsResponse EndListAssessmentRuns(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAssessmentTargets /// /// Lists the ARNs of the assessment targets within this AWS account. For more information /// about assessment targets, see Amazon /// Inspector Assessment Targets. /// /// Container for the necessary parameters to execute the ListAssessmentTargets service method. /// /// The response from the ListAssessmentTargets service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for ListAssessmentTargets Operation public virtual ListAssessmentTargetsResponse ListAssessmentTargets(ListAssessmentTargetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentTargetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAssessmentTargets operation. /// /// /// Container for the necessary parameters to execute the ListAssessmentTargets operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAssessmentTargets /// operation. /// REST API Reference for ListAssessmentTargets Operation public virtual IAsyncResult BeginListAssessmentTargets(ListAssessmentTargetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentTargetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentTargetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAssessmentTargets operation. /// /// /// The IAsyncResult returned by the call to BeginListAssessmentTargets. /// /// Returns a ListAssessmentTargetsResult from Inspector. /// REST API Reference for ListAssessmentTargets Operation public virtual ListAssessmentTargetsResponse EndListAssessmentTargets(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAssessmentTemplates /// /// Lists the assessment templates that correspond to the assessment targets that are /// specified by the ARNs of the assessment targets. /// /// Container for the necessary parameters to execute the ListAssessmentTemplates service method. /// /// The response from the ListAssessmentTemplates service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListAssessmentTemplates Operation public virtual ListAssessmentTemplatesResponse ListAssessmentTemplates(ListAssessmentTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAssessmentTemplates operation. /// /// /// Container for the necessary parameters to execute the ListAssessmentTemplates operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAssessmentTemplates /// operation. /// REST API Reference for ListAssessmentTemplates Operation public virtual IAsyncResult BeginListAssessmentTemplates(ListAssessmentTemplatesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssessmentTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssessmentTemplatesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAssessmentTemplates operation. /// /// /// The IAsyncResult returned by the call to BeginListAssessmentTemplates. /// /// Returns a ListAssessmentTemplatesResult from Inspector. /// REST API Reference for ListAssessmentTemplates Operation public virtual ListAssessmentTemplatesResponse EndListAssessmentTemplates(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListEventSubscriptions /// /// Lists all the event subscriptions for the assessment template that is specified by /// the ARN of the assessment template. For more information, see SubscribeToEvent /// and UnsubscribeFromEvent. /// /// Container for the necessary parameters to execute the ListEventSubscriptions service method. /// /// The response from the ListEventSubscriptions service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListEventSubscriptions Operation public virtual ListEventSubscriptionsResponse ListEventSubscriptions(ListEventSubscriptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventSubscriptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListEventSubscriptions operation. /// /// /// Container for the necessary parameters to execute the ListEventSubscriptions operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEventSubscriptions /// operation. /// REST API Reference for ListEventSubscriptions Operation public virtual IAsyncResult BeginListEventSubscriptions(ListEventSubscriptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListEventSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEventSubscriptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListEventSubscriptions operation. /// /// /// The IAsyncResult returned by the call to BeginListEventSubscriptions. /// /// Returns a ListEventSubscriptionsResult from Inspector. /// REST API Reference for ListEventSubscriptions Operation public virtual ListEventSubscriptionsResponse EndListEventSubscriptions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListExclusions /// /// List exclusions that are generated by the assessment run. /// /// Container for the necessary parameters to execute the ListExclusions service method. /// /// The response from the ListExclusions service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListExclusions Operation public virtual ListExclusionsResponse ListExclusions(ListExclusionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListExclusionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExclusionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListExclusions operation. /// /// /// Container for the necessary parameters to execute the ListExclusions operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListExclusions /// operation. /// REST API Reference for ListExclusions Operation public virtual IAsyncResult BeginListExclusions(ListExclusionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListExclusionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListExclusionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListExclusions operation. /// /// /// The IAsyncResult returned by the call to BeginListExclusions. /// /// Returns a ListExclusionsResult from Inspector. /// REST API Reference for ListExclusions Operation public virtual ListExclusionsResponse EndListExclusions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListFindings /// /// Lists findings that are generated by the assessment runs that are specified by the /// ARNs of the assessment runs. /// /// Container for the necessary parameters to execute the ListFindings service method. /// /// The response from the ListFindings service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListFindings Operation public virtual ListFindingsResponse ListFindings(ListFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListFindings operation. /// /// /// Container for the necessary parameters to execute the ListFindings operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFindings /// operation. /// REST API Reference for ListFindings Operation public virtual IAsyncResult BeginListFindings(ListFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListFindings operation. /// /// /// The IAsyncResult returned by the call to BeginListFindings. /// /// Returns a ListFindingsResult from Inspector. /// REST API Reference for ListFindings Operation public virtual ListFindingsResponse EndListFindings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListRulesPackages /// /// Lists all available Amazon Inspector rules packages. /// /// Container for the necessary parameters to execute the ListRulesPackages service method. /// /// The response from the ListRulesPackages service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// REST API Reference for ListRulesPackages Operation public virtual ListRulesPackagesResponse ListRulesPackages(ListRulesPackagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRulesPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRulesPackagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListRulesPackages operation. /// /// /// Container for the necessary parameters to execute the ListRulesPackages operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRulesPackages /// operation. /// REST API Reference for ListRulesPackages Operation public virtual IAsyncResult BeginListRulesPackages(ListRulesPackagesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListRulesPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRulesPackagesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListRulesPackages operation. /// /// /// The IAsyncResult returned by the call to BeginListRulesPackages. /// /// Returns a ListRulesPackagesResult from Inspector. /// REST API Reference for ListRulesPackages Operation public virtual ListRulesPackagesResponse EndListRulesPackages(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Lists all tags associated with an assessment template. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from Inspector. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PreviewAgents /// /// Previews the agents installed on the EC2 instances that are part of the specified /// assessment target. /// /// Container for the necessary parameters to execute the PreviewAgents service method. /// /// The response from the PreviewAgents service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 /// instances during the assessment run. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// REST API Reference for PreviewAgents Operation public virtual PreviewAgentsResponse PreviewAgents(PreviewAgentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PreviewAgentsRequestMarshaller.Instance; options.ResponseUnmarshaller = PreviewAgentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PreviewAgents operation. /// /// /// Container for the necessary parameters to execute the PreviewAgents operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPreviewAgents /// operation. /// REST API Reference for PreviewAgents Operation public virtual IAsyncResult BeginPreviewAgents(PreviewAgentsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PreviewAgentsRequestMarshaller.Instance; options.ResponseUnmarshaller = PreviewAgentsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PreviewAgents operation. /// /// /// The IAsyncResult returned by the call to BeginPreviewAgents. /// /// Returns a PreviewAgentsResult from Inspector. /// REST API Reference for PreviewAgents Operation public virtual PreviewAgentsResponse EndPreviewAgents(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RegisterCrossAccountAccessRole /// /// Registers the IAM role that grants Amazon Inspector access to AWS Services needed /// to perform security assessments. /// /// Container for the necessary parameters to execute the RegisterCrossAccountAccessRole service method. /// /// The response from the RegisterCrossAccountAccessRole service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 /// instances during the assessment run. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for RegisterCrossAccountAccessRole Operation public virtual RegisterCrossAccountAccessRoleResponse RegisterCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCrossAccountAccessRoleRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCrossAccountAccessRoleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RegisterCrossAccountAccessRole operation. /// /// /// Container for the necessary parameters to execute the RegisterCrossAccountAccessRole operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRegisterCrossAccountAccessRole /// operation. /// REST API Reference for RegisterCrossAccountAccessRole Operation public virtual IAsyncResult BeginRegisterCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterCrossAccountAccessRoleRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterCrossAccountAccessRoleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RegisterCrossAccountAccessRole operation. /// /// /// The IAsyncResult returned by the call to BeginRegisterCrossAccountAccessRole. /// /// Returns a RegisterCrossAccountAccessRoleResult from Inspector. /// REST API Reference for RegisterCrossAccountAccessRole Operation public virtual RegisterCrossAccountAccessRoleResponse EndRegisterCrossAccountAccessRole(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RemoveAttributesFromFindings /// /// Removes entire attributes (key and value pairs) from the findings that are specified /// by the ARNs of the findings where an attribute with the specified key exists. /// /// Container for the necessary parameters to execute the RemoveAttributesFromFindings service method. /// /// The response from the RemoveAttributesFromFindings service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for RemoveAttributesFromFindings Operation public virtual RemoveAttributesFromFindingsResponse RemoveAttributesFromFindings(RemoveAttributesFromFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveAttributesFromFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveAttributesFromFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RemoveAttributesFromFindings operation. /// /// /// Container for the necessary parameters to execute the RemoveAttributesFromFindings operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveAttributesFromFindings /// operation. /// REST API Reference for RemoveAttributesFromFindings Operation public virtual IAsyncResult BeginRemoveAttributesFromFindings(RemoveAttributesFromFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveAttributesFromFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveAttributesFromFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RemoveAttributesFromFindings operation. /// /// /// The IAsyncResult returned by the call to BeginRemoveAttributesFromFindings. /// /// Returns a RemoveAttributesFromFindingsResult from Inspector. /// REST API Reference for RemoveAttributesFromFindings Operation public virtual RemoveAttributesFromFindingsResponse EndRemoveAttributesFromFindings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SetTagsForResource /// /// Sets tags (key and value pairs) to the assessment template that is specified by the /// ARN of the assessment template. /// /// Container for the necessary parameters to execute the SetTagsForResource service method. /// /// The response from the SetTagsForResource service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for SetTagsForResource Operation public virtual SetTagsForResourceResponse SetTagsForResource(SetTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SetTagsForResource operation. /// /// /// Container for the necessary parameters to execute the SetTagsForResource operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetTagsForResource /// operation. /// REST API Reference for SetTagsForResource Operation public virtual IAsyncResult BeginSetTagsForResource(SetTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SetTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SetTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginSetTagsForResource. /// /// Returns a SetTagsForResourceResult from Inspector. /// REST API Reference for SetTagsForResource Operation public virtual SetTagsForResourceResponse EndSetTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartAssessmentRun /// /// 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. /// /// Container for the necessary parameters to execute the StartAssessmentRun service method. /// /// The response from the StartAssessmentRun service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// You started an assessment run, but one of the instances is already participating in /// another assessment run. /// /// /// Internal server error. /// /// /// Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 /// instances during the assessment run. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error code describes the limit exceeded. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for StartAssessmentRun Operation public virtual StartAssessmentRunResponse StartAssessmentRun(StartAssessmentRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartAssessmentRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAssessmentRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartAssessmentRun operation. /// /// /// Container for the necessary parameters to execute the StartAssessmentRun operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartAssessmentRun /// operation. /// REST API Reference for StartAssessmentRun Operation public virtual IAsyncResult BeginStartAssessmentRun(StartAssessmentRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartAssessmentRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAssessmentRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartAssessmentRun operation. /// /// /// The IAsyncResult returned by the call to BeginStartAssessmentRun. /// /// Returns a StartAssessmentRunResult from Inspector. /// REST API Reference for StartAssessmentRun Operation public virtual StartAssessmentRunResponse EndStartAssessmentRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopAssessmentRun /// /// Stops the assessment run that is specified by the ARN of the assessment run. /// /// Container for the necessary parameters to execute the StopAssessmentRun service method. /// /// The response from the StopAssessmentRun service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for StopAssessmentRun Operation public virtual StopAssessmentRunResponse StopAssessmentRun(StopAssessmentRunRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopAssessmentRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAssessmentRunResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopAssessmentRun operation. /// /// /// Container for the necessary parameters to execute the StopAssessmentRun operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopAssessmentRun /// operation. /// REST API Reference for StopAssessmentRun Operation public virtual IAsyncResult BeginStopAssessmentRun(StopAssessmentRunRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopAssessmentRunRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAssessmentRunResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopAssessmentRun operation. /// /// /// The IAsyncResult returned by the call to BeginStopAssessmentRun. /// /// Returns a StopAssessmentRunResult from Inspector. /// REST API Reference for StopAssessmentRun Operation public virtual StopAssessmentRunResponse EndStopAssessmentRun(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SubscribeToEvent /// /// Enables the process of sending Amazon Simple Notification Service (SNS) notifications /// about a specified event to a specified SNS topic. /// /// Container for the necessary parameters to execute the SubscribeToEvent service method. /// /// The response from the SubscribeToEvent service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it attempted to create resources beyond the current /// AWS account limits. The error code describes the limit exceeded. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for SubscribeToEvent Operation public virtual SubscribeToEventResponse SubscribeToEvent(SubscribeToEventRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeToEventRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeToEventResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SubscribeToEvent operation. /// /// /// Container for the necessary parameters to execute the SubscribeToEvent operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSubscribeToEvent /// operation. /// REST API Reference for SubscribeToEvent Operation public virtual IAsyncResult BeginSubscribeToEvent(SubscribeToEventRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeToEventRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeToEventResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SubscribeToEvent operation. /// /// /// The IAsyncResult returned by the call to BeginSubscribeToEvent. /// /// Returns a SubscribeToEventResult from Inspector. /// REST API Reference for SubscribeToEvent Operation public virtual SubscribeToEventResponse EndSubscribeToEvent(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UnsubscribeFromEvent /// /// Disables the process of sending Amazon Simple Notification Service (SNS) notifications /// about a specified event to a specified SNS topic. /// /// Container for the necessary parameters to execute the UnsubscribeFromEvent service method. /// /// The response from the UnsubscribeFromEvent service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for UnsubscribeFromEvent Operation public virtual UnsubscribeFromEventResponse UnsubscribeFromEvent(UnsubscribeFromEventRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeFromEventRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeFromEventResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UnsubscribeFromEvent operation. /// /// /// Container for the necessary parameters to execute the UnsubscribeFromEvent operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUnsubscribeFromEvent /// operation. /// REST API Reference for UnsubscribeFromEvent Operation public virtual IAsyncResult BeginUnsubscribeFromEvent(UnsubscribeFromEventRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeFromEventRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeFromEventResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UnsubscribeFromEvent operation. /// /// /// The IAsyncResult returned by the call to BeginUnsubscribeFromEvent. /// /// Returns a UnsubscribeFromEventResult from Inspector. /// REST API Reference for UnsubscribeFromEvent Operation public virtual UnsubscribeFromEventResponse EndUnsubscribeFromEvent(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateAssessmentTarget /// /// 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. /// /// /// Container for the necessary parameters to execute the UpdateAssessmentTarget service method. /// /// The response from the UpdateAssessmentTarget service method, as returned by Inspector. /// /// You do not have required permissions to access the requested resource. /// /// /// Internal server error. /// /// /// The request was rejected because an invalid or out-of-range value was supplied for /// an input parameter. /// /// /// The request was rejected because it referenced an entity that does not exist. The /// error code describes the entity. /// /// /// The serice is temporary unavailable. /// /// REST API Reference for UpdateAssessmentTarget Operation public virtual UpdateAssessmentTargetResponse UpdateAssessmentTarget(UpdateAssessmentTargetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAssessmentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAssessmentTargetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateAssessmentTarget operation. /// /// /// Container for the necessary parameters to execute the UpdateAssessmentTarget operation on AmazonInspectorClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAssessmentTarget /// operation. /// REST API Reference for UpdateAssessmentTarget Operation public virtual IAsyncResult BeginUpdateAssessmentTarget(UpdateAssessmentTargetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAssessmentTargetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAssessmentTargetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateAssessmentTarget operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateAssessmentTarget. /// /// Returns a UpdateAssessmentTargetResult from Inspector. /// REST API Reference for UpdateAssessmentTarget Operation public virtual UpdateAssessmentTargetResponse EndUpdateAssessmentTarget(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }