/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
#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
#if 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 Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
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
internal virtual AddAttributesToFindingsResponse AddAttributesToFindings(AddAttributesToFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttributesToFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttributesToFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task AddAttributesToFindingsAsync(AddAttributesToFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttributesToFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttributesToFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAssessmentTarget
internal virtual CreateAssessmentTargetResponse CreateAssessmentTarget(CreateAssessmentTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssessmentTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssessmentTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateAssessmentTargetAsync(CreateAssessmentTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssessmentTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssessmentTargetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAssessmentTemplate
internal virtual CreateAssessmentTemplateResponse CreateAssessmentTemplate(CreateAssessmentTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssessmentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssessmentTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateAssessmentTemplateAsync(CreateAssessmentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAssessmentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAssessmentTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateExclusionsPreview
internal virtual CreateExclusionsPreviewResponse CreateExclusionsPreview(CreateExclusionsPreviewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateExclusionsPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateExclusionsPreviewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateExclusionsPreviewAsync(CreateExclusionsPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateExclusionsPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateExclusionsPreviewResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateResourceGroup
internal virtual CreateResourceGroupResponse CreateResourceGroup(CreateResourceGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateResourceGroupAsync(CreateResourceGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAssessmentRun
internal virtual DeleteAssessmentRunResponse DeleteAssessmentRun(DeleteAssessmentRunRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssessmentRunRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssessmentRunResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteAssessmentRunAsync(DeleteAssessmentRunRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssessmentRunRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssessmentRunResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAssessmentTarget
internal virtual DeleteAssessmentTargetResponse DeleteAssessmentTarget(DeleteAssessmentTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssessmentTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssessmentTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteAssessmentTargetAsync(DeleteAssessmentTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssessmentTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssessmentTargetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAssessmentTemplate
internal virtual DeleteAssessmentTemplateResponse DeleteAssessmentTemplate(DeleteAssessmentTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssessmentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssessmentTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteAssessmentTemplateAsync(DeleteAssessmentTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAssessmentTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAssessmentTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAssessmentRuns
internal virtual DescribeAssessmentRunsResponse DescribeAssessmentRuns(DescribeAssessmentRunsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssessmentRunsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssessmentRunsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeAssessmentRunsAsync(DescribeAssessmentRunsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssessmentRunsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssessmentRunsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAssessmentTargets
internal virtual DescribeAssessmentTargetsResponse DescribeAssessmentTargets(DescribeAssessmentTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeAssessmentTargetsAsync(DescribeAssessmentTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAssessmentTemplates
internal virtual DescribeAssessmentTemplatesResponse DescribeAssessmentTemplates(DescribeAssessmentTemplatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssessmentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssessmentTemplatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeAssessmentTemplatesAsync(DescribeAssessmentTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAssessmentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAssessmentTemplatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeCrossAccountAccessRole
internal virtual DescribeCrossAccountAccessRoleResponse DescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes the IAM role that enables Amazon Inspector to access your AWS account.
///
/// Container for the necessary parameters to execute the DescribeCrossAccountAccessRole service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeCrossAccountAccessRole service method, as returned by Inspector.
///
/// Internal server error.
///
/// REST API Reference for DescribeCrossAccountAccessRole Operation
public virtual Task DescribeCrossAccountAccessRoleAsync(DescribeCrossAccountAccessRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeExclusions
internal virtual DescribeExclusionsResponse DescribeExclusions(DescribeExclusionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExclusionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExclusionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes the exclusions that are specified by the exclusions' ARNs.
///
/// Container for the necessary parameters to execute the DescribeExclusions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeExclusionsAsync(DescribeExclusionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExclusionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExclusionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeFindings
internal virtual DescribeFindingsResponse DescribeFindings(DescribeFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes the findings that are specified by the ARNs of the findings.
///
/// Container for the necessary parameters to execute the DescribeFindings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeFindingsAsync(DescribeFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeResourceGroups
internal virtual DescribeResourceGroupsResponse DescribeResourceGroups(DescribeResourceGroupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeResourceGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeResourceGroupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeResourceGroupsAsync(DescribeResourceGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeResourceGroupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeResourceGroupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeRulesPackages
internal virtual DescribeRulesPackagesResponse DescribeRulesPackages(DescribeRulesPackagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeRulesPackagesAsync(DescribeRulesPackagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeRulesPackagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeRulesPackagesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAssessmentReport
internal virtual GetAssessmentReportResponse GetAssessmentReport(GetAssessmentReportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetAssessmentReportAsync(GetAssessmentReportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetExclusionsPreview
internal virtual GetExclusionsPreviewResponse GetExclusionsPreview(GetExclusionsPreviewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExclusionsPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExclusionsPreviewResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetExclusionsPreviewAsync(GetExclusionsPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetExclusionsPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetExclusionsPreviewResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetTelemetryMetadata
internal virtual GetTelemetryMetadataResponse GetTelemetryMetadata(GetTelemetryMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTelemetryMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTelemetryMetadataResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Information about the data that is collected for the specified assessment run.
///
/// Container for the necessary parameters to execute the GetTelemetryMetadata service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task GetTelemetryMetadataAsync(GetTelemetryMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTelemetryMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTelemetryMetadataResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssessmentRunAgents
internal virtual ListAssessmentRunAgentsResponse ListAssessmentRunAgents(ListAssessmentRunAgentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentRunAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentRunAgentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListAssessmentRunAgentsAsync(ListAssessmentRunAgentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentRunAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentRunAgentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssessmentRuns
internal virtual ListAssessmentRunsResponse ListAssessmentRuns(ListAssessmentRunsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListAssessmentRunsAsync(ListAssessmentRunsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssessmentTargets
internal virtual ListAssessmentTargetsResponse ListAssessmentTargets(ListAssessmentTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentTargetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListAssessmentTargetsAsync(ListAssessmentTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentTargetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAssessmentTemplates
internal virtual ListAssessmentTemplatesResponse ListAssessmentTemplates(ListAssessmentTemplatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentTemplatesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListAssessmentTemplatesAsync(ListAssessmentTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAssessmentTemplatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAssessmentTemplatesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListEventSubscriptions
internal virtual ListEventSubscriptionsResponse ListEventSubscriptions(ListEventSubscriptionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSubscriptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSubscriptionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListEventSubscriptionsAsync(ListEventSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEventSubscriptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEventSubscriptionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListExclusions
internal virtual ListExclusionsResponse ListExclusions(ListExclusionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExclusionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExclusionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// List exclusions that are generated by the assessment run.
///
/// Container for the necessary parameters to execute the ListExclusions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListExclusionsAsync(ListExclusionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExclusionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExclusionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListFindings
internal virtual ListFindingsResponse ListFindings(ListFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListFindingsAsync(ListFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListRulesPackages
internal virtual ListRulesPackagesResponse ListRulesPackages(ListRulesPackagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesPackagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesPackagesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all available Amazon Inspector rules packages.
///
/// Container for the necessary parameters to execute the ListRulesPackages service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListRulesPackagesAsync(ListRulesPackagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRulesPackagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRulesPackagesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all tags associated with an assessment template.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PreviewAgents
internal virtual PreviewAgentsResponse PreviewAgents(PreviewAgentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PreviewAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PreviewAgentsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task PreviewAgentsAsync(PreviewAgentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PreviewAgentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PreviewAgentsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RegisterCrossAccountAccessRole
internal virtual RegisterCrossAccountAccessRoleResponse RegisterCrossAccountAccessRole(RegisterCrossAccountAccessRoleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterCrossAccountAccessRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterCrossAccountAccessRoleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RegisterCrossAccountAccessRoleAsync(RegisterCrossAccountAccessRoleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterCrossAccountAccessRoleRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterCrossAccountAccessRoleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RemoveAttributesFromFindings
internal virtual RemoveAttributesFromFindingsResponse RemoveAttributesFromFindings(RemoveAttributesFromFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveAttributesFromFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveAttributesFromFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RemoveAttributesFromFindingsAsync(RemoveAttributesFromFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RemoveAttributesFromFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RemoveAttributesFromFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SetTagsForResource
internal virtual SetTagsForResourceResponse SetTagsForResource(SetTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SetTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task SetTagsForResourceAsync(SetTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SetTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = SetTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartAssessmentRun
internal virtual StartAssessmentRunResponse StartAssessmentRun(StartAssessmentRunRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartAssessmentRunRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartAssessmentRunResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task StartAssessmentRunAsync(StartAssessmentRunRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartAssessmentRunRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartAssessmentRunResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopAssessmentRun
internal virtual StopAssessmentRunResponse StopAssessmentRun(StopAssessmentRunRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopAssessmentRunRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopAssessmentRunResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task StopAssessmentRunAsync(StopAssessmentRunRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopAssessmentRunRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopAssessmentRunResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region SubscribeToEvent
internal virtual SubscribeToEventResponse SubscribeToEvent(SubscribeToEventRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = SubscribeToEventRequestMarshaller.Instance;
options.ResponseUnmarshaller = SubscribeToEventResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task SubscribeToEventAsync(SubscribeToEventRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = SubscribeToEventRequestMarshaller.Instance;
options.ResponseUnmarshaller = SubscribeToEventResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UnsubscribeFromEvent
internal virtual UnsubscribeFromEventResponse UnsubscribeFromEvent(UnsubscribeFromEventRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UnsubscribeFromEventRequestMarshaller.Instance;
options.ResponseUnmarshaller = UnsubscribeFromEventResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UnsubscribeFromEventAsync(UnsubscribeFromEventRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UnsubscribeFromEventRequestMarshaller.Instance;
options.ResponseUnmarshaller = UnsubscribeFromEventResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateAssessmentTarget
internal virtual UpdateAssessmentTargetResponse UpdateAssessmentTarget(UpdateAssessmentTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAssessmentTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAssessmentTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateAssessmentTargetAsync(UpdateAssessmentTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAssessmentTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAssessmentTargetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}