repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net | aws | C# | /*
* 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 Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Paginator for the ListPolicyGenerations operation
///</summary>
public interface IListPolicyGenerationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListPolicyGenerationsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the PolicyGenerations
/// </summary>
IPaginatedEnumerable<PolicyGeneration> PolicyGenerations { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Paginator for the ValidatePolicy operation
///</summary>
public interface IValidatePolicyPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ValidatePolicyResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Findings
/// </summary>
IPaginatedEnumerable<ValidatePolicyFinding> Findings { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListAccessPreviewFindings paginators.
/// </summary>
internal sealed partial class ListAccessPreviewFindingsPaginator : IPaginator<ListAccessPreviewFindingsResponse>, IListAccessPreviewFindingsPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListAccessPreviewFindingsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListAccessPreviewFindingsResponse> Responses => new PaginatedResponse<ListAccessPreviewFindingsResponse>(this);
/// <summary>
/// Enumerable containing all of the Findings
/// </summary>
public IPaginatedEnumerable<AccessPreviewFinding> Findings =>
new PaginatedResultKeyResponse<ListAccessPreviewFindingsResponse, AccessPreviewFinding>(this, (i) => i.Findings);
internal ListAccessPreviewFindingsPaginator(IAmazonAccessAnalyzer client, ListAccessPreviewFindingsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListAccessPreviewFindingsResponse> IPaginator<ListAccessPreviewFindingsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAccessPreviewFindingsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListAccessPreviewFindings(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListAccessPreviewFindingsResponse> IPaginator<ListAccessPreviewFindingsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAccessPreviewFindingsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListAccessPreviewFindingsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListAccessPreviews paginators.
/// </summary>
internal sealed partial class ListAccessPreviewsPaginator : IPaginator<ListAccessPreviewsResponse>, IListAccessPreviewsPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListAccessPreviewsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListAccessPreviewsResponse> Responses => new PaginatedResponse<ListAccessPreviewsResponse>(this);
/// <summary>
/// Enumerable containing all of the AccessPreviews
/// </summary>
public IPaginatedEnumerable<AccessPreviewSummary> AccessPreviews =>
new PaginatedResultKeyResponse<ListAccessPreviewsResponse, AccessPreviewSummary>(this, (i) => i.AccessPreviews);
internal ListAccessPreviewsPaginator(IAmazonAccessAnalyzer client, ListAccessPreviewsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListAccessPreviewsResponse> IPaginator<ListAccessPreviewsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAccessPreviewsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListAccessPreviews(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListAccessPreviewsResponse> IPaginator<ListAccessPreviewsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAccessPreviewsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListAccessPreviewsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListAnalyzedResources paginators.
/// </summary>
internal sealed partial class ListAnalyzedResourcesPaginator : IPaginator<ListAnalyzedResourcesResponse>, IListAnalyzedResourcesPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListAnalyzedResourcesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListAnalyzedResourcesResponse> Responses => new PaginatedResponse<ListAnalyzedResourcesResponse>(this);
/// <summary>
/// Enumerable containing all of the AnalyzedResources
/// </summary>
public IPaginatedEnumerable<AnalyzedResourceSummary> AnalyzedResources =>
new PaginatedResultKeyResponse<ListAnalyzedResourcesResponse, AnalyzedResourceSummary>(this, (i) => i.AnalyzedResources);
internal ListAnalyzedResourcesPaginator(IAmazonAccessAnalyzer client, ListAnalyzedResourcesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListAnalyzedResourcesResponse> IPaginator<ListAnalyzedResourcesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAnalyzedResourcesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListAnalyzedResources(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListAnalyzedResourcesResponse> IPaginator<ListAnalyzedResourcesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAnalyzedResourcesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListAnalyzedResourcesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListAnalyzers paginators.
/// </summary>
internal sealed partial class ListAnalyzersPaginator : IPaginator<ListAnalyzersResponse>, IListAnalyzersPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListAnalyzersRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListAnalyzersResponse> Responses => new PaginatedResponse<ListAnalyzersResponse>(this);
/// <summary>
/// Enumerable containing all of the Analyzers
/// </summary>
public IPaginatedEnumerable<AnalyzerSummary> Analyzers =>
new PaginatedResultKeyResponse<ListAnalyzersResponse, AnalyzerSummary>(this, (i) => i.Analyzers);
internal ListAnalyzersPaginator(IAmazonAccessAnalyzer client, ListAnalyzersRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListAnalyzersResponse> IPaginator<ListAnalyzersResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAnalyzersResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListAnalyzers(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListAnalyzersResponse> IPaginator<ListAnalyzersResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListAnalyzersResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListAnalyzersAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListArchiveRules paginators.
/// </summary>
internal sealed partial class ListArchiveRulesPaginator : IPaginator<ListArchiveRulesResponse>, IListArchiveRulesPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListArchiveRulesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListArchiveRulesResponse> Responses => new PaginatedResponse<ListArchiveRulesResponse>(this);
/// <summary>
/// Enumerable containing all of the ArchiveRules
/// </summary>
public IPaginatedEnumerable<ArchiveRuleSummary> ArchiveRules =>
new PaginatedResultKeyResponse<ListArchiveRulesResponse, ArchiveRuleSummary>(this, (i) => i.ArchiveRules);
internal ListArchiveRulesPaginator(IAmazonAccessAnalyzer client, ListArchiveRulesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListArchiveRulesResponse> IPaginator<ListArchiveRulesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListArchiveRulesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListArchiveRules(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListArchiveRulesResponse> IPaginator<ListArchiveRulesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListArchiveRulesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListArchiveRulesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListFindings paginators.
/// </summary>
internal sealed partial class ListFindingsPaginator : IPaginator<ListFindingsResponse>, IListFindingsPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListFindingsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListFindingsResponse> Responses => new PaginatedResponse<ListFindingsResponse>(this);
/// <summary>
/// Enumerable containing all of the Findings
/// </summary>
public IPaginatedEnumerable<FindingSummary> Findings =>
new PaginatedResultKeyResponse<ListFindingsResponse, FindingSummary>(this, (i) => i.Findings);
internal ListFindingsPaginator(IAmazonAccessAnalyzer client, ListFindingsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListFindingsResponse> IPaginator<ListFindingsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListFindingsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListFindings(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListFindingsResponse> IPaginator<ListFindingsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListFindingsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListFindingsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ListPolicyGenerations paginators.
/// </summary>
internal sealed partial class ListPolicyGenerationsPaginator : IPaginator<ListPolicyGenerationsResponse>, IListPolicyGenerationsPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ListPolicyGenerationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListPolicyGenerationsResponse> Responses => new PaginatedResponse<ListPolicyGenerationsResponse>(this);
/// <summary>
/// Enumerable containing all of the PolicyGenerations
/// </summary>
public IPaginatedEnumerable<PolicyGeneration> PolicyGenerations =>
new PaginatedResultKeyResponse<ListPolicyGenerationsResponse, PolicyGeneration>(this, (i) => i.PolicyGenerations);
internal ListPolicyGenerationsPaginator(IAmazonAccessAnalyzer client, ListPolicyGenerationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListPolicyGenerationsResponse> IPaginator<ListPolicyGenerationsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListPolicyGenerationsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListPolicyGenerations(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListPolicyGenerationsResponse> IPaginator<ListPolicyGenerationsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListPolicyGenerationsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListPolicyGenerationsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AccessAnalyzer.Model
{
/// <summary>
/// Base class for ValidatePolicy paginators.
/// </summary>
internal sealed partial class ValidatePolicyPaginator : IPaginator<ValidatePolicyResponse>, IValidatePolicyPaginator
{
private readonly IAmazonAccessAnalyzer _client;
private readonly ValidatePolicyRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ValidatePolicyResponse> Responses => new PaginatedResponse<ValidatePolicyResponse>(this);
/// <summary>
/// Enumerable containing all of the Findings
/// </summary>
public IPaginatedEnumerable<ValidatePolicyFinding> Findings =>
new PaginatedResultKeyResponse<ValidatePolicyResponse, ValidatePolicyFinding>(this, (i) => i.Findings);
internal ValidatePolicyPaginator(IAmazonAccessAnalyzer client, ValidatePolicyRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ValidatePolicyResponse> IPaginator<ValidatePolicyResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ValidatePolicyResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ValidatePolicy(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ValidatePolicyResponse> IPaginator<ValidatePolicyResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ValidatePolicyResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ValidatePolicyAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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) { }
/// <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
}
} | 2,245 |
aws-sdk-net | aws | C# | /*
* 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 Amazon.Runtime;
using Amazon.AccessAnalyzer.Model;
namespace Amazon.AccessAnalyzer
{
/// <summary>
/// Interface 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 interface IAmazonAccessAnalyzer : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAccessAnalyzerPaginatorFactory Paginators { get; }
#endif
#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>
ApplyArchiveRuleResponse ApplyArchiveRule(ApplyArchiveRuleRequest request);
/// <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>
IAsyncResult BeginApplyArchiveRule(ApplyArchiveRuleRequest request, AsyncCallback callback, object 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>
ApplyArchiveRuleResponse EndApplyArchiveRule(IAsyncResult 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>
CancelPolicyGenerationResponse CancelPolicyGeneration(CancelPolicyGenerationRequest request);
/// <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>
IAsyncResult BeginCancelPolicyGeneration(CancelPolicyGenerationRequest request, AsyncCallback callback, object 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>
CancelPolicyGenerationResponse EndCancelPolicyGeneration(IAsyncResult 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>
CreateAccessPreviewResponse CreateAccessPreview(CreateAccessPreviewRequest request);
/// <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>
IAsyncResult BeginCreateAccessPreview(CreateAccessPreviewRequest request, AsyncCallback callback, object 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>
CreateAccessPreviewResponse EndCreateAccessPreview(IAsyncResult 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>
CreateAnalyzerResponse CreateAnalyzer(CreateAnalyzerRequest request);
/// <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>
IAsyncResult BeginCreateAnalyzer(CreateAnalyzerRequest request, AsyncCallback callback, object 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>
CreateAnalyzerResponse EndCreateAnalyzer(IAsyncResult 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>
CreateArchiveRuleResponse CreateArchiveRule(CreateArchiveRuleRequest request);
/// <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>
IAsyncResult BeginCreateArchiveRule(CreateArchiveRuleRequest request, AsyncCallback callback, object 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>
CreateArchiveRuleResponse EndCreateArchiveRule(IAsyncResult 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>
DeleteAnalyzerResponse DeleteAnalyzer(DeleteAnalyzerRequest request);
/// <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>
IAsyncResult BeginDeleteAnalyzer(DeleteAnalyzerRequest request, AsyncCallback callback, object 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>
DeleteAnalyzerResponse EndDeleteAnalyzer(IAsyncResult 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>
DeleteArchiveRuleResponse DeleteArchiveRule(DeleteArchiveRuleRequest request);
/// <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>
IAsyncResult BeginDeleteArchiveRule(DeleteArchiveRuleRequest request, AsyncCallback callback, object 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>
DeleteArchiveRuleResponse EndDeleteArchiveRule(IAsyncResult 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>
GetAccessPreviewResponse GetAccessPreview(GetAccessPreviewRequest request);
/// <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>
IAsyncResult BeginGetAccessPreview(GetAccessPreviewRequest request, AsyncCallback callback, object 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>
GetAccessPreviewResponse EndGetAccessPreview(IAsyncResult 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>
GetAnalyzedResourceResponse GetAnalyzedResource(GetAnalyzedResourceRequest request);
/// <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>
IAsyncResult BeginGetAnalyzedResource(GetAnalyzedResourceRequest request, AsyncCallback callback, object 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>
GetAnalyzedResourceResponse EndGetAnalyzedResource(IAsyncResult 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>
GetAnalyzerResponse GetAnalyzer(GetAnalyzerRequest request);
/// <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>
IAsyncResult BeginGetAnalyzer(GetAnalyzerRequest request, AsyncCallback callback, object 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>
GetAnalyzerResponse EndGetAnalyzer(IAsyncResult 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>
GetArchiveRuleResponse GetArchiveRule(GetArchiveRuleRequest request);
/// <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>
IAsyncResult BeginGetArchiveRule(GetArchiveRuleRequest request, AsyncCallback callback, object 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>
GetArchiveRuleResponse EndGetArchiveRule(IAsyncResult 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>
GetFindingResponse GetFinding(GetFindingRequest request);
/// <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>
IAsyncResult BeginGetFinding(GetFindingRequest request, AsyncCallback callback, object 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>
GetFindingResponse EndGetFinding(IAsyncResult 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>
GetGeneratedPolicyResponse GetGeneratedPolicy(GetGeneratedPolicyRequest request);
/// <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>
IAsyncResult BeginGetGeneratedPolicy(GetGeneratedPolicyRequest request, AsyncCallback callback, object 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>
GetGeneratedPolicyResponse EndGetGeneratedPolicy(IAsyncResult 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>
ListAccessPreviewFindingsResponse ListAccessPreviewFindings(ListAccessPreviewFindingsRequest request);
/// <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>
IAsyncResult BeginListAccessPreviewFindings(ListAccessPreviewFindingsRequest request, AsyncCallback callback, object 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>
ListAccessPreviewFindingsResponse EndListAccessPreviewFindings(IAsyncResult 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>
ListAccessPreviewsResponse ListAccessPreviews(ListAccessPreviewsRequest request);
/// <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>
IAsyncResult BeginListAccessPreviews(ListAccessPreviewsRequest request, AsyncCallback callback, object 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>
ListAccessPreviewsResponse EndListAccessPreviews(IAsyncResult 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>
ListAnalyzedResourcesResponse ListAnalyzedResources(ListAnalyzedResourcesRequest request);
/// <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>
IAsyncResult BeginListAnalyzedResources(ListAnalyzedResourcesRequest request, AsyncCallback callback, object 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>
ListAnalyzedResourcesResponse EndListAnalyzedResources(IAsyncResult 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>
ListAnalyzersResponse ListAnalyzers(ListAnalyzersRequest request);
/// <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>
IAsyncResult BeginListAnalyzers(ListAnalyzersRequest request, AsyncCallback callback, object 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>
ListAnalyzersResponse EndListAnalyzers(IAsyncResult 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>
ListArchiveRulesResponse ListArchiveRules(ListArchiveRulesRequest request);
/// <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>
IAsyncResult BeginListArchiveRules(ListArchiveRulesRequest request, AsyncCallback callback, object 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>
ListArchiveRulesResponse EndListArchiveRules(IAsyncResult 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>
ListFindingsResponse ListFindings(ListFindingsRequest request);
/// <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>
IAsyncResult BeginListFindings(ListFindingsRequest request, AsyncCallback callback, object 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>
ListFindingsResponse EndListFindings(IAsyncResult 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>
ListPolicyGenerationsResponse ListPolicyGenerations(ListPolicyGenerationsRequest request);
/// <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>
IAsyncResult BeginListPolicyGenerations(ListPolicyGenerationsRequest request, AsyncCallback callback, object 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>
ListPolicyGenerationsResponse EndListPolicyGenerations(IAsyncResult 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>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <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>
IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object 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>
ListTagsForResourceResponse EndListTagsForResource(IAsyncResult 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>
StartPolicyGenerationResponse StartPolicyGeneration(StartPolicyGenerationRequest request);
/// <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>
IAsyncResult BeginStartPolicyGeneration(StartPolicyGenerationRequest request, AsyncCallback callback, object 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>
StartPolicyGenerationResponse EndStartPolicyGeneration(IAsyncResult 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>
StartResourceScanResponse StartResourceScan(StartResourceScanRequest request);
/// <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>
IAsyncResult BeginStartResourceScan(StartResourceScanRequest request, AsyncCallback callback, object 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>
StartResourceScanResponse EndStartResourceScan(IAsyncResult 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>
TagResourceResponse TagResource(TagResourceRequest request);
/// <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>
IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object 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>
TagResourceResponse EndTagResource(IAsyncResult 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>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <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>
IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object 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>
UntagResourceResponse EndUntagResource(IAsyncResult 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>
UpdateArchiveRuleResponse UpdateArchiveRule(UpdateArchiveRuleRequest request);
/// <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>
IAsyncResult BeginUpdateArchiveRule(UpdateArchiveRuleRequest request, AsyncCallback callback, object 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>
UpdateArchiveRuleResponse EndUpdateArchiveRule(IAsyncResult 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>
UpdateFindingsResponse UpdateFindings(UpdateFindingsRequest request);
/// <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>
IAsyncResult BeginUpdateFindings(UpdateFindingsRequest request, AsyncCallback callback, object 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>
UpdateFindingsResponse EndUpdateFindings(IAsyncResult 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>
ValidatePolicyResponse ValidatePolicy(ValidatePolicyRequest request);
/// <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>
IAsyncResult BeginValidatePolicy(ValidatePolicyRequest request, AsyncCallback callback, object 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>
ValidatePolicyResponse EndValidatePolicy(IAsyncResult asyncResult);
#endregion
}
} | 1,633 |
aws-sdk-net | aws | C# | /*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
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;
}
}
#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) { }
/// <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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ApplyArchiveRuleResponse> ApplyArchiveRuleAsync(ApplyArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ApplyArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ApplyArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<ApplyArchiveRuleResponse>(request, options, cancellationToken);
}
#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>
/// Cancels the requested policy generation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelPolicyGeneration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CancelPolicyGenerationResponse> CancelPolicyGenerationAsync(CancelPolicyGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelPolicyGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelPolicyGenerationResponseUnmarshaller.Instance;
return InvokeAsync<CancelPolicyGenerationResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CreateAccessPreviewResponse> CreateAccessPreviewAsync(CreateAccessPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessPreviewResponseUnmarshaller.Instance;
return InvokeAsync<CreateAccessPreviewResponse>(request, options, cancellationToken);
}
#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>
/// Creates an analyzer for your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAnalyzer service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CreateAnalyzerResponse> CreateAnalyzerAsync(CreateAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAnalyzerResponseUnmarshaller.Instance;
return InvokeAsync<CreateAnalyzerResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CreateArchiveRuleResponse> CreateArchiveRuleAsync(CreateArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<CreateArchiveRuleResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<DeleteAnalyzerResponse> DeleteAnalyzerAsync(DeleteAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAnalyzerResponseUnmarshaller.Instance;
return InvokeAsync<DeleteAnalyzerResponse>(request, options, cancellationToken);
}
#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>
/// Deletes the specified archive rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchiveRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<DeleteArchiveRuleResponse> DeleteArchiveRuleAsync(DeleteArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<DeleteArchiveRuleResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetAccessPreviewResponse> GetAccessPreviewAsync(GetAccessPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessPreviewResponseUnmarshaller.Instance;
return InvokeAsync<GetAccessPreviewResponse>(request, options, cancellationToken);
}
#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>
/// Retrieves information about a resource that was analyzed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAnalyzedResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetAnalyzedResourceResponse> GetAnalyzedResourceAsync(GetAnalyzedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnalyzedResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnalyzedResourceResponseUnmarshaller.Instance;
return InvokeAsync<GetAnalyzedResourceResponse>(request, options, cancellationToken);
}
#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>
/// Retrieves information about the specified analyzer.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAnalyzer service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetAnalyzerResponse> GetAnalyzerAsync(GetAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnalyzerResponseUnmarshaller.Instance;
return InvokeAsync<GetAnalyzerResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetArchiveRuleResponse> GetArchiveRuleAsync(GetArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<GetArchiveRuleResponse>(request, options, cancellationToken);
}
#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>
/// Retrieves information about the specified finding.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFinding service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetFindingResponse> GetFindingAsync(GetFindingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingResponseUnmarshaller.Instance;
return InvokeAsync<GetFindingResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetGeneratedPolicyResponse> GetGeneratedPolicyAsync(GetGeneratedPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetGeneratedPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetGeneratedPolicyResponseUnmarshaller.Instance;
return InvokeAsync<GetGeneratedPolicyResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAccessPreviewFindingsResponse> ListAccessPreviewFindingsAsync(ListAccessPreviewFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPreviewFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPreviewFindingsResponseUnmarshaller.Instance;
return InvokeAsync<ListAccessPreviewFindingsResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAccessPreviewsResponse> ListAccessPreviewsAsync(ListAccessPreviewsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPreviewsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPreviewsResponseUnmarshaller.Instance;
return InvokeAsync<ListAccessPreviewsResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAnalyzedResourcesResponse> ListAnalyzedResourcesAsync(ListAnalyzedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnalyzedResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnalyzedResourcesResponseUnmarshaller.Instance;
return InvokeAsync<ListAnalyzedResourcesResponse>(request, options, cancellationToken);
}
#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>
/// Retrieves a list of analyzers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListAnalyzers service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAnalyzersResponse> ListAnalyzersAsync(ListAnalyzersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnalyzersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnalyzersResponseUnmarshaller.Instance;
return InvokeAsync<ListAnalyzersResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListArchiveRulesResponse> ListArchiveRulesAsync(ListArchiveRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchiveRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchiveRulesResponseUnmarshaller.Instance;
return InvokeAsync<ListArchiveRulesResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListFindingsResponse> ListFindingsAsync(ListFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;
return InvokeAsync<ListFindingsResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListPolicyGenerationsResponse> ListPolicyGenerationsAsync(ListPolicyGenerationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPolicyGenerationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPolicyGenerationsResponseUnmarshaller.Instance;
return InvokeAsync<ListPolicyGenerationsResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#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>
/// Starts the policy generation request.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartPolicyGeneration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<StartPolicyGenerationResponse> StartPolicyGenerationAsync(StartPolicyGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartPolicyGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartPolicyGenerationResponseUnmarshaller.Instance;
return InvokeAsync<StartPolicyGenerationResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<StartResourceScanResponse> StartResourceScanAsync(StartResourceScanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartResourceScanRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartResourceScanResponseUnmarshaller.Instance;
return InvokeAsync<StartResourceScanResponse>(request, options, cancellationToken);
}
#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>
/// Adds a tag to the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#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>
/// Removes a tag from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<UpdateArchiveRuleResponse> UpdateArchiveRuleAsync(UpdateArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<UpdateArchiveRuleResponse>(request, options, cancellationToken);
}
#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>
/// Updates the status for the specified findings.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFindings service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<UpdateFindingsResponse> UpdateFindingsAsync(UpdateFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFindingsResponse>(request, options, cancellationToken);
}
#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>
/// 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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ValidatePolicyResponse> ValidatePolicyAsync(ValidatePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ValidatePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = ValidatePolicyResponseUnmarshaller.Instance;
return InvokeAsync<ValidatePolicyResponse>(request, options, cancellationToken);
}
#endregion
}
} | 2,330 |
aws-sdk-net | aws | C# | /*
* 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AccessAnalyzer.Model;
namespace Amazon.AccessAnalyzer
{
/// <summary>
/// Interface 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 interface IAmazonAccessAnalyzer : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IAccessAnalyzerPaginatorFactory Paginators { get; }
#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>
ApplyArchiveRuleResponse ApplyArchiveRule(ApplyArchiveRuleRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ApplyArchiveRuleResponse> ApplyArchiveRuleAsync(ApplyArchiveRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
CancelPolicyGenerationResponse CancelPolicyGeneration(CancelPolicyGenerationRequest request);
/// <summary>
/// Cancels the requested policy generation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelPolicyGeneration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CancelPolicyGenerationResponse> CancelPolicyGenerationAsync(CancelPolicyGenerationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
CreateAccessPreviewResponse CreateAccessPreview(CreateAccessPreviewRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CreateAccessPreviewResponse> CreateAccessPreviewAsync(CreateAccessPreviewRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
CreateAnalyzerResponse CreateAnalyzer(CreateAnalyzerRequest request);
/// <summary>
/// Creates an analyzer for your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAnalyzer service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CreateAnalyzerResponse> CreateAnalyzerAsync(CreateAnalyzerRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
CreateArchiveRuleResponse CreateArchiveRule(CreateArchiveRuleRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CreateArchiveRuleResponse> CreateArchiveRuleAsync(CreateArchiveRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
DeleteAnalyzerResponse DeleteAnalyzer(DeleteAnalyzerRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<DeleteAnalyzerResponse> DeleteAnalyzerAsync(DeleteAnalyzerRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
DeleteArchiveRuleResponse DeleteArchiveRule(DeleteArchiveRuleRequest request);
/// <summary>
/// Deletes the specified archive rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchiveRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<DeleteArchiveRuleResponse> DeleteArchiveRuleAsync(DeleteArchiveRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
GetAccessPreviewResponse GetAccessPreview(GetAccessPreviewRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetAccessPreviewResponse> GetAccessPreviewAsync(GetAccessPreviewRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
GetAnalyzedResourceResponse GetAnalyzedResource(GetAnalyzedResourceRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetAnalyzedResourceResponse> GetAnalyzedResourceAsync(GetAnalyzedResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
GetAnalyzerResponse GetAnalyzer(GetAnalyzerRequest request);
/// <summary>
/// Retrieves information about the specified analyzer.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAnalyzer service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetAnalyzerResponse> GetAnalyzerAsync(GetAnalyzerRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
GetArchiveRuleResponse GetArchiveRule(GetArchiveRuleRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetArchiveRuleResponse> GetArchiveRuleAsync(GetArchiveRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
GetFindingResponse GetFinding(GetFindingRequest request);
/// <summary>
/// Retrieves information about the specified finding.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFinding service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetFindingResponse> GetFindingAsync(GetFindingRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
GetGeneratedPolicyResponse GetGeneratedPolicy(GetGeneratedPolicyRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetGeneratedPolicyResponse> GetGeneratedPolicyAsync(GetGeneratedPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListAccessPreviewFindingsResponse ListAccessPreviewFindings(ListAccessPreviewFindingsRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAccessPreviewFindingsResponse> ListAccessPreviewFindingsAsync(ListAccessPreviewFindingsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListAccessPreviewsResponse ListAccessPreviews(ListAccessPreviewsRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAccessPreviewsResponse> ListAccessPreviewsAsync(ListAccessPreviewsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListAnalyzedResourcesResponse ListAnalyzedResources(ListAnalyzedResourcesRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAnalyzedResourcesResponse> ListAnalyzedResourcesAsync(ListAnalyzedResourcesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListAnalyzersResponse ListAnalyzers(ListAnalyzersRequest request);
/// <summary>
/// Retrieves a list of analyzers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListAnalyzers service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAnalyzersResponse> ListAnalyzersAsync(ListAnalyzersRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListArchiveRulesResponse ListArchiveRules(ListArchiveRulesRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListArchiveRulesResponse> ListArchiveRulesAsync(ListArchiveRulesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListFindingsResponse ListFindings(ListFindingsRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListFindingsResponse> ListFindingsAsync(ListFindingsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListPolicyGenerationsResponse ListPolicyGenerations(ListPolicyGenerationsRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListPolicyGenerationsResponse> ListPolicyGenerationsAsync(ListPolicyGenerationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
StartPolicyGenerationResponse StartPolicyGeneration(StartPolicyGenerationRequest request);
/// <summary>
/// Starts the policy generation request.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartPolicyGeneration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<StartPolicyGenerationResponse> StartPolicyGenerationAsync(StartPolicyGenerationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
StartResourceScanResponse StartResourceScan(StartResourceScanRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<StartResourceScanResponse> StartResourceScanAsync(StartResourceScanRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
TagResourceResponse TagResource(TagResourceRequest request);
/// <summary>
/// Adds a tag to the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
UntagResourceResponse UntagResource(UntagResourceRequest request);
/// <summary>
/// Removes a tag from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
UpdateArchiveRuleResponse UpdateArchiveRule(UpdateArchiveRuleRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<UpdateArchiveRuleResponse> UpdateArchiveRuleAsync(UpdateArchiveRuleRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
UpdateFindingsResponse UpdateFindings(UpdateFindingsRequest request);
/// <summary>
/// Updates the status for the specified findings.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFindings service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<UpdateFindingsResponse> UpdateFindingsAsync(UpdateFindingsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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>
ValidatePolicyResponse ValidatePolicy(ValidatePolicyRequest request);
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ValidatePolicyResponse> ValidatePolicyAsync(ValidatePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,745 |
aws-sdk-net | aws | C# | /*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
#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) { }
/// <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
#if 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 Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</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
internal virtual ApplyArchiveRuleResponse ApplyArchiveRule(ApplyArchiveRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ApplyArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ApplyArchiveRuleResponseUnmarshaller.Instance;
return Invoke<ApplyArchiveRuleResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ApplyArchiveRuleResponse> ApplyArchiveRuleAsync(ApplyArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ApplyArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ApplyArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<ApplyArchiveRuleResponse>(request, options, cancellationToken);
}
#endregion
#region CancelPolicyGeneration
internal virtual CancelPolicyGenerationResponse CancelPolicyGeneration(CancelPolicyGenerationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelPolicyGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelPolicyGenerationResponseUnmarshaller.Instance;
return Invoke<CancelPolicyGenerationResponse>(request, options);
}
/// <summary>
/// Cancels the requested policy generation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CancelPolicyGeneration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CancelPolicyGenerationResponse> CancelPolicyGenerationAsync(CancelPolicyGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelPolicyGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelPolicyGenerationResponseUnmarshaller.Instance;
return InvokeAsync<CancelPolicyGenerationResponse>(request, options, cancellationToken);
}
#endregion
#region CreateAccessPreview
internal virtual CreateAccessPreviewResponse CreateAccessPreview(CreateAccessPreviewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessPreviewResponseUnmarshaller.Instance;
return Invoke<CreateAccessPreviewResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CreateAccessPreviewResponse> CreateAccessPreviewAsync(CreateAccessPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAccessPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAccessPreviewResponseUnmarshaller.Instance;
return InvokeAsync<CreateAccessPreviewResponse>(request, options, cancellationToken);
}
#endregion
#region CreateAnalyzer
internal virtual CreateAnalyzerResponse CreateAnalyzer(CreateAnalyzerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAnalyzerResponseUnmarshaller.Instance;
return Invoke<CreateAnalyzerResponse>(request, options);
}
/// <summary>
/// Creates an analyzer for your account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAnalyzer service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CreateAnalyzerResponse> CreateAnalyzerAsync(CreateAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAnalyzerResponseUnmarshaller.Instance;
return InvokeAsync<CreateAnalyzerResponse>(request, options, cancellationToken);
}
#endregion
#region CreateArchiveRule
internal virtual CreateArchiveRuleResponse CreateArchiveRule(CreateArchiveRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveRuleResponseUnmarshaller.Instance;
return Invoke<CreateArchiveRuleResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<CreateArchiveRuleResponse> CreateArchiveRuleAsync(CreateArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<CreateArchiveRuleResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteAnalyzer
internal virtual DeleteAnalyzerResponse DeleteAnalyzer(DeleteAnalyzerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAnalyzerResponseUnmarshaller.Instance;
return Invoke<DeleteAnalyzerResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<DeleteAnalyzerResponse> DeleteAnalyzerAsync(DeleteAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAnalyzerResponseUnmarshaller.Instance;
return InvokeAsync<DeleteAnalyzerResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteArchiveRule
internal virtual DeleteArchiveRuleResponse DeleteArchiveRule(DeleteArchiveRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveRuleResponseUnmarshaller.Instance;
return Invoke<DeleteArchiveRuleResponse>(request, options);
}
/// <summary>
/// Deletes the specified archive rule.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteArchiveRule service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<DeleteArchiveRuleResponse> DeleteArchiveRuleAsync(DeleteArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<DeleteArchiveRuleResponse>(request, options, cancellationToken);
}
#endregion
#region GetAccessPreview
internal virtual GetAccessPreviewResponse GetAccessPreview(GetAccessPreviewRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessPreviewResponseUnmarshaller.Instance;
return Invoke<GetAccessPreviewResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetAccessPreviewResponse> GetAccessPreviewAsync(GetAccessPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAccessPreviewRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAccessPreviewResponseUnmarshaller.Instance;
return InvokeAsync<GetAccessPreviewResponse>(request, options, cancellationToken);
}
#endregion
#region GetAnalyzedResource
internal virtual GetAnalyzedResourceResponse GetAnalyzedResource(GetAnalyzedResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnalyzedResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnalyzedResourceResponseUnmarshaller.Instance;
return Invoke<GetAnalyzedResourceResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetAnalyzedResourceResponse> GetAnalyzedResourceAsync(GetAnalyzedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnalyzedResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnalyzedResourceResponseUnmarshaller.Instance;
return InvokeAsync<GetAnalyzedResourceResponse>(request, options, cancellationToken);
}
#endregion
#region GetAnalyzer
internal virtual GetAnalyzerResponse GetAnalyzer(GetAnalyzerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnalyzerResponseUnmarshaller.Instance;
return Invoke<GetAnalyzerResponse>(request, options);
}
/// <summary>
/// Retrieves information about the specified analyzer.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAnalyzer service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetAnalyzerResponse> GetAnalyzerAsync(GetAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnalyzerRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnalyzerResponseUnmarshaller.Instance;
return InvokeAsync<GetAnalyzerResponse>(request, options, cancellationToken);
}
#endregion
#region GetArchiveRule
internal virtual GetArchiveRuleResponse GetArchiveRule(GetArchiveRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetArchiveRuleResponseUnmarshaller.Instance;
return Invoke<GetArchiveRuleResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetArchiveRuleResponse> GetArchiveRuleAsync(GetArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<GetArchiveRuleResponse>(request, options, cancellationToken);
}
#endregion
#region GetFinding
internal virtual GetFindingResponse GetFinding(GetFindingRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingResponseUnmarshaller.Instance;
return Invoke<GetFindingResponse>(request, options);
}
/// <summary>
/// Retrieves information about the specified finding.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetFinding service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetFindingResponse> GetFindingAsync(GetFindingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFindingRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFindingResponseUnmarshaller.Instance;
return InvokeAsync<GetFindingResponse>(request, options, cancellationToken);
}
#endregion
#region GetGeneratedPolicy
internal virtual GetGeneratedPolicyResponse GetGeneratedPolicy(GetGeneratedPolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetGeneratedPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetGeneratedPolicyResponseUnmarshaller.Instance;
return Invoke<GetGeneratedPolicyResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<GetGeneratedPolicyResponse> GetGeneratedPolicyAsync(GetGeneratedPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetGeneratedPolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetGeneratedPolicyResponseUnmarshaller.Instance;
return InvokeAsync<GetGeneratedPolicyResponse>(request, options, cancellationToken);
}
#endregion
#region ListAccessPreviewFindings
internal virtual ListAccessPreviewFindingsResponse ListAccessPreviewFindings(ListAccessPreviewFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPreviewFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPreviewFindingsResponseUnmarshaller.Instance;
return Invoke<ListAccessPreviewFindingsResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAccessPreviewFindingsResponse> ListAccessPreviewFindingsAsync(ListAccessPreviewFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPreviewFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPreviewFindingsResponseUnmarshaller.Instance;
return InvokeAsync<ListAccessPreviewFindingsResponse>(request, options, cancellationToken);
}
#endregion
#region ListAccessPreviews
internal virtual ListAccessPreviewsResponse ListAccessPreviews(ListAccessPreviewsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPreviewsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPreviewsResponseUnmarshaller.Instance;
return Invoke<ListAccessPreviewsResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAccessPreviewsResponse> ListAccessPreviewsAsync(ListAccessPreviewsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAccessPreviewsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAccessPreviewsResponseUnmarshaller.Instance;
return InvokeAsync<ListAccessPreviewsResponse>(request, options, cancellationToken);
}
#endregion
#region ListAnalyzedResources
internal virtual ListAnalyzedResourcesResponse ListAnalyzedResources(ListAnalyzedResourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnalyzedResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnalyzedResourcesResponseUnmarshaller.Instance;
return Invoke<ListAnalyzedResourcesResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAnalyzedResourcesResponse> ListAnalyzedResourcesAsync(ListAnalyzedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnalyzedResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnalyzedResourcesResponseUnmarshaller.Instance;
return InvokeAsync<ListAnalyzedResourcesResponse>(request, options, cancellationToken);
}
#endregion
#region ListAnalyzers
internal virtual ListAnalyzersResponse ListAnalyzers(ListAnalyzersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnalyzersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnalyzersResponseUnmarshaller.Instance;
return Invoke<ListAnalyzersResponse>(request, options);
}
/// <summary>
/// Retrieves a list of analyzers.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListAnalyzers service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListAnalyzersResponse> ListAnalyzersAsync(ListAnalyzersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnalyzersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnalyzersResponseUnmarshaller.Instance;
return InvokeAsync<ListAnalyzersResponse>(request, options, cancellationToken);
}
#endregion
#region ListArchiveRules
internal virtual ListArchiveRulesResponse ListArchiveRules(ListArchiveRulesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchiveRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchiveRulesResponseUnmarshaller.Instance;
return Invoke<ListArchiveRulesResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListArchiveRulesResponse> ListArchiveRulesAsync(ListArchiveRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListArchiveRulesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListArchiveRulesResponseUnmarshaller.Instance;
return InvokeAsync<ListArchiveRulesResponse>(request, options, cancellationToken);
}
#endregion
#region ListFindings
internal virtual ListFindingsResponse ListFindings(ListFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;
return Invoke<ListFindingsResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListFindingsResponse> ListFindingsAsync(ListFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFindingsResponseUnmarshaller.Instance;
return InvokeAsync<ListFindingsResponse>(request, options, cancellationToken);
}
#endregion
#region ListPolicyGenerations
internal virtual ListPolicyGenerationsResponse ListPolicyGenerations(ListPolicyGenerationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPolicyGenerationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPolicyGenerationsResponseUnmarshaller.Instance;
return Invoke<ListPolicyGenerationsResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListPolicyGenerationsResponse> ListPolicyGenerationsAsync(ListPolicyGenerationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListPolicyGenerationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListPolicyGenerationsResponseUnmarshaller.Instance;
return InvokeAsync<ListPolicyGenerationsResponse>(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke<ListTagsForResourceResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken);
}
#endregion
#region StartPolicyGeneration
internal virtual StartPolicyGenerationResponse StartPolicyGeneration(StartPolicyGenerationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartPolicyGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartPolicyGenerationResponseUnmarshaller.Instance;
return Invoke<StartPolicyGenerationResponse>(request, options);
}
/// <summary>
/// Starts the policy generation request.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartPolicyGeneration service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<StartPolicyGenerationResponse> StartPolicyGenerationAsync(StartPolicyGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartPolicyGenerationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartPolicyGenerationResponseUnmarshaller.Instance;
return InvokeAsync<StartPolicyGenerationResponse>(request, options, cancellationToken);
}
#endregion
#region StartResourceScan
internal virtual StartResourceScanResponse StartResourceScan(StartResourceScanRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartResourceScanRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartResourceScanResponseUnmarshaller.Instance;
return Invoke<StartResourceScanResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<StartResourceScanResponse> StartResourceScanAsync(StartResourceScanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartResourceScanRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartResourceScanResponseUnmarshaller.Instance;
return InvokeAsync<StartResourceScanResponse>(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke<TagResourceResponse>(request, options);
}
/// <summary>
/// Adds a tag to the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync<TagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke<UntagResourceResponse>(request, options);
}
/// <summary>
/// Removes a tag from the specified resource.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateArchiveRule
internal virtual UpdateArchiveRuleResponse UpdateArchiveRule(UpdateArchiveRuleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveRuleResponseUnmarshaller.Instance;
return Invoke<UpdateArchiveRuleResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<UpdateArchiveRuleResponse> UpdateArchiveRuleAsync(UpdateArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateArchiveRuleRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateArchiveRuleResponseUnmarshaller.Instance;
return InvokeAsync<UpdateArchiveRuleResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateFindings
internal virtual UpdateFindingsResponse UpdateFindings(UpdateFindingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return Invoke<UpdateFindingsResponse>(request, options);
}
/// <summary>
/// Updates the status for the specified findings.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateFindings service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<UpdateFindingsResponse> UpdateFindingsAsync(UpdateFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFindingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFindingsResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFindingsResponse>(request, options, cancellationToken);
}
#endregion
#region ValidatePolicy
internal virtual ValidatePolicyResponse ValidatePolicy(ValidatePolicyRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ValidatePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = ValidatePolicyResponseUnmarshaller.Instance;
return Invoke<ValidatePolicyResponse>(request, options);
}
/// <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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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 Task<ValidatePolicyResponse> ValidatePolicyAsync(ValidatePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ValidatePolicyRequestMarshaller.Instance;
options.ResponseUnmarshaller = ValidatePolicyResponseUnmarshaller.Instance;
return InvokeAsync<ValidatePolicyResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,688 |
aws-sdk-net | aws | C# | /*
* 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.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AccessAnalyzer.Model;
namespace Amazon.AccessAnalyzer
{
/// <summary>
/// Interface 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 interface IAmazonAccessAnalyzer : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAccessAnalyzerPaginatorFactory Paginators { get; }
#endif
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ApplyArchiveRuleResponse> ApplyArchiveRuleAsync(ApplyArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CancelPolicyGenerationResponse> CancelPolicyGenerationAsync(CancelPolicyGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CreateAccessPreviewResponse> CreateAccessPreviewAsync(CreateAccessPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CreateAnalyzerResponse> CreateAnalyzerAsync(CreateAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<CreateArchiveRuleResponse> CreateArchiveRuleAsync(CreateArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<DeleteAnalyzerResponse> DeleteAnalyzerAsync(DeleteAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<DeleteArchiveRuleResponse> DeleteArchiveRuleAsync(DeleteArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetAccessPreviewResponse> GetAccessPreviewAsync(GetAccessPreviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetAnalyzedResourceResponse> GetAnalyzedResourceAsync(GetAnalyzedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetAnalyzerResponse> GetAnalyzerAsync(GetAnalyzerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetArchiveRuleResponse> GetArchiveRuleAsync(GetArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetFindingResponse> GetFindingAsync(GetFindingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<GetGeneratedPolicyResponse> GetGeneratedPolicyAsync(GetGeneratedPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAccessPreviewFindingsResponse> ListAccessPreviewFindingsAsync(ListAccessPreviewFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAccessPreviewsResponse> ListAccessPreviewsAsync(ListAccessPreviewsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAnalyzedResourcesResponse> ListAnalyzedResourcesAsync(ListAnalyzedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListAnalyzersResponse> ListAnalyzersAsync(ListAnalyzersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListArchiveRulesResponse> ListArchiveRulesAsync(ListArchiveRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListFindingsResponse> ListFindingsAsync(ListFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListPolicyGenerationsResponse> ListPolicyGenerationsAsync(ListPolicyGenerationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<StartPolicyGenerationResponse> StartPolicyGenerationAsync(StartPolicyGenerationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<StartResourceScanResponse> StartResourceScanAsync(StartResourceScanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<UpdateArchiveRuleResponse> UpdateArchiveRuleAsync(UpdateArchiveRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<UpdateFindingsResponse> UpdateFindingsAsync(UpdateFindingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#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>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </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>
Task<ValidatePolicyResponse> ValidatePolicyAsync(ValidatePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,015 |
aws-sdk-net | aws | C# | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.AccessAnalyzer")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Access Analyzer. Introducing AWS IAM Access Analyzer, an IAM feature that makes it easy for AWS customers to ensure that their resource-based policies provide only the intended access to resources outside their AWS accounts.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Access Analyzer. Introducing AWS IAM Access Analyzer, an IAM feature that makes it easy for AWS customers to ensure that their resource-based policies provide only the intended access to resources outside their AWS accounts.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Access Analyzer. Introducing AWS IAM Access Analyzer, an IAM feature that makes it easy for AWS customers to ensure that their resource-based policies provide only the intended access to resources outside their AWS accounts.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Access Analyzer. Introducing AWS IAM Access Analyzer, an IAM feature that makes it easy for AWS customers to ensure that their resource-based policies provide only the intended access to resources outside their AWS accounts.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.103.84")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Account.Internal;
namespace Amazon.Account
{
/// <summary>
/// Configuration for accessing Amazon Account service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonAccountConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.103.1");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonAccountConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAccountDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "account";
this.EndpointProvider = new AmazonAccountEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "account";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2021-02-01";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.Account
{
/// <summary>
/// Configuration for accessing Amazon Account service
/// </summary>
public static class AmazonAccountDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// Account
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
} | 146 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.Account.Endpoints
{
/// <summary>
/// Contains parameters used for resolving Account endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal AccountEndpointProvider and AccountEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class AccountEndpointParameters : EndpointParameters
{
/// <summary>
/// AccountEndpointParameters constructor
/// </summary>
public AccountEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.Account
{
///<summary>
/// Common exception for the Account service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonAccountException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonAccountException
/// </summary>
/// <param name="message"></param>
public AmazonAccountException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonAccountException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAccountException
/// </summary>
/// <param name="innerException"></param>
public AmazonAccountException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAccountException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonAccountException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAccountException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonAccountException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AmazonAccountException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
} | 105 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.Account
{
/// <summary>
/// Constants used for properties of type AlternateContactType.
/// </summary>
public class AlternateContactType : ConstantClass
{
/// <summary>
/// Constant BILLING for AlternateContactType
/// </summary>
public static readonly AlternateContactType BILLING = new AlternateContactType("BILLING");
/// <summary>
/// Constant OPERATIONS for AlternateContactType
/// </summary>
public static readonly AlternateContactType OPERATIONS = new AlternateContactType("OPERATIONS");
/// <summary>
/// Constant SECURITY for AlternateContactType
/// </summary>
public static readonly AlternateContactType SECURITY = new AlternateContactType("SECURITY");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AlternateContactType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AlternateContactType FindValue(string value)
{
return FindValue<AlternateContactType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AlternateContactType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RegionOptStatus.
/// </summary>
public class RegionOptStatus : ConstantClass
{
/// <summary>
/// Constant DISABLED for RegionOptStatus
/// </summary>
public static readonly RegionOptStatus DISABLED = new RegionOptStatus("DISABLED");
/// <summary>
/// Constant DISABLING for RegionOptStatus
/// </summary>
public static readonly RegionOptStatus DISABLING = new RegionOptStatus("DISABLING");
/// <summary>
/// Constant ENABLED for RegionOptStatus
/// </summary>
public static readonly RegionOptStatus ENABLED = new RegionOptStatus("ENABLED");
/// <summary>
/// Constant ENABLED_BY_DEFAULT for RegionOptStatus
/// </summary>
public static readonly RegionOptStatus ENABLED_BY_DEFAULT = new RegionOptStatus("ENABLED_BY_DEFAULT");
/// <summary>
/// Constant ENABLING for RegionOptStatus
/// </summary>
public static readonly RegionOptStatus ENABLING = new RegionOptStatus("ENABLING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public RegionOptStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static RegionOptStatus FindValue(string value)
{
return FindValue<RegionOptStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator RegionOptStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ValidationExceptionReason.
/// </summary>
public class ValidationExceptionReason : ConstantClass
{
/// <summary>
/// Constant FieldValidationFailed for ValidationExceptionReason
/// </summary>
public static readonly ValidationExceptionReason FieldValidationFailed = new ValidationExceptionReason("fieldValidationFailed");
/// <summary>
/// Constant InvalidRegionOptTarget for ValidationExceptionReason
/// </summary>
public static readonly ValidationExceptionReason InvalidRegionOptTarget = new ValidationExceptionReason("invalidRegionOptTarget");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ValidationExceptionReason(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ValidationExceptionReason FindValue(string value)
{
return FindValue<ValidationExceptionReason>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ValidationExceptionReason(string value)
{
return FindValue(value);
}
}
} | 192 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.Account.Internal
{
/// <summary>
/// Amazon Account endpoint provider.
/// Resolves endpoint for given set of AccountEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonAccountEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for AccountEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (IsSet(refs["Region"]))
{
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false))
{
return new Endpoint("https://account.us-east-1.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""account"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs));
}
if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-cn") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false))
{
return new Endpoint("https://account.cn-northwest-1.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""account"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs));
}
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://account-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
return new Endpoint(Interpolate(@"https://account-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://account.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://account.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.Account.Endpoints;
#pragma warning disable 1591
namespace Amazon.Account.Internal
{
/// <summary>
/// Amazon Account endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Account service requests.
/// Collects values for AccountEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AccountEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonAccountEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonAccountConfig)requestContext.ClientConfig;
var result = new AccountEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.Account.Internal
{
/// <summary>
/// Service metadata for Amazon Account service
/// </summary>
public partial class AmazonAccountMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Account";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
} | 55 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AccessDeniedException : AmazonAccountException
{
/// <summary>
/// Constructs a new AccessDeniedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public AccessDeniedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AccessDeniedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="innerException"></param>
public AccessDeniedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of AccessDeniedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AccessDeniedException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 125 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// A structure that contains the details of an alternate contact associated with an Amazon
/// Web Services account
/// </summary>
public partial class AlternateContact
{
private AlternateContactType _alternateContactType;
private string _emailAddress;
private string _name;
private string _phoneNumber;
private string _title;
/// <summary>
/// Gets and sets the property AlternateContactType.
/// <para>
/// The type of alternate contact.
/// </para>
/// </summary>
public AlternateContactType AlternateContactType
{
get { return this._alternateContactType; }
set { this._alternateContactType = value; }
}
// Check to see if AlternateContactType property is set
internal bool IsSetAlternateContactType()
{
return this._alternateContactType != null;
}
/// <summary>
/// Gets and sets the property EmailAddress.
/// <para>
/// The email address associated with this alternate contact.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=254)]
public string EmailAddress
{
get { return this._emailAddress; }
set { this._emailAddress = value; }
}
// Check to see if EmailAddress property is set
internal bool IsSetEmailAddress()
{
return this._emailAddress != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name associated with this alternate contact.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property PhoneNumber.
/// <para>
/// The phone number associated with this alternate contact.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=25)]
public string PhoneNumber
{
get { return this._phoneNumber; }
set { this._phoneNumber = value; }
}
// Check to see if PhoneNumber property is set
internal bool IsSetPhoneNumber()
{
return this._phoneNumber != null;
}
/// <summary>
/// Gets and sets the property Title.
/// <para>
/// The title associated with this alternate contact.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
} | 138 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.Account
{
/// <summary>
/// Base class for Account operation requests.
/// </summary>
public partial class AmazonAccountRequest : AmazonWebServiceRequest
{
}
} | 30 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConflictException : AmazonAccountException
{
/// <summary>
/// Constructs a new ConflictException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConflictException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConflictException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="innerException"></param>
public ConflictException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ConflictException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 126 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Contains the details of the primary contact information associated with an Amazon
/// Web Services account.
/// </summary>
public partial class ContactInformation
{
private string _addressLine1;
private string _addressLine2;
private string _addressLine3;
private string _city;
private string _companyName;
private string _countryCode;
private string _districtOrCounty;
private string _fullName;
private string _phoneNumber;
private string _postalCode;
private string _stateOrRegion;
private string _websiteUrl;
/// <summary>
/// Gets and sets the property AddressLine1.
/// <para>
/// The first line of the primary contact address.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=60)]
public string AddressLine1
{
get { return this._addressLine1; }
set { this._addressLine1 = value; }
}
// Check to see if AddressLine1 property is set
internal bool IsSetAddressLine1()
{
return this._addressLine1 != null;
}
/// <summary>
/// Gets and sets the property AddressLine2.
/// <para>
/// The second line of the primary contact address, if any.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=60)]
public string AddressLine2
{
get { return this._addressLine2; }
set { this._addressLine2 = value; }
}
// Check to see if AddressLine2 property is set
internal bool IsSetAddressLine2()
{
return this._addressLine2 != null;
}
/// <summary>
/// Gets and sets the property AddressLine3.
/// <para>
/// The third line of the primary contact address, if any.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=60)]
public string AddressLine3
{
get { return this._addressLine3; }
set { this._addressLine3 = value; }
}
// Check to see if AddressLine3 property is set
internal bool IsSetAddressLine3()
{
return this._addressLine3 != null;
}
/// <summary>
/// Gets and sets the property City.
/// <para>
/// The city of the primary contact address.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=50)]
public string City
{
get { return this._city; }
set { this._city = value; }
}
// Check to see if City property is set
internal bool IsSetCity()
{
return this._city != null;
}
/// <summary>
/// Gets and sets the property CompanyName.
/// <para>
/// The name of the company associated with the primary contact information, if any.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string CompanyName
{
get { return this._companyName; }
set { this._companyName = value; }
}
// Check to see if CompanyName property is set
internal bool IsSetCompanyName()
{
return this._companyName != null;
}
/// <summary>
/// Gets and sets the property CountryCode.
/// <para>
/// The ISO-3166 two-letter country code for the primary contact address.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=2)]
public string CountryCode
{
get { return this._countryCode; }
set { this._countryCode = value; }
}
// Check to see if CountryCode property is set
internal bool IsSetCountryCode()
{
return this._countryCode != null;
}
/// <summary>
/// Gets and sets the property DistrictOrCounty.
/// <para>
/// The district or county of the primary contact address, if any.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string DistrictOrCounty
{
get { return this._districtOrCounty; }
set { this._districtOrCounty = value; }
}
// Check to see if DistrictOrCounty property is set
internal bool IsSetDistrictOrCounty()
{
return this._districtOrCounty != null;
}
/// <summary>
/// Gets and sets the property FullName.
/// <para>
/// The full name of the primary contact address.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=50)]
public string FullName
{
get { return this._fullName; }
set { this._fullName = value; }
}
// Check to see if FullName property is set
internal bool IsSetFullName()
{
return this._fullName != null;
}
/// <summary>
/// Gets and sets the property PhoneNumber.
/// <para>
/// The phone number of the primary contact information. The number will be validated
/// and, in some countries, checked for activation.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=20)]
public string PhoneNumber
{
get { return this._phoneNumber; }
set { this._phoneNumber = value; }
}
// Check to see if PhoneNumber property is set
internal bool IsSetPhoneNumber()
{
return this._phoneNumber != null;
}
/// <summary>
/// Gets and sets the property PostalCode.
/// <para>
/// The postal code of the primary contact address.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=20)]
public string PostalCode
{
get { return this._postalCode; }
set { this._postalCode = value; }
}
// Check to see if PostalCode property is set
internal bool IsSetPostalCode()
{
return this._postalCode != null;
}
/// <summary>
/// Gets and sets the property StateOrRegion.
/// <para>
/// The state or region of the primary contact address. This field is required in selected
/// countries.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string StateOrRegion
{
get { return this._stateOrRegion; }
set { this._stateOrRegion = value; }
}
// Check to see if StateOrRegion property is set
internal bool IsSetStateOrRegion()
{
return this._stateOrRegion != null;
}
/// <summary>
/// Gets and sets the property WebsiteUrl.
/// <para>
/// The URL of the website associated with the primary contact information, if any.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=256)]
public string WebsiteUrl
{
get { return this._websiteUrl; }
set { this._websiteUrl = value; }
}
// Check to see if WebsiteUrl property is set
internal bool IsSetWebsiteUrl()
{
return this._websiteUrl != null;
}
}
} | 281 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the DeleteAlternateContact operation.
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
public partial class DeleteAlternateContactRequest : AmazonAccountRequest
{
private string _accountId;
private AlternateContactType _alternateContactType;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12 digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation.
/// </para>
///
/// <para>
/// If you do not specify this parameter, it defaults to the Amazon Web Services account
/// of the identity used to call the operation.
/// </para>
///
/// <para>
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account, and the specified account
/// ID must be a member account in the same organization. The organization must have <a
/// href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>; it must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, then
/// don't specify this parameter, and call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property AlternateContactType.
/// <para>
/// Specifies which of the alternate contacts to delete.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AlternateContactType AlternateContactType
{
get { return this._alternateContactType; }
set { this._alternateContactType = value; }
}
// Check to see if AlternateContactType property is set
internal bool IsSetAlternateContactType()
{
return this._alternateContactType != null;
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the DeleteAlternateContact operation.
/// </summary>
public partial class DeleteAlternateContactResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the DisableRegion operation.
/// Disables (opts-out) a particular Region for an account.
/// </summary>
public partial class DisableRegionRequest : AmazonAccountRequest
{
private string _accountId;
private string _regionName;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>. It must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property RegionName.
/// <para>
/// Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>).
/// When you disable a Region, Amazon Web Services performs actions to deactivate that
/// Region in your account, such as destroying IAM resources in the Region. This process
/// takes a few minutes for most accounts, but this can take several hours. You cannot
/// enable the Region until the disabling process is fully completed.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string RegionName
{
get { return this._regionName; }
set { this._regionName = value; }
}
// Check to see if RegionName property is set
internal bool IsSetRegionName()
{
return this._regionName != null;
}
}
} | 102 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the DisableRegion operation.
/// </summary>
public partial class DisableRegionResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the EnableRegion operation.
/// Enables (opts-in) a particular Region for an account.
/// </summary>
public partial class EnableRegionRequest : AmazonAccountRequest
{
private string _accountId;
private string _regionName;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>. It must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property RegionName.
/// <para>
/// Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>).
/// When you enable a Region, Amazon Web Services performs actions to prepare your account
/// in that Region, such as distributing your IAM resources to the Region. This process
/// takes a few minutes for most accounts, but it can take several hours. You cannot use
/// the Region until this process is complete. Furthermore, you cannot disable the Region
/// until the enabling process is fully completed.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string RegionName
{
get { return this._regionName; }
set { this._regionName = value; }
}
// Check to see if RegionName property is set
internal bool IsSetRegionName()
{
return this._regionName != null;
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the EnableRegion operation.
/// </summary>
public partial class EnableRegionResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the GetAlternateContact operation.
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
public partial class GetAlternateContactRequest : AmazonAccountRequest
{
private string _accountId;
private AlternateContactType _alternateContactType;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12 digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation.
/// </para>
///
/// <para>
/// If you do not specify this parameter, it defaults to the Amazon Web Services account
/// of the identity used to call the operation.
/// </para>
///
/// <para>
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account, and the specified account
/// ID must be a member account in the same organization. The organization must have <a
/// href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>; it must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, then
/// don't specify this parameter, and call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property AlternateContactType.
/// <para>
/// Specifies which alternate contact you want to retrieve.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AlternateContactType AlternateContactType
{
get { return this._alternateContactType; }
set { this._alternateContactType = value; }
}
// Check to see if AlternateContactType property is set
internal bool IsSetAlternateContactType()
{
return this._alternateContactType != null;
}
}
} | 120 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the GetAlternateContact operation.
/// </summary>
public partial class GetAlternateContactResponse : AmazonWebServiceResponse
{
private AlternateContact _alternateContact;
/// <summary>
/// Gets and sets the property AlternateContact.
/// <para>
/// A structure that contains the details for the specified alternate contact.
/// </para>
/// </summary>
public AlternateContact AlternateContact
{
get { return this._alternateContact; }
set { this._alternateContact = value; }
}
// Check to see if AlternateContact property is set
internal bool IsSetAlternateContact()
{
return this._alternateContact != null;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the GetContactInformation operation.
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
public partial class GetContactInformationRequest : AmazonAccountRequest
{
private string _accountId;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>. It must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
}
} | 84 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the GetContactInformation operation.
/// </summary>
public partial class GetContactInformationResponse : AmazonWebServiceResponse
{
private ContactInformation _contactInformation;
/// <summary>
/// Gets and sets the property ContactInformation.
/// <para>
/// Contains the details of the primary contact information associated with an Amazon
/// Web Services account.
/// </para>
/// </summary>
public ContactInformation ContactInformation
{
get { return this._contactInformation; }
set { this._contactInformation = value; }
}
// Check to see if ContactInformation property is set
internal bool IsSetContactInformation()
{
return this._contactInformation != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the GetRegionOptStatus operation.
/// Retrieves the opt-in status of a particular Region.
/// </summary>
public partial class GetRegionOptStatusRequest : AmazonAccountRequest
{
private string _accountId;
private string _regionName;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>. It must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property RegionName.
/// <para>
/// Specifies the Region-code for a given Region name (for example, <code>af-south-1</code>).
/// This function will return the status of whatever Region you pass into this parameter.
///
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string RegionName
{
get { return this._regionName; }
set { this._regionName = value; }
}
// Check to see if RegionName property is set
internal bool IsSetRegionName()
{
return this._regionName != null;
}
}
} | 100 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the GetRegionOptStatus operation.
/// </summary>
public partial class GetRegionOptStatusResponse : AmazonWebServiceResponse
{
private string _regionName;
private RegionOptStatus _regionOptStatus;
/// <summary>
/// Gets and sets the property RegionName.
/// <para>
/// The Region code that was passed in.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public string RegionName
{
get { return this._regionName; }
set { this._regionName = value; }
}
// Check to see if RegionName property is set
internal bool IsSetRegionName()
{
return this._regionName != null;
}
/// <summary>
/// Gets and sets the property RegionOptStatus.
/// <para>
/// One of the potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
/// Enabled_By_Default).
/// </para>
/// </summary>
public RegionOptStatus RegionOptStatus
{
get { return this._regionOptStatus; }
set { this._regionOptStatus = value; }
}
// Check to see if RegionOptStatus property is set
internal bool IsSetRegionOptStatus()
{
return this._regionOptStatus != null;
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServerException : AmazonAccountException
{
private RetryableDetails _retryableDetails = new RetryableDetails(false);
/// <summary>
/// Constructs a new InternalServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="innerException"></param>
public InternalServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InternalServerException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
/// <summary>
/// Flag indicating if the exception is retryable and the associated retry
/// details. A null value indicates that the exception is not retryable.
/// </summary>
public override RetryableDetails Retryable
{
get
{
return _retryableDetails;
}
}
}
} | 138 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the ListRegions operation.
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
public partial class ListRegionsRequest : AmazonAccountRequest
{
private string _accountId;
private int? _maxResults;
private string _nextToken;
private List<string> _regionOptStatusContains = new List<string>();
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>. It must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The total number of items to return in the command’s output. If the total number of
/// items available is more than the value specified, a <code>NextToken</code> is provided
/// in the command’s output. To resume pagination, provide the <code>NextToken</code>
/// value in the <code>starting-token</code> argument of a subsequent command. Do not
/// use the <code>NextToken</code> response element directly outside of the Amazon Web
/// Services CLI. For usage examples, see <a href="http://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Pagination</a>
/// in the <i>Amazon Web Services Command Line Interface User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// A token used to specify where to start paginating. This is the <code>NextToken</code>
/// from a previously truncated response. For usage examples, see <a href="http://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Pagination</a>
/// in the <i>Amazon Web Services Command Line Interface User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property RegionOptStatusContains.
/// <para>
/// A list of Region statuses (Enabling, Enabled, Disabling, Disabled, Enabled_by_default)
/// to use to filter the list of Regions for a given account. For example, passing in
/// a value of ENABLING will only return a list of Regions with a Region status of ENABLING.
/// </para>
/// </summary>
public List<string> RegionOptStatusContains
{
get { return this._regionOptStatusContains; }
set { this._regionOptStatusContains = value; }
}
// Check to see if RegionOptStatusContains property is set
internal bool IsSetRegionOptStatusContains()
{
return this._regionOptStatusContains != null && this._regionOptStatusContains.Count > 0;
}
}
} | 148 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the ListRegions operation.
/// </summary>
public partial class ListRegionsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Region> _regions = new List<Region>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If there is more data to be returned, this will be populated. It should be passed
/// into the <code>next-token</code> request parameter of <code>list-regions</code>.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
/// <summary>
/// Gets and sets the property Regions.
/// <para>
/// This is a list of Regions for a given account, or if the filtered parameter was used,
/// a list of Regions that match the filter criteria set in the <code>filter</code> parameter.
/// </para>
/// </summary>
public List<Region> Regions
{
get { return this._regions; }
set { this._regions = value; }
}
// Check to see if Regions property is set
internal bool IsSetRegions()
{
return this._regions != null && this._regions.Count > 0;
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the PutAlternateContact operation.
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
public partial class PutAlternateContactRequest : AmazonAccountRequest
{
private string _accountId;
private AlternateContactType _alternateContactType;
private string _emailAddress;
private string _name;
private string _phoneNumber;
private string _title;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12 digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation.
/// </para>
///
/// <para>
/// If you do not specify this parameter, it defaults to the Amazon Web Services account
/// of the identity used to call the operation.
/// </para>
///
/// <para>
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account, and the specified account
/// ID must be a member account in the same organization. The organization must have <a
/// href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>; it must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, then
/// don't specify this parameter, and call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property AlternateContactType.
/// <para>
/// Specifies which alternate contact you want to create or update.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AlternateContactType AlternateContactType
{
get { return this._alternateContactType; }
set { this._alternateContactType = value; }
}
// Check to see if AlternateContactType property is set
internal bool IsSetAlternateContactType()
{
return this._alternateContactType != null;
}
/// <summary>
/// Gets and sets the property EmailAddress.
/// <para>
/// Specifies an email address for the alternate contact.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=254)]
public string EmailAddress
{
get { return this._emailAddress; }
set { this._emailAddress = value; }
}
// Check to see if EmailAddress property is set
internal bool IsSetEmailAddress()
{
return this._emailAddress != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// Specifies a name for the alternate contact.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property PhoneNumber.
/// <para>
/// Specifies a phone number for the alternate contact.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=25)]
public string PhoneNumber
{
get { return this._phoneNumber; }
set { this._phoneNumber = value; }
}
// Check to see if PhoneNumber property is set
internal bool IsSetPhoneNumber()
{
return this._phoneNumber != null;
}
/// <summary>
/// Gets and sets the property Title.
/// <para>
/// Specifies a title for the alternate contact.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=50)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
} | 200 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the PutAlternateContact operation.
/// </summary>
public partial class PutAlternateContactResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// Container for the parameters to the PutContactInformation operation.
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
public partial class PutContactInformationRequest : AmazonAccountRequest
{
private string _accountId;
private ContactInformation _contactInformation;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// Specifies the 12-digit account ID number of the Amazon Web Services account that you
/// want to access or modify with this operation. If you don't specify this parameter,
/// it defaults to the Amazon Web Services account of the identity used to call the operation.
/// To use this parameter, the caller must be an identity in the <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account">organization's
/// management account</a> or a delegated administrator account. The specified account
/// ID must also be a member account in the same organization. The organization must have
/// <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">all
/// features enabled</a>, and the organization must have <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-trusted-access.html">trusted
/// access</a> enabled for the Account Management service, and optionally a <a href="https://docs.aws.amazon.com/organizations/latest/userguide/using-orgs-delegated-admin.html">delegated
/// admin</a> account assigned.
/// </para>
/// <note>
/// <para>
/// The management account can't specify its own <code>AccountId</code>. It must call
/// the operation in standalone context by not including the <code>AccountId</code> parameter.
/// </para>
/// </note>
/// <para>
/// To call this operation on an account that is not a member of an organization, don't
/// specify this parameter. Instead, call the operation using an identity belonging to
/// the account whose contacts you wish to retrieve or modify.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property ContactInformation.
/// <para>
/// Contains the details of the primary contact information associated with an Amazon
/// Web Services account.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ContactInformation ContactInformation
{
get { return this._contactInformation; }
set { this._contactInformation = value; }
}
// Check to see if ContactInformation property is set
internal bool IsSetContactInformation()
{
return this._contactInformation != null;
}
}
} | 105 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is the response object from the PutContactInformation operation.
/// </summary>
public partial class PutContactInformationResponse : AmazonWebServiceResponse
{
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// This is a structure that expresses the Region for a given account, consisting of a
/// name and opt-in status.
/// </summary>
public partial class Region
{
private string _regionName;
private RegionOptStatus _regionOptStatus;
/// <summary>
/// Gets and sets the property RegionName.
/// <para>
/// The Region code of a given Region (for example, <code>us-east-1</code>).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public string RegionName
{
get { return this._regionName; }
set { this._regionName = value; }
}
// Check to see if RegionName property is set
internal bool IsSetRegionName()
{
return this._regionName != null;
}
/// <summary>
/// Gets and sets the property RegionOptStatus.
/// <para>
/// One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
/// Enabled_By_Default).
/// </para>
/// </summary>
public RegionOptStatus RegionOptStatus
{
get { return this._regionOptStatus; }
set { this._regionOptStatus = value; }
}
// Check to see if RegionOptStatus property is set
internal bool IsSetRegionOptStatus()
{
return this._regionOptStatus != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The operation failed because it specified a resource that can't be found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonAccountException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TooManyRequestsException : AmazonAccountException
{
private RetryableDetails _retryableDetails = new RetryableDetails(true);
/// <summary>
/// Constructs a new TooManyRequestsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TooManyRequestsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TooManyRequestsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TooManyRequestsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TooManyRequestsException
/// </summary>
/// <param name="innerException"></param>
public TooManyRequestsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TooManyRequestsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TooManyRequestsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TooManyRequestsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TooManyRequestsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the TooManyRequestsException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected TooManyRequestsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
/// <summary>
/// Flag indicating if the exception is retryable and the associated retry
/// details. A null value indicates that the exception is not retryable.
/// </summary>
public override RetryableDetails Retryable
{
get
{
return _retryableDetails;
}
}
}
} | 138 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The operation failed because one of the input parameters was invalid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonAccountException
{
private List<ValidationExceptionField> _fieldList = new List<ValidationExceptionField>();
private ValidationExceptionReason _reason;
/// <summary>
/// Constructs a new ValidationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ValidationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ValidationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="innerException"></param>
public ValidationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ValidationException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.FieldList = (List<ValidationExceptionField>)info.GetValue("FieldList", typeof(List<ValidationExceptionField>));
this.Reason = (ValidationExceptionReason)info.GetValue("Reason", typeof(ValidationExceptionReason));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("FieldList", this.FieldList);
info.AddValue("Reason", this.Reason);
}
#endif
/// <summary>
/// Gets and sets the property FieldList.
/// <para>
/// The field where the invalid entry was detected.
/// </para>
/// </summary>
public List<ValidationExceptionField> FieldList
{
get { return this._fieldList; }
set { this._fieldList = value; }
}
// Check to see if FieldList property is set
internal bool IsSetFieldList()
{
return this._fieldList != null && this._fieldList.Count > 0;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// The reason that validation failed.
/// </para>
/// </summary>
public ValidationExceptionReason Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
}
} | 166 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Account.Model
{
/// <summary>
/// The input failed to meet the constraints specified by the Amazon Web Services service
/// in a specified field.
/// </summary>
public partial class ValidationExceptionField
{
private string _message;
private string _name;
/// <summary>
/// Gets and sets the property Message.
/// <para>
/// A message about the validation exception.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true)]
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The field name where the invalid entry was detected.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AccessDeniedException Object
/// </summary>
public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AccessDeniedException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AccessDeniedExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AlternateContact Object
/// </summary>
public class AlternateContactUnmarshaller : IUnmarshaller<AlternateContact, XmlUnmarshallerContext>, IUnmarshaller<AlternateContact, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AlternateContact IUnmarshaller<AlternateContact, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AlternateContact Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AlternateContact unmarshalledObject = new AlternateContact();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AlternateContactType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AlternateContactType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EmailAddress", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EmailAddress = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PhoneNumber", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PhoneNumber = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Title", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Title = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AlternateContactUnmarshaller _instance = new AlternateContactUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AlternateContactUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConflictException Object
/// </summary>
public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ConflictException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConflictExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// ContactInformation Marshaller
/// </summary>
public class ContactInformationMarshaller : IRequestMarshaller<ContactInformation, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ContactInformation requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAddressLine1())
{
context.Writer.WritePropertyName("AddressLine1");
context.Writer.Write(requestObject.AddressLine1);
}
if(requestObject.IsSetAddressLine2())
{
context.Writer.WritePropertyName("AddressLine2");
context.Writer.Write(requestObject.AddressLine2);
}
if(requestObject.IsSetAddressLine3())
{
context.Writer.WritePropertyName("AddressLine3");
context.Writer.Write(requestObject.AddressLine3);
}
if(requestObject.IsSetCity())
{
context.Writer.WritePropertyName("City");
context.Writer.Write(requestObject.City);
}
if(requestObject.IsSetCompanyName())
{
context.Writer.WritePropertyName("CompanyName");
context.Writer.Write(requestObject.CompanyName);
}
if(requestObject.IsSetCountryCode())
{
context.Writer.WritePropertyName("CountryCode");
context.Writer.Write(requestObject.CountryCode);
}
if(requestObject.IsSetDistrictOrCounty())
{
context.Writer.WritePropertyName("DistrictOrCounty");
context.Writer.Write(requestObject.DistrictOrCounty);
}
if(requestObject.IsSetFullName())
{
context.Writer.WritePropertyName("FullName");
context.Writer.Write(requestObject.FullName);
}
if(requestObject.IsSetPhoneNumber())
{
context.Writer.WritePropertyName("PhoneNumber");
context.Writer.Write(requestObject.PhoneNumber);
}
if(requestObject.IsSetPostalCode())
{
context.Writer.WritePropertyName("PostalCode");
context.Writer.Write(requestObject.PostalCode);
}
if(requestObject.IsSetStateOrRegion())
{
context.Writer.WritePropertyName("StateOrRegion");
context.Writer.Write(requestObject.StateOrRegion);
}
if(requestObject.IsSetWebsiteUrl())
{
context.Writer.WritePropertyName("WebsiteUrl");
context.Writer.Write(requestObject.WebsiteUrl);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ContactInformationMarshaller Instance = new ContactInformationMarshaller();
}
} | 128 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ContactInformation Object
/// </summary>
public class ContactInformationUnmarshaller : IUnmarshaller<ContactInformation, XmlUnmarshallerContext>, IUnmarshaller<ContactInformation, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ContactInformation IUnmarshaller<ContactInformation, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ContactInformation Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ContactInformation unmarshalledObject = new ContactInformation();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AddressLine1", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AddressLine1 = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AddressLine2", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AddressLine2 = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AddressLine3", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AddressLine3 = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("City", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.City = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CompanyName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CompanyName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CountryCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CountryCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DistrictOrCounty", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DistrictOrCounty = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FullName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FullName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PhoneNumber", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PhoneNumber = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PostalCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PostalCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StateOrRegion", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StateOrRegion = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WebsiteUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.WebsiteUrl = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ContactInformationUnmarshaller _instance = new ContactInformationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ContactInformationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 158 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteAlternateContact Request Marshaller
/// </summary>
public class DeleteAlternateContactRequestMarshaller : IMarshaller<IRequest, DeleteAlternateContactRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DeleteAlternateContactRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteAlternateContactRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/deleteAlternateContact";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetAlternateContactType())
{
context.Writer.WritePropertyName("AlternateContactType");
context.Writer.Write(publicRequest.AlternateContactType);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteAlternateContactRequestMarshaller _instance = new DeleteAlternateContactRequestMarshaller();
internal static DeleteAlternateContactRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteAlternateContactRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteAlternateContact operation
/// </summary>
public class DeleteAlternateContactResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DeleteAlternateContactResponse response = new DeleteAlternateContactResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteAlternateContactResponseUnmarshaller _instance = new DeleteAlternateContactResponseUnmarshaller();
internal static DeleteAlternateContactResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteAlternateContactResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// DisableRegion Request Marshaller
/// </summary>
public class DisableRegionRequestMarshaller : IMarshaller<IRequest, DisableRegionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DisableRegionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DisableRegionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/disableRegion";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetRegionName())
{
context.Writer.WritePropertyName("RegionName");
context.Writer.Write(publicRequest.RegionName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DisableRegionRequestMarshaller _instance = new DisableRegionRequestMarshaller();
internal static DisableRegionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisableRegionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DisableRegion operation
/// </summary>
public class DisableRegionResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DisableRegionResponse response = new DisableRegionResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DisableRegionResponseUnmarshaller _instance = new DisableRegionResponseUnmarshaller();
internal static DisableRegionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisableRegionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// EnableRegion Request Marshaller
/// </summary>
public class EnableRegionRequestMarshaller : IMarshaller<IRequest, EnableRegionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((EnableRegionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(EnableRegionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/enableRegion";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetRegionName())
{
context.Writer.WritePropertyName("RegionName");
context.Writer.Write(publicRequest.RegionName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static EnableRegionRequestMarshaller _instance = new EnableRegionRequestMarshaller();
internal static EnableRegionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static EnableRegionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for EnableRegion operation
/// </summary>
public class EnableRegionResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
EnableRegionResponse response = new EnableRegionResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static EnableRegionResponseUnmarshaller _instance = new EnableRegionResponseUnmarshaller();
internal static EnableRegionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static EnableRegionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetAlternateContact Request Marshaller
/// </summary>
public class GetAlternateContactRequestMarshaller : IMarshaller<IRequest, GetAlternateContactRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((GetAlternateContactRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetAlternateContactRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/getAlternateContact";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetAlternateContactType())
{
context.Writer.WritePropertyName("AlternateContactType");
context.Writer.Write(publicRequest.AlternateContactType);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static GetAlternateContactRequestMarshaller _instance = new GetAlternateContactRequestMarshaller();
internal static GetAlternateContactRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetAlternateContactRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetAlternateContact operation
/// </summary>
public class GetAlternateContactResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetAlternateContactResponse response = new GetAlternateContactResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AlternateContact", targetDepth))
{
var unmarshaller = AlternateContactUnmarshaller.Instance;
response.AlternateContact = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetAlternateContactResponseUnmarshaller _instance = new GetAlternateContactResponseUnmarshaller();
internal static GetAlternateContactResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetAlternateContactResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetContactInformation Request Marshaller
/// </summary>
public class GetContactInformationRequestMarshaller : IMarshaller<IRequest, GetContactInformationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((GetContactInformationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetContactInformationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/getContactInformation";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static GetContactInformationRequestMarshaller _instance = new GetContactInformationRequestMarshaller();
internal static GetContactInformationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetContactInformationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetContactInformation operation
/// </summary>
public class GetContactInformationResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetContactInformationResponse response = new GetContactInformationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ContactInformation", targetDepth))
{
var unmarshaller = ContactInformationUnmarshaller.Instance;
response.ContactInformation = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetContactInformationResponseUnmarshaller _instance = new GetContactInformationResponseUnmarshaller();
internal static GetContactInformationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetContactInformationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// GetRegionOptStatus Request Marshaller
/// </summary>
public class GetRegionOptStatusRequestMarshaller : IMarshaller<IRequest, GetRegionOptStatusRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((GetRegionOptStatusRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GetRegionOptStatusRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/getRegionOptStatus";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetRegionName())
{
context.Writer.WritePropertyName("RegionName");
context.Writer.Write(publicRequest.RegionName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static GetRegionOptStatusRequestMarshaller _instance = new GetRegionOptStatusRequestMarshaller();
internal static GetRegionOptStatusRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetRegionOptStatusRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GetRegionOptStatus operation
/// </summary>
public class GetRegionOptStatusResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
GetRegionOptStatusResponse response = new GetRegionOptStatusResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("RegionName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.RegionName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RegionOptStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.RegionOptStatus = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GetRegionOptStatusResponseUnmarshaller _instance = new GetRegionOptStatusResponseUnmarshaller();
internal static GetRegionOptStatusResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GetRegionOptStatusResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServerException Object
/// </summary>
public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServerException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServerExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListRegions Request Marshaller
/// </summary>
public class ListRegionsRequestMarshaller : IMarshaller<IRequest, ListRegionsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListRegionsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListRegionsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/listRegions";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("MaxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("NextToken");
context.Writer.Write(publicRequest.NextToken);
}
if(publicRequest.IsSetRegionOptStatusContains())
{
context.Writer.WritePropertyName("RegionOptStatusContains");
context.Writer.WriteArrayStart();
foreach(var publicRequestRegionOptStatusContainsListValue in publicRequest.RegionOptStatusContains)
{
context.Writer.Write(publicRequestRegionOptStatusContainsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ListRegionsRequestMarshaller _instance = new ListRegionsRequestMarshaller();
internal static ListRegionsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListRegionsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 124 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ListRegions operation
/// </summary>
public class ListRegionsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ListRegionsResponse response = new ListRegionsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Regions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Region, RegionUnmarshaller>(RegionUnmarshaller.Instance);
response.Regions = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ListRegionsResponseUnmarshaller _instance = new ListRegionsResponseUnmarshaller();
internal static ListRegionsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ListRegionsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutAlternateContact Request Marshaller
/// </summary>
public class PutAlternateContactRequestMarshaller : IMarshaller<IRequest, PutAlternateContactRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((PutAlternateContactRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutAlternateContactRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/putAlternateContact";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetAlternateContactType())
{
context.Writer.WritePropertyName("AlternateContactType");
context.Writer.Write(publicRequest.AlternateContactType);
}
if(publicRequest.IsSetEmailAddress())
{
context.Writer.WritePropertyName("EmailAddress");
context.Writer.Write(publicRequest.EmailAddress);
}
if(publicRequest.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(publicRequest.Name);
}
if(publicRequest.IsSetPhoneNumber())
{
context.Writer.WritePropertyName("PhoneNumber");
context.Writer.Write(publicRequest.PhoneNumber);
}
if(publicRequest.IsSetTitle())
{
context.Writer.WritePropertyName("Title");
context.Writer.Write(publicRequest.Title);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static PutAlternateContactRequestMarshaller _instance = new PutAlternateContactRequestMarshaller();
internal static PutAlternateContactRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutAlternateContactRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 131 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutAlternateContact operation
/// </summary>
public class PutAlternateContactResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
PutAlternateContactResponse response = new PutAlternateContactResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutAlternateContactResponseUnmarshaller _instance = new PutAlternateContactResponseUnmarshaller();
internal static PutAlternateContactResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutAlternateContactResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// PutContactInformation Request Marshaller
/// </summary>
public class PutContactInformationRequestMarshaller : IMarshaller<IRequest, PutContactInformationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((PutContactInformationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(PutContactInformationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Account");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01";
request.HttpMethod = "POST";
request.ResourcePath = "/putContactInformation";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAccountId())
{
context.Writer.WritePropertyName("AccountId");
context.Writer.Write(publicRequest.AccountId);
}
if(publicRequest.IsSetContactInformation())
{
context.Writer.WritePropertyName("ContactInformation");
context.Writer.WriteObjectStart();
var marshaller = ContactInformationMarshaller.Instance;
marshaller.Marshall(publicRequest.ContactInformation, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static PutContactInformationRequestMarshaller _instance = new PutContactInformationRequestMarshaller();
internal static PutContactInformationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutContactInformationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 112 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for PutContactInformation operation
/// </summary>
public class PutContactInformationResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
PutContactInformationResponse response = new PutContactInformationResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyRequestsException"))
{
return TooManyRequestsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAccountException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static PutContactInformationResponseUnmarshaller _instance = new PutContactInformationResponseUnmarshaller();
internal static PutContactInformationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static PutContactInformationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 111 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Region Object
/// </summary>
public class RegionUnmarshaller : IUnmarshaller<Region, XmlUnmarshallerContext>, IUnmarshaller<Region, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Region IUnmarshaller<Region, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Region Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Region unmarshalledObject = new Region();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("RegionName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RegionName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RegionOptStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RegionOptStatus = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RegionUnmarshaller _instance = new RegionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RegionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TooManyRequestsException Object
/// </summary>
public class TooManyRequestsExceptionUnmarshaller : IErrorResponseUnmarshaller<TooManyRequestsException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TooManyRequestsException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public TooManyRequestsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
TooManyRequestsException unmarshalledObject = new TooManyRequestsException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static TooManyRequestsExceptionUnmarshaller _instance = new TooManyRequestsExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TooManyRequestsExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValidationExceptionField Object
/// </summary>
public class ValidationExceptionFieldUnmarshaller : IUnmarshaller<ValidationExceptionField, XmlUnmarshallerContext>, IUnmarshaller<ValidationExceptionField, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ValidationExceptionField IUnmarshaller<ValidationExceptionField, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValidationExceptionField Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ValidationExceptionField unmarshalledObject = new ValidationExceptionField();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("message", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Message = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ValidationExceptionFieldUnmarshaller _instance = new ValidationExceptionFieldUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValidationExceptionFieldUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.Account.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Account.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValidationException Object
/// </summary>
public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValidationException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("fieldList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ValidationExceptionField, ValidationExceptionFieldUnmarshaller>(ValidationExceptionFieldUnmarshaller.Instance);
unmarshalledObject.FieldList = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("reason", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Reason = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValidationExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.Account.Model
{
/// <summary>
/// Paginators for the Account service
///</summary>
public class AccountPaginatorFactory : IAccountPaginatorFactory
{
private readonly IAmazonAccount client;
internal AccountPaginatorFactory(IAmazonAccount client)
{
this.client = client;
}
/// <summary>
/// Paginator for ListRegions operation
///</summary>
public IListRegionsPaginator ListRegions(ListRegionsRequest request)
{
return new ListRegionsPaginator(this.client, request);
}
}
} | 46 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
namespace Amazon.Account.Model
{
/// <summary>
/// Paginators for the Account service
///</summary>
public interface IAccountPaginatorFactory
{
/// <summary>
/// Paginator for ListRegions operation
///</summary>
IListRegionsPaginator ListRegions(ListRegionsRequest request);
}
} | 33 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.Account.Model
{
/// <summary>
/// Paginator for the ListRegions operation
///</summary>
public interface IListRegionsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListRegionsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Regions
/// </summary>
IPaginatedEnumerable<Region> Regions { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.Account.Model
{
/// <summary>
/// Base class for ListRegions paginators.
/// </summary>
internal sealed partial class ListRegionsPaginator : IPaginator<ListRegionsResponse>, IListRegionsPaginator
{
private readonly IAmazonAccount _client;
private readonly ListRegionsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListRegionsResponse> Responses => new PaginatedResponse<ListRegionsResponse>(this);
/// <summary>
/// Enumerable containing all of the Regions
/// </summary>
public IPaginatedEnumerable<Region> Regions =>
new PaginatedResultKeyResponse<ListRegionsResponse, Region>(this, (i) => i.Regions);
internal ListRegionsPaginator(IAmazonAccount client, ListRegionsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListRegionsResponse> IPaginator<ListRegionsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListRegionsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListRegions(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListRegionsResponse> IPaginator<ListRegionsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListRegionsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListRegionsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.Account.Model;
using Amazon.Account.Model.Internal.MarshallTransformations;
using Amazon.Account.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Account
{
/// <summary>
/// Implementation for accessing Account
///
/// Operations for Amazon Web Services Account Management
/// </summary>
public partial class AmazonAccountClient : AmazonServiceClient, IAmazonAccount
{
private static IServiceMetadata serviceMetadata = new AmazonAccountMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IAccountPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAccountPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AccountPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccountConfig()) { }
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccountConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(AmazonAccountConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAccountClient(AWSCredentials credentials)
: this(credentials, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAccountClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAccountConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials and an
/// AmazonAccountClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(AWSCredentials credentials, AmazonAccountConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccountConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAccountClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAccountConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccountConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAccountClient 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 AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAccountConfig 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 AmazonAccountEndpointResolver());
}
/// <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 DeleteAlternateContact
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
public virtual DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance;
return Invoke<DeleteAlternateContactResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteAlternateContact operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact operation on AmazonAccountClient.</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 EndDeleteAlternateContact
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
public virtual IAsyncResult BeginDeleteAlternateContact(DeleteAlternateContactRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteAlternateContact operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAlternateContact.</param>
///
/// <returns>Returns a DeleteAlternateContactResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
public virtual DeleteAlternateContactResponse EndDeleteAlternateContact(IAsyncResult asyncResult)
{
return EndInvoke<DeleteAlternateContactResponse>(asyncResult);
}
#endregion
#region DisableRegion
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
public virtual DisableRegionResponse DisableRegion(DisableRegionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRegionResponseUnmarshaller.Instance;
return Invoke<DisableRegionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DisableRegion operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisableRegion operation on AmazonAccountClient.</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 EndDisableRegion
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
public virtual IAsyncResult BeginDisableRegion(DisableRegionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRegionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DisableRegion operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableRegion.</param>
///
/// <returns>Returns a DisableRegionResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
public virtual DisableRegionResponse EndDisableRegion(IAsyncResult asyncResult)
{
return EndInvoke<DisableRegionResponse>(asyncResult);
}
#endregion
#region EnableRegion
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
public virtual EnableRegionResponse EnableRegion(EnableRegionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRegionResponseUnmarshaller.Instance;
return Invoke<EnableRegionResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the EnableRegion operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the EnableRegion operation on AmazonAccountClient.</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 EndEnableRegion
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
public virtual IAsyncResult BeginEnableRegion(EnableRegionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRegionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the EnableRegion operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableRegion.</param>
///
/// <returns>Returns a EnableRegionResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
public virtual EnableRegionResponse EndEnableRegion(IAsyncResult asyncResult)
{
return EndInvoke<EnableRegionResponse>(asyncResult);
}
#endregion
#region GetAlternateContact
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
public virtual GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance;
return Invoke<GetAlternateContactResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetAlternateContact operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact operation on AmazonAccountClient.</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 EndGetAlternateContact
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
public virtual IAsyncResult BeginGetAlternateContact(GetAlternateContactRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetAlternateContact operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAlternateContact.</param>
///
/// <returns>Returns a GetAlternateContactResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
public virtual GetAlternateContactResponse EndGetAlternateContact(IAsyncResult asyncResult)
{
return EndInvoke<GetAlternateContactResponse>(asyncResult);
}
#endregion
#region GetContactInformation
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
public virtual GetContactInformationResponse GetContactInformation(GetContactInformationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactInformationResponseUnmarshaller.Instance;
return Invoke<GetContactInformationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetContactInformation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation operation on AmazonAccountClient.</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 EndGetContactInformation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
public virtual IAsyncResult BeginGetContactInformation(GetContactInformationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactInformationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetContactInformation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetContactInformation.</param>
///
/// <returns>Returns a GetContactInformationResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
public virtual GetContactInformationResponse EndGetContactInformation(IAsyncResult asyncResult)
{
return EndInvoke<GetContactInformationResponse>(asyncResult);
}
#endregion
#region GetRegionOptStatus
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
public virtual GetRegionOptStatusResponse GetRegionOptStatus(GetRegionOptStatusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRegionOptStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRegionOptStatusResponseUnmarshaller.Instance;
return Invoke<GetRegionOptStatusResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetRegionOptStatus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus operation on AmazonAccountClient.</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 EndGetRegionOptStatus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
public virtual IAsyncResult BeginGetRegionOptStatus(GetRegionOptStatusRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRegionOptStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRegionOptStatusResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetRegionOptStatus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetRegionOptStatus.</param>
///
/// <returns>Returns a GetRegionOptStatusResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
public virtual GetRegionOptStatusResponse EndGetRegionOptStatus(IAsyncResult asyncResult)
{
return EndInvoke<GetRegionOptStatusResponse>(asyncResult);
}
#endregion
#region ListRegions
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
public virtual ListRegionsResponse ListRegions(ListRegionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRegionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRegionsResponseUnmarshaller.Instance;
return Invoke<ListRegionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListRegions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRegions operation on AmazonAccountClient.</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 EndListRegions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
public virtual IAsyncResult BeginListRegions(ListRegionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRegionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRegionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListRegions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRegions.</param>
///
/// <returns>Returns a ListRegionsResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
public virtual ListRegionsResponse EndListRegions(IAsyncResult asyncResult)
{
return EndInvoke<ListRegionsResponse>(asyncResult);
}
#endregion
#region PutAlternateContact
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
public virtual PutAlternateContactResponse PutAlternateContact(PutAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlternateContactResponseUnmarshaller.Instance;
return Invoke<PutAlternateContactResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutAlternateContact operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact operation on AmazonAccountClient.</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 EndPutAlternateContact
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
public virtual IAsyncResult BeginPutAlternateContact(PutAlternateContactRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlternateContactResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutAlternateContact operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutAlternateContact.</param>
///
/// <returns>Returns a PutAlternateContactResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
public virtual PutAlternateContactResponse EndPutAlternateContact(IAsyncResult asyncResult)
{
return EndInvoke<PutAlternateContactResponse>(asyncResult);
}
#endregion
#region PutContactInformation
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
public virtual PutContactInformationResponse PutContactInformation(PutContactInformationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutContactInformationResponseUnmarshaller.Instance;
return Invoke<PutContactInformationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutContactInformation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation operation on AmazonAccountClient.</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 EndPutContactInformation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
public virtual IAsyncResult BeginPutContactInformation(PutContactInformationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutContactInformationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutContactInformation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutContactInformation.</param>
///
/// <returns>Returns a PutContactInformationResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
public virtual PutContactInformationResponse EndPutContactInformation(IAsyncResult asyncResult)
{
return EndInvoke<PutContactInformationResponse>(asyncResult);
}
#endregion
}
} | 966 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Account.Model;
namespace Amazon.Account
{
/// <summary>
/// Interface for accessing Account
///
/// Operations for Amazon Web Services Account Management
/// </summary>
public partial interface IAmazonAccount : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAccountPaginatorFactory Paginators { get; }
#endif
#region DeleteAlternateContact
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteAlternateContact operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact operation on AmazonAccountClient.</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 EndDeleteAlternateContact
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
IAsyncResult BeginDeleteAlternateContact(DeleteAlternateContactRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteAlternateContact operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAlternateContact.</param>
///
/// <returns>Returns a DeleteAlternateContactResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
DeleteAlternateContactResponse EndDeleteAlternateContact(IAsyncResult asyncResult);
#endregion
#region DisableRegion
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
DisableRegionResponse DisableRegion(DisableRegionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DisableRegion operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisableRegion operation on AmazonAccountClient.</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 EndDisableRegion
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
IAsyncResult BeginDisableRegion(DisableRegionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DisableRegion operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableRegion.</param>
///
/// <returns>Returns a DisableRegionResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
DisableRegionResponse EndDisableRegion(IAsyncResult asyncResult);
#endregion
#region EnableRegion
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
EnableRegionResponse EnableRegion(EnableRegionRequest request);
/// <summary>
/// Initiates the asynchronous execution of the EnableRegion operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the EnableRegion operation on AmazonAccountClient.</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 EndEnableRegion
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
IAsyncResult BeginEnableRegion(EnableRegionRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the EnableRegion operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableRegion.</param>
///
/// <returns>Returns a EnableRegionResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
EnableRegionResponse EndEnableRegion(IAsyncResult asyncResult);
#endregion
#region GetAlternateContact
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetAlternateContact operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact operation on AmazonAccountClient.</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 EndGetAlternateContact
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
IAsyncResult BeginGetAlternateContact(GetAlternateContactRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetAlternateContact operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAlternateContact.</param>
///
/// <returns>Returns a GetAlternateContactResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
GetAlternateContactResponse EndGetAlternateContact(IAsyncResult asyncResult);
#endregion
#region GetContactInformation
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
GetContactInformationResponse GetContactInformation(GetContactInformationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetContactInformation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation operation on AmazonAccountClient.</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 EndGetContactInformation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
IAsyncResult BeginGetContactInformation(GetContactInformationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetContactInformation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetContactInformation.</param>
///
/// <returns>Returns a GetContactInformationResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
GetContactInformationResponse EndGetContactInformation(IAsyncResult asyncResult);
#endregion
#region GetRegionOptStatus
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
GetRegionOptStatusResponse GetRegionOptStatus(GetRegionOptStatusRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetRegionOptStatus operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus operation on AmazonAccountClient.</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 EndGetRegionOptStatus
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
IAsyncResult BeginGetRegionOptStatus(GetRegionOptStatusRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetRegionOptStatus operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetRegionOptStatus.</param>
///
/// <returns>Returns a GetRegionOptStatusResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
GetRegionOptStatusResponse EndGetRegionOptStatus(IAsyncResult asyncResult);
#endregion
#region ListRegions
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
ListRegionsResponse ListRegions(ListRegionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListRegions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListRegions operation on AmazonAccountClient.</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 EndListRegions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
IAsyncResult BeginListRegions(ListRegionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListRegions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListRegions.</param>
///
/// <returns>Returns a ListRegionsResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
ListRegionsResponse EndListRegions(IAsyncResult asyncResult);
#endregion
#region PutAlternateContact
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
PutAlternateContactResponse PutAlternateContact(PutAlternateContactRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutAlternateContact operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact operation on AmazonAccountClient.</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 EndPutAlternateContact
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
IAsyncResult BeginPutAlternateContact(PutAlternateContactRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutAlternateContact operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutAlternateContact.</param>
///
/// <returns>Returns a PutAlternateContactResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
PutAlternateContactResponse EndPutAlternateContact(IAsyncResult asyncResult);
#endregion
#region PutContactInformation
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
PutContactInformationResponse PutContactInformation(PutContactInformationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutContactInformation operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation operation on AmazonAccountClient.</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 EndPutContactInformation
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
IAsyncResult BeginPutContactInformation(PutContactInformationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutContactInformation operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutContactInformation.</param>
///
/// <returns>Returns a PutContactInformationResult from Account.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
PutContactInformationResponse EndPutContactInformation(IAsyncResult asyncResult);
#endregion
}
} | 620 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.Account.Model;
using Amazon.Account.Model.Internal.MarshallTransformations;
using Amazon.Account.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Account
{
/// <summary>
/// Implementation for accessing Account
///
/// Operations for Amazon Web Services Account Management
/// </summary>
public partial class AmazonAccountClient : AmazonServiceClient, IAmazonAccount
{
private static IServiceMetadata serviceMetadata = new AmazonAccountMetadata();
private IAccountPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAccountPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AccountPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccountConfig()) { }
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccountConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(AmazonAccountConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAccountClient(AWSCredentials credentials)
: this(credentials, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAccountClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAccountConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials and an
/// AmazonAccountClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(AWSCredentials credentials, AmazonAccountConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccountConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAccountClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAccountConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccountConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAccountClient 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 AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAccountConfig 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 AmazonAccountEndpointResolver());
}
/// <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 DeleteAlternateContact
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
public virtual DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance;
return Invoke<DeleteAlternateContactResponse>(request, options);
}
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
public virtual Task<DeleteAlternateContactResponse> DeleteAlternateContactAsync(DeleteAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance;
return InvokeAsync<DeleteAlternateContactResponse>(request, options, cancellationToken);
}
#endregion
#region DisableRegion
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
public virtual DisableRegionResponse DisableRegion(DisableRegionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRegionResponseUnmarshaller.Instance;
return Invoke<DisableRegionResponse>(request, options);
}
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
public virtual Task<DisableRegionResponse> DisableRegionAsync(DisableRegionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRegionResponseUnmarshaller.Instance;
return InvokeAsync<DisableRegionResponse>(request, options, cancellationToken);
}
#endregion
#region EnableRegion
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
public virtual EnableRegionResponse EnableRegion(EnableRegionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRegionResponseUnmarshaller.Instance;
return Invoke<EnableRegionResponse>(request, options);
}
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
public virtual Task<EnableRegionResponse> EnableRegionAsync(EnableRegionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRegionResponseUnmarshaller.Instance;
return InvokeAsync<EnableRegionResponse>(request, options, cancellationToken);
}
#endregion
#region GetAlternateContact
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
public virtual GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance;
return Invoke<GetAlternateContactResponse>(request, options);
}
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
public virtual Task<GetAlternateContactResponse> GetAlternateContactAsync(GetAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance;
return InvokeAsync<GetAlternateContactResponse>(request, options, cancellationToken);
}
#endregion
#region GetContactInformation
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
public virtual GetContactInformationResponse GetContactInformation(GetContactInformationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactInformationResponseUnmarshaller.Instance;
return Invoke<GetContactInformationResponse>(request, options);
}
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
public virtual Task<GetContactInformationResponse> GetContactInformationAsync(GetContactInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactInformationResponseUnmarshaller.Instance;
return InvokeAsync<GetContactInformationResponse>(request, options, cancellationToken);
}
#endregion
#region GetRegionOptStatus
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
public virtual GetRegionOptStatusResponse GetRegionOptStatus(GetRegionOptStatusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRegionOptStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRegionOptStatusResponseUnmarshaller.Instance;
return Invoke<GetRegionOptStatusResponse>(request, options);
}
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
public virtual Task<GetRegionOptStatusResponse> GetRegionOptStatusAsync(GetRegionOptStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRegionOptStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRegionOptStatusResponseUnmarshaller.Instance;
return InvokeAsync<GetRegionOptStatusResponse>(request, options, cancellationToken);
}
#endregion
#region ListRegions
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
public virtual ListRegionsResponse ListRegions(ListRegionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRegionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRegionsResponseUnmarshaller.Instance;
return Invoke<ListRegionsResponse>(request, options);
}
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
public virtual Task<ListRegionsResponse> ListRegionsAsync(ListRegionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRegionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRegionsResponseUnmarshaller.Instance;
return InvokeAsync<ListRegionsResponse>(request, options, cancellationToken);
}
#endregion
#region PutAlternateContact
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
public virtual PutAlternateContactResponse PutAlternateContact(PutAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlternateContactResponseUnmarshaller.Instance;
return Invoke<PutAlternateContactResponse>(request, options);
}
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
public virtual Task<PutAlternateContactResponse> PutAlternateContactAsync(PutAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlternateContactResponseUnmarshaller.Instance;
return InvokeAsync<PutAlternateContactResponse>(request, options, cancellationToken);
}
#endregion
#region PutContactInformation
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
public virtual PutContactInformationResponse PutContactInformation(PutContactInformationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutContactInformationResponseUnmarshaller.Instance;
return Invoke<PutContactInformationResponse>(request, options);
}
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
public virtual Task<PutContactInformationResponse> PutContactInformationAsync(PutContactInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutContactInformationResponseUnmarshaller.Instance;
return InvokeAsync<PutContactInformationResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,060 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Account.Model;
namespace Amazon.Account
{
/// <summary>
/// Interface for accessing Account
///
/// Operations for Amazon Web Services Account Management
/// </summary>
public partial interface IAmazonAccount : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IAccountPaginatorFactory Paginators { get; }
#region DeleteAlternateContact
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request);
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
Task<DeleteAlternateContactResponse> DeleteAlternateContactAsync(DeleteAlternateContactRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisableRegion
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
DisableRegionResponse DisableRegion(DisableRegionRequest request);
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
Task<DisableRegionResponse> DisableRegionAsync(DisableRegionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region EnableRegion
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
EnableRegionResponse EnableRegion(EnableRegionRequest request);
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
Task<EnableRegionResponse> EnableRegionAsync(EnableRegionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetAlternateContact
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request);
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
Task<GetAlternateContactResponse> GetAlternateContactAsync(GetAlternateContactRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetContactInformation
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
GetContactInformationResponse GetContactInformation(GetContactInformationRequest request);
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
Task<GetContactInformationResponse> GetContactInformationAsync(GetContactInformationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetRegionOptStatus
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
GetRegionOptStatusResponse GetRegionOptStatus(GetRegionOptStatusRequest request);
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
Task<GetRegionOptStatusResponse> GetRegionOptStatusAsync(GetRegionOptStatusRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRegions
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
ListRegionsResponse ListRegions(ListRegionsRequest request);
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
Task<ListRegionsResponse> ListRegionsAsync(ListRegionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutAlternateContact
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
PutAlternateContactResponse PutAlternateContact(PutAlternateContactRequest request);
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
Task<PutAlternateContactResponse> PutAlternateContactAsync(PutAlternateContactRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutContactInformation
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
PutContactInformationResponse PutContactInformation(PutContactInformationRequest request);
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
Task<PutContactInformationResponse> PutContactInformationAsync(PutContactInformationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 722 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.Account.Model;
using Amazon.Account.Model.Internal.MarshallTransformations;
using Amazon.Account.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Account
{
/// <summary>
/// Implementation for accessing Account
///
/// Operations for Amazon Web Services Account Management
/// </summary>
public partial class AmazonAccountClient : AmazonServiceClient, IAmazonAccount
{
private static IServiceMetadata serviceMetadata = new AmazonAccountMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccountConfig()) { }
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAccountConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(AmazonAccountConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAccountClient(AWSCredentials credentials)
: this(credentials, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAccountClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAccountConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Credentials and an
/// AmazonAccountClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(AWSCredentials credentials, AmazonAccountConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAccountConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAccountClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAccountConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccountConfig())
{
}
/// <summary>
/// Constructs AmazonAccountClient 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 AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAccountConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAccountClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAccountClient 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 AmazonAccountClient Configuration Object</param>
public AmazonAccountClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAccountConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IAccountPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAccountPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AccountPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAccountEndpointResolver());
}
/// <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 DeleteAlternateContact
internal virtual DeleteAlternateContactResponse DeleteAlternateContact(DeleteAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance;
return Invoke<DeleteAlternateContactResponse>(request, options);
}
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
public virtual Task<DeleteAlternateContactResponse> DeleteAlternateContactAsync(DeleteAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlternateContactResponseUnmarshaller.Instance;
return InvokeAsync<DeleteAlternateContactResponse>(request, options, cancellationToken);
}
#endregion
#region DisableRegion
internal virtual DisableRegionResponse DisableRegion(DisableRegionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRegionResponseUnmarshaller.Instance;
return Invoke<DisableRegionResponse>(request, options);
}
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
public virtual Task<DisableRegionResponse> DisableRegionAsync(DisableRegionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableRegionResponseUnmarshaller.Instance;
return InvokeAsync<DisableRegionResponse>(request, options, cancellationToken);
}
#endregion
#region EnableRegion
internal virtual EnableRegionResponse EnableRegion(EnableRegionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRegionResponseUnmarshaller.Instance;
return Invoke<EnableRegionResponse>(request, options);
}
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
public virtual Task<EnableRegionResponse> EnableRegionAsync(EnableRegionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableRegionRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableRegionResponseUnmarshaller.Instance;
return InvokeAsync<EnableRegionResponse>(request, options, cancellationToken);
}
#endregion
#region GetAlternateContact
internal virtual GetAlternateContactResponse GetAlternateContact(GetAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance;
return Invoke<GetAlternateContactResponse>(request, options);
}
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
public virtual Task<GetAlternateContactResponse> GetAlternateContactAsync(GetAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAlternateContactResponseUnmarshaller.Instance;
return InvokeAsync<GetAlternateContactResponse>(request, options, cancellationToken);
}
#endregion
#region GetContactInformation
internal virtual GetContactInformationResponse GetContactInformation(GetContactInformationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactInformationResponseUnmarshaller.Instance;
return Invoke<GetContactInformationResponse>(request, options);
}
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
public virtual Task<GetContactInformationResponse> GetContactInformationAsync(GetContactInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetContactInformationResponseUnmarshaller.Instance;
return InvokeAsync<GetContactInformationResponse>(request, options, cancellationToken);
}
#endregion
#region GetRegionOptStatus
internal virtual GetRegionOptStatusResponse GetRegionOptStatus(GetRegionOptStatusRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRegionOptStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRegionOptStatusResponseUnmarshaller.Instance;
return Invoke<GetRegionOptStatusResponse>(request, options);
}
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
public virtual Task<GetRegionOptStatusResponse> GetRegionOptStatusAsync(GetRegionOptStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRegionOptStatusRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRegionOptStatusResponseUnmarshaller.Instance;
return InvokeAsync<GetRegionOptStatusResponse>(request, options, cancellationToken);
}
#endregion
#region ListRegions
internal virtual ListRegionsResponse ListRegions(ListRegionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRegionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRegionsResponseUnmarshaller.Instance;
return Invoke<ListRegionsResponse>(request, options);
}
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
public virtual Task<ListRegionsResponse> ListRegionsAsync(ListRegionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRegionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRegionsResponseUnmarshaller.Instance;
return InvokeAsync<ListRegionsResponse>(request, options, cancellationToken);
}
#endregion
#region PutAlternateContact
internal virtual PutAlternateContactResponse PutAlternateContact(PutAlternateContactRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlternateContactResponseUnmarshaller.Instance;
return Invoke<PutAlternateContactResponse>(request, options);
}
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
public virtual Task<PutAlternateContactResponse> PutAlternateContactAsync(PutAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutAlternateContactRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutAlternateContactResponseUnmarshaller.Instance;
return InvokeAsync<PutAlternateContactResponse>(request, options, cancellationToken);
}
#endregion
#region PutContactInformation
internal virtual PutContactInformationResponse PutContactInformation(PutContactInformationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutContactInformationResponseUnmarshaller.Instance;
return Invoke<PutContactInformationResponse>(request, options);
}
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
public virtual Task<PutContactInformationResponse> PutContactInformationAsync(PutContactInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutContactInformationRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutContactInformationResponseUnmarshaller.Instance;
return InvokeAsync<PutContactInformationResponse>(request, options, cancellationToken);
}
#endregion
}
} | 789 |
aws-sdk-net | aws | C# | /*
* 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 account-2021-02-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Account.Model;
namespace Amazon.Account
{
/// <summary>
/// Interface for accessing Account
///
/// Operations for Amazon Web Services Account Management
/// </summary>
public partial interface IAmazonAccount : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAccountPaginatorFactory Paginators { get; }
#endif
#region DeleteAlternateContact
/// <summary>
/// Deletes the specified alternate contact from an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DeleteAlternateContact">REST API Reference for DeleteAlternateContact Operation</seealso>
Task<DeleteAlternateContactResponse> DeleteAlternateContactAsync(DeleteAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisableRegion
/// <summary>
/// Disables (opts-out) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DisableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/DisableRegion">REST API Reference for DisableRegion Operation</seealso>
Task<DisableRegionResponse> DisableRegionAsync(DisableRegionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region EnableRegion
/// <summary>
/// Enables (opts-in) a particular Region for an account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableRegion service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the EnableRegion service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.ConflictException">
/// The request could not be processed because of a conflict in the current status of
/// the resource. For example, this happens if you try to enable a Region that is currently
/// being disabled (in a status of DISABLING).
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/EnableRegion">REST API Reference for EnableRegion Operation</seealso>
Task<EnableRegionResponse> EnableRegionAsync(EnableRegionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetAlternateContact
/// <summary>
/// Retrieves the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetAlternateContact">REST API Reference for GetAlternateContact Operation</seealso>
Task<GetAlternateContactResponse> GetAlternateContactAsync(GetAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetContactInformation
/// <summary>
/// Retrieves the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.ResourceNotFoundException">
/// The operation failed because it specified a resource that can't be found.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetContactInformation">REST API Reference for GetContactInformation Operation</seealso>
Task<GetContactInformationResponse> GetContactInformationAsync(GetContactInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetRegionOptStatus
/// <summary>
/// Retrieves the opt-in status of a particular Region.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetRegionOptStatus service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetRegionOptStatus service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/GetRegionOptStatus">REST API Reference for GetRegionOptStatus Operation</seealso>
Task<GetRegionOptStatusResponse> GetRegionOptStatusAsync(GetRegionOptStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListRegions
/// <summary>
/// Lists all the Regions for a given account and their respective opt-in statuses. Optionally,
/// this list can be filtered by the <code>region-opt-status-contains</code> parameter.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListRegions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListRegions service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/ListRegions">REST API Reference for ListRegions Operation</seealso>
Task<ListRegionsResponse> ListRegionsAsync(ListRegionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutAlternateContact
/// <summary>
/// Modifies the specified alternate contact attached to an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the alternate contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Access
/// or updating the alternate contacts</a>.
/// </para>
/// <note>
/// <para>
/// Before you can update the alternate contact information for an Amazon Web Services
/// account that is managed by Organizations, you must first enable integration between
/// Amazon Web Services Account Management and Organizations. For more information, see
/// <a href="https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html">Enabling
/// trusted access for Amazon Web Services Account Management</a>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutAlternateContact service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutAlternateContact service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutAlternateContact">REST API Reference for PutAlternateContact Operation</seealso>
Task<PutAlternateContactResponse> PutAlternateContactAsync(PutAlternateContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutContactInformation
/// <summary>
/// Updates the primary contact information of an Amazon Web Services account.
///
///
/// <para>
/// For complete details about how to use the primary contact operations, see <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html">Update
/// the primary and alternate contact information</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutContactInformation service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutContactInformation service method, as returned by Account.</returns>
/// <exception cref="Amazon.Account.Model.AccessDeniedException">
/// The operation failed because the calling identity doesn't have the minimum required
/// permissions.
/// </exception>
/// <exception cref="Amazon.Account.Model.InternalServerException">
/// The operation failed because of an error internal to Amazon Web Services. Try your
/// operation again later.
/// </exception>
/// <exception cref="Amazon.Account.Model.TooManyRequestsException">
/// The operation failed because it was called too frequently and exceeded a throttle
/// limit.
/// </exception>
/// <exception cref="Amazon.Account.Model.ValidationException">
/// The operation failed because one of the input parameters was invalid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/account-2021-02-01/PutContactInformation">REST API Reference for PutContactInformation Operation</seealso>
Task<PutContactInformationResponse> PutContactInformationAsync(PutContactInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 420 |
aws-sdk-net | aws | C# | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.Account")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Account. This release of the Account Management API enables customers to manage the alternate contacts for their AWS accounts. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/accounts-welcome.html")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Account. This release of the Account Management API enables customers to manage the alternate contacts for their AWS accounts. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/accounts-welcome.html")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Account. This release of the Account Management API enables customers to manage the alternate contacts for their AWS accounts. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/accounts-welcome.html")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Account. This release of the Account Management API enables customers to manage the alternate contacts for their AWS accounts. For more information, see https://docs.aws.amazon.com/accounts/latest/reference/accounts-welcome.html")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.103.1")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* 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 acm-pca-2017-08-22.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.ACMPCA.Internal;
namespace Amazon.ACMPCA
{
/// <summary>
/// Configuration for accessing Amazon ACMPCA service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonACMPCAConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.102.98");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonACMPCAConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonACMPCADefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "acm-pca";
this.EndpointProvider = new AmazonACMPCAEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "acm-pca";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2017-08-22";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* 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 acm-pca-2017-08-22.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.ACMPCA
{
/// <summary>
/// Configuration for accessing Amazon ACMPCA service
/// </summary>
public static class AmazonACMPCADefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// ACMPCA
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
} | 146 |
aws-sdk-net | aws | C# | /*
* 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 acm-pca-2017-08-22.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.ACMPCA.Endpoints
{
/// <summary>
/// Contains parameters used for resolving ACMPCA endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal ACMPCAEndpointProvider and ACMPCAEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class ACMPCAEndpointParameters : EndpointParameters
{
/// <summary>
/// ACMPCAEndpointParameters constructor
/// </summary>
public ACMPCAEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* 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 acm-pca-2017-08-22.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.ACMPCA
{
///<summary>
/// Common exception for the ACMPCA service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonACMPCAException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonACMPCAException
/// </summary>
/// <param name="message"></param>
public AmazonACMPCAException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonACMPCAException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonACMPCAException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonACMPCAException
/// </summary>
/// <param name="innerException"></param>
public AmazonACMPCAException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonACMPCAException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonACMPCAException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonACMPCAException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonACMPCAException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonACMPCAException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AmazonACMPCAException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
} | 105 |
aws-sdk-net | aws | C# | /*
* 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 acm-pca-2017-08-22.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.ACMPCA
{
/// <summary>
/// Constants used for properties of type AccessMethodType.
/// </summary>
public class AccessMethodType : ConstantClass
{
/// <summary>
/// Constant CA_REPOSITORY for AccessMethodType
/// </summary>
public static readonly AccessMethodType CA_REPOSITORY = new AccessMethodType("CA_REPOSITORY");
/// <summary>
/// Constant RESOURCE_PKI_MANIFEST for AccessMethodType
/// </summary>
public static readonly AccessMethodType RESOURCE_PKI_MANIFEST = new AccessMethodType("RESOURCE_PKI_MANIFEST");
/// <summary>
/// Constant RESOURCE_PKI_NOTIFY for AccessMethodType
/// </summary>
public static readonly AccessMethodType RESOURCE_PKI_NOTIFY = new AccessMethodType("RESOURCE_PKI_NOTIFY");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AccessMethodType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AccessMethodType FindValue(string value)
{
return FindValue<AccessMethodType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AccessMethodType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ActionType.
/// </summary>
public class ActionType : ConstantClass
{
/// <summary>
/// Constant GetCertificate for ActionType
/// </summary>
public static readonly ActionType GetCertificate = new ActionType("GetCertificate");
/// <summary>
/// Constant IssueCertificate for ActionType
/// </summary>
public static readonly ActionType IssueCertificate = new ActionType("IssueCertificate");
/// <summary>
/// Constant ListPermissions for ActionType
/// </summary>
public static readonly ActionType ListPermissions = new ActionType("ListPermissions");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ActionType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ActionType FindValue(string value)
{
return FindValue<ActionType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ActionType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type AuditReportResponseFormat.
/// </summary>
public class AuditReportResponseFormat : ConstantClass
{
/// <summary>
/// Constant CSV for AuditReportResponseFormat
/// </summary>
public static readonly AuditReportResponseFormat CSV = new AuditReportResponseFormat("CSV");
/// <summary>
/// Constant JSON for AuditReportResponseFormat
/// </summary>
public static readonly AuditReportResponseFormat JSON = new AuditReportResponseFormat("JSON");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AuditReportResponseFormat(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AuditReportResponseFormat FindValue(string value)
{
return FindValue<AuditReportResponseFormat>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AuditReportResponseFormat(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type AuditReportStatus.
/// </summary>
public class AuditReportStatus : ConstantClass
{
/// <summary>
/// Constant CREATING for AuditReportStatus
/// </summary>
public static readonly AuditReportStatus CREATING = new AuditReportStatus("CREATING");
/// <summary>
/// Constant FAILED for AuditReportStatus
/// </summary>
public static readonly AuditReportStatus FAILED = new AuditReportStatus("FAILED");
/// <summary>
/// Constant SUCCESS for AuditReportStatus
/// </summary>
public static readonly AuditReportStatus SUCCESS = new AuditReportStatus("SUCCESS");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AuditReportStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AuditReportStatus FindValue(string value)
{
return FindValue<AuditReportStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AuditReportStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CertificateAuthorityStatus.
/// </summary>
public class CertificateAuthorityStatus : ConstantClass
{
/// <summary>
/// Constant ACTIVE for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus ACTIVE = new CertificateAuthorityStatus("ACTIVE");
/// <summary>
/// Constant CREATING for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus CREATING = new CertificateAuthorityStatus("CREATING");
/// <summary>
/// Constant DELETED for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus DELETED = new CertificateAuthorityStatus("DELETED");
/// <summary>
/// Constant DISABLED for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus DISABLED = new CertificateAuthorityStatus("DISABLED");
/// <summary>
/// Constant EXPIRED for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus EXPIRED = new CertificateAuthorityStatus("EXPIRED");
/// <summary>
/// Constant FAILED for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus FAILED = new CertificateAuthorityStatus("FAILED");
/// <summary>
/// Constant PENDING_CERTIFICATE for CertificateAuthorityStatus
/// </summary>
public static readonly CertificateAuthorityStatus PENDING_CERTIFICATE = new CertificateAuthorityStatus("PENDING_CERTIFICATE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CertificateAuthorityStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CertificateAuthorityStatus FindValue(string value)
{
return FindValue<CertificateAuthorityStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CertificateAuthorityStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CertificateAuthorityType.
/// </summary>
public class CertificateAuthorityType : ConstantClass
{
/// <summary>
/// Constant ROOT for CertificateAuthorityType
/// </summary>
public static readonly CertificateAuthorityType ROOT = new CertificateAuthorityType("ROOT");
/// <summary>
/// Constant SUBORDINATE for CertificateAuthorityType
/// </summary>
public static readonly CertificateAuthorityType SUBORDINATE = new CertificateAuthorityType("SUBORDINATE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CertificateAuthorityType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CertificateAuthorityType FindValue(string value)
{
return FindValue<CertificateAuthorityType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CertificateAuthorityType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CertificateAuthorityUsageMode.
/// </summary>
public class CertificateAuthorityUsageMode : ConstantClass
{
/// <summary>
/// Constant GENERAL_PURPOSE for CertificateAuthorityUsageMode
/// </summary>
public static readonly CertificateAuthorityUsageMode GENERAL_PURPOSE = new CertificateAuthorityUsageMode("GENERAL_PURPOSE");
/// <summary>
/// Constant SHORT_LIVED_CERTIFICATE for CertificateAuthorityUsageMode
/// </summary>
public static readonly CertificateAuthorityUsageMode SHORT_LIVED_CERTIFICATE = new CertificateAuthorityUsageMode("SHORT_LIVED_CERTIFICATE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CertificateAuthorityUsageMode(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CertificateAuthorityUsageMode FindValue(string value)
{
return FindValue<CertificateAuthorityUsageMode>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CertificateAuthorityUsageMode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ExtendedKeyUsageType.
/// </summary>
public class ExtendedKeyUsageType : ConstantClass
{
/// <summary>
/// Constant CERTIFICATE_TRANSPARENCY for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType CERTIFICATE_TRANSPARENCY = new ExtendedKeyUsageType("CERTIFICATE_TRANSPARENCY");
/// <summary>
/// Constant CLIENT_AUTH for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType CLIENT_AUTH = new ExtendedKeyUsageType("CLIENT_AUTH");
/// <summary>
/// Constant CODE_SIGNING for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType CODE_SIGNING = new ExtendedKeyUsageType("CODE_SIGNING");
/// <summary>
/// Constant DOCUMENT_SIGNING for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType DOCUMENT_SIGNING = new ExtendedKeyUsageType("DOCUMENT_SIGNING");
/// <summary>
/// Constant EMAIL_PROTECTION for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType EMAIL_PROTECTION = new ExtendedKeyUsageType("EMAIL_PROTECTION");
/// <summary>
/// Constant OCSP_SIGNING for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType OCSP_SIGNING = new ExtendedKeyUsageType("OCSP_SIGNING");
/// <summary>
/// Constant SERVER_AUTH for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType SERVER_AUTH = new ExtendedKeyUsageType("SERVER_AUTH");
/// <summary>
/// Constant SMART_CARD_LOGIN for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType SMART_CARD_LOGIN = new ExtendedKeyUsageType("SMART_CARD_LOGIN");
/// <summary>
/// Constant TIME_STAMPING for ExtendedKeyUsageType
/// </summary>
public static readonly ExtendedKeyUsageType TIME_STAMPING = new ExtendedKeyUsageType("TIME_STAMPING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ExtendedKeyUsageType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ExtendedKeyUsageType FindValue(string value)
{
return FindValue<ExtendedKeyUsageType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ExtendedKeyUsageType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type FailureReason.
/// </summary>
public class FailureReason : ConstantClass
{
/// <summary>
/// Constant OTHER for FailureReason
/// </summary>
public static readonly FailureReason OTHER = new FailureReason("OTHER");
/// <summary>
/// Constant REQUEST_TIMED_OUT for FailureReason
/// </summary>
public static readonly FailureReason REQUEST_TIMED_OUT = new FailureReason("REQUEST_TIMED_OUT");
/// <summary>
/// Constant UNSUPPORTED_ALGORITHM for FailureReason
/// </summary>
public static readonly FailureReason UNSUPPORTED_ALGORITHM = new FailureReason("UNSUPPORTED_ALGORITHM");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public FailureReason(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static FailureReason FindValue(string value)
{
return FindValue<FailureReason>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator FailureReason(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type KeyAlgorithm.
/// </summary>
public class KeyAlgorithm : ConstantClass
{
/// <summary>
/// Constant EC_prime256v1 for KeyAlgorithm
/// </summary>
public static readonly KeyAlgorithm EC_prime256v1 = new KeyAlgorithm("EC_prime256v1");
/// <summary>
/// Constant EC_secp384r1 for KeyAlgorithm
/// </summary>
public static readonly KeyAlgorithm EC_secp384r1 = new KeyAlgorithm("EC_secp384r1");
/// <summary>
/// Constant RSA_2048 for KeyAlgorithm
/// </summary>
public static readonly KeyAlgorithm RSA_2048 = new KeyAlgorithm("RSA_2048");
/// <summary>
/// Constant RSA_4096 for KeyAlgorithm
/// </summary>
public static readonly KeyAlgorithm RSA_4096 = new KeyAlgorithm("RSA_4096");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public KeyAlgorithm(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static KeyAlgorithm FindValue(string value)
{
return FindValue<KeyAlgorithm>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator KeyAlgorithm(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type KeyStorageSecurityStandard.
/// </summary>
public class KeyStorageSecurityStandard : ConstantClass
{
/// <summary>
/// Constant FIPS_140_2_LEVEL_2_OR_HIGHER for KeyStorageSecurityStandard
/// </summary>
public static readonly KeyStorageSecurityStandard FIPS_140_2_LEVEL_2_OR_HIGHER = new KeyStorageSecurityStandard("FIPS_140_2_LEVEL_2_OR_HIGHER");
/// <summary>
/// Constant FIPS_140_2_LEVEL_3_OR_HIGHER for KeyStorageSecurityStandard
/// </summary>
public static readonly KeyStorageSecurityStandard FIPS_140_2_LEVEL_3_OR_HIGHER = new KeyStorageSecurityStandard("FIPS_140_2_LEVEL_3_OR_HIGHER");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public KeyStorageSecurityStandard(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static KeyStorageSecurityStandard FindValue(string value)
{
return FindValue<KeyStorageSecurityStandard>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator KeyStorageSecurityStandard(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PolicyQualifierId.
/// </summary>
public class PolicyQualifierId : ConstantClass
{
/// <summary>
/// Constant CPS for PolicyQualifierId
/// </summary>
public static readonly PolicyQualifierId CPS = new PolicyQualifierId("CPS");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PolicyQualifierId(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PolicyQualifierId FindValue(string value)
{
return FindValue<PolicyQualifierId>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PolicyQualifierId(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ResourceOwner.
/// </summary>
public class ResourceOwner : ConstantClass
{
/// <summary>
/// Constant OTHER_ACCOUNTS for ResourceOwner
/// </summary>
public static readonly ResourceOwner OTHER_ACCOUNTS = new ResourceOwner("OTHER_ACCOUNTS");
/// <summary>
/// Constant SELF for ResourceOwner
/// </summary>
public static readonly ResourceOwner SELF = new ResourceOwner("SELF");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ResourceOwner(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ResourceOwner FindValue(string value)
{
return FindValue<ResourceOwner>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ResourceOwner(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RevocationReason.
/// </summary>
public class RevocationReason : ConstantClass
{
/// <summary>
/// Constant A_A_COMPROMISE for RevocationReason
/// </summary>
public static readonly RevocationReason A_A_COMPROMISE = new RevocationReason("A_A_COMPROMISE");
/// <summary>
/// Constant AFFILIATION_CHANGED for RevocationReason
/// </summary>
public static readonly RevocationReason AFFILIATION_CHANGED = new RevocationReason("AFFILIATION_CHANGED");
/// <summary>
/// Constant CERTIFICATE_AUTHORITY_COMPROMISE for RevocationReason
/// </summary>
public static readonly RevocationReason CERTIFICATE_AUTHORITY_COMPROMISE = new RevocationReason("CERTIFICATE_AUTHORITY_COMPROMISE");
/// <summary>
/// Constant CESSATION_OF_OPERATION for RevocationReason
/// </summary>
public static readonly RevocationReason CESSATION_OF_OPERATION = new RevocationReason("CESSATION_OF_OPERATION");
/// <summary>
/// Constant KEY_COMPROMISE for RevocationReason
/// </summary>
public static readonly RevocationReason KEY_COMPROMISE = new RevocationReason("KEY_COMPROMISE");
/// <summary>
/// Constant PRIVILEGE_WITHDRAWN for RevocationReason
/// </summary>
public static readonly RevocationReason PRIVILEGE_WITHDRAWN = new RevocationReason("PRIVILEGE_WITHDRAWN");
/// <summary>
/// Constant SUPERSEDED for RevocationReason
/// </summary>
public static readonly RevocationReason SUPERSEDED = new RevocationReason("SUPERSEDED");
/// <summary>
/// Constant UNSPECIFIED for RevocationReason
/// </summary>
public static readonly RevocationReason UNSPECIFIED = new RevocationReason("UNSPECIFIED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public RevocationReason(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static RevocationReason FindValue(string value)
{
return FindValue<RevocationReason>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator RevocationReason(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type S3ObjectAcl.
/// </summary>
public class S3ObjectAcl : ConstantClass
{
/// <summary>
/// Constant BUCKET_OWNER_FULL_CONTROL for S3ObjectAcl
/// </summary>
public static readonly S3ObjectAcl BUCKET_OWNER_FULL_CONTROL = new S3ObjectAcl("BUCKET_OWNER_FULL_CONTROL");
/// <summary>
/// Constant PUBLIC_READ for S3ObjectAcl
/// </summary>
public static readonly S3ObjectAcl PUBLIC_READ = new S3ObjectAcl("PUBLIC_READ");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public S3ObjectAcl(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static S3ObjectAcl FindValue(string value)
{
return FindValue<S3ObjectAcl>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator S3ObjectAcl(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type SigningAlgorithm.
/// </summary>
public class SigningAlgorithm : ConstantClass
{
/// <summary>
/// Constant SHA256WITHECDSA for SigningAlgorithm
/// </summary>
public static readonly SigningAlgorithm SHA256WITHECDSA = new SigningAlgorithm("SHA256WITHECDSA");
/// <summary>
/// Constant SHA256WITHRSA for SigningAlgorithm
/// </summary>
public static readonly SigningAlgorithm SHA256WITHRSA = new SigningAlgorithm("SHA256WITHRSA");
/// <summary>
/// Constant SHA384WITHECDSA for SigningAlgorithm
/// </summary>
public static readonly SigningAlgorithm SHA384WITHECDSA = new SigningAlgorithm("SHA384WITHECDSA");
/// <summary>
/// Constant SHA384WITHRSA for SigningAlgorithm
/// </summary>
public static readonly SigningAlgorithm SHA384WITHRSA = new SigningAlgorithm("SHA384WITHRSA");
/// <summary>
/// Constant SHA512WITHECDSA for SigningAlgorithm
/// </summary>
public static readonly SigningAlgorithm SHA512WITHECDSA = new SigningAlgorithm("SHA512WITHECDSA");
/// <summary>
/// Constant SHA512WITHRSA for SigningAlgorithm
/// </summary>
public static readonly SigningAlgorithm SHA512WITHRSA = new SigningAlgorithm("SHA512WITHRSA");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public SigningAlgorithm(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static SigningAlgorithm FindValue(string value)
{
return FindValue<SigningAlgorithm>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator SigningAlgorithm(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ValidityPeriodType.
/// </summary>
public class ValidityPeriodType : ConstantClass
{
/// <summary>
/// Constant ABSOLUTE for ValidityPeriodType
/// </summary>
public static readonly ValidityPeriodType ABSOLUTE = new ValidityPeriodType("ABSOLUTE");
/// <summary>
/// Constant DAYS for ValidityPeriodType
/// </summary>
public static readonly ValidityPeriodType DAYS = new ValidityPeriodType("DAYS");
/// <summary>
/// Constant END_DATE for ValidityPeriodType
/// </summary>
public static readonly ValidityPeriodType END_DATE = new ValidityPeriodType("END_DATE");
/// <summary>
/// Constant MONTHS for ValidityPeriodType
/// </summary>
public static readonly ValidityPeriodType MONTHS = new ValidityPeriodType("MONTHS");
/// <summary>
/// Constant YEARS for ValidityPeriodType
/// </summary>
public static readonly ValidityPeriodType YEARS = new ValidityPeriodType("YEARS");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ValidityPeriodType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ValidityPeriodType FindValue(string value)
{
return FindValue<ValidityPeriodType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ValidityPeriodType(string value)
{
return FindValue(value);
}
}
} | 996 |
aws-sdk-net | aws | C# | /*
* 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 acm-pca-2017-08-22.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.ACMPCA.Internal
{
/// <summary>
/// Amazon ACMPCA endpoint provider.
/// Resolves endpoint for given set of ACMPCAEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonACMPCAEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for ACMPCAEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (IsSet(refs["Region"]))
{
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://acm-pca-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
if (Equals("aws-us-gov", GetAttr(refs["PartitionResult"], "name")))
{
return new Endpoint(Interpolate(@"https://acm-pca.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
return new Endpoint(Interpolate(@"https://acm-pca-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://acm-pca.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://acm-pca.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 107 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.