/*
* 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.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();
#if BCL45 || 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 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
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new 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
///
/// 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.
///
/// 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 AcceptAdministratorInvitationResponse AcceptAdministratorInvitation(AcceptAdministratorInvitationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptAdministratorInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptAdministratorInvitationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the AcceptAdministratorInvitation operation.
///
///
/// Container for the necessary parameters to execute the AcceptAdministratorInvitation operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAcceptAdministratorInvitation
/// operation.
/// REST API Reference for AcceptAdministratorInvitation Operation
public virtual IAsyncResult BeginAcceptAdministratorInvitation(AcceptAdministratorInvitationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptAdministratorInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptAdministratorInvitationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the AcceptAdministratorInvitation operation.
///
///
/// The IAsyncResult returned by the call to BeginAcceptAdministratorInvitation.
///
/// Returns a AcceptAdministratorInvitationResult from SecurityHub.
/// REST API Reference for AcceptAdministratorInvitation Operation
public virtual AcceptAdministratorInvitationResponse EndAcceptAdministratorInvitation(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region AcceptInvitation
///
/// 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.
///
/// 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 AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the AcceptInvitation operation.
///
///
/// Container for the necessary parameters to execute the AcceptInvitation operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAcceptInvitation
/// operation.
/// REST API Reference for AcceptInvitation Operation
[Obsolete("This API has been deprecated, use AcceptAdministratorInvitation API instead.")]
public virtual IAsyncResult BeginAcceptInvitation(AcceptInvitationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;
options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the AcceptInvitation operation.
///
///
/// The IAsyncResult returned by the call to BeginAcceptInvitation.
///
/// Returns a AcceptInvitationResult from SecurityHub.
/// REST API Reference for AcceptInvitation Operation
[Obsolete("This API has been deprecated, use AcceptAdministratorInvitation API instead.")]
public virtual AcceptInvitationResponse EndAcceptInvitation(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchDeleteAutomationRules
///
/// Deletes one or more automation rules.
///
/// Container for the necessary parameters to execute the BatchDeleteAutomationRules service method.
///
/// 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 BatchDeleteAutomationRulesResponse BatchDeleteAutomationRules(BatchDeleteAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchDeleteAutomationRules operation.
///
///
/// Container for the necessary parameters to execute the BatchDeleteAutomationRules operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteAutomationRules
/// operation.
/// REST API Reference for BatchDeleteAutomationRules Operation
public virtual IAsyncResult BeginBatchDeleteAutomationRules(BatchDeleteAutomationRulesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDeleteAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDeleteAutomationRulesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchDeleteAutomationRules operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchDeleteAutomationRules.
///
/// Returns a BatchDeleteAutomationRulesResult from SecurityHub.
/// REST API Reference for BatchDeleteAutomationRules Operation
public virtual BatchDeleteAutomationRulesResponse EndBatchDeleteAutomationRules(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchDisableStandards
///
/// 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.
///
/// 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 BatchDisableStandardsResponse BatchDisableStandards(BatchDisableStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchDisableStandards operation.
///
///
/// Container for the necessary parameters to execute the BatchDisableStandards operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDisableStandards
/// operation.
/// REST API Reference for BatchDisableStandards Operation
public virtual IAsyncResult BeginBatchDisableStandards(BatchDisableStandardsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchDisableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchDisableStandardsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchDisableStandards operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchDisableStandards.
///
/// Returns a BatchDisableStandardsResult from SecurityHub.
/// REST API Reference for BatchDisableStandards Operation
public virtual BatchDisableStandardsResponse EndBatchDisableStandards(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchEnableStandards
///
/// 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.
///
/// 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 BatchEnableStandardsResponse BatchEnableStandards(BatchEnableStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchEnableStandards operation.
///
///
/// Container for the necessary parameters to execute the BatchEnableStandards operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchEnableStandards
/// operation.
/// REST API Reference for BatchEnableStandards Operation
public virtual IAsyncResult BeginBatchEnableStandards(BatchEnableStandardsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchEnableStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchEnableStandardsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchEnableStandards operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchEnableStandards.
///
/// Returns a BatchEnableStandardsResult from SecurityHub.
/// REST API Reference for BatchEnableStandards Operation
public virtual BatchEnableStandardsResponse EndBatchEnableStandards(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchGetAutomationRules
///
/// 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.
///
/// 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 BatchGetAutomationRulesResponse BatchGetAutomationRules(BatchGetAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchGetAutomationRules operation.
///
///
/// Container for the necessary parameters to execute the BatchGetAutomationRules operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetAutomationRules
/// operation.
/// REST API Reference for BatchGetAutomationRules Operation
public virtual IAsyncResult BeginBatchGetAutomationRules(BatchGetAutomationRulesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetAutomationRulesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchGetAutomationRules operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchGetAutomationRules.
///
/// Returns a BatchGetAutomationRulesResult from SecurityHub.
/// REST API Reference for BatchGetAutomationRules Operation
public virtual BatchGetAutomationRulesResponse EndBatchGetAutomationRules(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchGetSecurityControls
///
/// 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.
///
/// 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 BatchGetSecurityControlsResponse BatchGetSecurityControls(BatchGetSecurityControlsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetSecurityControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetSecurityControlsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchGetSecurityControls operation.
///
///
/// Container for the necessary parameters to execute the BatchGetSecurityControls operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetSecurityControls
/// operation.
/// REST API Reference for BatchGetSecurityControls Operation
public virtual IAsyncResult BeginBatchGetSecurityControls(BatchGetSecurityControlsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetSecurityControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetSecurityControlsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchGetSecurityControls operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchGetSecurityControls.
///
/// Returns a BatchGetSecurityControlsResult from SecurityHub.
/// REST API Reference for BatchGetSecurityControls Operation
public virtual BatchGetSecurityControlsResponse EndBatchGetSecurityControls(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchGetStandardsControlAssociations
///
/// 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.
///
/// 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 BatchGetStandardsControlAssociationsResponse BatchGetStandardsControlAssociations(BatchGetStandardsControlAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetStandardsControlAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchGetStandardsControlAssociations operation.
///
///
/// Container for the necessary parameters to execute the BatchGetStandardsControlAssociations operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetStandardsControlAssociations
/// operation.
/// REST API Reference for BatchGetStandardsControlAssociations Operation
public virtual IAsyncResult BeginBatchGetStandardsControlAssociations(BatchGetStandardsControlAssociationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchGetStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchGetStandardsControlAssociationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchGetStandardsControlAssociations operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchGetStandardsControlAssociations.
///
/// Returns a BatchGetStandardsControlAssociationsResult from SecurityHub.
/// REST API Reference for BatchGetStandardsControlAssociations Operation
public virtual BatchGetStandardsControlAssociationsResponse EndBatchGetStandardsControlAssociations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchImportFindings
///
/// 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.
///
/// 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 BatchImportFindingsResponse BatchImportFindings(BatchImportFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchImportFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchImportFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchImportFindings operation.
///
///
/// Container for the necessary parameters to execute the BatchImportFindings operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchImportFindings
/// operation.
/// REST API Reference for BatchImportFindings Operation
public virtual IAsyncResult BeginBatchImportFindings(BatchImportFindingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchImportFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchImportFindingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchImportFindings operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchImportFindings.
///
/// Returns a BatchImportFindingsResult from SecurityHub.
/// REST API Reference for BatchImportFindings Operation
public virtual BatchImportFindingsResponse EndBatchImportFindings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchUpdateAutomationRules
///
/// 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.
///
/// 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 BatchUpdateAutomationRulesResponse BatchUpdateAutomationRules(BatchUpdateAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchUpdateAutomationRules operation.
///
///
/// Container for the necessary parameters to execute the BatchUpdateAutomationRules operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchUpdateAutomationRules
/// operation.
/// REST API Reference for BatchUpdateAutomationRules Operation
public virtual IAsyncResult BeginBatchUpdateAutomationRules(BatchUpdateAutomationRulesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateAutomationRulesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchUpdateAutomationRules operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchUpdateAutomationRules.
///
/// Returns a BatchUpdateAutomationRulesResult from SecurityHub.
/// REST API Reference for BatchUpdateAutomationRules Operation
public virtual BatchUpdateAutomationRulesResponse EndBatchUpdateAutomationRules(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchUpdateFindings
///
/// 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.
///
/// 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 BatchUpdateFindingsResponse BatchUpdateFindings(BatchUpdateFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchUpdateFindings operation.
///
///
/// Container for the necessary parameters to execute the BatchUpdateFindings operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchUpdateFindings
/// operation.
/// REST API Reference for BatchUpdateFindings Operation
public virtual IAsyncResult BeginBatchUpdateFindings(BatchUpdateFindingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateFindingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchUpdateFindings operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchUpdateFindings.
///
/// Returns a BatchUpdateFindingsResult from SecurityHub.
/// REST API Reference for BatchUpdateFindings Operation
public virtual BatchUpdateFindingsResponse EndBatchUpdateFindings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region BatchUpdateStandardsControlAssociations
///
/// 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.
///
/// 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 BatchUpdateStandardsControlAssociationsResponse BatchUpdateStandardsControlAssociations(BatchUpdateStandardsControlAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateStandardsControlAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the BatchUpdateStandardsControlAssociations operation.
///
///
/// Container for the necessary parameters to execute the BatchUpdateStandardsControlAssociations operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchUpdateStandardsControlAssociations
/// operation.
/// REST API Reference for BatchUpdateStandardsControlAssociations Operation
public virtual IAsyncResult BeginBatchUpdateStandardsControlAssociations(BatchUpdateStandardsControlAssociationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = BatchUpdateStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = BatchUpdateStandardsControlAssociationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the BatchUpdateStandardsControlAssociations operation.
///
///
/// The IAsyncResult returned by the call to BeginBatchUpdateStandardsControlAssociations.
///
/// Returns a BatchUpdateStandardsControlAssociationsResult from SecurityHub.
/// REST API Reference for BatchUpdateStandardsControlAssociations Operation
public virtual BatchUpdateStandardsControlAssociationsResponse EndBatchUpdateStandardsControlAssociations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateActionTarget
///
/// 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.
///
/// 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 CreateActionTargetResponse CreateActionTarget(CreateActionTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateActionTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateActionTarget operation.
///
///
/// Container for the necessary parameters to execute the CreateActionTarget operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateActionTarget
/// operation.
/// REST API Reference for CreateActionTarget Operation
public virtual IAsyncResult BeginCreateActionTarget(CreateActionTargetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateActionTargetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateActionTarget operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateActionTarget.
///
/// Returns a CreateActionTargetResult from SecurityHub.
/// REST API Reference for CreateActionTarget Operation
public virtual CreateActionTargetResponse EndCreateActionTarget(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateAutomationRule
///
/// Creates an automation rule based on input parameters.
///
/// Container for the necessary parameters to execute the CreateAutomationRule service method.
///
/// 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 CreateAutomationRuleResponse CreateAutomationRule(CreateAutomationRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutomationRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutomationRuleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateAutomationRule operation.
///
///
/// Container for the necessary parameters to execute the CreateAutomationRule operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAutomationRule
/// operation.
/// REST API Reference for CreateAutomationRule Operation
public virtual IAsyncResult BeginCreateAutomationRule(CreateAutomationRuleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAutomationRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAutomationRuleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateAutomationRule operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateAutomationRule.
///
/// Returns a CreateAutomationRuleResult from SecurityHub.
/// REST API Reference for CreateAutomationRule Operation
public virtual CreateAutomationRuleResponse EndCreateAutomationRule(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateFindingAggregator
///
/// 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.
///
/// 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 CreateFindingAggregatorResponse CreateFindingAggregator(CreateFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateFindingAggregator operation.
///
///
/// Container for the necessary parameters to execute the CreateFindingAggregator operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFindingAggregator
/// operation.
/// REST API Reference for CreateFindingAggregator Operation
public virtual IAsyncResult BeginCreateFindingAggregator(CreateFindingAggregatorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFindingAggregatorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateFindingAggregator operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateFindingAggregator.
///
/// Returns a CreateFindingAggregatorResult from SecurityHub.
/// REST API Reference for CreateFindingAggregator Operation
public virtual CreateFindingAggregatorResponse EndCreateFindingAggregator(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateInsight
///
/// 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.
///
/// 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 CreateInsightResponse CreateInsight(CreateInsightRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInsightResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateInsight operation.
///
///
/// Container for the necessary parameters to execute the CreateInsight operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateInsight
/// operation.
/// REST API Reference for CreateInsight Operation
public virtual IAsyncResult BeginCreateInsight(CreateInsightRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateInsightResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateInsight operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateInsight.
///
/// Returns a CreateInsightResult from SecurityHub.
/// REST API Reference for CreateInsight Operation
public virtual CreateInsightResponse EndCreateInsight(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateMembers
///
/// 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.
///
/// 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 CreateMembersResponse CreateMembers(CreateMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateMembers operation.
///
///
/// Container for the necessary parameters to execute the CreateMembers operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateMembers
/// operation.
/// REST API Reference for CreateMembers Operation
public virtual IAsyncResult BeginCreateMembers(CreateMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateMembers.
///
/// Returns a CreateMembersResult from SecurityHub.
/// REST API Reference for CreateMembers Operation
public virtual CreateMembersResponse EndCreateMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeclineInvitations
///
/// 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.
///
/// 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 DeclineInvitationsResponse DeclineInvitations(DeclineInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeclineInvitations operation.
///
///
/// Container for the necessary parameters to execute the DeclineInvitations operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeclineInvitations
/// operation.
/// REST API Reference for DeclineInvitations Operation
public virtual IAsyncResult BeginDeclineInvitations(DeclineInvitationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeclineInvitations operation.
///
///
/// The IAsyncResult returned by the call to BeginDeclineInvitations.
///
/// Returns a DeclineInvitationsResult from SecurityHub.
/// REST API Reference for DeclineInvitations Operation
public virtual DeclineInvitationsResponse EndDeclineInvitations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteActionTarget
///
/// 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.
///
/// 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 DeleteActionTargetResponse DeleteActionTarget(DeleteActionTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteActionTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteActionTarget operation.
///
///
/// Container for the necessary parameters to execute the DeleteActionTarget operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteActionTarget
/// operation.
/// REST API Reference for DeleteActionTarget Operation
public virtual IAsyncResult BeginDeleteActionTarget(DeleteActionTargetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteActionTargetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteActionTarget operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteActionTarget.
///
/// Returns a DeleteActionTargetResult from SecurityHub.
/// REST API Reference for DeleteActionTarget Operation
public virtual DeleteActionTargetResponse EndDeleteActionTarget(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteFindingAggregator
///
/// 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.
///
/// 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 DeleteFindingAggregatorResponse DeleteFindingAggregator(DeleteFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteFindingAggregator operation.
///
///
/// Container for the necessary parameters to execute the DeleteFindingAggregator operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFindingAggregator
/// operation.
/// REST API Reference for DeleteFindingAggregator Operation
public virtual IAsyncResult BeginDeleteFindingAggregator(DeleteFindingAggregatorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFindingAggregatorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteFindingAggregator operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteFindingAggregator.
///
/// Returns a DeleteFindingAggregatorResult from SecurityHub.
/// REST API Reference for DeleteFindingAggregator Operation
public virtual DeleteFindingAggregatorResponse EndDeleteFindingAggregator(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteInsight
///
/// Deletes the insight specified by the InsightArn
.
///
/// Container for the necessary parameters to execute the DeleteInsight service method.
///
/// 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 DeleteInsightResponse DeleteInsight(DeleteInsightRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInsightResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteInsight operation.
///
///
/// Container for the necessary parameters to execute the DeleteInsight operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteInsight
/// operation.
/// REST API Reference for DeleteInsight Operation
public virtual IAsyncResult BeginDeleteInsight(DeleteInsightRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInsightResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteInsight operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteInsight.
///
/// Returns a DeleteInsightResult from SecurityHub.
/// REST API Reference for DeleteInsight Operation
public virtual DeleteInsightResponse EndDeleteInsight(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteInvitations
///
/// 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.
///
/// 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 DeleteInvitationsResponse DeleteInvitations(DeleteInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteInvitations operation.
///
///
/// Container for the necessary parameters to execute the DeleteInvitations operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteInvitations
/// operation.
/// REST API Reference for DeleteInvitations Operation
public virtual IAsyncResult BeginDeleteInvitations(DeleteInvitationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteInvitations operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteInvitations.
///
/// Returns a DeleteInvitationsResult from SecurityHub.
/// REST API Reference for DeleteInvitations Operation
public virtual DeleteInvitationsResponse EndDeleteInvitations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteMembers
///
/// 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.
///
/// 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 DeleteMembersResponse DeleteMembers(DeleteMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteMembers operation.
///
///
/// Container for the necessary parameters to execute the DeleteMembers operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMembers
/// operation.
/// REST API Reference for DeleteMembers Operation
public virtual IAsyncResult BeginDeleteMembers(DeleteMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteMembers.
///
/// Returns a DeleteMembersResult from SecurityHub.
/// REST API Reference for DeleteMembers Operation
public virtual DeleteMembersResponse EndDeleteMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeActionTargets
///
/// 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.
///
/// 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 DescribeActionTargetsResponse DescribeActionTargets(DescribeActionTargetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeActionTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeActionTargetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeActionTargets operation.
///
///
/// Container for the necessary parameters to execute the DescribeActionTargets operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeActionTargets
/// operation.
/// REST API Reference for DescribeActionTargets Operation
public virtual IAsyncResult BeginDescribeActionTargets(DescribeActionTargetsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeActionTargetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeActionTargetsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeActionTargets operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeActionTargets.
///
/// Returns a DescribeActionTargetsResult from SecurityHub.
/// REST API Reference for DescribeActionTargets Operation
public virtual DescribeActionTargetsResponse EndDescribeActionTargets(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeHub
///
/// 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.
///
/// 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 DescribeHubResponse DescribeHub(DescribeHubRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHubResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeHub operation.
///
///
/// Container for the necessary parameters to execute the DescribeHub operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHub
/// operation.
/// REST API Reference for DescribeHub Operation
public virtual IAsyncResult BeginDescribeHub(DescribeHubRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHubResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeHub operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeHub.
///
/// Returns a DescribeHubResult from SecurityHub.
/// REST API Reference for DescribeHub Operation
public virtual DescribeHubResponse EndDescribeHub(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeOrganizationConfiguration
///
/// 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.
///
/// 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 DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeOrganizationConfiguration operation.
///
///
/// Container for the necessary parameters to execute the DescribeOrganizationConfiguration operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeOrganizationConfiguration
/// operation.
/// REST API Reference for DescribeOrganizationConfiguration Operation
public virtual IAsyncResult BeginDescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeOrganizationConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeOrganizationConfiguration.
///
/// Returns a DescribeOrganizationConfigurationResult from SecurityHub.
/// REST API Reference for DescribeOrganizationConfiguration Operation
public virtual DescribeOrganizationConfigurationResponse EndDescribeOrganizationConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeProducts
///
/// 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.
///
/// 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 DescribeProductsResponse DescribeProducts(DescribeProductsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProductsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProductsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeProducts operation.
///
///
/// Container for the necessary parameters to execute the DescribeProducts operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProducts
/// operation.
/// REST API Reference for DescribeProducts Operation
public virtual IAsyncResult BeginDescribeProducts(DescribeProductsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProductsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProductsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeProducts operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeProducts.
///
/// Returns a DescribeProductsResult from SecurityHub.
/// REST API Reference for DescribeProducts Operation
public virtual DescribeProductsResponse EndDescribeProducts(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeStandards
///
/// 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.
///
/// 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 DescribeStandardsResponse DescribeStandards(DescribeStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeStandards operation.
///
///
/// Container for the necessary parameters to execute the DescribeStandards operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeStandards
/// operation.
/// REST API Reference for DescribeStandards Operation
public virtual IAsyncResult BeginDescribeStandards(DescribeStandardsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeStandards operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeStandards.
///
/// Returns a DescribeStandardsResult from SecurityHub.
/// REST API Reference for DescribeStandards Operation
public virtual DescribeStandardsResponse EndDescribeStandards(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeStandardsControls
///
/// 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.
///
/// 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 DescribeStandardsControlsResponse DescribeStandardsControls(DescribeStandardsControlsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsControlsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeStandardsControls operation.
///
///
/// Container for the necessary parameters to execute the DescribeStandardsControls operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeStandardsControls
/// operation.
/// REST API Reference for DescribeStandardsControls Operation
public virtual IAsyncResult BeginDescribeStandardsControls(DescribeStandardsControlsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStandardsControlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStandardsControlsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeStandardsControls operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeStandardsControls.
///
/// Returns a DescribeStandardsControlsResult from SecurityHub.
/// REST API Reference for DescribeStandardsControls Operation
public virtual DescribeStandardsControlsResponse EndDescribeStandardsControls(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisableImportFindingsForProduct
///
/// 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.
///
/// 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 DisableImportFindingsForProductResponse DisableImportFindingsForProduct(DisableImportFindingsForProductRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableImportFindingsForProductResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisableImportFindingsForProduct operation.
///
///
/// Container for the necessary parameters to execute the DisableImportFindingsForProduct operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableImportFindingsForProduct
/// operation.
/// REST API Reference for DisableImportFindingsForProduct Operation
public virtual IAsyncResult BeginDisableImportFindingsForProduct(DisableImportFindingsForProductRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableImportFindingsForProductResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisableImportFindingsForProduct operation.
///
///
/// The IAsyncResult returned by the call to BeginDisableImportFindingsForProduct.
///
/// Returns a DisableImportFindingsForProductResult from SecurityHub.
/// REST API Reference for DisableImportFindingsForProduct Operation
public virtual DisableImportFindingsForProductResponse EndDisableImportFindingsForProduct(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisableOrganizationAdminAccount
///
/// 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.
///
/// 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 DisableOrganizationAdminAccountResponse DisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisableOrganizationAdminAccount operation.
///
///
/// Container for the necessary parameters to execute the DisableOrganizationAdminAccount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableOrganizationAdminAccount
/// operation.
/// REST API Reference for DisableOrganizationAdminAccount Operation
public virtual IAsyncResult BeginDisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisableOrganizationAdminAccount operation.
///
///
/// The IAsyncResult returned by the call to BeginDisableOrganizationAdminAccount.
///
/// Returns a DisableOrganizationAdminAccountResult from SecurityHub.
/// REST API Reference for DisableOrganizationAdminAccount Operation
public virtual DisableOrganizationAdminAccountResponse EndDisableOrganizationAdminAccount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisableSecurityHub
///
/// 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.
///
/// 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 DisableSecurityHubResponse DisableSecurityHub(DisableSecurityHubRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableSecurityHubResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisableSecurityHub operation.
///
///
/// Container for the necessary parameters to execute the DisableSecurityHub operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableSecurityHub
/// operation.
/// REST API Reference for DisableSecurityHub Operation
public virtual IAsyncResult BeginDisableSecurityHub(DisableSecurityHubRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableSecurityHubResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisableSecurityHub operation.
///
///
/// The IAsyncResult returned by the call to BeginDisableSecurityHub.
///
/// Returns a DisableSecurityHubResult from SecurityHub.
/// REST API Reference for DisableSecurityHub Operation
public virtual DisableSecurityHubResponse EndDisableSecurityHub(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region 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 DisassociateFromAdministratorAccount service method.
///
/// 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 DisassociateFromAdministratorAccountResponse DisassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromAdministratorAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisassociateFromAdministratorAccount operation.
///
///
/// Container for the necessary parameters to execute the DisassociateFromAdministratorAccount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateFromAdministratorAccount
/// operation.
/// REST API Reference for DisassociateFromAdministratorAccount Operation
public virtual IAsyncResult BeginDisassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromAdministratorAccountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisassociateFromAdministratorAccount operation.
///
///
/// The IAsyncResult returned by the call to BeginDisassociateFromAdministratorAccount.
///
/// Returns a DisassociateFromAdministratorAccountResult from SecurityHub.
/// REST API Reference for DisassociateFromAdministratorAccount Operation
public virtual DisassociateFromAdministratorAccountResponse EndDisassociateFromAdministratorAccount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisassociateFromMasterAccount
///
/// 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.
///
/// 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 DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisassociateFromMasterAccount operation.
///
///
/// Container for the necessary parameters to execute the DisassociateFromMasterAccount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateFromMasterAccount
/// operation.
/// REST API Reference for DisassociateFromMasterAccount Operation
[Obsolete("This API has been deprecated, use DisassociateFromAdministratorAccount API instead.")]
public virtual IAsyncResult BeginDisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisassociateFromMasterAccount operation.
///
///
/// The IAsyncResult returned by the call to BeginDisassociateFromMasterAccount.
///
/// Returns a DisassociateFromMasterAccountResult from SecurityHub.
/// REST API Reference for DisassociateFromMasterAccount Operation
[Obsolete("This API has been deprecated, use DisassociateFromAdministratorAccount API instead.")]
public virtual DisassociateFromMasterAccountResponse EndDisassociateFromMasterAccount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisassociateMembers
///
/// 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.
///
/// 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 DisassociateMembersResponse DisassociateMembers(DisassociateMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisassociateMembers operation.
///
///
/// Container for the necessary parameters to execute the DisassociateMembers operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateMembers
/// operation.
/// REST API Reference for DisassociateMembers Operation
public virtual IAsyncResult BeginDisassociateMembers(DisassociateMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisassociateMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginDisassociateMembers.
///
/// Returns a DisassociateMembersResult from SecurityHub.
/// REST API Reference for DisassociateMembers Operation
public virtual DisassociateMembersResponse EndDisassociateMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region EnableImportFindingsForProduct
///
/// 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.
///
/// 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 EnableImportFindingsForProductResponse EnableImportFindingsForProduct(EnableImportFindingsForProductRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableImportFindingsForProductResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the EnableImportFindingsForProduct operation.
///
///
/// Container for the necessary parameters to execute the EnableImportFindingsForProduct operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableImportFindingsForProduct
/// operation.
/// REST API Reference for EnableImportFindingsForProduct Operation
public virtual IAsyncResult BeginEnableImportFindingsForProduct(EnableImportFindingsForProductRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableImportFindingsForProductRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableImportFindingsForProductResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the EnableImportFindingsForProduct operation.
///
///
/// The IAsyncResult returned by the call to BeginEnableImportFindingsForProduct.
///
/// Returns a EnableImportFindingsForProductResult from SecurityHub.
/// REST API Reference for EnableImportFindingsForProduct Operation
public virtual EnableImportFindingsForProductResponse EndEnableImportFindingsForProduct(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region EnableOrganizationAdminAccount
///
/// 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.
///
/// 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 EnableOrganizationAdminAccountResponse EnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the EnableOrganizationAdminAccount operation.
///
///
/// Container for the necessary parameters to execute the EnableOrganizationAdminAccount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableOrganizationAdminAccount
/// operation.
/// REST API Reference for EnableOrganizationAdminAccount Operation
public virtual IAsyncResult BeginEnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the EnableOrganizationAdminAccount operation.
///
///
/// The IAsyncResult returned by the call to BeginEnableOrganizationAdminAccount.
///
/// Returns a EnableOrganizationAdminAccountResult from SecurityHub.
/// REST API Reference for EnableOrganizationAdminAccount Operation
public virtual EnableOrganizationAdminAccountResponse EndEnableOrganizationAdminAccount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region EnableSecurityHub
///
/// 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.
///
/// 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 EnableSecurityHubResponse EnableSecurityHub(EnableSecurityHubRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableSecurityHubResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the EnableSecurityHub operation.
///
///
/// Container for the necessary parameters to execute the EnableSecurityHub operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableSecurityHub
/// operation.
/// REST API Reference for EnableSecurityHub Operation
public virtual IAsyncResult BeginEnableSecurityHub(EnableSecurityHubRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableSecurityHubRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableSecurityHubResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the EnableSecurityHub operation.
///
///
/// The IAsyncResult returned by the call to BeginEnableSecurityHub.
///
/// Returns a EnableSecurityHubResult from SecurityHub.
/// REST API Reference for EnableSecurityHub Operation
public virtual EnableSecurityHubResponse EndEnableSecurityHub(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region 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 GetAdministratorAccount service method.
///
/// 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 GetAdministratorAccountResponse GetAdministratorAccount(GetAdministratorAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAdministratorAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetAdministratorAccount operation.
///
///
/// Container for the necessary parameters to execute the GetAdministratorAccount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAdministratorAccount
/// operation.
/// REST API Reference for GetAdministratorAccount Operation
public virtual IAsyncResult BeginGetAdministratorAccount(GetAdministratorAccountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAdministratorAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAdministratorAccountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetAdministratorAccount operation.
///
///
/// The IAsyncResult returned by the call to BeginGetAdministratorAccount.
///
/// Returns a GetAdministratorAccountResult from SecurityHub.
/// REST API Reference for GetAdministratorAccount Operation
public virtual GetAdministratorAccountResponse EndGetAdministratorAccount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetEnabledStandards
///
/// Returns a list of the standards that are currently enabled.
///
/// Container for the necessary parameters to execute the GetEnabledStandards service method.
///
/// 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 GetEnabledStandardsResponse GetEnabledStandards(GetEnabledStandardsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEnabledStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEnabledStandardsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetEnabledStandards operation.
///
///
/// Container for the necessary parameters to execute the GetEnabledStandards operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetEnabledStandards
/// operation.
/// REST API Reference for GetEnabledStandards Operation
public virtual IAsyncResult BeginGetEnabledStandards(GetEnabledStandardsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetEnabledStandardsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetEnabledStandardsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetEnabledStandards operation.
///
///
/// The IAsyncResult returned by the call to BeginGetEnabledStandards.
///
/// Returns a GetEnabledStandardsResult from SecurityHub.
/// REST API Reference for GetEnabledStandards Operation
public virtual GetEnabledStandardsResponse EndGetEnabledStandards(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetFindingAggregator
///
/// Returns the current finding aggregation configuration.
///
/// Container for the necessary parameters to execute the GetFindingAggregator service method.
///
/// 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 GetFindingAggregatorResponse GetFindingAggregator(GetFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetFindingAggregator operation.
///
///
/// Container for the necessary parameters to execute the GetFindingAggregator operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFindingAggregator
/// operation.
/// REST API Reference for GetFindingAggregator Operation
public virtual IAsyncResult BeginGetFindingAggregator(GetFindingAggregatorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingAggregatorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetFindingAggregator operation.
///
///
/// The IAsyncResult returned by the call to BeginGetFindingAggregator.
///
/// Returns a GetFindingAggregatorResult from SecurityHub.
/// REST API Reference for GetFindingAggregator Operation
public virtual GetFindingAggregatorResponse EndGetFindingAggregator(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetFindingHistory
///
/// 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.
///
/// 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 GetFindingHistoryResponse GetFindingHistory(GetFindingHistoryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingHistoryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetFindingHistory operation.
///
///
/// Container for the necessary parameters to execute the GetFindingHistory operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFindingHistory
/// operation.
/// REST API Reference for GetFindingHistory Operation
public virtual IAsyncResult BeginGetFindingHistory(GetFindingHistoryRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingHistoryResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetFindingHistory operation.
///
///
/// The IAsyncResult returned by the call to BeginGetFindingHistory.
///
/// Returns a GetFindingHistoryResult from SecurityHub.
/// REST API Reference for GetFindingHistory Operation
public virtual GetFindingHistoryResponse EndGetFindingHistory(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetFindings
///
/// 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.
///
/// 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 GetFindingsResponse GetFindings(GetFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetFindings operation.
///
///
/// Container for the necessary parameters to execute the GetFindings operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFindings
/// operation.
/// REST API Reference for GetFindings Operation
public virtual IAsyncResult BeginGetFindings(GetFindingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetFindings operation.
///
///
/// The IAsyncResult returned by the call to BeginGetFindings.
///
/// Returns a GetFindingsResult from SecurityHub.
/// REST API Reference for GetFindings Operation
public virtual GetFindingsResponse EndGetFindings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetInsightResults
///
/// Lists the results of the Security Hub insight specified by the insight ARN.
///
/// Container for the necessary parameters to execute the GetInsightResults service method.
///
/// 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 GetInsightResultsResponse GetInsightResults(GetInsightResultsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightResultsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightResultsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetInsightResults operation.
///
///
/// Container for the necessary parameters to execute the GetInsightResults operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInsightResults
/// operation.
/// REST API Reference for GetInsightResults Operation
public virtual IAsyncResult BeginGetInsightResults(GetInsightResultsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightResultsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightResultsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetInsightResults operation.
///
///
/// The IAsyncResult returned by the call to BeginGetInsightResults.
///
/// Returns a GetInsightResultsResult from SecurityHub.
/// REST API Reference for GetInsightResults Operation
public virtual GetInsightResultsResponse EndGetInsightResults(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetInsights
///
/// Lists and describes insights for the specified insight ARNs.
///
/// Container for the necessary parameters to execute the GetInsights service method.
///
/// 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 GetInsightsResponse GetInsights(GetInsightsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetInsights operation.
///
///
/// Container for the necessary parameters to execute the GetInsights operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInsights
/// operation.
/// REST API Reference for GetInsights Operation
public virtual IAsyncResult BeginGetInsights(GetInsightsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInsightsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInsightsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetInsights operation.
///
///
/// The IAsyncResult returned by the call to BeginGetInsights.
///
/// Returns a GetInsightsResult from SecurityHub.
/// REST API Reference for GetInsights Operation
public virtual GetInsightsResponse EndGetInsights(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetInvitationsCount
///
/// 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.
///
/// 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 GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetInvitationsCount operation.
///
///
/// Container for the necessary parameters to execute the GetInvitationsCount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInvitationsCount
/// operation.
/// REST API Reference for GetInvitationsCount Operation
public virtual IAsyncResult BeginGetInvitationsCount(GetInvitationsCountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetInvitationsCount operation.
///
///
/// The IAsyncResult returned by the call to BeginGetInvitationsCount.
///
/// Returns a GetInvitationsCountResult from SecurityHub.
/// REST API Reference for GetInvitationsCount Operation
public virtual GetInvitationsCountResponse EndGetInvitationsCount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetMasterAccount
///
/// 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.
///
/// 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 GetMasterAccountResponse GetMasterAccount(GetMasterAccountRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetMasterAccount operation.
///
///
/// Container for the necessary parameters to execute the GetMasterAccount operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMasterAccount
/// operation.
/// REST API Reference for GetMasterAccount Operation
[Obsolete("This API has been deprecated, use GetAdministratorAccount API instead.")]
public virtual IAsyncResult BeginGetMasterAccount(GetMasterAccountRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetMasterAccount operation.
///
///
/// The IAsyncResult returned by the call to BeginGetMasterAccount.
///
/// Returns a GetMasterAccountResult from SecurityHub.
/// REST API Reference for GetMasterAccount Operation
[Obsolete("This API has been deprecated, use GetAdministratorAccount API instead.")]
public virtual GetMasterAccountResponse EndGetMasterAccount(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetMembers
///
/// 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.
///
/// 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 GetMembersResponse GetMembers(GetMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetMembers operation.
///
///
/// Container for the necessary parameters to execute the GetMembers operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMembers
/// operation.
/// REST API Reference for GetMembers Operation
public virtual IAsyncResult BeginGetMembers(GetMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginGetMembers.
///
/// Returns a GetMembersResult from SecurityHub.
/// REST API Reference for GetMembers Operation
public virtual GetMembersResponse EndGetMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region InviteMembers
///
/// 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.
///
/// 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 InviteMembersResponse InviteMembers(InviteMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the InviteMembers operation.
///
///
/// Container for the necessary parameters to execute the InviteMembers operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInviteMembers
/// operation.
/// REST API Reference for InviteMembers Operation
public virtual IAsyncResult BeginInviteMembers(InviteMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the InviteMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginInviteMembers.
///
/// Returns a InviteMembersResult from SecurityHub.
/// REST API Reference for InviteMembers Operation
public virtual InviteMembersResponse EndInviteMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListAutomationRules
///
/// A list of automation rules and their metadata for the calling account.
///
/// Container for the necessary parameters to execute the ListAutomationRules service method.
///
/// 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 ListAutomationRulesResponse ListAutomationRules(ListAutomationRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutomationRulesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListAutomationRules operation.
///
///
/// Container for the necessary parameters to execute the ListAutomationRules operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAutomationRules
/// operation.
/// REST API Reference for ListAutomationRules Operation
public virtual IAsyncResult BeginListAutomationRules(ListAutomationRulesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAutomationRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAutomationRulesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListAutomationRules operation.
///
///
/// The IAsyncResult returned by the call to BeginListAutomationRules.
///
/// Returns a ListAutomationRulesResult from SecurityHub.
/// REST API Reference for ListAutomationRules Operation
public virtual ListAutomationRulesResponse EndListAutomationRules(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListEnabledProductsForImport
///
/// 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.
///
/// 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 ListEnabledProductsForImportResponse ListEnabledProductsForImport(ListEnabledProductsForImportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEnabledProductsForImportRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEnabledProductsForImportResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListEnabledProductsForImport operation.
///
///
/// Container for the necessary parameters to execute the ListEnabledProductsForImport operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEnabledProductsForImport
/// operation.
/// REST API Reference for ListEnabledProductsForImport Operation
public virtual IAsyncResult BeginListEnabledProductsForImport(ListEnabledProductsForImportRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListEnabledProductsForImportRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListEnabledProductsForImportResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListEnabledProductsForImport operation.
///
///
/// The IAsyncResult returned by the call to BeginListEnabledProductsForImport.
///
/// Returns a ListEnabledProductsForImportResult from SecurityHub.
/// REST API Reference for ListEnabledProductsForImport Operation
public virtual ListEnabledProductsForImportResponse EndListEnabledProductsForImport(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListFindingAggregators
///
/// 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.
///
/// 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 ListFindingAggregatorsResponse ListFindingAggregators(ListFindingAggregatorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingAggregatorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingAggregatorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListFindingAggregators operation.
///
///
/// Container for the necessary parameters to execute the ListFindingAggregators operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFindingAggregators
/// operation.
/// REST API Reference for ListFindingAggregators Operation
public virtual IAsyncResult BeginListFindingAggregators(ListFindingAggregatorsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingAggregatorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingAggregatorsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListFindingAggregators operation.
///
///
/// The IAsyncResult returned by the call to BeginListFindingAggregators.
///
/// Returns a ListFindingAggregatorsResult from SecurityHub.
/// REST API Reference for ListFindingAggregators Operation
public virtual ListFindingAggregatorsResponse EndListFindingAggregators(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListInvitations
///
/// 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.
///
/// 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 ListInvitationsResponse ListInvitations(ListInvitationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListInvitations operation.
///
///
/// Container for the necessary parameters to execute the ListInvitations operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListInvitations
/// operation.
/// REST API Reference for ListInvitations Operation
public virtual IAsyncResult BeginListInvitations(ListInvitationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListInvitations operation.
///
///
/// The IAsyncResult returned by the call to BeginListInvitations.
///
/// Returns a ListInvitationsResult from SecurityHub.
/// REST API Reference for ListInvitations Operation
public virtual ListInvitationsResponse EndListInvitations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListMembers
///
/// 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.
///
/// 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 ListMembersResponse ListMembers(ListMembersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListMembers operation.
///
///
/// Container for the necessary parameters to execute the ListMembers operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMembers
/// operation.
/// REST API Reference for ListMembers Operation
public virtual IAsyncResult BeginListMembers(ListMembersRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMembersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListMembers operation.
///
///
/// The IAsyncResult returned by the call to BeginListMembers.
///
/// Returns a ListMembersResult from SecurityHub.
/// REST API Reference for ListMembers Operation
public virtual ListMembersResponse EndListMembers(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListOrganizationAdminAccounts
///
/// 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.
///
/// 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 ListOrganizationAdminAccountsResponse ListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListOrganizationAdminAccounts operation.
///
///
/// Container for the necessary parameters to execute the ListOrganizationAdminAccounts operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOrganizationAdminAccounts
/// operation.
/// REST API Reference for ListOrganizationAdminAccounts Operation
public virtual IAsyncResult BeginListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListOrganizationAdminAccounts operation.
///
///
/// The IAsyncResult returned by the call to BeginListOrganizationAdminAccounts.
///
/// Returns a ListOrganizationAdminAccountsResult from SecurityHub.
/// REST API Reference for ListOrganizationAdminAccounts Operation
public virtual ListOrganizationAdminAccountsResponse EndListOrganizationAdminAccounts(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListSecurityControlDefinitions
///
/// Lists all of the security controls that apply to a specified standard.
///
/// Container for the necessary parameters to execute the ListSecurityControlDefinitions service method.
///
/// 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 ListSecurityControlDefinitionsResponse ListSecurityControlDefinitions(ListSecurityControlDefinitionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityControlDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityControlDefinitionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListSecurityControlDefinitions operation.
///
///
/// Container for the necessary parameters to execute the ListSecurityControlDefinitions operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSecurityControlDefinitions
/// operation.
/// REST API Reference for ListSecurityControlDefinitions Operation
public virtual IAsyncResult BeginListSecurityControlDefinitions(ListSecurityControlDefinitionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSecurityControlDefinitionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSecurityControlDefinitionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListSecurityControlDefinitions operation.
///
///
/// The IAsyncResult returned by the call to BeginListSecurityControlDefinitions.
///
/// Returns a ListSecurityControlDefinitionsResult from SecurityHub.
/// REST API Reference for ListSecurityControlDefinitions Operation
public virtual ListSecurityControlDefinitionsResponse EndListSecurityControlDefinitions(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListStandardsControlAssociations
///
/// 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.
///
/// 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 ListStandardsControlAssociationsResponse ListStandardsControlAssociations(ListStandardsControlAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStandardsControlAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListStandardsControlAssociations operation.
///
///
/// Container for the necessary parameters to execute the ListStandardsControlAssociations operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListStandardsControlAssociations
/// operation.
/// REST API Reference for ListStandardsControlAssociations Operation
public virtual IAsyncResult BeginListStandardsControlAssociations(ListStandardsControlAssociationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListStandardsControlAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListStandardsControlAssociationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListStandardsControlAssociations operation.
///
///
/// The IAsyncResult returned by the call to BeginListStandardsControlAssociations.
///
/// Returns a ListStandardsControlAssociationsResult from SecurityHub.
/// REST API Reference for ListStandardsControlAssociations Operation
public virtual ListStandardsControlAssociationsResponse EndListStandardsControlAssociations(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// Returns a list of tags associated with a resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// 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 ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTagsForResource operation.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from SecurityHub.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Adds one or more tags to a resource.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// 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 TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the TagResource operation.
///
///
/// Container for the necessary parameters to execute the TagResource operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from SecurityHub.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// Removes one or more tags from a resource.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// 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 UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UntagResource operation.
///
///
/// Container for the necessary parameters to execute the UntagResource operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from SecurityHub.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateActionTarget
///
/// Updates the name and description of a custom action target in Security Hub.
///
/// Container for the necessary parameters to execute the UpdateActionTarget service method.
///
/// 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 UpdateActionTargetResponse UpdateActionTarget(UpdateActionTargetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateActionTargetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateActionTarget operation.
///
///
/// Container for the necessary parameters to execute the UpdateActionTarget operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateActionTarget
/// operation.
/// REST API Reference for UpdateActionTarget Operation
public virtual IAsyncResult BeginUpdateActionTarget(UpdateActionTargetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateActionTargetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateActionTargetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateActionTarget operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateActionTarget.
///
/// Returns a UpdateActionTargetResult from SecurityHub.
/// REST API Reference for UpdateActionTarget Operation
public virtual UpdateActionTargetResponse EndUpdateActionTarget(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateFindingAggregator
///
/// 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.
///
/// 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 UpdateFindingAggregatorResponse UpdateFindingAggregator(UpdateFindingAggregatorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingAggregatorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateFindingAggregator operation.
///
///
/// Container for the necessary parameters to execute the UpdateFindingAggregator operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFindingAggregator
/// operation.
/// REST API Reference for UpdateFindingAggregator Operation
public virtual IAsyncResult BeginUpdateFindingAggregator(UpdateFindingAggregatorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingAggregatorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingAggregatorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateFindingAggregator operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateFindingAggregator.
///
/// Returns a UpdateFindingAggregatorResult from SecurityHub.
/// REST API Reference for UpdateFindingAggregator Operation
public virtual UpdateFindingAggregatorResponse EndUpdateFindingAggregator(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateFindings
///
/// 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.
///
/// 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 UpdateFindingsResponse UpdateFindings(UpdateFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateFindings operation.
///
///
/// Container for the necessary parameters to execute the UpdateFindings operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFindings
/// operation.
/// REST API Reference for UpdateFindings Operation
public virtual IAsyncResult BeginUpdateFindings(UpdateFindingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateFindings operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateFindings.
///
/// Returns a UpdateFindingsResult from SecurityHub.
/// REST API Reference for UpdateFindings Operation
public virtual UpdateFindingsResponse EndUpdateFindings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateInsight
///
/// Updates the Security Hub insight identified by the specified insight ARN.
///
/// Container for the necessary parameters to execute the UpdateInsight service method.
///
/// 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 UpdateInsightResponse UpdateInsight(UpdateInsightRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateInsightResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateInsight operation.
///
///
/// Container for the necessary parameters to execute the UpdateInsight operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateInsight
/// operation.
/// REST API Reference for UpdateInsight Operation
public virtual IAsyncResult BeginUpdateInsight(UpdateInsightRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateInsightRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateInsightResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateInsight operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateInsight.
///
/// Returns a UpdateInsightResult from SecurityHub.
/// REST API Reference for UpdateInsight Operation
public virtual UpdateInsightResponse EndUpdateInsight(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateOrganizationConfiguration
///
/// 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.
///
/// 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 UpdateOrganizationConfigurationResponse UpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateOrganizationConfiguration operation.
///
///
/// Container for the necessary parameters to execute the UpdateOrganizationConfiguration operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateOrganizationConfiguration
/// operation.
/// REST API Reference for UpdateOrganizationConfiguration Operation
public virtual IAsyncResult BeginUpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateOrganizationConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateOrganizationConfiguration.
///
/// Returns a UpdateOrganizationConfigurationResult from SecurityHub.
/// REST API Reference for UpdateOrganizationConfiguration Operation
public virtual UpdateOrganizationConfigurationResponse EndUpdateOrganizationConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateSecurityHubConfiguration
///
/// Updates configuration options for Security Hub.
///
/// Container for the necessary parameters to execute the UpdateSecurityHubConfiguration service method.
///
/// 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 UpdateSecurityHubConfigurationResponse UpdateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityHubConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityHubConfigurationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateSecurityHubConfiguration operation.
///
///
/// Container for the necessary parameters to execute the UpdateSecurityHubConfiguration operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateSecurityHubConfiguration
/// operation.
/// REST API Reference for UpdateSecurityHubConfiguration Operation
public virtual IAsyncResult BeginUpdateSecurityHubConfiguration(UpdateSecurityHubConfigurationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSecurityHubConfigurationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSecurityHubConfigurationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateSecurityHubConfiguration operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateSecurityHubConfiguration.
///
/// Returns a UpdateSecurityHubConfigurationResult from SecurityHub.
/// REST API Reference for UpdateSecurityHubConfiguration Operation
public virtual UpdateSecurityHubConfigurationResponse EndUpdateSecurityHubConfiguration(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateStandardsControl
///
/// Used to control whether an individual security standard control is enabled or disabled.
///
/// Container for the necessary parameters to execute the UpdateStandardsControl service method.
///
/// 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 UpdateStandardsControlResponse UpdateStandardsControl(UpdateStandardsControlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStandardsControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStandardsControlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateStandardsControl operation.
///
///
/// Container for the necessary parameters to execute the UpdateStandardsControl operation on AmazonSecurityHubClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateStandardsControl
/// operation.
/// REST API Reference for UpdateStandardsControl Operation
public virtual IAsyncResult BeginUpdateStandardsControl(UpdateStandardsControlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStandardsControlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStandardsControlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateStandardsControl operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateStandardsControl.
///
/// Returns a UpdateStandardsControlResult from SecurityHub.
/// REST API Reference for UpdateStandardsControl Operation
public virtual UpdateStandardsControlResponse EndUpdateStandardsControl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}