/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model;
using Amazon.SecurityHub.Model.Internal.MarshallTransformations;
using Amazon.SecurityHub.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.SecurityHub
{
///
/// Implementation for accessing SecurityHub
///
/// Security Hub provides you with a comprehensive view of the security state of your
/// Amazon Web Services environment and resources. It also provides you with the readiness
/// status of your environment based on controls from supported security standards. Security
/// Hub collects security data from Amazon Web Services accounts, services, and integrated
/// third-party products and helps you analyze security trends in your environment to
/// identify the highest priority security issues. For more information about Security
/// Hub, see the Security
/// HubUser Guide.
///
///
///
/// When you use operations in the Security Hub API, the requests are executed only in
/// the Amazon Web Services Region that is currently active or in the specific Amazon
/// Web Services Region that you specify in your request. Any configuration or settings
/// change that results from the operation is applied only to that Region. To make the
/// same change in other Regions, run the same command for each Region in which you want
/// to apply the change.
///
///
///
/// For example, if your Region is set to us-west-2
, when you use CreateMembers
/// to add a member account to Security Hub, the association of the member account with
/// the administrator account is created only in the us-west-2
Region. Security
/// Hub must be enabled for the member account in the same Region that the invitation
/// was sent from.
///
///
///
/// The following throttling limits apply to using Security Hub API operations.
///
/// -
///
///
BatchEnableStandards
- RateLimit
of 1 request per second.
/// BurstLimit
of 1 request per second.
///
/// -
///
///
GetFindings
- RateLimit
of 3 requests per second. BurstLimit
/// of 6 requests per second.
///
/// -
///
///
BatchImportFindings
- RateLimit
of 10 requests per second.
/// BurstLimit
of 30 requests per second.
///
/// -
///
///
BatchUpdateFindings
- RateLimit
of 10 requests per second.
/// BurstLimit
of 30 requests per second.
///
/// -
///
///
UpdateStandardsControl
- RateLimit
of 1 request per second.
/// BurstLimit
of 5 requests per second.
///
/// -
///
/// All other operations -
RateLimit
of 10 requests per second. BurstLimit
/// of 30 requests per second.
///
///
///
public partial class AmazonSecurityHubClient : AmazonServiceClient, IAmazonSecurityHub
{
private static IServiceMetadata serviceMetadata = new AmazonSecurityHubMetadata();
#region Constructors
///
/// Constructs AmazonSecurityHubClient 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 AmazonSecurityHubClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSecurityHubConfig()) { }
///
/// Constructs AmazonSecurityHubClient 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 AmazonSecurityHubClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSecurityHubConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonSecurityHubClient 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 AmazonSecurityHubClient Configuration Object
public AmazonSecurityHubClient(AmazonSecurityHubConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonSecurityHubClient with AWS Credentials
///
/// AWS Credentials
public AmazonSecurityHubClient(AWSCredentials credentials)
: this(credentials, new AmazonSecurityHubConfig())
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonSecurityHubClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonSecurityHubConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Credentials and an
/// AmazonSecurityHubClient Configuration object.
///
/// AWS Credentials
/// The AmazonSecurityHubClient Configuration Object
public AmazonSecurityHubClient(AWSCredentials credentials, AmazonSecurityHubConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonSecurityHubClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSecurityHubConfig())
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonSecurityHubClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSecurityHubConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSecurityHubClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonSecurityHubClient Configuration Object
public AmazonSecurityHubClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonSecurityHubConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonSecurityHubClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSecurityHubConfig())
{
}
///
/// Constructs AmazonSecurityHubClient 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 AmazonSecurityHubClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSecurityHubConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSecurityHubClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSecurityHubClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonSecurityHubClient Configuration Object
public AmazonSecurityHubClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonSecurityHubConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private ISecurityHubPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ISecurityHubPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new SecurityHubPaginatorFactory(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 AmazonSecurityHubEndpointResolver());
}
///
/// 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 AcceptAdministratorInvitation
internal virtual AcceptAdministratorInvitationResponse AcceptAdministratorInvitation(AcceptAdministratorInvitationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptAdministratorInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptAdministratorInvitationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Accepts the invitation to be a member account and be monitored by the Security Hub
/// administrator account that the invitation was sent from.
///
///
///
/// This operation is only used by member accounts that are not added through Organizations.
///
///
///
/// When the member account accepts the invitation, permission is granted to the administrator
/// account to view findings generated in the member account.
///
///
/// Container for the necessary parameters to execute the AcceptAdministratorInvitation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AcceptAdministratorInvitation service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for AcceptAdministratorInvitation Operation
public virtual Task AcceptAdministratorInvitationAsync(AcceptAdministratorInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptAdministratorInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptAdministratorInvitationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AcceptInvitation
[Obsolete("This API has been deprecated, use AcceptAdministratorInvitation API instead.")]
internal virtual AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This method is deprecated. Instead, use AcceptAdministratorInvitation
.
///
///
///
/// The Security Hub console continues to use AcceptInvitation
. It will eventually
/// change to use AcceptAdministratorInvitation
. Any IAM policies that specifically
/// control access to this function must continue to use AcceptInvitation
.
/// You should also add AcceptAdministratorInvitation
to your policies to
/// ensure that the correct permissions are in place after the console begins to use AcceptAdministratorInvitation
.
///
///
///
/// Accepts the invitation to be a member account and be monitored by the Security Hub
/// administrator account that the invitation was sent from.
///
///
///
/// This operation is only used by member accounts that are not added through Organizations.
///
///
///
/// When the member account accepts the invitation, permission is granted to the administrator
/// account to view findings generated in the member account.
///
///
/// Container for the necessary parameters to execute the AcceptInvitation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AcceptInvitation service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for AcceptInvitation Operation
[Obsolete("This API has been deprecated, use AcceptAdministratorInvitation API instead.")]
public virtual Task AcceptInvitationAsync(AcceptInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchDeleteAutomationRules
internal virtual BatchDeleteAutomationRulesResponse BatchDeleteAutomationRules(BatchDeleteAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes one or more automation rules.
///
/// Container for the necessary parameters to execute the BatchDeleteAutomationRules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchDeleteAutomationRules service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for BatchDeleteAutomationRules Operation
public virtual Task BatchDeleteAutomationRulesAsync(BatchDeleteAutomationRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteAutomationRulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchDisableStandards
internal virtual BatchDisableStandardsResponse BatchDisableStandards(BatchDisableStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disables the standards specified by the provided StandardsSubscriptionArns
.
///
///
///
/// For more information, see Security
/// Standards section of the Security Hub User Guide.
///
///
/// Container for the necessary parameters to execute the BatchDisableStandards service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchDisableStandards service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchDisableStandards Operation
public virtual Task BatchDisableStandardsAsync(BatchDisableStandardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableStandardsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchEnableStandards
internal virtual BatchEnableStandardsResponse BatchEnableStandards(BatchEnableStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Enables the standards specified by the provided StandardsArn
. To obtain
/// the ARN for a standard, use the DescribeStandards
operation.
///
///
///
/// For more information, see the Security
/// Standards section of the Security Hub User Guide.
///
///
/// Container for the necessary parameters to execute the BatchEnableStandards service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchEnableStandards service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchEnableStandards Operation
public virtual Task BatchEnableStandardsAsync(BatchEnableStandardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableStandardsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchGetAutomationRules
internal virtual BatchGetAutomationRulesResponse BatchGetAutomationRules(BatchGetAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves a list of details for automation rules based on rule Amazon Resource Names
/// (ARNs).
///
/// Container for the necessary parameters to execute the BatchGetAutomationRules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchGetAutomationRules service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for BatchGetAutomationRules Operation
public virtual Task BatchGetAutomationRulesAsync(BatchGetAutomationRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetAutomationRulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchGetSecurityControls
internal virtual BatchGetSecurityControlsResponse BatchGetSecurityControls(BatchGetSecurityControlsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetSecurityControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetSecurityControlsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Provides details about a batch of security controls for the current Amazon Web Services
/// account and Amazon Web Services Region.
///
/// Container for the necessary parameters to execute the BatchGetSecurityControls service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchGetSecurityControls service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchGetSecurityControls Operation
public virtual Task BatchGetSecurityControlsAsync(BatchGetSecurityControlsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetSecurityControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetSecurityControlsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchGetStandardsControlAssociations
internal virtual BatchGetStandardsControlAssociationsResponse BatchGetStandardsControlAssociations(BatchGetStandardsControlAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetStandardsControlAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// For a batch of security controls and standards, identifies whether each control is
/// currently enabled or disabled in a standard.
///
/// Container for the necessary parameters to execute the BatchGetStandardsControlAssociations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchGetStandardsControlAssociations service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchGetStandardsControlAssociations Operation
public virtual Task BatchGetStandardsControlAssociationsAsync(BatchGetStandardsControlAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetStandardsControlAssociationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchImportFindings
internal virtual BatchImportFindingsResponse BatchImportFindings(BatchImportFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchImportFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchImportFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Imports security findings generated by a finding provider into Security Hub. This
/// action is requested by the finding provider to import its findings into Security Hub.
///
///
///
/// BatchImportFindings
must be called by one of the following:
///
/// -
///
/// The Amazon Web Services account that is associated with a finding if you are using
/// the default
/// product ARN or are a partner sending findings from within a customer's Amazon
/// Web Services account. In these cases, the identifier of the account that you are calling
///
BatchImportFindings
from needs to be the same as the AwsAccountId
/// attribute for the finding.
///
/// -
///
/// An Amazon Web Services account that Security Hub has allow-listed for an official
/// partner integration. In this case, you can call
BatchImportFindings
from
/// the allow-listed account and send findings from different customer accounts in the
/// same batch.
///
///
///
/// The maximum allowed size for a finding is 240 Kb. An error is returned for any finding
/// larger than 240 Kb.
///
///
///
/// After a finding is created, BatchImportFindings
cannot be used to update
/// the following finding fields and objects, which Security Hub customers use to manage
/// their investigation workflow.
///
/// -
///
///
Note
///
/// -
///
///
UserDefinedFields
///
/// -
///
///
VerificationState
///
/// -
///
///
Workflow
///
///
///
/// Finding providers also should not use BatchImportFindings
to update the
/// following attributes.
///
/// -
///
///
Confidence
///
/// -
///
///
Criticality
///
/// -
///
///
RelatedFindings
///
/// -
///
///
Severity
///
/// -
///
///
Types
///
///
///
/// Instead, finding providers use FindingProviderFields
to provide values
/// for these attributes.
///
///
/// Container for the necessary parameters to execute the BatchImportFindings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchImportFindings service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchImportFindings Operation
public virtual Task BatchImportFindingsAsync(BatchImportFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchImportFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchImportFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchUpdateAutomationRules
internal virtual BatchUpdateAutomationRulesResponse BatchUpdateAutomationRules(BatchUpdateAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and
/// input parameters.
///
/// Container for the necessary parameters to execute the BatchUpdateAutomationRules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchUpdateAutomationRules service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for BatchUpdateAutomationRules Operation
public virtual Task BatchUpdateAutomationRulesAsync(BatchUpdateAutomationRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateAutomationRulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchUpdateFindings
internal virtual BatchUpdateFindingsResponse BatchUpdateFindings(BatchUpdateFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Used by Security Hub customers to update information about their investigation into
/// a finding. Requested by administrator accounts or member accounts. Administrator accounts
/// can update findings for their account and their member accounts. Member accounts can
/// update findings for their account.
///
///
///
/// Updates from BatchUpdateFindings
do not affect the value of UpdatedAt
/// for a finding.
///
///
///
/// Administrator and member accounts can use BatchUpdateFindings
to update
/// the following finding fields and objects.
///
/// -
///
///
Confidence
///
/// -
///
///
Criticality
///
/// -
///
///
Note
///
/// -
///
///
RelatedFindings
///
/// -
///
///
Severity
///
/// -
///
///
Types
///
/// -
///
///
UserDefinedFields
///
/// -
///
///
VerificationState
///
/// -
///
///
Workflow
///
///
///
/// You can configure IAM policies to restrict access to fields and field values. For
/// example, you might not want member accounts to be able to suppress findings or change
/// the finding severity. See Configuring
/// access to BatchUpdateFindings in the Security Hub User Guide.
///
///
/// Container for the necessary parameters to execute the BatchUpdateFindings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchUpdateFindings service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchUpdateFindings Operation
public virtual Task BatchUpdateFindingsAsync(BatchUpdateFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BatchUpdateStandardsControlAssociations
internal virtual BatchUpdateStandardsControlAssociationsResponse BatchUpdateStandardsControlAssociations(BatchUpdateStandardsControlAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateStandardsControlAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// For a batch of security controls and standards, this operation updates the enablement
/// status of a control in a standard.
///
/// Container for the necessary parameters to execute the BatchUpdateStandardsControlAssociations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchUpdateStandardsControlAssociations service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for BatchUpdateStandardsControlAssociations Operation
public virtual Task BatchUpdateStandardsControlAssociationsAsync(BatchUpdateStandardsControlAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateStandardsControlAssociationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateActionTarget
internal virtual CreateActionTargetResponse CreateActionTarget(CreateActionTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateActionTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a custom action target in Security Hub.
///
///
///
/// You can use custom actions on findings and insights in Security Hub to trigger target
/// actions in Amazon CloudWatch Events.
///
///
/// Container for the necessary parameters to execute the CreateActionTarget service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateActionTarget service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The resource specified in the request conflicts with an existing resource.
///
/// REST API Reference for CreateActionTarget Operation
public virtual Task CreateActionTargetAsync(CreateActionTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateActionTargetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAutomationRule
internal virtual CreateAutomationRuleResponse CreateAutomationRule(CreateAutomationRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutomationRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutomationRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an automation rule based on input parameters.
///
/// Container for the necessary parameters to execute the CreateAutomationRule service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAutomationRule service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for CreateAutomationRule Operation
public virtual Task CreateAutomationRuleAsync(CreateAutomationRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutomationRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutomationRuleResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateFindingAggregator
internal virtual CreateFindingAggregatorResponse CreateFindingAggregator(CreateFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Used to enable finding aggregation. Must be called from the aggregation Region.
///
///
///
/// For more details about cross-Region replication, see Configuring
/// finding aggregation in the Security Hub User Guide.
///
///
/// Container for the necessary parameters to execute the CreateFindingAggregator service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateFindingAggregator service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for CreateFindingAggregator Operation
public virtual Task CreateFindingAggregatorAsync(CreateFindingAggregatorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFindingAggregatorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateInsight
internal virtual CreateInsightResponse CreateInsight(CreateInsightRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInsightResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a custom insight in Security Hub. An insight is a consolidation of findings
/// that relate to a security issue that requires attention or remediation.
///
///
///
/// To group the related findings in the insight, use the GroupByAttribute
.
///
///
/// Container for the necessary parameters to execute the CreateInsight service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateInsight service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The resource specified in the request conflicts with an existing resource.
///
/// REST API Reference for CreateInsight Operation
public virtual Task CreateInsightAsync(CreateInsightRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInsightResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateMembers
internal virtual CreateMembersResponse CreateMembers(CreateMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a member association in Security Hub between the specified accounts and the
/// account used to make the request, which is the administrator account. If you are integrated
/// with Organizations, then the administrator account is designated by the organization
/// management account.
///
///
///
/// CreateMembers
is always used to add accounts that are not organization
/// members.
///
///
///
/// For accounts that are managed using Organizations, CreateMembers
is only
/// used in the following cases:
///
/// -
///
/// Security Hub is not configured to automatically add new organization accounts.
///
///
-
///
/// The account was disassociated or deleted in Security Hub.
///
///
///
/// This action can only be used by an account that has Security Hub enabled. To enable
/// Security Hub, you can use the EnableSecurityHub
operation.
///
///
///
/// For accounts that are not organization members, you create the account association
/// and then send an invitation to the member account. To send the invitation, you use
/// the InviteMembers
operation. If the account owner accepts the invitation,
/// the account becomes a member account in Security Hub.
///
///
///
/// Accounts that are managed using Organizations do not receive an invitation. They automatically
/// become a member account in Security Hub.
///
/// -
///
/// If the organization account does not have Security Hub enabled, then Security Hub
/// and the default standards are automatically enabled. Note that Security Hub cannot
/// be enabled automatically for the organization management account. The organization
/// management account must enable Security Hub before the administrator account enables
/// it as a member account.
///
///
-
///
/// For organization accounts that already have Security Hub enabled, Security Hub does
/// not make any other changes to those accounts. It does not change their enabled standards
/// or controls.
///
///
///
/// A permissions policy is added that permits the administrator account to view the findings
/// generated in the member account.
///
///
///
/// To remove the association between the administrator and member accounts, use the DisassociateFromMasterAccount
/// or DisassociateMembers
operation.
///
///
/// Container for the necessary parameters to execute the CreateMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateMembers service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The resource specified in the request conflicts with an existing resource.
///
/// REST API Reference for CreateMembers Operation
public virtual Task CreateMembersAsync(CreateMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeclineInvitations
internal virtual DeclineInvitationsResponse DeclineInvitations(DeclineInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Declines invitations to become a member account.
///
///
///
/// A prospective member account uses this operation to decline an invitation to become
/// a member.
///
///
///
/// This operation is only called by member accounts that aren't part of an organization.
/// Organization accounts don't receive invitations.
///
///
/// Container for the necessary parameters to execute the DeclineInvitations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeclineInvitations service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DeclineInvitations Operation
public virtual Task DeclineInvitationsAsync(DeclineInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteActionTarget
internal virtual DeleteActionTargetResponse DeleteActionTarget(DeleteActionTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteActionTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a custom action target from Security Hub.
///
///
///
/// Deleting a custom action target does not affect any findings or insights that were
/// already sent to Amazon CloudWatch Events using the custom action.
///
///
/// Container for the necessary parameters to execute the DeleteActionTarget service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteActionTarget service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DeleteActionTarget Operation
public virtual Task DeleteActionTargetAsync(DeleteActionTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteActionTargetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteFindingAggregator
internal virtual DeleteFindingAggregatorResponse DeleteFindingAggregator(DeleteFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a finding aggregator. When you delete the finding aggregator, you stop finding
/// aggregation.
///
///
///
/// When you stop finding aggregation, findings that were already aggregated to the aggregation
/// Region are still visible from the aggregation Region. New findings and finding updates
/// are not aggregated.
///
///
/// Container for the necessary parameters to execute the DeleteFindingAggregator service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteFindingAggregator service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DeleteFindingAggregator Operation
public virtual Task DeleteFindingAggregatorAsync(DeleteFindingAggregatorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFindingAggregatorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteInsight
internal virtual DeleteInsightResponse DeleteInsight(DeleteInsightRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInsightResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the insight specified by the InsightArn
.
///
/// Container for the necessary parameters to execute the DeleteInsight service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteInsight service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DeleteInsight Operation
public virtual Task DeleteInsightAsync(DeleteInsightRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInsightResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteInvitations
internal virtual DeleteInvitationsResponse DeleteInvitations(DeleteInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes invitations received by the Amazon Web Services account to become a member
/// account.
///
///
///
/// A Security Hub administrator account can use this operation to delete invitations
/// sent to one or more member accounts.
///
///
///
/// This operation is only used to delete invitations that are sent to member accounts
/// that aren't part of an organization. Organization accounts don't receive invitations.
///
///
/// Container for the necessary parameters to execute the DeleteInvitations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteInvitations service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DeleteInvitations Operation
public virtual Task DeleteInvitationsAsync(DeleteInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteMembers
internal virtual DeleteMembersResponse DeleteMembers(DeleteMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the specified member accounts from Security Hub.
///
///
///
/// Can be used to delete member accounts that belong to an organization as well as member
/// accounts that were invited manually.
///
///
/// Container for the necessary parameters to execute the DeleteMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteMembers service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DeleteMembers Operation
public virtual Task DeleteMembersAsync(DeleteMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeActionTargets
internal virtual DescribeActionTargetsResponse DescribeActionTargets(DescribeActionTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeActionTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeActionTargetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of the custom action targets in Security Hub in your account.
///
/// Container for the necessary parameters to execute the DescribeActionTargets service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeActionTargets service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DescribeActionTargets Operation
public virtual Task DescribeActionTargetsAsync(DescribeActionTargetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeActionTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeActionTargetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeHub
internal virtual DescribeHubResponse DescribeHub(DescribeHubRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHubResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns details about the Hub resource in your account, including the HubArn
/// and the time when you enabled Security Hub.
///
/// Container for the necessary parameters to execute the DescribeHub service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeHub service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DescribeHub Operation
public virtual Task DescribeHubAsync(DescribeHubRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHubResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeOrganizationConfiguration
internal virtual DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about the Organizations configuration for Security Hub. Can only
/// be called from a Security Hub administrator account.
///
/// Container for the necessary parameters to execute the DescribeOrganizationConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeOrganizationConfiguration service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for DescribeOrganizationConfiguration Operation
public virtual Task DescribeOrganizationConfigurationAsync(DescribeOrganizationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeProducts
internal virtual DescribeProductsResponse DescribeProducts(DescribeProductsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProductsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProductsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about product integrations in Security Hub.
///
///
///
/// You can optionally provide an integration ARN. If you provide an integration ARN,
/// then the results only include that integration.
///
///
///
/// If you do not provide an integration ARN, then the results include all of the available
/// product integrations.
///
///
/// Container for the necessary parameters to execute the DescribeProducts service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeProducts service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for DescribeProducts Operation
public virtual Task DescribeProductsAsync(DescribeProductsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProductsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProductsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeStandards
internal virtual DescribeStandardsResponse DescribeStandards(DescribeStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of the available standards in Security Hub.
///
///
///
/// For each standard, the results include the standard ARN, the name, and a description.
///
///
///
/// Container for the necessary parameters to execute the DescribeStandards service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeStandards service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
/// REST API Reference for DescribeStandards Operation
public virtual Task DescribeStandardsAsync(DescribeStandardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeStandardsControls
internal virtual DescribeStandardsControlsResponse DescribeStandardsControls(DescribeStandardsControlsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsControlsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of security standards controls.
///
///
///
/// For each control, the results include information about whether it is currently enabled,
/// the severity, and a link to remediation information.
///
///
/// Container for the necessary parameters to execute the DescribeStandardsControls service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeStandardsControls service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DescribeStandardsControls Operation
public virtual Task DescribeStandardsControlsAsync(DescribeStandardsControlsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsControlsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisableImportFindingsForProduct
internal virtual DisableImportFindingsForProductResponse DisableImportFindingsForProduct(DisableImportFindingsForProductRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableImportFindingsForProductResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disables the integration of the specified product with Security Hub. After the integration
/// is disabled, findings from that product are no longer sent to Security Hub.
///
/// Container for the necessary parameters to execute the DisableImportFindingsForProduct service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisableImportFindingsForProduct service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DisableImportFindingsForProduct Operation
public virtual Task DisableImportFindingsForProductAsync(DisableImportFindingsForProductRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableImportFindingsForProductResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisableOrganizationAdminAccount
internal virtual DisableOrganizationAdminAccountResponse DisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disables a Security Hub administrator account. Can only be called by the organization
/// management account.
///
/// Container for the necessary parameters to execute the DisableOrganizationAdminAccount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisableOrganizationAdminAccount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for DisableOrganizationAdminAccount Operation
public virtual Task DisableOrganizationAdminAccountAsync(DisableOrganizationAdminAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisableSecurityHub
internal virtual DisableSecurityHubResponse DisableSecurityHub(DisableSecurityHubRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableSecurityHubResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disables Security Hub in your account only in the current Region. To disable Security
/// Hub in all Regions, you must submit one request per Region where you have enabled
/// Security Hub.
///
///
///
/// When you disable Security Hub for an administrator account, it doesn't disable Security
/// Hub for any associated member accounts.
///
///
///
/// When you disable Security Hub, your existing findings and insights and any Security
/// Hub configuration settings are deleted after 90 days and cannot be recovered. Any
/// standards that were enabled are disabled, and your administrator and member account
/// associations are removed.
///
///
///
/// If you want to save your existing findings, you must export them before you disable
/// Security Hub.
///
///
/// Container for the necessary parameters to execute the DisableSecurityHub service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisableSecurityHub service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DisableSecurityHub Operation
public virtual Task DisableSecurityHubAsync(DisableSecurityHubRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableSecurityHubResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateFromAdministratorAccount
internal virtual DisassociateFromAdministratorAccountResponse DisassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromAdministratorAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disassociates the current Security Hub member account from the associated administrator
/// account.
///
///
///
/// This operation is only used by accounts that are not part of an organization. For
/// organization accounts, only the administrator account can disassociate a member account.
///
///
/// Container for the necessary parameters to execute the DisassociateFromAdministratorAccount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateFromAdministratorAccount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DisassociateFromAdministratorAccount Operation
public virtual Task DisassociateFromAdministratorAccountAsync(DisassociateFromAdministratorAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromAdministratorAccountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateFromMasterAccount
[Obsolete("This API has been deprecated, use DisassociateFromAdministratorAccount API instead.")]
internal virtual DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This method is deprecated. Instead, use DisassociateFromAdministratorAccount
.
///
///
///
/// The Security Hub console continues to use DisassociateFromMasterAccount
.
/// It will eventually change to use DisassociateFromAdministratorAccount
.
/// Any IAM policies that specifically control access to this function must continue to
/// use DisassociateFromMasterAccount
. You should also add DisassociateFromAdministratorAccount
/// to your policies to ensure that the correct permissions are in place after the console
/// begins to use DisassociateFromAdministratorAccount
.
///
///
///
/// Disassociates the current Security Hub member account from the associated administrator
/// account.
///
///
///
/// This operation is only used by accounts that are not part of an organization. For
/// organization accounts, only the administrator account can disassociate a member account.
///
///
/// Container for the necessary parameters to execute the DisassociateFromMasterAccount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateFromMasterAccount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DisassociateFromMasterAccount Operation
[Obsolete("This API has been deprecated, use DisassociateFromAdministratorAccount API instead.")]
public virtual Task DisassociateFromMasterAccountAsync(DisassociateFromMasterAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateMembers
internal virtual DisassociateMembersResponse DisassociateMembers(DisassociateMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disassociates the specified member accounts from the associated administrator account.
///
///
///
/// Can be used to disassociate both accounts that are managed using Organizations and
/// accounts that were invited manually.
///
///
/// Container for the necessary parameters to execute the DisassociateMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateMembers service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for DisassociateMembers Operation
public virtual Task DisassociateMembersAsync(DisassociateMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region EnableImportFindingsForProduct
internal virtual EnableImportFindingsForProductResponse EnableImportFindingsForProduct(EnableImportFindingsForProductRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableImportFindingsForProductResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Enables the integration of a partner product with Security Hub. Integrated products
/// send findings to Security Hub.
///
///
///
/// When you enable a product integration, a permissions policy that grants permission
/// for the product to send findings to Security Hub is applied.
///
///
/// Container for the necessary parameters to execute the EnableImportFindingsForProduct service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the EnableImportFindingsForProduct service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The resource specified in the request conflicts with an existing resource.
///
/// REST API Reference for EnableImportFindingsForProduct Operation
public virtual Task EnableImportFindingsForProductAsync(EnableImportFindingsForProductRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableImportFindingsForProductResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region EnableOrganizationAdminAccount
internal virtual EnableOrganizationAdminAccountResponse EnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Designates the Security Hub administrator account for an organization. Can only be
/// called by the organization management account.
///
/// Container for the necessary parameters to execute the EnableOrganizationAdminAccount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the EnableOrganizationAdminAccount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for EnableOrganizationAdminAccount Operation
public virtual Task EnableOrganizationAdminAccountAsync(EnableOrganizationAdminAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region EnableSecurityHub
internal virtual EnableSecurityHubResponse EnableSecurityHub(EnableSecurityHubRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableSecurityHubResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Enables Security Hub for your account in the current Region or the Region you specify
/// in the request.
///
///
///
/// When you enable Security Hub, you grant to Security Hub the permissions necessary
/// to gather findings from other services that are integrated with Security Hub.
///
///
///
/// When you use the EnableSecurityHub
operation to enable Security Hub,
/// you also automatically enable the following standards:
///
/// -
///
/// Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0
///
///
-
///
/// Amazon Web Services Foundational Security Best Practices
///
///
///
/// Other standards are not automatically enabled.
///
///
///
/// To opt out of automatically enabled standards, set EnableDefaultStandards
/// to false
.
///
///
///
/// After you enable Security Hub, to enable a standard, use the BatchEnableStandards
/// operation. To disable a standard, use the BatchDisableStandards
operation.
///
///
///
/// To learn more, see the setup
/// information in the Security Hub User Guide.
///
///
/// Container for the necessary parameters to execute the EnableSecurityHub service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the EnableSecurityHub service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The resource specified in the request conflicts with an existing resource.
///
/// REST API Reference for EnableSecurityHub Operation
public virtual Task EnableSecurityHubAsync(EnableSecurityHubRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableSecurityHubResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAdministratorAccount
internal virtual GetAdministratorAccountResponse GetAdministratorAccount(GetAdministratorAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAdministratorAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Provides the details for the Security Hub administrator account for the current member
/// account.
///
///
///
/// Can be used by both member accounts that are managed using Organizations and accounts
/// that were invited manually.
///
///
/// Container for the necessary parameters to execute the GetAdministratorAccount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAdministratorAccount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for GetAdministratorAccount Operation
public virtual Task GetAdministratorAccountAsync(GetAdministratorAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAdministratorAccountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetEnabledStandards
internal virtual GetEnabledStandardsResponse GetEnabledStandards(GetEnabledStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEnabledStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEnabledStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of the standards that are currently enabled.
///
/// Container for the necessary parameters to execute the GetEnabledStandards service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetEnabledStandards service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for GetEnabledStandards Operation
public virtual Task GetEnabledStandardsAsync(GetEnabledStandardsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEnabledStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEnabledStandardsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetFindingAggregator
internal virtual GetFindingAggregatorResponse GetFindingAggregator(GetFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the current finding aggregation configuration.
///
/// Container for the necessary parameters to execute the GetFindingAggregator service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetFindingAggregator service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for GetFindingAggregator Operation
public virtual Task GetFindingAggregatorAsync(GetFindingAggregatorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingAggregatorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetFindingHistory
internal virtual GetFindingHistoryResponse GetFindingHistory(GetFindingHistoryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingHistoryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns history for a Security Hub finding in the last 90 days. The history includes
/// changes made to any fields in the Amazon Web Services Security Finding Format (ASFF).
///
/// Container for the necessary parameters to execute the GetFindingHistory service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetFindingHistory service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for GetFindingHistory Operation
public virtual Task GetFindingHistoryAsync(GetFindingHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingHistoryResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetFindings
internal virtual GetFindingsResponse GetFindings(GetFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of findings that match the specified criteria.
///
///
///
/// If finding aggregation is enabled, then when you call GetFindings
from
/// the aggregation Region, the results include all of the matching findings from both
/// the aggregation Region and the linked Regions.
///
///
/// Container for the necessary parameters to execute the GetFindings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetFindings service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for GetFindings Operation
public virtual Task GetFindingsAsync(GetFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetInsightResults
internal virtual GetInsightResultsResponse GetInsightResults(GetInsightResultsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightResultsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightResultsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the results of the Security Hub insight specified by the insight ARN.
///
/// Container for the necessary parameters to execute the GetInsightResults service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetInsightResults service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for GetInsightResults Operation
public virtual Task GetInsightResultsAsync(GetInsightResultsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightResultsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightResultsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetInsights
internal virtual GetInsightsResponse GetInsights(GetInsightsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists and describes insights for the specified insight ARNs.
///
/// Container for the necessary parameters to execute the GetInsights service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetInsights service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for GetInsights Operation
public virtual Task GetInsightsAsync(GetInsightsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetInvitationsCount
internal virtual GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the count of all Security Hub membership invitations that were sent to the
/// current member account, not including the currently accepted invitation.
///
/// Container for the necessary parameters to execute the GetInvitationsCount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetInvitationsCount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for GetInvitationsCount Operation
public virtual Task GetInvitationsCountAsync(GetInvitationsCountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetMasterAccount
[Obsolete("This API has been deprecated, use GetAdministratorAccount API instead.")]
internal virtual GetMasterAccountResponse GetMasterAccount(GetMasterAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This method is deprecated. Instead, use GetAdministratorAccount
.
///
///
///
/// The Security Hub console continues to use GetMasterAccount
. It will eventually
/// change to use GetAdministratorAccount
. Any IAM policies that specifically
/// control access to this function must continue to use GetMasterAccount
.
/// You should also add GetAdministratorAccount
to your policies to ensure
/// that the correct permissions are in place after the console begins to use GetAdministratorAccount
.
///
///
///
/// Provides the details for the Security Hub administrator account for the current member
/// account.
///
///
///
/// Can be used by both member accounts that are managed using Organizations and accounts
/// that were invited manually.
///
///
/// Container for the necessary parameters to execute the GetMasterAccount service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetMasterAccount service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for GetMasterAccount Operation
[Obsolete("This API has been deprecated, use GetAdministratorAccount API instead.")]
public virtual Task GetMasterAccountAsync(GetMasterAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetMembers
internal virtual GetMembersResponse GetMembers(GetMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the details for the Security Hub member accounts for the specified account
/// IDs.
///
///
///
/// An administrator account can be either the delegated Security Hub administrator account
/// for an organization or an administrator account that enabled Security Hub manually.
///
///
///
/// The results include both member accounts that are managed using Organizations and
/// accounts that were invited manually.
///
///
/// Container for the necessary parameters to execute the GetMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetMembers service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for GetMembers Operation
public virtual Task GetMembersAsync(GetMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region InviteMembers
internal virtual InviteMembersResponse InviteMembers(InviteMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Invites other Amazon Web Services accounts to become member accounts for the Security
/// Hub administrator account that the invitation is sent from.
///
///
///
/// This operation is only used to invite accounts that do not belong to an organization.
/// Organization accounts do not receive invitations.
///
///
///
/// Before you can use this action to invite a member, you must first use the CreateMembers
/// action to create the member account in Security Hub.
///
///
///
/// When the account owner enables Security Hub and accepts the invitation to become a
/// member account, the administrator account can view the findings generated from the
/// member account.
///
///
/// Container for the necessary parameters to execute the InviteMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the InviteMembers service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for InviteMembers Operation
public virtual Task InviteMembersAsync(InviteMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAutomationRules
internal virtual ListAutomationRulesResponse ListAutomationRules(ListAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// A list of automation rules and their metadata for the calling account.
///
/// Container for the necessary parameters to execute the ListAutomationRules service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAutomationRules service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListAutomationRules Operation
public virtual Task ListAutomationRulesAsync(ListAutomationRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutomationRulesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListEnabledProductsForImport
internal virtual ListEnabledProductsForImportResponse ListEnabledProductsForImport(ListEnabledProductsForImportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEnabledProductsForImportRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEnabledProductsForImportResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all findings-generating solutions (products) that you are subscribed to receive
/// findings from in Security Hub.
///
/// Container for the necessary parameters to execute the ListEnabledProductsForImport service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListEnabledProductsForImport service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListEnabledProductsForImport Operation
public virtual Task ListEnabledProductsForImportAsync(ListEnabledProductsForImportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEnabledProductsForImportRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEnabledProductsForImportResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListFindingAggregators
internal virtual ListFindingAggregatorsResponse ListFindingAggregators(ListFindingAggregatorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingAggregatorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingAggregatorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// If finding aggregation is enabled, then ListFindingAggregators
returns
/// the ARN of the finding aggregator. You can run this operation from any Region.
///
/// Container for the necessary parameters to execute the ListFindingAggregators service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListFindingAggregators service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListFindingAggregators Operation
public virtual Task ListFindingAggregatorsAsync(ListFindingAggregatorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingAggregatorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingAggregatorsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListInvitations
internal virtual ListInvitationsResponse ListInvitations(ListInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all Security Hub membership invitations that were sent to the current Amazon
/// Web Services account.
///
///
///
/// This operation is only used by accounts that are managed by invitation. Accounts that
/// are managed using the integration with Organizations do not receive invitations.
///
///
/// Container for the necessary parameters to execute the ListInvitations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListInvitations service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListInvitations Operation
public virtual Task ListInvitationsAsync(ListInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMembers
internal virtual ListMembersResponse ListMembers(ListMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists details about all member accounts for the current Security Hub administrator
/// account.
///
///
///
/// The results include both member accounts that belong to an organization and member
/// accounts that were invited manually.
///
///
/// Container for the necessary parameters to execute the ListMembers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMembers service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListMembers Operation
public virtual Task ListMembersAsync(ListMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListOrganizationAdminAccounts
internal virtual ListOrganizationAdminAccountsResponse ListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the Security Hub administrator accounts. Can only be called by the organization
/// management account.
///
/// Container for the necessary parameters to execute the ListOrganizationAdminAccounts service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListOrganizationAdminAccounts service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListOrganizationAdminAccounts Operation
public virtual Task ListOrganizationAdminAccountsAsync(ListOrganizationAdminAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListSecurityControlDefinitions
internal virtual ListSecurityControlDefinitionsResponse ListSecurityControlDefinitions(ListSecurityControlDefinitionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityControlDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityControlDefinitionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all of the security controls that apply to a specified standard.
///
/// Container for the necessary parameters to execute the ListSecurityControlDefinitions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSecurityControlDefinitions service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListSecurityControlDefinitions Operation
public virtual Task ListSecurityControlDefinitionsAsync(ListSecurityControlDefinitionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityControlDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityControlDefinitionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListStandardsControlAssociations
internal virtual ListStandardsControlAssociationsResponse ListStandardsControlAssociations(ListStandardsControlAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStandardsControlAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Specifies whether a control is currently enabled or disabled in each enabled standard
/// in the calling account.
///
/// Container for the necessary parameters to execute the ListStandardsControlAssociations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListStandardsControlAssociations service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for ListStandardsControlAssociations Operation
public virtual Task ListStandardsControlAssociationsAsync(ListStandardsControlAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStandardsControlAssociationsResponseUnmarshaller.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);
}
///
/// Returns a list of tags associated with a resource.
///
/// 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 SecurityHub.
///
/// Internal server error.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// 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 TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds one or more tags to a resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes one or more tags from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateActionTarget
internal virtual UpdateActionTargetResponse UpdateActionTarget(UpdateActionTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateActionTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the name and description of a custom action target in Security Hub.
///
/// Container for the necessary parameters to execute the UpdateActionTarget service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateActionTarget service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UpdateActionTarget Operation
public virtual Task UpdateActionTargetAsync(UpdateActionTargetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateActionTargetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateFindingAggregator
internal virtual UpdateFindingAggregatorResponse UpdateFindingAggregator(UpdateFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the finding aggregation configuration. Used to update the Region linking mode
/// and the list of included or excluded Regions. You cannot use UpdateFindingAggregator
/// to change the aggregation Region.
///
///
///
/// You must run UpdateFindingAggregator
from the current aggregation Region.
///
///
///
/// Container for the necessary parameters to execute the UpdateFindingAggregator service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateFindingAggregator service method, as returned by SecurityHub.
///
/// You don't have permission to perform the action specified in the request.
///
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UpdateFindingAggregator Operation
public virtual Task UpdateFindingAggregatorAsync(UpdateFindingAggregatorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingAggregatorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateFindings
internal virtual UpdateFindingsResponse UpdateFindings(UpdateFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// UpdateFindings
is deprecated. Instead of UpdateFindings
,
/// use BatchUpdateFindings
.
///
///
///
/// Updates the Note
and RecordState
of the Security Hub-aggregated
/// findings that the filter attributes specify. Any member account that can view the
/// finding also sees the update to the finding.
///
///
/// Container for the necessary parameters to execute the UpdateFindings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateFindings service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UpdateFindings Operation
public virtual Task UpdateFindingsAsync(UpdateFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateInsight
internal virtual UpdateInsightResponse UpdateInsight(UpdateInsightRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateInsightResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the Security Hub insight identified by the specified insight ARN.
///
/// Container for the necessary parameters to execute the UpdateInsight service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateInsight service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UpdateInsight Operation
public virtual Task UpdateInsightAsync(UpdateInsightRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateInsightResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateOrganizationConfiguration
internal virtual UpdateOrganizationConfigurationResponse UpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Used to update the configuration related to Organizations. Can only be called from
/// a Security Hub administrator account.
///
/// Container for the necessary parameters to execute the UpdateOrganizationConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateOrganizationConfiguration service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
/// REST API Reference for UpdateOrganizationConfiguration Operation
public virtual Task UpdateOrganizationConfigurationAsync(UpdateOrganizationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateSecurityHubConfiguration
internal virtual UpdateSecurityHubConfigurationResponse UpdateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityHubConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityHubConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates configuration options for Security Hub.
///
/// Container for the necessary parameters to execute the UpdateSecurityHubConfiguration service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSecurityHubConfiguration service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because it attempted to create resources beyond the current
/// Amazon Web Services account or throttling limits. The error code describes the limit
/// exceeded.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UpdateSecurityHubConfiguration Operation
public virtual Task UpdateSecurityHubConfigurationAsync(UpdateSecurityHubConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityHubConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityHubConfigurationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateStandardsControl
internal virtual UpdateStandardsControlResponse UpdateStandardsControl(UpdateStandardsControlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStandardsControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStandardsControlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Used to control whether an individual security standard control is enabled or disabled.
///
/// Container for the necessary parameters to execute the UpdateStandardsControl service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateStandardsControl service method, as returned by SecurityHub.
///
/// Internal server error.
///
///
/// The account doesn't have permission to perform this action.
///
///
/// The request was rejected because you supplied an invalid or out-of-range value for
/// an input parameter.
///
///
/// The request was rejected because we can't find the specified resource.
///
/// REST API Reference for UpdateStandardsControl Operation
public virtual Task UpdateStandardsControlAsync(UpdateStandardsControlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStandardsControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStandardsControlResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}