/* * 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 accessanalyzer-2019-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.AccessAnalyzer.Model; using Amazon.AccessAnalyzer.Model.Internal.MarshallTransformations; using Amazon.AccessAnalyzer.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AccessAnalyzer { /// <summary> /// Implementation for accessing AccessAnalyzer /// /// Identity and Access Management Access Analyzer helps identify potential resource-access /// risks by enabling you to identify any policies that grant access to an external principal. /// It does this by using logic-based reasoning to analyze resource-based policies in /// your Amazon Web Services environment. An external principal can be another Amazon /// Web Services account, a root user, an IAM user or role, a federated user, an Amazon /// Web Services service, or an anonymous user. You can also use IAM Access Analyzer to /// preview and validate public and cross-account access to your resources before deploying /// permissions changes. This guide describes the Identity and Access Management Access /// Analyzer operations that you can call programmatically. For general information about /// IAM Access Analyzer, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html">Identity /// and Access Management Access Analyzer</a> in the <b>IAM User Guide</b>. /// /// /// <para> /// To start using IAM Access Analyzer, you first need to create an analyzer. /// </para> /// </summary> public partial class AmazonAccessAnalyzerClient : AmazonServiceClient, IAmazonAccessAnalyzer { private static IServiceMetadata serviceMetadata = new AmazonAccessAnalyzerMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IAccessAnalyzerPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAccessAnalyzerPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AccessAnalyzerPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonAccessAnalyzerClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> public AmazonAccessAnalyzerClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccessAnalyzerConfig()) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAccessAnalyzerClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccessAnalyzerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient 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. /// <code> /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// </code> /// /// </summary> /// <param name="config">The AmazonAccessAnalyzerClient Configuration Object</param> public AmazonAccessAnalyzerClient(AmazonAccessAnalyzerConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAccessAnalyzerClient(AWSCredentials credentials) : this(credentials, new AmazonAccessAnalyzerConfig()) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAccessAnalyzerClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAccessAnalyzerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Credentials and an /// AmazonAccessAnalyzerClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAccessAnalyzerClient Configuration Object</param> public AmazonAccessAnalyzerClient(AWSCredentials credentials, AmazonAccessAnalyzerConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAccessAnalyzerClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccessAnalyzerConfig()) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAccessAnalyzerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccessAnalyzerConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAccessAnalyzerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAccessAnalyzerClient Configuration Object</param> public AmazonAccessAnalyzerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAccessAnalyzerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAccessAnalyzerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccessAnalyzerConfig()) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAccessAnalyzerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccessAnalyzerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAccessAnalyzerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAccessAnalyzerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAccessAnalyzerClient Configuration Object</param> public AmazonAccessAnalyzerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAccessAnalyzerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAccessAnalyzerEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region ApplyArchiveRule /// <summary> /// Retroactively applies the archive rule to existing findings that meet the archive /// rule criteria. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ApplyArchiveRule service method.</param> /// /// <returns>The response from the ApplyArchiveRule service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ApplyArchiveRule">REST API Reference for ApplyArchiveRule Operation</seealso> public virtual ApplyArchiveRuleResponse ApplyArchiveRule(ApplyArchiveRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ApplyArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ApplyArchiveRuleResponseUnmarshaller.Instance; return Invoke<ApplyArchiveRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ApplyArchiveRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ApplyArchiveRule operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndApplyArchiveRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ApplyArchiveRule">REST API Reference for ApplyArchiveRule Operation</seealso> public virtual IAsyncResult BeginApplyArchiveRule(ApplyArchiveRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ApplyArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = ApplyArchiveRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ApplyArchiveRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginApplyArchiveRule.</param> /// /// <returns>Returns a ApplyArchiveRuleResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ApplyArchiveRule">REST API Reference for ApplyArchiveRule Operation</seealso> public virtual ApplyArchiveRuleResponse EndApplyArchiveRule(IAsyncResult asyncResult) { return EndInvoke<ApplyArchiveRuleResponse>(asyncResult); } #endregion #region CancelPolicyGeneration /// <summary> /// Cancels the requested policy generation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelPolicyGeneration service method.</param> /// /// <returns>The response from the CancelPolicyGeneration service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CancelPolicyGeneration">REST API Reference for CancelPolicyGeneration Operation</seealso> public virtual CancelPolicyGenerationResponse CancelPolicyGeneration(CancelPolicyGenerationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelPolicyGenerationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelPolicyGenerationResponseUnmarshaller.Instance; return Invoke<CancelPolicyGenerationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelPolicyGeneration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelPolicyGeneration operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelPolicyGeneration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CancelPolicyGeneration">REST API Reference for CancelPolicyGeneration Operation</seealso> public virtual IAsyncResult BeginCancelPolicyGeneration(CancelPolicyGenerationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelPolicyGenerationRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelPolicyGenerationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelPolicyGeneration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelPolicyGeneration.</param> /// /// <returns>Returns a CancelPolicyGenerationResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CancelPolicyGeneration">REST API Reference for CancelPolicyGeneration Operation</seealso> public virtual CancelPolicyGenerationResponse EndCancelPolicyGeneration(IAsyncResult asyncResult) { return EndInvoke<CancelPolicyGenerationResponse>(asyncResult); } #endregion #region CreateAccessPreview /// <summary> /// Creates an access preview that allows you to preview IAM Access Analyzer findings /// for your resource before deploying resource permissions. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAccessPreview service method.</param> /// /// <returns>The response from the CreateAccessPreview service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ConflictException"> /// A conflict exception error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ServiceQuotaExceededException"> /// Service quote met error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAccessPreview">REST API Reference for CreateAccessPreview Operation</seealso> public virtual CreateAccessPreviewResponse CreateAccessPreview(CreateAccessPreviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAccessPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAccessPreviewResponseUnmarshaller.Instance; return Invoke<CreateAccessPreviewResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateAccessPreview operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateAccessPreview operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAccessPreview /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAccessPreview">REST API Reference for CreateAccessPreview Operation</seealso> public virtual IAsyncResult BeginCreateAccessPreview(CreateAccessPreviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAccessPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAccessPreviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateAccessPreview operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAccessPreview.</param> /// /// <returns>Returns a CreateAccessPreviewResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAccessPreview">REST API Reference for CreateAccessPreview Operation</seealso> public virtual CreateAccessPreviewResponse EndCreateAccessPreview(IAsyncResult asyncResult) { return EndInvoke<CreateAccessPreviewResponse>(asyncResult); } #endregion #region CreateAnalyzer /// <summary> /// Creates an analyzer for your account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAnalyzer service method.</param> /// /// <returns>The response from the CreateAnalyzer service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ConflictException"> /// A conflict exception error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ServiceQuotaExceededException"> /// Service quote met error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzer">REST API Reference for CreateAnalyzer Operation</seealso> public virtual CreateAnalyzerResponse CreateAnalyzer(CreateAnalyzerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAnalyzerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAnalyzerResponseUnmarshaller.Instance; return Invoke<CreateAnalyzerResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateAnalyzer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateAnalyzer operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAnalyzer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzer">REST API Reference for CreateAnalyzer Operation</seealso> public virtual IAsyncResult BeginCreateAnalyzer(CreateAnalyzerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAnalyzerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAnalyzerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateAnalyzer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAnalyzer.</param> /// /// <returns>Returns a CreateAnalyzerResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzer">REST API Reference for CreateAnalyzer Operation</seealso> public virtual CreateAnalyzerResponse EndCreateAnalyzer(IAsyncResult asyncResult) { return EndInvoke<CreateAnalyzerResponse>(asyncResult); } #endregion #region CreateArchiveRule /// <summary> /// Creates an archive rule for the specified analyzer. Archive rules automatically archive /// new findings that meet the criteria you define when you create the rule. /// /// /// <para> /// To learn about filter keys that you can use to create an archive rule, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM /// Access Analyzer filter keys</a> in the <b>IAM User Guide</b>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateArchiveRule service method.</param> /// /// <returns>The response from the CreateArchiveRule service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ConflictException"> /// A conflict exception error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ServiceQuotaExceededException"> /// Service quote met error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRule">REST API Reference for CreateArchiveRule Operation</seealso> public virtual CreateArchiveRuleResponse CreateArchiveRule(CreateArchiveRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateArchiveRuleResponseUnmarshaller.Instance; return Invoke<CreateArchiveRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateArchiveRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateArchiveRule operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateArchiveRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRule">REST API Reference for CreateArchiveRule Operation</seealso> public virtual IAsyncResult BeginCreateArchiveRule(CreateArchiveRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateArchiveRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateArchiveRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateArchiveRule.</param> /// /// <returns>Returns a CreateArchiveRuleResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRule">REST API Reference for CreateArchiveRule Operation</seealso> public virtual CreateArchiveRuleResponse EndCreateArchiveRule(IAsyncResult asyncResult) { return EndInvoke<CreateArchiveRuleResponse>(asyncResult); } #endregion #region DeleteAnalyzer /// <summary> /// Deletes the specified analyzer. When you delete an analyzer, IAM Access Analyzer is /// disabled for the account or organization in the current or specific Region. All findings /// that were generated by the analyzer are deleted. You cannot undo this action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAnalyzer service method.</param> /// /// <returns>The response from the DeleteAnalyzer service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteAnalyzer">REST API Reference for DeleteAnalyzer Operation</seealso> public virtual DeleteAnalyzerResponse DeleteAnalyzer(DeleteAnalyzerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalyzerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalyzerResponseUnmarshaller.Instance; return Invoke<DeleteAnalyzerResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteAnalyzer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAnalyzer operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAnalyzer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteAnalyzer">REST API Reference for DeleteAnalyzer Operation</seealso> public virtual IAsyncResult BeginDeleteAnalyzer(DeleteAnalyzerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAnalyzerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAnalyzerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteAnalyzer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAnalyzer.</param> /// /// <returns>Returns a DeleteAnalyzerResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteAnalyzer">REST API Reference for DeleteAnalyzer Operation</seealso> public virtual DeleteAnalyzerResponse EndDeleteAnalyzer(IAsyncResult asyncResult) { return EndInvoke<DeleteAnalyzerResponse>(asyncResult); } #endregion #region DeleteArchiveRule /// <summary> /// Deletes the specified archive rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteArchiveRule service method.</param> /// /// <returns>The response from the DeleteArchiveRule service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteArchiveRule">REST API Reference for DeleteArchiveRule Operation</seealso> public virtual DeleteArchiveRuleResponse DeleteArchiveRule(DeleteArchiveRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteArchiveRuleResponseUnmarshaller.Instance; return Invoke<DeleteArchiveRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteArchiveRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteArchiveRule operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteArchiveRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteArchiveRule">REST API Reference for DeleteArchiveRule Operation</seealso> public virtual IAsyncResult BeginDeleteArchiveRule(DeleteArchiveRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteArchiveRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteArchiveRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteArchiveRule.</param> /// /// <returns>Returns a DeleteArchiveRuleResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteArchiveRule">REST API Reference for DeleteArchiveRule Operation</seealso> public virtual DeleteArchiveRuleResponse EndDeleteArchiveRule(IAsyncResult asyncResult) { return EndInvoke<DeleteArchiveRuleResponse>(asyncResult); } #endregion #region GetAccessPreview /// <summary> /// Retrieves information about an access preview for the specified analyzer. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccessPreview service method.</param> /// /// <returns>The response from the GetAccessPreview service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAccessPreview">REST API Reference for GetAccessPreview Operation</seealso> public virtual GetAccessPreviewResponse GetAccessPreview(GetAccessPreviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccessPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccessPreviewResponseUnmarshaller.Instance; return Invoke<GetAccessPreviewResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetAccessPreview operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccessPreview operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccessPreview /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAccessPreview">REST API Reference for GetAccessPreview Operation</seealso> public virtual IAsyncResult BeginGetAccessPreview(GetAccessPreviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccessPreviewRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccessPreviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetAccessPreview operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAccessPreview.</param> /// /// <returns>Returns a GetAccessPreviewResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAccessPreview">REST API Reference for GetAccessPreview Operation</seealso> public virtual GetAccessPreviewResponse EndGetAccessPreview(IAsyncResult asyncResult) { return EndInvoke<GetAccessPreviewResponse>(asyncResult); } #endregion #region GetAnalyzedResource /// <summary> /// Retrieves information about a resource that was analyzed. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAnalyzedResource service method.</param> /// /// <returns>The response from the GetAnalyzedResource service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzedResource">REST API Reference for GetAnalyzedResource Operation</seealso> public virtual GetAnalyzedResourceResponse GetAnalyzedResource(GetAnalyzedResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAnalyzedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAnalyzedResourceResponseUnmarshaller.Instance; return Invoke<GetAnalyzedResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetAnalyzedResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAnalyzedResource operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAnalyzedResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzedResource">REST API Reference for GetAnalyzedResource Operation</seealso> public virtual IAsyncResult BeginGetAnalyzedResource(GetAnalyzedResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAnalyzedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAnalyzedResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetAnalyzedResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAnalyzedResource.</param> /// /// <returns>Returns a GetAnalyzedResourceResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzedResource">REST API Reference for GetAnalyzedResource Operation</seealso> public virtual GetAnalyzedResourceResponse EndGetAnalyzedResource(IAsyncResult asyncResult) { return EndInvoke<GetAnalyzedResourceResponse>(asyncResult); } #endregion #region GetAnalyzer /// <summary> /// Retrieves information about the specified analyzer. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAnalyzer service method.</param> /// /// <returns>The response from the GetAnalyzer service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer">REST API Reference for GetAnalyzer Operation</seealso> public virtual GetAnalyzerResponse GetAnalyzer(GetAnalyzerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAnalyzerRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAnalyzerResponseUnmarshaller.Instance; return Invoke<GetAnalyzerResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetAnalyzer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAnalyzer operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAnalyzer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer">REST API Reference for GetAnalyzer Operation</seealso> public virtual IAsyncResult BeginGetAnalyzer(GetAnalyzerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAnalyzerRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAnalyzerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetAnalyzer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAnalyzer.</param> /// /// <returns>Returns a GetAnalyzerResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer">REST API Reference for GetAnalyzer Operation</seealso> public virtual GetAnalyzerResponse EndGetAnalyzer(IAsyncResult asyncResult) { return EndInvoke<GetAnalyzerResponse>(asyncResult); } #endregion #region GetArchiveRule /// <summary> /// Retrieves information about an archive rule. /// /// /// <para> /// To learn about filter keys that you can use to create an archive rule, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM /// Access Analyzer filter keys</a> in the <b>IAM User Guide</b>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetArchiveRule service method.</param> /// /// <returns>The response from the GetArchiveRule service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetArchiveRule">REST API Reference for GetArchiveRule Operation</seealso> public virtual GetArchiveRuleResponse GetArchiveRule(GetArchiveRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetArchiveRuleResponseUnmarshaller.Instance; return Invoke<GetArchiveRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetArchiveRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetArchiveRule operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetArchiveRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetArchiveRule">REST API Reference for GetArchiveRule Operation</seealso> public virtual IAsyncResult BeginGetArchiveRule(GetArchiveRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetArchiveRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetArchiveRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetArchiveRule.</param> /// /// <returns>Returns a GetArchiveRuleResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetArchiveRule">REST API Reference for GetArchiveRule Operation</seealso> public virtual GetArchiveRuleResponse EndGetArchiveRule(IAsyncResult asyncResult) { return EndInvoke<GetArchiveRuleResponse>(asyncResult); } #endregion #region GetFinding /// <summary> /// Retrieves information about the specified finding. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFinding service method.</param> /// /// <returns>The response from the GetFinding service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetFinding">REST API Reference for GetFinding Operation</seealso> public virtual GetFindingResponse GetFinding(GetFindingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFindingRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFindingResponseUnmarshaller.Instance; return Invoke<GetFindingResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetFinding operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetFinding operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFinding /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetFinding">REST API Reference for GetFinding Operation</seealso> public virtual IAsyncResult BeginGetFinding(GetFindingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetFindingRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFindingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetFinding operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFinding.</param> /// /// <returns>Returns a GetFindingResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetFinding">REST API Reference for GetFinding Operation</seealso> public virtual GetFindingResponse EndGetFinding(IAsyncResult asyncResult) { return EndInvoke<GetFindingResponse>(asyncResult); } #endregion #region GetGeneratedPolicy /// <summary> /// Retrieves the policy that was generated using <code>StartPolicyGeneration</code>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGeneratedPolicy service method.</param> /// /// <returns>The response from the GetGeneratedPolicy service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetGeneratedPolicy">REST API Reference for GetGeneratedPolicy Operation</seealso> public virtual GetGeneratedPolicyResponse GetGeneratedPolicy(GetGeneratedPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGeneratedPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGeneratedPolicyResponseUnmarshaller.Instance; return Invoke<GetGeneratedPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetGeneratedPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGeneratedPolicy operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGeneratedPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetGeneratedPolicy">REST API Reference for GetGeneratedPolicy Operation</seealso> public virtual IAsyncResult BeginGetGeneratedPolicy(GetGeneratedPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetGeneratedPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGeneratedPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetGeneratedPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetGeneratedPolicy.</param> /// /// <returns>Returns a GetGeneratedPolicyResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetGeneratedPolicy">REST API Reference for GetGeneratedPolicy Operation</seealso> public virtual GetGeneratedPolicyResponse EndGetGeneratedPolicy(IAsyncResult asyncResult) { return EndInvoke<GetGeneratedPolicyResponse>(asyncResult); } #endregion #region ListAccessPreviewFindings /// <summary> /// Retrieves a list of access preview findings generated by the specified access preview. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccessPreviewFindings service method.</param> /// /// <returns>The response from the ListAccessPreviewFindings service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ConflictException"> /// A conflict exception error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviewFindings">REST API Reference for ListAccessPreviewFindings Operation</seealso> public virtual ListAccessPreviewFindingsResponse ListAccessPreviewFindings(ListAccessPreviewFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPreviewFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPreviewFindingsResponseUnmarshaller.Instance; return Invoke<ListAccessPreviewFindingsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListAccessPreviewFindings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccessPreviewFindings operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAccessPreviewFindings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviewFindings">REST API Reference for ListAccessPreviewFindings Operation</seealso> public virtual IAsyncResult BeginListAccessPreviewFindings(ListAccessPreviewFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPreviewFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPreviewFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListAccessPreviewFindings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAccessPreviewFindings.</param> /// /// <returns>Returns a ListAccessPreviewFindingsResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviewFindings">REST API Reference for ListAccessPreviewFindings Operation</seealso> public virtual ListAccessPreviewFindingsResponse EndListAccessPreviewFindings(IAsyncResult asyncResult) { return EndInvoke<ListAccessPreviewFindingsResponse>(asyncResult); } #endregion #region ListAccessPreviews /// <summary> /// Retrieves a list of access previews for the specified analyzer. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccessPreviews service method.</param> /// /// <returns>The response from the ListAccessPreviews service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviews">REST API Reference for ListAccessPreviews Operation</seealso> public virtual ListAccessPreviewsResponse ListAccessPreviews(ListAccessPreviewsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPreviewsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPreviewsResponseUnmarshaller.Instance; return Invoke<ListAccessPreviewsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListAccessPreviews operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAccessPreviews operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAccessPreviews /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviews">REST API Reference for ListAccessPreviews Operation</seealso> public virtual IAsyncResult BeginListAccessPreviews(ListAccessPreviewsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPreviewsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPreviewsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListAccessPreviews operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAccessPreviews.</param> /// /// <returns>Returns a ListAccessPreviewsResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviews">REST API Reference for ListAccessPreviews Operation</seealso> public virtual ListAccessPreviewsResponse EndListAccessPreviews(IAsyncResult asyncResult) { return EndInvoke<ListAccessPreviewsResponse>(asyncResult); } #endregion #region ListAnalyzedResources /// <summary> /// Retrieves a list of resources of the specified type that have been analyzed by the /// specified analyzer.. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAnalyzedResources service method.</param> /// /// <returns>The response from the ListAnalyzedResources service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources">REST API Reference for ListAnalyzedResources Operation</seealso> public virtual ListAnalyzedResourcesResponse ListAnalyzedResources(ListAnalyzedResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAnalyzedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAnalyzedResourcesResponseUnmarshaller.Instance; return Invoke<ListAnalyzedResourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListAnalyzedResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAnalyzedResources operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAnalyzedResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources">REST API Reference for ListAnalyzedResources Operation</seealso> public virtual IAsyncResult BeginListAnalyzedResources(ListAnalyzedResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAnalyzedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAnalyzedResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListAnalyzedResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAnalyzedResources.</param> /// /// <returns>Returns a ListAnalyzedResourcesResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources">REST API Reference for ListAnalyzedResources Operation</seealso> public virtual ListAnalyzedResourcesResponse EndListAnalyzedResources(IAsyncResult asyncResult) { return EndInvoke<ListAnalyzedResourcesResponse>(asyncResult); } #endregion #region ListAnalyzers /// <summary> /// Retrieves a list of analyzers. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAnalyzers service method.</param> /// /// <returns>The response from the ListAnalyzers service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers">REST API Reference for ListAnalyzers Operation</seealso> public virtual ListAnalyzersResponse ListAnalyzers(ListAnalyzersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAnalyzersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAnalyzersResponseUnmarshaller.Instance; return Invoke<ListAnalyzersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListAnalyzers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListAnalyzers operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListAnalyzers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers">REST API Reference for ListAnalyzers Operation</seealso> public virtual IAsyncResult BeginListAnalyzers(ListAnalyzersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAnalyzersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAnalyzersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListAnalyzers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListAnalyzers.</param> /// /// <returns>Returns a ListAnalyzersResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers">REST API Reference for ListAnalyzers Operation</seealso> public virtual ListAnalyzersResponse EndListAnalyzers(IAsyncResult asyncResult) { return EndInvoke<ListAnalyzersResponse>(asyncResult); } #endregion #region ListArchiveRules /// <summary> /// Retrieves a list of archive rules created for the specified analyzer. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListArchiveRules service method.</param> /// /// <returns>The response from the ListArchiveRules service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListArchiveRules">REST API Reference for ListArchiveRules Operation</seealso> public virtual ListArchiveRulesResponse ListArchiveRules(ListArchiveRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListArchiveRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListArchiveRulesResponseUnmarshaller.Instance; return Invoke<ListArchiveRulesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListArchiveRules operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListArchiveRules operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListArchiveRules /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListArchiveRules">REST API Reference for ListArchiveRules Operation</seealso> public virtual IAsyncResult BeginListArchiveRules(ListArchiveRulesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListArchiveRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListArchiveRulesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListArchiveRules operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListArchiveRules.</param> /// /// <returns>Returns a ListArchiveRulesResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListArchiveRules">REST API Reference for ListArchiveRules Operation</seealso> public virtual ListArchiveRulesResponse EndListArchiveRules(IAsyncResult asyncResult) { return EndInvoke<ListArchiveRulesResponse>(asyncResult); } #endregion #region ListFindings /// <summary> /// Retrieves a list of findings generated by the specified analyzer. /// /// /// <para> /// To learn about filter keys that you can use to retrieve a list of findings, see <a /// href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM /// Access Analyzer filter keys</a> in the <b>IAM User Guide</b>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFindings service method.</param> /// /// <returns>The response from the ListFindings service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListFindings">REST API Reference for ListFindings Operation</seealso> public virtual ListFindingsResponse ListFindings(ListFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance; return Invoke<ListFindingsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListFindings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFindings operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFindings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListFindings">REST API Reference for ListFindings Operation</seealso> public virtual IAsyncResult BeginListFindings(ListFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListFindings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFindings.</param> /// /// <returns>Returns a ListFindingsResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListFindings">REST API Reference for ListFindings Operation</seealso> public virtual ListFindingsResponse EndListFindings(IAsyncResult asyncResult) { return EndInvoke<ListFindingsResponse>(asyncResult); } #endregion #region ListPolicyGenerations /// <summary> /// Lists all of the policy generations requested in the last seven days. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListPolicyGenerations service method.</param> /// /// <returns>The response from the ListPolicyGenerations service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListPolicyGenerations">REST API Reference for ListPolicyGenerations Operation</seealso> public virtual ListPolicyGenerationsResponse ListPolicyGenerations(ListPolicyGenerationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPolicyGenerationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPolicyGenerationsResponseUnmarshaller.Instance; return Invoke<ListPolicyGenerationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListPolicyGenerations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListPolicyGenerations operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListPolicyGenerations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListPolicyGenerations">REST API Reference for ListPolicyGenerations Operation</seealso> public virtual IAsyncResult BeginListPolicyGenerations(ListPolicyGenerationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPolicyGenerationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPolicyGenerationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListPolicyGenerations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListPolicyGenerations.</param> /// /// <returns>Returns a ListPolicyGenerationsResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListPolicyGenerations">REST API Reference for ListPolicyGenerations Operation</seealso> public virtual ListPolicyGenerationsResponse EndListPolicyGenerations(IAsyncResult asyncResult) { return EndInvoke<ListPolicyGenerationsResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Retrieves a list of tags applied to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region StartPolicyGeneration /// <summary> /// Starts the policy generation request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartPolicyGeneration service method.</param> /// /// <returns>The response from the StartPolicyGeneration service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ConflictException"> /// A conflict exception error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ServiceQuotaExceededException"> /// Service quote met error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartPolicyGeneration">REST API Reference for StartPolicyGeneration Operation</seealso> public virtual StartPolicyGenerationResponse StartPolicyGeneration(StartPolicyGenerationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartPolicyGenerationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartPolicyGenerationResponseUnmarshaller.Instance; return Invoke<StartPolicyGenerationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartPolicyGeneration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartPolicyGeneration operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartPolicyGeneration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartPolicyGeneration">REST API Reference for StartPolicyGeneration Operation</seealso> public virtual IAsyncResult BeginStartPolicyGeneration(StartPolicyGenerationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartPolicyGenerationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartPolicyGenerationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartPolicyGeneration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartPolicyGeneration.</param> /// /// <returns>Returns a StartPolicyGenerationResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartPolicyGeneration">REST API Reference for StartPolicyGeneration Operation</seealso> public virtual StartPolicyGenerationResponse EndStartPolicyGeneration(IAsyncResult asyncResult) { return EndInvoke<StartPolicyGenerationResponse>(asyncResult); } #endregion #region StartResourceScan /// <summary> /// Immediately starts a scan of the policies applied to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartResourceScan service method.</param> /// /// <returns>The response from the StartResourceScan service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartResourceScan">REST API Reference for StartResourceScan Operation</seealso> public virtual StartResourceScanResponse StartResourceScan(StartResourceScanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartResourceScanRequestMarshaller.Instance; options.ResponseUnmarshaller = StartResourceScanResponseUnmarshaller.Instance; return Invoke<StartResourceScanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartResourceScan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartResourceScan operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartResourceScan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartResourceScan">REST API Reference for StartResourceScan Operation</seealso> public virtual IAsyncResult BeginStartResourceScan(StartResourceScanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartResourceScanRequestMarshaller.Instance; options.ResponseUnmarshaller = StartResourceScanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartResourceScan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartResourceScan.</param> /// /// <returns>Returns a StartResourceScanResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartResourceScan">REST API Reference for StartResourceScan Operation</seealso> public virtual StartResourceScanResponse EndStartResourceScan(IAsyncResult asyncResult) { return EndInvoke<StartResourceScanResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Adds a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Removes a tag from the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateArchiveRule /// <summary> /// Updates the criteria and values for the specified archive rule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateArchiveRule service method.</param> /// /// <returns>The response from the UpdateArchiveRule service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateArchiveRule">REST API Reference for UpdateArchiveRule Operation</seealso> public virtual UpdateArchiveRuleResponse UpdateArchiveRule(UpdateArchiveRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateArchiveRuleResponseUnmarshaller.Instance; return Invoke<UpdateArchiveRuleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateArchiveRule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateArchiveRule operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateArchiveRule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateArchiveRule">REST API Reference for UpdateArchiveRule Operation</seealso> public virtual IAsyncResult BeginUpdateArchiveRule(UpdateArchiveRuleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateArchiveRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateArchiveRuleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateArchiveRule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateArchiveRule.</param> /// /// <returns>Returns a UpdateArchiveRuleResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateArchiveRule">REST API Reference for UpdateArchiveRule Operation</seealso> public virtual UpdateArchiveRuleResponse EndUpdateArchiveRule(IAsyncResult asyncResult) { return EndInvoke<UpdateArchiveRuleResponse>(asyncResult); } #endregion #region UpdateFindings /// <summary> /// Updates the status for the specified findings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFindings service method.</param> /// /// <returns>The response from the UpdateFindings service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ResourceNotFoundException"> /// The specified resource could not be found. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindings">REST API Reference for UpdateFindings Operation</seealso> public virtual UpdateFindingsResponse UpdateFindings(UpdateFindingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance; return Invoke<UpdateFindingsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateFindings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFindings operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFindings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindings">REST API Reference for UpdateFindings Operation</seealso> public virtual IAsyncResult BeginUpdateFindings(UpdateFindingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateFindings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFindings.</param> /// /// <returns>Returns a UpdateFindingsResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindings">REST API Reference for UpdateFindings Operation</seealso> public virtual UpdateFindingsResponse EndUpdateFindings(IAsyncResult asyncResult) { return EndInvoke<UpdateFindingsResponse>(asyncResult); } #endregion #region ValidatePolicy /// <summary> /// Requests the validation of a policy and returns a list of findings. The findings help /// you identify issues and provide actionable recommendations to resolve the issue and /// enable you to author functional policies that meet security best practices. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ValidatePolicy service method.</param> /// /// <returns>The response from the ValidatePolicy service method, as returned by AccessAnalyzer.</returns> /// <exception cref="Amazon.AccessAnalyzer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.InternalServerException"> /// Internal server error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ThrottlingException"> /// Throttling limit exceeded error. /// </exception> /// <exception cref="Amazon.AccessAnalyzer.Model.ValidationException"> /// Validation exception error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ValidatePolicy">REST API Reference for ValidatePolicy Operation</seealso> public virtual ValidatePolicyResponse ValidatePolicy(ValidatePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ValidatePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidatePolicyResponseUnmarshaller.Instance; return Invoke<ValidatePolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ValidatePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ValidatePolicy operation on AmazonAccessAnalyzerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndValidatePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ValidatePolicy">REST API Reference for ValidatePolicy Operation</seealso> public virtual IAsyncResult BeginValidatePolicy(ValidatePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ValidatePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ValidatePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ValidatePolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginValidatePolicy.</param> /// /// <returns>Returns a ValidatePolicyResult from AccessAnalyzer.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ValidatePolicy">REST API Reference for ValidatePolicy Operation</seealso> public virtual ValidatePolicyResponse EndValidatePolicy(IAsyncResult asyncResult) { return EndInvoke<ValidatePolicyResponse>(asyncResult); } #endregion } }