/* * 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 guardduty-2017-11-28.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.GuardDuty.Model; using Amazon.GuardDuty.Model.Internal.MarshallTransformations; using Amazon.GuardDuty.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.GuardDuty { /// /// Implementation for accessing GuardDuty /// /// Amazon GuardDuty is a continuous security monitoring service that analyzes and processes /// the following data sources: VPC flow logs, Amazon Web Services CloudTrail management /// event logs, CloudTrail S3 data event logs, EKS audit logs, DNS logs, and Amazon EBS /// volume data. It uses threat intelligence feeds, such as lists of malicious IPs and /// domains, and machine learning to identify unexpected, potentially unauthorized, and /// malicious activity within your Amazon Web Services environment. This can include issues /// like escalations of privileges, uses of exposed credentials, or communication with /// malicious IPs, domains, or presence of malware on your Amazon EC2 instances and container /// workloads. For example, GuardDuty can detect compromised EC2 instances and container /// workloads serving malware, or mining bitcoin. /// /// /// /// GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, /// such as unauthorized infrastructure deployments like EC2 instances deployed in a Region /// that has never been used, or unusual API calls like a password policy change to reduce /// password strength. /// /// /// /// GuardDuty informs you about the status of your Amazon Web Services environment by /// producing security findings that you can view in the GuardDuty console or through /// Amazon EventBridge. For more information, see the Amazon /// GuardDuty User Guide . /// /// public partial class AmazonGuardDutyClient : AmazonServiceClient, IAmazonGuardDuty { private static IServiceMetadata serviceMetadata = new AmazonGuardDutyMetadata(); #region Constructors /// /// Constructs AmazonGuardDutyClient 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 AmazonGuardDutyClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonGuardDutyConfig()) { } /// /// Constructs AmazonGuardDutyClient 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 AmazonGuardDutyClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonGuardDutyConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonGuardDutyClient 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 AmazonGuardDutyClient Configuration Object public AmazonGuardDutyClient(AmazonGuardDutyConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonGuardDutyClient with AWS Credentials /// /// AWS Credentials public AmazonGuardDutyClient(AWSCredentials credentials) : this(credentials, new AmazonGuardDutyConfig()) { } /// /// Constructs AmazonGuardDutyClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonGuardDutyClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonGuardDutyConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonGuardDutyClient with AWS Credentials and an /// AmazonGuardDutyClient Configuration object. /// /// AWS Credentials /// The AmazonGuardDutyClient Configuration Object public AmazonGuardDutyClient(AWSCredentials credentials, AmazonGuardDutyConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonGuardDutyClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonGuardDutyClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonGuardDutyConfig()) { } /// /// Constructs AmazonGuardDutyClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonGuardDutyClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonGuardDutyConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonGuardDutyClient with AWS Access Key ID, AWS Secret Key and an /// AmazonGuardDutyClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonGuardDutyClient Configuration Object public AmazonGuardDutyClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonGuardDutyConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonGuardDutyClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonGuardDutyClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonGuardDutyConfig()) { } /// /// Constructs AmazonGuardDutyClient 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 AmazonGuardDutyClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonGuardDutyConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonGuardDutyClient with AWS Access Key ID, AWS Secret Key and an /// AmazonGuardDutyClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonGuardDutyClient Configuration Object public AmazonGuardDutyClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonGuardDutyConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IGuardDutyPaginatorFactory _paginators; /// /// Paginators for the service /// public IGuardDutyPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new GuardDutyPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonGuardDutyEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AcceptAdministratorInvitation internal virtual AcceptAdministratorInvitationResponse AcceptAdministratorInvitation(AcceptAdministratorInvitationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AcceptAdministratorInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = AcceptAdministratorInvitationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Accepts the invitation to be a member account and get monitored by a GuardDuty administrator /// account that sent the invitation. /// /// Container for the necessary parameters to execute the AcceptAdministratorInvitation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AcceptAdministratorInvitation service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for AcceptAdministratorInvitation Operation public virtual Task AcceptAdministratorInvitationAsync(AcceptAdministratorInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AcceptAdministratorInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = AcceptAdministratorInvitationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AcceptInvitation [Obsolete("This operation is deprecated, use AcceptAdministratorInvitation instead")] internal virtual AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Accepts the invitation to be monitored by a GuardDuty administrator account. /// /// Container for the necessary parameters to execute the AcceptInvitation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AcceptInvitation service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for AcceptInvitation Operation [Obsolete("This operation is deprecated, use AcceptAdministratorInvitation instead")] public virtual Task AcceptInvitationAsync(AcceptInvitationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance; options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ArchiveFindings internal virtual ArchiveFindingsResponse ArchiveFindings(ArchiveFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ArchiveFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ArchiveFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Archives GuardDuty findings that are specified by the list of finding IDs. /// /// /// /// Only the administrator account can archive findings. Member accounts don't have permission /// to archive findings from their accounts. /// /// /// /// Container for the necessary parameters to execute the ArchiveFindings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ArchiveFindings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ArchiveFindings Operation public virtual Task ArchiveFindingsAsync(ArchiveFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ArchiveFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ArchiveFindingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDetector internal virtual CreateDetectorResponse CreateDetector(CreateDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDetectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a single Amazon GuardDuty detector. A detector is a resource that represents /// the GuardDuty service. To start using GuardDuty, you must create a detector in each /// Region where you enable the service. You can have only one detector per account per /// Region. All data sources are enabled in a new detector by default. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the CreateDetector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDetector service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreateDetector Operation public virtual Task CreateDetectorAsync(CreateDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDetectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateFilter internal virtual CreateFilterResponse CreateFilter(CreateFilterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFilterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a filter using the specified finding criteria. The maximum number of saved /// filters per Amazon Web Services account per Region is 100. For more information, see /// Quotas /// for GuardDuty. /// /// Container for the necessary parameters to execute the CreateFilter service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateFilter service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreateFilter Operation public virtual Task CreateFilterAsync(CreateFilterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFilterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateIPSet internal virtual CreateIPSetResponse CreateIPSet(CreateIPSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIPSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new IPSet, which is called a trusted IP list in the console user interface. /// An IPSet is a list of IP addresses that are trusted for secure communication with /// Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings /// for IP addresses that are included in IPSets. Only users from the administrator account /// can use this operation. /// /// Container for the necessary parameters to execute the CreateIPSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateIPSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreateIPSet Operation public virtual Task CreateIPSetAsync(CreateIPSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIPSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateMembers internal virtual CreateMembersResponse CreateMembers(CreateMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates member accounts of the current Amazon Web Services account by specifying a /// list of Amazon Web Services account IDs. This step is a prerequisite for managing /// the associated member accounts either by invitation or through an organization. /// /// /// /// As a delegated administrator, using CreateMembers will enable GuardDuty /// in the added member accounts, with the exception of the organization delegated administrator /// account. A delegated administrator must enable GuardDuty prior to being added as a /// member. /// /// /// /// If you are adding accounts by invitation, before using InviteMembers, /// use CreateMembers after GuardDuty has been enabled in potential member /// accounts. /// /// /// /// If you disassociate a member from a GuardDuty delegated administrator, the member /// account details obtained from this API, including the associated email addresses, /// will be retained. This is done so that the delegated administrator can invoke the /// InviteMembers /// API without the need to invoke the CreateMembers API again. To remove the details /// associated with a member account, the delegated administrator must invoke the DeleteMembers /// API. /// /// /// Container for the necessary parameters to execute the CreateMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreateMembers Operation public virtual Task CreateMembersAsync(CreateMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePublishingDestination internal virtual CreatePublishingDestinationResponse CreatePublishingDestination(CreatePublishingDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePublishingDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a publishing destination to export findings to. The resource to export findings /// to must exist before you use this operation. /// /// Container for the necessary parameters to execute the CreatePublishingDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePublishingDestination service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreatePublishingDestination Operation public virtual Task CreatePublishingDestinationAsync(CreatePublishingDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePublishingDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateSampleFindings internal virtual CreateSampleFindingsResponse CreateSampleFindings(CreateSampleFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSampleFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSampleFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Generates sample findings of types specified by the list of finding types. If 'NULL' /// is specified for findingTypes, the API generates sample findings of all /// supported finding types. /// /// Container for the necessary parameters to execute the CreateSampleFindings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateSampleFindings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreateSampleFindings Operation public virtual Task CreateSampleFindingsAsync(CreateSampleFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSampleFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSampleFindingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateThreatIntelSet internal virtual CreateThreatIntelSetResponse CreateThreatIntelSet(CreateThreatIntelSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThreatIntelSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. /// GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator /// account can use this operation. /// /// Container for the necessary parameters to execute the CreateThreatIntelSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateThreatIntelSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for CreateThreatIntelSet Operation public virtual Task CreateThreatIntelSetAsync(CreateThreatIntelSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateThreatIntelSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeclineInvitations internal virtual DeclineInvitationsResponse DeclineInvitations(DeclineInvitationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Declines invitations sent to the current member account by Amazon Web Services accounts /// specified by their account IDs. /// /// Container for the necessary parameters to execute the DeclineInvitations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeclineInvitations service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeclineInvitations Operation public virtual Task DeclineInvitationsAsync(DeclineInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeclineInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeclineInvitationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDetector internal virtual DeleteDetectorResponse DeleteDetector(DeleteDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDetectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an Amazon GuardDuty detector that is specified by the detector ID. /// /// Container for the necessary parameters to execute the DeleteDetector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDetector service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeleteDetector Operation public virtual Task DeleteDetectorAsync(DeleteDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDetectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteFilter internal virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFilterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the filter specified by the filter name. /// /// Container for the necessary parameters to execute the DeleteFilter service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteFilter service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeleteFilter Operation public virtual Task DeleteFilterAsync(DeleteFilterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFilterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteInvitations internal virtual DeleteInvitationsResponse DeleteInvitations(DeleteInvitationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes invitations sent to the current member account by Amazon Web Services accounts /// specified by their account IDs. /// /// Container for the necessary parameters to execute the DeleteInvitations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteInvitations service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeleteInvitations Operation public virtual Task DeleteInvitationsAsync(DeleteInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteIPSet internal virtual DeleteIPSetResponse DeleteIPSet(DeleteIPSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIPSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the IPSet specified by the ipSetId. IPSets are called trusted /// IP lists in the console user interface. /// /// Container for the necessary parameters to execute the DeleteIPSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteIPSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeleteIPSet Operation public virtual Task DeleteIPSetAsync(DeleteIPSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIPSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteMembers internal virtual DeleteMembersResponse DeleteMembers(DeleteMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes GuardDuty member accounts (to the current GuardDuty administrator account) /// specified by the account IDs. /// /// /// /// With autoEnableOrganizationMembers configuration for your organization /// set to ALL, you'll receive an error if you attempt to disable GuardDuty /// for a member account in your organization. /// /// /// Container for the necessary parameters to execute the DeleteMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeleteMembers Operation public virtual Task DeleteMembersAsync(DeleteMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePublishingDestination internal virtual DeletePublishingDestinationResponse DeletePublishingDestination(DeletePublishingDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePublishingDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the publishing definition with the specified destinationId. /// /// Container for the necessary parameters to execute the DeletePublishingDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePublishingDestination service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeletePublishingDestination Operation public virtual Task DeletePublishingDestinationAsync(DeletePublishingDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePublishingDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteThreatIntelSet internal virtual DeleteThreatIntelSetResponse DeleteThreatIntelSet(DeleteThreatIntelSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThreatIntelSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the ThreatIntelSet specified by the ThreatIntelSet ID. /// /// Container for the necessary parameters to execute the DeleteThreatIntelSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteThreatIntelSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DeleteThreatIntelSet Operation public virtual Task DeleteThreatIntelSetAsync(DeleteThreatIntelSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteThreatIntelSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeMalwareScans internal virtual DescribeMalwareScansResponse DescribeMalwareScans(DescribeMalwareScansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMalwareScansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMalwareScansResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of malware scans. Each member account can view the malware scans for /// their own accounts. An administrator can view the malware scans for all the member /// accounts. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the DescribeMalwareScans service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeMalwareScans service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DescribeMalwareScans Operation public virtual Task DescribeMalwareScansAsync(DescribeMalwareScansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMalwareScansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMalwareScansResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeOrganizationConfiguration internal virtual DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the account selected as the delegated administrator for /// GuardDuty. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the DescribeOrganizationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeOrganizationConfiguration service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DescribeOrganizationConfiguration Operation public virtual Task DescribeOrganizationConfigurationAsync(DescribeOrganizationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribePublishingDestination internal virtual DescribePublishingDestinationResponse DescribePublishingDestination(DescribePublishingDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublishingDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the publishing destination specified by the provided destinationId. /// /// Container for the necessary parameters to execute the DescribePublishingDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribePublishingDestination service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DescribePublishingDestination Operation public virtual Task DescribePublishingDestinationAsync(DescribePublishingDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePublishingDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisableOrganizationAdminAccount internal virtual DisableOrganizationAdminAccountResponse DisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disables an Amazon Web Services account within the Organization as the GuardDuty delegated /// administrator. /// /// Container for the necessary parameters to execute the DisableOrganizationAdminAccount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisableOrganizationAdminAccount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DisableOrganizationAdminAccount Operation public virtual Task DisableOrganizationAdminAccountAsync(DisableOrganizationAdminAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateFromAdministratorAccount internal virtual DisassociateFromAdministratorAccountResponse DisassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateFromAdministratorAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateFromAdministratorAccountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates the current GuardDuty member account from its administrator account. /// /// /// /// When you disassociate an invited member from a GuardDuty delegated administrator, /// the member account details obtained from the CreateMembers /// API, including the associated email addresses, are retained. This is done so that /// the delegated administrator can invoke the InviteMembers /// API without the need to invoke the CreateMembers API again. To remove the details /// associated with a member account, the delegated administrator must invoke the DeleteMembers /// API. /// /// /// /// With autoEnableOrganizationMembers configuration for your organization /// set to ALL, you'll receive an error if you attempt to disable GuardDuty /// in a member account. /// /// /// Container for the necessary parameters to execute the DisassociateFromAdministratorAccount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateFromAdministratorAccount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DisassociateFromAdministratorAccount Operation public virtual Task DisassociateFromAdministratorAccountAsync(DisassociateFromAdministratorAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateFromAdministratorAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateFromAdministratorAccountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateFromMasterAccount [Obsolete("This operation is deprecated, use DisassociateFromAdministratorAccount instead")] internal virtual DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates the current GuardDuty member account from its administrator account. /// /// /// /// When you disassociate an invited member from a GuardDuty delegated administrator, /// the member account details obtained from the CreateMembers /// API, including the associated email addresses, are retained. This is done so that /// the delegated administrator can invoke the InviteMembers /// API without the need to invoke the CreateMembers API again. To remove the details /// associated with a member account, the delegated administrator must invoke the DeleteMembers /// API. /// /// /// Container for the necessary parameters to execute the DisassociateFromMasterAccount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateFromMasterAccount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DisassociateFromMasterAccount Operation [Obsolete("This operation is deprecated, use DisassociateFromAdministratorAccount instead")] public virtual Task DisassociateFromMasterAccountAsync(DisassociateFromMasterAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateMembers internal virtual DisassociateMembersResponse DisassociateMembers(DisassociateMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates GuardDuty member accounts (from the current administrator account) specified /// by the account IDs. /// /// /// /// When you disassociate an invited member from a GuardDuty delegated administrator, /// the member account details obtained from the CreateMembers /// API, including the associated email addresses, are retained. This is done so that /// the delegated administrator can invoke the InviteMembers /// API without the need to invoke the CreateMembers API again. To remove the details /// associated with a member account, the delegated administrator must invoke the DeleteMembers /// API. /// /// /// /// With autoEnableOrganizationMembers configuration for your organization /// set to ALL, you'll receive an error if you attempt to disassociate a /// member account before removing them from your Amazon Web Services organization. /// /// /// Container for the necessary parameters to execute the DisassociateMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for DisassociateMembers Operation public virtual Task DisassociateMembersAsync(DisassociateMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region EnableOrganizationAdminAccount internal virtual EnableOrganizationAdminAccountResponse EnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Enables an Amazon Web Services account within the organization as the GuardDuty delegated /// administrator. /// /// Container for the necessary parameters to execute the EnableOrganizationAdminAccount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the EnableOrganizationAdminAccount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for EnableOrganizationAdminAccount Operation public virtual Task EnableOrganizationAdminAccountAsync(EnableOrganizationAdminAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAdministratorAccount internal virtual GetAdministratorAccountResponse GetAdministratorAccount(GetAdministratorAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAdministratorAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAdministratorAccountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides the details for the GuardDuty administrator account associated with the current /// GuardDuty member account. /// /// Container for the necessary parameters to execute the GetAdministratorAccount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAdministratorAccount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetAdministratorAccount Operation public virtual Task GetAdministratorAccountAsync(GetAdministratorAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAdministratorAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAdministratorAccountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCoverageStatistics internal virtual GetCoverageStatisticsResponse GetCoverageStatistics(GetCoverageStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCoverageStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCoverageStatisticsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, /// you can retrieve the statistics for all the resources associated with the active member /// accounts in your organization who have enabled EKS Runtime Monitoring and have the /// GuardDuty agent running on their EKS nodes. /// /// Container for the necessary parameters to execute the GetCoverageStatistics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCoverageStatistics service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetCoverageStatistics Operation public virtual Task GetCoverageStatisticsAsync(GetCoverageStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCoverageStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCoverageStatisticsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDetector internal virtual GetDetectorResponse GetDetector(GetDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDetectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves an Amazon GuardDuty detector specified by the detectorId. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the GetDetector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDetector service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetDetector Operation public virtual Task GetDetectorAsync(GetDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDetectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFilter internal virtual GetFilterResponse GetFilter(GetFilterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFilterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details of the filter specified by the filter name. /// /// Container for the necessary parameters to execute the GetFilter service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFilter service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetFilter Operation public virtual Task GetFilterAsync(GetFilterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFilterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFindings internal virtual GetFindingsResponse GetFindings(GetFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes Amazon GuardDuty findings specified by finding IDs. /// /// Container for the necessary parameters to execute the GetFindings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFindings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetFindings Operation public virtual Task GetFindingsAsync(GetFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFindingsStatistics internal virtual GetFindingsStatisticsResponse GetFindingsStatistics(GetFindingsStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFindingsStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFindingsStatisticsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists Amazon GuardDuty findings statistics for the specified detector ID. /// /// Container for the necessary parameters to execute the GetFindingsStatistics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFindingsStatistics service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetFindingsStatistics Operation public virtual Task GetFindingsStatisticsAsync(GetFindingsStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFindingsStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFindingsStatisticsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetInvitationsCount internal virtual GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the count of all GuardDuty membership invitations that were sent to the current /// member account except the currently accepted invitation. /// /// Container for the necessary parameters to execute the GetInvitationsCount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetInvitationsCount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetInvitationsCount Operation public virtual Task GetInvitationsCountAsync(GetInvitationsCountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance; options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetIPSet internal virtual GetIPSetResponse GetIPSet(GetIPSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIPSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the IPSet specified by the ipSetId. /// /// Container for the necessary parameters to execute the GetIPSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetIPSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetIPSet Operation public virtual Task GetIPSetAsync(GetIPSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIPSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMalwareScanSettings internal virtual GetMalwareScanSettingsResponse GetMalwareScanSettings(GetMalwareScanSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMalwareScanSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMalwareScanSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details of the malware scan settings. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the GetMalwareScanSettings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMalwareScanSettings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetMalwareScanSettings Operation public virtual Task GetMalwareScanSettingsAsync(GetMalwareScanSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMalwareScanSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMalwareScanSettingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMasterAccount [Obsolete("This operation is deprecated, use GetAdministratorAccount instead")] internal virtual GetMasterAccountResponse GetMasterAccount(GetMasterAccountRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides the details for the GuardDuty administrator account associated with the current /// GuardDuty member account. /// /// Container for the necessary parameters to execute the GetMasterAccount service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMasterAccount service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetMasterAccount Operation [Obsolete("This operation is deprecated, use GetAdministratorAccount instead")] public virtual Task GetMasterAccountAsync(GetMasterAccountRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMemberDetectors internal virtual GetMemberDetectorsResponse GetMemberDetectors(GetMemberDetectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMemberDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMemberDetectorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes which data sources are enabled for the member account's detector. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the GetMemberDetectors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMemberDetectors service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetMemberDetectors Operation public virtual Task GetMemberDetectorsAsync(GetMemberDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMemberDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMemberDetectorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMembers internal virtual GetMembersResponse GetMembers(GetMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) /// specified by the account IDs. /// /// Container for the necessary parameters to execute the GetMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetMembers Operation public virtual Task GetMembersAsync(GetMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRemainingFreeTrialDays internal virtual GetRemainingFreeTrialDaysResponse GetRemainingFreeTrialDays(GetRemainingFreeTrialDaysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRemainingFreeTrialDaysRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRemainingFreeTrialDaysResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides the number of days left for each data source used in the free trial period. /// /// Container for the necessary parameters to execute the GetRemainingFreeTrialDays service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRemainingFreeTrialDays service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetRemainingFreeTrialDays Operation public virtual Task GetRemainingFreeTrialDaysAsync(GetRemainingFreeTrialDaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRemainingFreeTrialDaysRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRemainingFreeTrialDaysResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetThreatIntelSet internal virtual GetThreatIntelSetResponse GetThreatIntelSet(GetThreatIntelSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetThreatIntelSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. /// /// Container for the necessary parameters to execute the GetThreatIntelSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetThreatIntelSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetThreatIntelSet Operation public virtual Task GetThreatIntelSetAsync(GetThreatIntelSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetThreatIntelSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetUsageStatistics internal virtual GetUsageStatisticsResponse GetUsageStatistics(GetUsageStatisticsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetUsageStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetUsageStatisticsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector /// ID. For newly enabled detectors or data sources, the cost returned will include only /// the usage so far under 30 days. This may differ from the cost metrics in the console, /// which project usage over 30 days to provide a monthly cost estimate. For more information, /// see Understanding /// How Usage Costs are Calculated. /// /// Container for the necessary parameters to execute the GetUsageStatistics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetUsageStatistics service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for GetUsageStatistics Operation public virtual Task GetUsageStatisticsAsync(GetUsageStatisticsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetUsageStatisticsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetUsageStatisticsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region InviteMembers internal virtual InviteMembersResponse InviteMembers(InviteMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InviteMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Invites Amazon Web Services accounts to become members of an organization administered /// by the Amazon Web Services account that invokes this API. If you are using Amazon /// Web Services Organizations to manager your GuardDuty environment, this step is not /// needed. For more information, see Managing /// accounts with Amazon Web Services Organizations. /// /// /// /// To invite Amazon Web Services accounts, the first step is to ensure that GuardDuty /// has been enabled in the potential member accounts. You can now invoke this API to /// add accounts by invitation. The invited accounts can either accept or decline the /// invitation from their GuardDuty accounts. Each invited Amazon Web Services account /// can choose to accept the invitation from only one Amazon Web Services account. For /// more information, see Managing /// GuardDuty accounts by invitation. /// /// /// /// After the invite has been accepted and you choose to disassociate a member account /// (by using DisassociateMembers) /// from your account, the details of the member account obtained by invoking CreateMembers, /// including the associated email addresses, will be retained. This is done so that you /// can invoke InviteMembers without the need to invoke CreateMembers /// again. To remove the details associated with a member account, you must also invoke /// DeleteMembers. /// /// /// /// Container for the necessary parameters to execute the InviteMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the InviteMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for InviteMembers Operation public virtual Task InviteMembersAsync(InviteMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = InviteMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCoverage internal virtual ListCoverageResponse ListCoverage(ListCoverageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCoverageRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCoverageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, /// you can retrieve all resources associated with the active member accounts in your /// organization. /// /// /// /// Make sure the accounts have EKS Runtime Monitoring enabled and GuardDuty agent running /// on their EKS nodes. /// /// /// Container for the necessary parameters to execute the ListCoverage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCoverage service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListCoverage Operation public virtual Task ListCoverageAsync(ListCoverageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCoverageRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCoverageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDetectors internal virtual ListDetectorsResponse ListDetectors(ListDetectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists detectorIds of all the existing Amazon GuardDuty detector resources. /// /// Container for the necessary parameters to execute the ListDetectors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDetectors service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListDetectors Operation public virtual Task ListDetectorsAsync(ListDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFilters internal virtual ListFiltersResponse ListFilters(ListFiltersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFiltersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFiltersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a paginated list of the current filters. /// /// Container for the necessary parameters to execute the ListFilters service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListFilters service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListFilters Operation public virtual Task ListFiltersAsync(ListFiltersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFiltersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFiltersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFindings internal virtual ListFindingsResponse ListFindings(ListFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists Amazon GuardDuty findings for the specified detector ID. /// /// Container for the necessary parameters to execute the ListFindings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListFindings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListFindings Operation public virtual Task ListFindingsAsync(ListFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListInvitations internal virtual ListInvitationsResponse ListInvitations(ListInvitationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all GuardDuty membership invitations that were sent to the current Amazon Web /// Services account. /// /// Container for the necessary parameters to execute the ListInvitations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListInvitations service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListInvitations Operation public virtual Task ListInvitationsAsync(ListInvitationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListIPSets internal virtual ListIPSetsResponse ListIPSets(ListIPSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIPSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIPSetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the IPSets of the GuardDuty service specified by the detector ID. If you use /// this operation from a member account, the IPSets returned are the IPSets from the /// associated administrator account. /// /// Container for the necessary parameters to execute the ListIPSets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListIPSets service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListIPSets Operation public virtual Task ListIPSetsAsync(ListIPSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListIPSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIPSetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListMembers internal virtual ListMembersResponse ListMembers(ListMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists details about all member accounts for the current GuardDuty administrator account. /// /// Container for the necessary parameters to execute the ListMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListMembers Operation public virtual Task ListMembersAsync(ListMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListOrganizationAdminAccounts internal virtual ListOrganizationAdminAccountsResponse ListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the accounts configured as GuardDuty delegated administrators. /// /// Container for the necessary parameters to execute the ListOrganizationAdminAccounts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListOrganizationAdminAccounts service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListOrganizationAdminAccounts Operation public virtual Task ListOrganizationAdminAccountsAsync(ListOrganizationAdminAccountsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListOrganizationAdminAccountsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOrganizationAdminAccountsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPublishingDestinations internal virtual ListPublishingDestinationsResponse ListPublishingDestinations(ListPublishingDestinationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPublishingDestinationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPublishingDestinationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of publishing destinations associated with the specified detectorId. /// /// Container for the necessary parameters to execute the ListPublishingDestinations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPublishingDestinations service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListPublishingDestinations Operation public virtual Task ListPublishingDestinationsAsync(ListPublishingDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPublishingDestinationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPublishingDestinationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists tags for a resource. Tagging is currently supported for detectors, finding filters, /// IP sets, threat intel sets, publishing destination, with a limit of 50 tags per resource. /// When invoked, this operation returns all assigned tags for a given resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by GuardDuty. /// /// An access denied exception object. /// /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListThreatIntelSets internal virtual ListThreatIntelSetsResponse ListThreatIntelSets(ListThreatIntelSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListThreatIntelSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThreatIntelSetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If /// you use this operation from a member account, the ThreatIntelSets associated with /// the administrator account are returned. /// /// Container for the necessary parameters to execute the ListThreatIntelSets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListThreatIntelSets service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for ListThreatIntelSets Operation public virtual Task ListThreatIntelSetsAsync(ListThreatIntelSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListThreatIntelSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListThreatIntelSetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartMalwareScan internal virtual StartMalwareScanResponse StartMalwareScan(StartMalwareScanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartMalwareScanRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMalwareScanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the malware scan. Invoking this API will automatically create the Service-linked /// role in the corresponding account. /// /// Container for the necessary parameters to execute the StartMalwareScan service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartMalwareScan service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// A request conflict exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for StartMalwareScan Operation public virtual Task StartMalwareScanAsync(StartMalwareScanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartMalwareScanRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMalwareScanResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartMonitoringMembers internal virtual StartMonitoringMembersResponse StartMonitoringMembers(StartMonitoringMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartMonitoringMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMonitoringMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Turns on GuardDuty monitoring of the specified member accounts. Use this operation /// to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers /// operation. /// /// Container for the necessary parameters to execute the StartMonitoringMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartMonitoringMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for StartMonitoringMembers Operation public virtual Task StartMonitoringMembersAsync(StartMonitoringMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartMonitoringMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = StartMonitoringMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopMonitoringMembers internal virtual StopMonitoringMembersResponse StopMonitoringMembers(StopMonitoringMembersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopMonitoringMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMonitoringMembersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers /// operation to restart monitoring for those accounts. /// /// /// /// With autoEnableOrganizationMembers configuration for your organization /// set to ALL, you'll receive an error if you attempt to stop monitoring /// the member accounts in your organization. /// /// /// Container for the necessary parameters to execute the StopMonitoringMembers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopMonitoringMembers service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for StopMonitoringMembers Operation public virtual Task StopMonitoringMembersAsync(StopMonitoringMembersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopMonitoringMembersRequestMarshaller.Instance; options.ResponseUnmarshaller = StopMonitoringMembersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds tags to a resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by GuardDuty. /// /// An access denied exception object. /// /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UnarchiveFindings internal virtual UnarchiveFindingsResponse UnarchiveFindings(UnarchiveFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnarchiveFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UnarchiveFindingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Unarchives GuardDuty findings specified by the findingIds. /// /// Container for the necessary parameters to execute the UnarchiveFindings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UnarchiveFindings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UnarchiveFindings Operation public virtual Task UnarchiveFindingsAsync(UnarchiveFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UnarchiveFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UnarchiveFindingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes tags from a resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by GuardDuty. /// /// An access denied exception object. /// /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDetector internal virtual UpdateDetectorResponse UpdateDetector(UpdateDetectorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDetectorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the Amazon GuardDuty detector specified by the detectorId. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the UpdateDetector service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDetector service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateDetector Operation public virtual Task UpdateDetectorAsync(UpdateDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDetectorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDetectorResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateFilter internal virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFilterResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the filter specified by the filter name. /// /// Container for the necessary parameters to execute the UpdateFilter service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateFilter service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateFilter Operation public virtual Task UpdateFilterAsync(UpdateFilterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFilterRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFilterResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateFindingsFeedback internal virtual UpdateFindingsFeedbackResponse UpdateFindingsFeedback(UpdateFindingsFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFindingsFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFindingsFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Marks the specified GuardDuty findings as useful or not useful. /// /// Container for the necessary parameters to execute the UpdateFindingsFeedback service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateFindingsFeedback service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateFindingsFeedback Operation public virtual Task UpdateFindingsFeedbackAsync(UpdateFindingsFeedbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFindingsFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFindingsFeedbackResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateIPSet internal virtual UpdateIPSetResponse UpdateIPSet(UpdateIPSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIPSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the IPSet specified by the IPSet ID. /// /// Container for the necessary parameters to execute the UpdateIPSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateIPSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateIPSet Operation public virtual Task UpdateIPSetAsync(UpdateIPSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIPSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIPSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateMalwareScanSettings internal virtual UpdateMalwareScanSettingsResponse UpdateMalwareScanSettings(UpdateMalwareScanSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMalwareScanSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMalwareScanSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the malware scan settings. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the UpdateMalwareScanSettings service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateMalwareScanSettings service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateMalwareScanSettings Operation public virtual Task UpdateMalwareScanSettingsAsync(UpdateMalwareScanSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMalwareScanSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMalwareScanSettingsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateMemberDetectors internal virtual UpdateMemberDetectorsResponse UpdateMemberDetectors(UpdateMemberDetectorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMemberDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMemberDetectorsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Contains information on member accounts to be updated. /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the UpdateMemberDetectors service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateMemberDetectors service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateMemberDetectors Operation public virtual Task UpdateMemberDetectorsAsync(UpdateMemberDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateMemberDetectorsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateMemberDetectorsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateOrganizationConfiguration internal virtual UpdateOrganizationConfigurationResponse UpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Configures the delegated administrator account with the provided values. You must /// provide the value for either autoEnableOrganizationMembers or autoEnable. /// /// /// /// /// There might be regional differences because some data sources might not be available /// in all the Amazon Web Services Regions where GuardDuty is presently supported. For /// more information, see Regions /// and endpoints. /// /// /// Container for the necessary parameters to execute the UpdateOrganizationConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateOrganizationConfiguration service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateOrganizationConfiguration Operation public virtual Task UpdateOrganizationConfigurationAsync(UpdateOrganizationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateOrganizationConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePublishingDestination internal virtual UpdatePublishingDestinationResponse UpdatePublishingDestination(UpdatePublishingDestinationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePublishingDestinationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates information about the publishing destination specified by the destinationId. /// /// Container for the necessary parameters to execute the UpdatePublishingDestination service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePublishingDestination service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdatePublishingDestination Operation public virtual Task UpdatePublishingDestinationAsync(UpdatePublishingDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePublishingDestinationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePublishingDestinationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateThreatIntelSet internal virtual UpdateThreatIntelSetResponse UpdateThreatIntelSet(UpdateThreatIntelSetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThreatIntelSetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the ThreatIntelSet specified by the ThreatIntelSet ID. /// /// Container for the necessary parameters to execute the UpdateThreatIntelSet service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateThreatIntelSet service method, as returned by GuardDuty. /// /// A bad request exception object. /// /// /// An internal server error exception object. /// /// REST API Reference for UpdateThreatIntelSet Operation public virtual Task UpdateThreatIntelSetAsync(UpdateThreatIntelSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateThreatIntelSetRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateThreatIntelSetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }