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 health-2016-08-04.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.AWSHealth.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UnsupportedLocaleException Object
/// </summary>
public class UnsupportedLocaleExceptionUnmarshaller : IErrorResponseUnmarshaller<UnsupportedLocaleException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public UnsupportedLocaleException 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 UnsupportedLocaleException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
UnsupportedLocaleException unmarshalledObject = new UnsupportedLocaleException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static UnsupportedLocaleExceptionUnmarshaller _instance = new UnsupportedLocaleExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static UnsupportedLocaleExceptionUnmarshaller 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 health-2016-08-04.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginators for the AWSHealth service
///</summary>
public class AWSHealthPaginatorFactory : IAWSHealthPaginatorFactory
{
private readonly IAmazonAWSHealth client;
internal AWSHealthPaginatorFactory(IAmazonAWSHealth client)
{
this.client = client;
}
/// <summary>
/// Paginator for DescribeAffectedAccountsForOrganization operation
///</summary>
public IDescribeAffectedAccountsForOrganizationPaginator DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request)
{
return new DescribeAffectedAccountsForOrganizationPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeAffectedEntities operation
///</summary>
public IDescribeAffectedEntitiesPaginator DescribeAffectedEntities(DescribeAffectedEntitiesRequest request)
{
return new DescribeAffectedEntitiesPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeAffectedEntitiesForOrganization operation
///</summary>
public IDescribeAffectedEntitiesForOrganizationPaginator DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request)
{
return new DescribeAffectedEntitiesForOrganizationPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeEventAggregates operation
///</summary>
public IDescribeEventAggregatesPaginator DescribeEventAggregates(DescribeEventAggregatesRequest request)
{
return new DescribeEventAggregatesPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeEvents operation
///</summary>
public IDescribeEventsPaginator DescribeEvents(DescribeEventsRequest request)
{
return new DescribeEventsPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeEventsForOrganization operation
///</summary>
public IDescribeEventsForOrganizationPaginator DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request)
{
return new DescribeEventsForOrganizationPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeEventTypes operation
///</summary>
public IDescribeEventTypesPaginator DescribeEventTypes(DescribeEventTypesRequest request)
{
return new DescribeEventTypesPaginator(this.client, request);
}
}
}
| 94 |
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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeAffectedAccountsForOrganization paginators.
/// </summary>
internal sealed partial class DescribeAffectedAccountsForOrganizationPaginator : IPaginator<DescribeAffectedAccountsForOrganizationResponse>, IDescribeAffectedAccountsForOrganizationPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeAffectedAccountsForOrganizationRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeAffectedAccountsForOrganizationResponse> Responses => new PaginatedResponse<DescribeAffectedAccountsForOrganizationResponse>(this);
/// <summary>
/// Enumerable containing all of the AffectedAccounts
/// </summary>
public IPaginatedEnumerable<string> AffectedAccounts =>
new PaginatedResultKeyResponse<DescribeAffectedAccountsForOrganizationResponse, string>(this, (i) => i.AffectedAccounts);
internal DescribeAffectedAccountsForOrganizationPaginator(IAmazonAWSHealth client, DescribeAffectedAccountsForOrganizationRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeAffectedAccountsForOrganizationResponse> IPaginator<DescribeAffectedAccountsForOrganizationResponse>.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;
DescribeAffectedAccountsForOrganizationResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeAffectedAccountsForOrganization(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeAffectedAccountsForOrganizationResponse> IPaginator<DescribeAffectedAccountsForOrganizationResponse>.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;
DescribeAffectedAccountsForOrganizationResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeAffectedAccountsForOrganizationAsync(_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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeAffectedEntitiesForOrganization paginators.
/// </summary>
internal sealed partial class DescribeAffectedEntitiesForOrganizationPaginator : IPaginator<DescribeAffectedEntitiesForOrganizationResponse>, IDescribeAffectedEntitiesForOrganizationPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeAffectedEntitiesForOrganizationRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeAffectedEntitiesForOrganizationResponse> Responses => new PaginatedResponse<DescribeAffectedEntitiesForOrganizationResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<AffectedEntity> Entities =>
new PaginatedResultKeyResponse<DescribeAffectedEntitiesForOrganizationResponse, AffectedEntity>(this, (i) => i.Entities);
internal DescribeAffectedEntitiesForOrganizationPaginator(IAmazonAWSHealth client, DescribeAffectedEntitiesForOrganizationRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeAffectedEntitiesForOrganizationResponse> IPaginator<DescribeAffectedEntitiesForOrganizationResponse>.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;
DescribeAffectedEntitiesForOrganizationResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeAffectedEntitiesForOrganization(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeAffectedEntitiesForOrganizationResponse> IPaginator<DescribeAffectedEntitiesForOrganizationResponse>.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;
DescribeAffectedEntitiesForOrganizationResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeAffectedEntitiesForOrganizationAsync(_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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeAffectedEntities paginators.
/// </summary>
internal sealed partial class DescribeAffectedEntitiesPaginator : IPaginator<DescribeAffectedEntitiesResponse>, IDescribeAffectedEntitiesPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeAffectedEntitiesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeAffectedEntitiesResponse> Responses => new PaginatedResponse<DescribeAffectedEntitiesResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<AffectedEntity> Entities =>
new PaginatedResultKeyResponse<DescribeAffectedEntitiesResponse, AffectedEntity>(this, (i) => i.Entities);
internal DescribeAffectedEntitiesPaginator(IAmazonAWSHealth client, DescribeAffectedEntitiesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeAffectedEntitiesResponse> IPaginator<DescribeAffectedEntitiesResponse>.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;
DescribeAffectedEntitiesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeAffectedEntities(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeAffectedEntitiesResponse> IPaginator<DescribeAffectedEntitiesResponse>.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;
DescribeAffectedEntitiesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeAffectedEntitiesAsync(_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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeEventAggregates paginators.
/// </summary>
internal sealed partial class DescribeEventAggregatesPaginator : IPaginator<DescribeEventAggregatesResponse>, IDescribeEventAggregatesPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeEventAggregatesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeEventAggregatesResponse> Responses => new PaginatedResponse<DescribeEventAggregatesResponse>(this);
/// <summary>
/// Enumerable containing all of the EventAggregates
/// </summary>
public IPaginatedEnumerable<EventAggregate> EventAggregates =>
new PaginatedResultKeyResponse<DescribeEventAggregatesResponse, EventAggregate>(this, (i) => i.EventAggregates);
internal DescribeEventAggregatesPaginator(IAmazonAWSHealth client, DescribeEventAggregatesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeEventAggregatesResponse> IPaginator<DescribeEventAggregatesResponse>.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;
DescribeEventAggregatesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeEventAggregates(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeEventAggregatesResponse> IPaginator<DescribeEventAggregatesResponse>.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;
DescribeEventAggregatesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeEventAggregatesAsync(_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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeEventsForOrganization paginators.
/// </summary>
internal sealed partial class DescribeEventsForOrganizationPaginator : IPaginator<DescribeEventsForOrganizationResponse>, IDescribeEventsForOrganizationPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeEventsForOrganizationRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeEventsForOrganizationResponse> Responses => new PaginatedResponse<DescribeEventsForOrganizationResponse>(this);
/// <summary>
/// Enumerable containing all of the Events
/// </summary>
public IPaginatedEnumerable<OrganizationEvent> Events =>
new PaginatedResultKeyResponse<DescribeEventsForOrganizationResponse, OrganizationEvent>(this, (i) => i.Events);
internal DescribeEventsForOrganizationPaginator(IAmazonAWSHealth client, DescribeEventsForOrganizationRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeEventsForOrganizationResponse> IPaginator<DescribeEventsForOrganizationResponse>.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;
DescribeEventsForOrganizationResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeEventsForOrganization(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeEventsForOrganizationResponse> IPaginator<DescribeEventsForOrganizationResponse>.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;
DescribeEventsForOrganizationResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeEventsForOrganizationAsync(_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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeEvents paginators.
/// </summary>
internal sealed partial class DescribeEventsPaginator : IPaginator<DescribeEventsResponse>, IDescribeEventsPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeEventsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeEventsResponse> Responses => new PaginatedResponse<DescribeEventsResponse>(this);
/// <summary>
/// Enumerable containing all of the Events
/// </summary>
public IPaginatedEnumerable<Event> Events =>
new PaginatedResultKeyResponse<DescribeEventsResponse, Event>(this, (i) => i.Events);
internal DescribeEventsPaginator(IAmazonAWSHealth client, DescribeEventsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeEventsResponse> IPaginator<DescribeEventsResponse>.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;
DescribeEventsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeEvents(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeEventsResponse> IPaginator<DescribeEventsResponse>.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;
DescribeEventsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeEventsAsync(_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 health-2016-08-04.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.AWSHealth.Model
{
/// <summary>
/// Base class for DescribeEventTypes paginators.
/// </summary>
internal sealed partial class DescribeEventTypesPaginator : IPaginator<DescribeEventTypesResponse>, IDescribeEventTypesPaginator
{
private readonly IAmazonAWSHealth _client;
private readonly DescribeEventTypesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeEventTypesResponse> Responses => new PaginatedResponse<DescribeEventTypesResponse>(this);
/// <summary>
/// Enumerable containing all of the EventTypes
/// </summary>
public IPaginatedEnumerable<EventType> EventTypes =>
new PaginatedResultKeyResponse<DescribeEventTypesResponse, EventType>(this, (i) => i.EventTypes);
internal DescribeEventTypesPaginator(IAmazonAWSHealth client, DescribeEventTypesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeEventTypesResponse> IPaginator<DescribeEventTypesResponse>.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;
DescribeEventTypesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeEventTypes(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeEventTypesResponse> IPaginator<DescribeEventTypesResponse>.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;
DescribeEventTypesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeEventTypesAsync(_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 health-2016-08-04.normal.json service model.
*/
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginators for the AWSHealth service
///</summary>
public interface IAWSHealthPaginatorFactory
{
/// <summary>
/// Paginator for DescribeAffectedAccountsForOrganization operation
///</summary>
IDescribeAffectedAccountsForOrganizationPaginator DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request);
/// <summary>
/// Paginator for DescribeAffectedEntities operation
///</summary>
IDescribeAffectedEntitiesPaginator DescribeAffectedEntities(DescribeAffectedEntitiesRequest request);
/// <summary>
/// Paginator for DescribeAffectedEntitiesForOrganization operation
///</summary>
IDescribeAffectedEntitiesForOrganizationPaginator DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request);
/// <summary>
/// Paginator for DescribeEventAggregates operation
///</summary>
IDescribeEventAggregatesPaginator DescribeEventAggregates(DescribeEventAggregatesRequest request);
/// <summary>
/// Paginator for DescribeEvents operation
///</summary>
IDescribeEventsPaginator DescribeEvents(DescribeEventsRequest request);
/// <summary>
/// Paginator for DescribeEventsForOrganization operation
///</summary>
IDescribeEventsForOrganizationPaginator DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request);
/// <summary>
/// Paginator for DescribeEventTypes operation
///</summary>
IDescribeEventTypesPaginator DescribeEventTypes(DescribeEventTypesRequest request);
}
}
| 63 |
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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeAffectedAccountsForOrganization operation
///</summary>
public interface IDescribeAffectedAccountsForOrganizationPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeAffectedAccountsForOrganizationResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the AffectedAccounts
/// </summary>
IPaginatedEnumerable<string> AffectedAccounts { 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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeAffectedEntitiesForOrganization operation
///</summary>
public interface IDescribeAffectedEntitiesForOrganizationPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeAffectedEntitiesForOrganizationResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<AffectedEntity> Entities { 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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeAffectedEntities operation
///</summary>
public interface IDescribeAffectedEntitiesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeAffectedEntitiesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<AffectedEntity> Entities { 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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeEventAggregates operation
///</summary>
public interface IDescribeEventAggregatesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeEventAggregatesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the EventAggregates
/// </summary>
IPaginatedEnumerable<EventAggregate> EventAggregates { 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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeEventsForOrganization operation
///</summary>
public interface IDescribeEventsForOrganizationPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeEventsForOrganizationResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Events
/// </summary>
IPaginatedEnumerable<OrganizationEvent> Events { 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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeEvents operation
///</summary>
public interface IDescribeEventsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeEventsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Events
/// </summary>
IPaginatedEnumerable<Event> Events { 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 health-2016-08-04.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSHealth.Model
{
/// <summary>
/// Paginator for the DescribeEventTypes operation
///</summary>
public interface IDescribeEventTypesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeEventTypesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the EventTypes
/// </summary>
IPaginatedEnumerable<EventType> EventTypes { 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 health-2016-08-04.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AWSHealth.Model;
using Amazon.AWSHealth.Model.Internal.MarshallTransformations;
using Amazon.AWSHealth.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSHealth
{
/// <summary>
/// Implementation for accessing AWSHealth
///
/// Health
/// <para>
/// The Health API provides access to the Health information that appears in the <a href="https://health.aws.amazon.com/health/home">Health
/// Dashboard</a>. You can use the API operations to get information about events that
/// might affect your Amazon Web Services and resources.
/// </para>
///
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
///
/// <para>
/// For API access, you need an access key ID and a secret access key. Use temporary credentials
/// instead of long-term access keys when possible. Temporary credentials include an access
/// key ID, a secret access key, and a security token that indicates when the credentials
/// expire. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best
/// practices for managing Amazon Web Services access keys</a> in the <i>Amazon Web Services
/// General Reference</i>.
/// </para>
///
/// <para>
/// You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the
/// Health API operations. Health supports a multi-Region application architecture and
/// has two regional endpoints in an active-passive configuration. You can use the high
/// availability endpoint example to determine which Amazon Web Services Region is active,
/// so that you can get the latest information from the API. For more information, see
/// <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the
/// Health API</a> in the <i>Health User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// If your Amazon Web Services account is part of Organizations, you can use the Health
/// organizational view feature. This feature provides a centralized view of Health events
/// across all accounts in your organization. You can aggregate Health events in real
/// time to identify accounts in your organization that are affected by an operational
/// event or get notified of security vulnerabilities. Use the organizational view API
/// operations to enable this feature and return event information. For more information,
/// see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// <note>
/// <para>
/// When you use the Health API operations to return Health events, see the following
/// recommendations:
/// </para>
/// <ul> <li>
/// <para>
/// Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
/// parameter to specify whether to return Health events that are public or account-specific.
/// </para>
/// </li> <li>
/// <para>
/// Use pagination to view all events from the response. For example, if you call the
/// <code>DescribeEventsForOrganization</code> operation to get all events in your organization,
/// you might receive several page results. Specify the <code>nextToken</code> in the
/// next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial class AmazonAWSHealthClient : AmazonServiceClient, IAmazonAWSHealth
{
private static IServiceMetadata serviceMetadata = new AmazonAWSHealthMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IAWSHealthPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAWSHealthPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSHealthPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSHealthConfig()) { }
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSHealthConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(AmazonAWSHealthConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSHealthClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSHealthClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSHealthConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials and an
/// AmazonAWSHealthClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(AWSCredentials credentials, AmazonAWSHealthConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSHealthConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSHealthClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSHealthConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSHealthConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSHealthClient 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 AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSHealthConfig 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 AmazonAWSHealthEndpointResolver());
}
/// <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 DescribeAffectedAccountsForOrganization
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
public virtual DescribeAffectedAccountsForOrganizationResponse DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedAccountsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedAccountsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedAccountsForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAffectedAccountsForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeAffectedAccountsForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
public virtual IAsyncResult BeginDescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedAccountsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedAccountsForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeAffectedAccountsForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAffectedAccountsForOrganization.</param>
///
/// <returns>Returns a DescribeAffectedAccountsForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
public virtual DescribeAffectedAccountsForOrganizationResponse EndDescribeAffectedAccountsForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<DescribeAffectedAccountsForOrganizationResponse>(asyncResult);
}
#endregion
#region DescribeAffectedEntities
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities service method.</param>
///
/// <returns>The response from the DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
public virtual DescribeAffectedEntitiesResponse DescribeAffectedEntities(DescribeAffectedEntitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedEntitiesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAffectedEntities operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities operation on AmazonAWSHealthClient.</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 EndDescribeAffectedEntities
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
public virtual IAsyncResult BeginDescribeAffectedEntities(DescribeAffectedEntitiesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeAffectedEntities operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAffectedEntities.</param>
///
/// <returns>Returns a DescribeAffectedEntitiesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
public virtual DescribeAffectedEntitiesResponse EndDescribeAffectedEntities(IAsyncResult asyncResult)
{
return EndInvoke<DescribeAffectedEntitiesResponse>(asyncResult);
}
#endregion
#region DescribeAffectedEntitiesForOrganization
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
public virtual DescribeAffectedEntitiesForOrganizationResponse DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedEntitiesForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAffectedEntitiesForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeAffectedEntitiesForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
public virtual IAsyncResult BeginDescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeAffectedEntitiesForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAffectedEntitiesForOrganization.</param>
///
/// <returns>Returns a DescribeAffectedEntitiesForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
public virtual DescribeAffectedEntitiesForOrganizationResponse EndDescribeAffectedEntitiesForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<DescribeAffectedEntitiesForOrganizationResponse>(asyncResult);
}
#endregion
#region DescribeEntityAggregates
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates service method.</param>
///
/// <returns>The response from the DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
public virtual DescribeEntityAggregatesResponse DescribeEntityAggregates(DescribeEntityAggregatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEntityAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEntityAggregatesResponseUnmarshaller.Instance;
return Invoke<DescribeEntityAggregatesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEntityAggregates operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates operation on AmazonAWSHealthClient.</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 EndDescribeEntityAggregates
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
public virtual IAsyncResult BeginDescribeEntityAggregates(DescribeEntityAggregatesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEntityAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEntityAggregatesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEntityAggregates operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEntityAggregates.</param>
///
/// <returns>Returns a DescribeEntityAggregatesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
public virtual DescribeEntityAggregatesResponse EndDescribeEntityAggregates(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEntityAggregatesResponse>(asyncResult);
}
#endregion
#region DescribeEventAggregates
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates service method.</param>
///
/// <returns>The response from the DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
public virtual DescribeEventAggregatesResponse DescribeEventAggregates(DescribeEventAggregatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventAggregatesResponseUnmarshaller.Instance;
return Invoke<DescribeEventAggregatesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventAggregates operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates operation on AmazonAWSHealthClient.</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 EndDescribeEventAggregates
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
public virtual IAsyncResult BeginDescribeEventAggregates(DescribeEventAggregatesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventAggregatesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventAggregates operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventAggregates.</param>
///
/// <returns>Returns a DescribeEventAggregatesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
public virtual DescribeEventAggregatesResponse EndDescribeEventAggregates(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventAggregatesResponse>(asyncResult);
}
#endregion
#region DescribeEventDetails
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails service method.</param>
///
/// <returns>The response from the DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
public virtual DescribeEventDetailsResponse DescribeEventDetails(DescribeEventDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsResponseUnmarshaller.Instance;
return Invoke<DescribeEventDetailsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventDetails operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails operation on AmazonAWSHealthClient.</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 EndDescribeEventDetails
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
public virtual IAsyncResult BeginDescribeEventDetails(DescribeEventDetailsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventDetails operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventDetails.</param>
///
/// <returns>Returns a DescribeEventDetailsResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
public virtual DescribeEventDetailsResponse EndDescribeEventDetails(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventDetailsResponse>(asyncResult);
}
#endregion
#region DescribeEventDetailsForOrganization
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
public virtual DescribeEventDetailsForOrganizationResponse DescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeEventDetailsForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventDetailsForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeEventDetailsForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
public virtual IAsyncResult BeginDescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventDetailsForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventDetailsForOrganization.</param>
///
/// <returns>Returns a DescribeEventDetailsForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
public virtual DescribeEventDetailsForOrganizationResponse EndDescribeEventDetailsForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventDetailsForOrganizationResponse>(asyncResult);
}
#endregion
#region DescribeEvents
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents service method.</param>
///
/// <returns>The response from the DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
public virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;
return Invoke<DescribeEventsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEvents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents operation on AmazonAWSHealthClient.</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 EndDescribeEvents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
public virtual IAsyncResult BeginDescribeEvents(DescribeEventsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEvents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEvents.</param>
///
/// <returns>Returns a DescribeEventsResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
public virtual DescribeEventsResponse EndDescribeEvents(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventsResponse>(asyncResult);
}
#endregion
#region DescribeEventsForOrganization
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
public virtual DescribeEventsForOrganizationResponse DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeEventsForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventsForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeEventsForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
public virtual IAsyncResult BeginDescribeEventsForOrganization(DescribeEventsForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventsForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventsForOrganization.</param>
///
/// <returns>Returns a DescribeEventsForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
public virtual DescribeEventsForOrganizationResponse EndDescribeEventsForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventsForOrganizationResponse>(asyncResult);
}
#endregion
#region DescribeEventTypes
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes service method.</param>
///
/// <returns>The response from the DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
public virtual DescribeEventTypesResponse DescribeEventTypes(DescribeEventTypesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventTypesResponseUnmarshaller.Instance;
return Invoke<DescribeEventTypesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventTypes operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes operation on AmazonAWSHealthClient.</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 EndDescribeEventTypes
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
public virtual IAsyncResult BeginDescribeEventTypes(DescribeEventTypesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventTypesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventTypes operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventTypes.</param>
///
/// <returns>Returns a DescribeEventTypesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
public virtual DescribeEventTypesResponse EndDescribeEventTypes(IAsyncResult asyncResult)
{
return EndInvoke<DescribeEventTypesResponse>(asyncResult);
}
#endregion
#region DescribeHealthServiceStatusForOrganization
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization service method.</param>
///
/// <returns>The response from the DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
public virtual DescribeHealthServiceStatusForOrganizationResponse DescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHealthServiceStatusForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHealthServiceStatusForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeHealthServiceStatusForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeHealthServiceStatusForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeHealthServiceStatusForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
public virtual IAsyncResult BeginDescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHealthServiceStatusForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHealthServiceStatusForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeHealthServiceStatusForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHealthServiceStatusForOrganization.</param>
///
/// <returns>Returns a DescribeHealthServiceStatusForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
public virtual DescribeHealthServiceStatusForOrganizationResponse EndDescribeHealthServiceStatusForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<DescribeHealthServiceStatusForOrganizationResponse>(asyncResult);
}
#endregion
#region DisableHealthServiceAccessForOrganization
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
public virtual DisableHealthServiceAccessForOrganizationResponse DisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return Invoke<DisableHealthServiceAccessForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DisableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization operation on AmazonAWSHealthClient.</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 EndDisableHealthServiceAccessForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
public virtual IAsyncResult BeginDisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DisableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableHealthServiceAccessForOrganization.</param>
///
/// <returns>Returns a DisableHealthServiceAccessForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
public virtual DisableHealthServiceAccessForOrganizationResponse EndDisableHealthServiceAccessForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<DisableHealthServiceAccessForOrganizationResponse>(asyncResult);
}
#endregion
#region EnableHealthServiceAccessForOrganization
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
public virtual EnableHealthServiceAccessForOrganizationResponse EnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return Invoke<EnableHealthServiceAccessForOrganizationResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the EnableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization operation on AmazonAWSHealthClient.</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 EndEnableHealthServiceAccessForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
public virtual IAsyncResult BeginEnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the EnableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableHealthServiceAccessForOrganization.</param>
///
/// <returns>Returns a EnableHealthServiceAccessForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
public virtual EnableHealthServiceAccessForOrganizationResponse EndEnableHealthServiceAccessForOrganization(IAsyncResult asyncResult)
{
return EndInvoke<EnableHealthServiceAccessForOrganizationResponse>(asyncResult);
}
#endregion
}
}
| 1,358 |
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 health-2016-08-04.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSHealth.Model;
namespace Amazon.AWSHealth
{
/// <summary>
/// Interface for accessing AWSHealth
///
/// Health
/// <para>
/// The Health API provides access to the Health information that appears in the <a href="https://health.aws.amazon.com/health/home">Health
/// Dashboard</a>. You can use the API operations to get information about events that
/// might affect your Amazon Web Services and resources.
/// </para>
///
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
///
/// <para>
/// For API access, you need an access key ID and a secret access key. Use temporary credentials
/// instead of long-term access keys when possible. Temporary credentials include an access
/// key ID, a secret access key, and a security token that indicates when the credentials
/// expire. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best
/// practices for managing Amazon Web Services access keys</a> in the <i>Amazon Web Services
/// General Reference</i>.
/// </para>
///
/// <para>
/// You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the
/// Health API operations. Health supports a multi-Region application architecture and
/// has two regional endpoints in an active-passive configuration. You can use the high
/// availability endpoint example to determine which Amazon Web Services Region is active,
/// so that you can get the latest information from the API. For more information, see
/// <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the
/// Health API</a> in the <i>Health User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// If your Amazon Web Services account is part of Organizations, you can use the Health
/// organizational view feature. This feature provides a centralized view of Health events
/// across all accounts in your organization. You can aggregate Health events in real
/// time to identify accounts in your organization that are affected by an operational
/// event or get notified of security vulnerabilities. Use the organizational view API
/// operations to enable this feature and return event information. For more information,
/// see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// <note>
/// <para>
/// When you use the Health API operations to return Health events, see the following
/// recommendations:
/// </para>
/// <ul> <li>
/// <para>
/// Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
/// parameter to specify whether to return Health events that are public or account-specific.
/// </para>
/// </li> <li>
/// <para>
/// Use pagination to view all events from the response. For example, if you call the
/// <code>DescribeEventsForOrganization</code> operation to get all events in your organization,
/// you might receive several page results. Specify the <code>nextToken</code> in the
/// next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial interface IAmazonAWSHealth : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAWSHealthPaginatorFactory Paginators { get; }
#endif
#region DescribeAffectedAccountsForOrganization
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
DescribeAffectedAccountsForOrganizationResponse DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeAffectedAccountsForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeAffectedAccountsForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
IAsyncResult BeginDescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeAffectedAccountsForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAffectedAccountsForOrganization.</param>
///
/// <returns>Returns a DescribeAffectedAccountsForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
DescribeAffectedAccountsForOrganizationResponse EndDescribeAffectedAccountsForOrganization(IAsyncResult asyncResult);
#endregion
#region DescribeAffectedEntities
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities service method.</param>
///
/// <returns>The response from the DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
DescribeAffectedEntitiesResponse DescribeAffectedEntities(DescribeAffectedEntitiesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeAffectedEntities operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities operation on AmazonAWSHealthClient.</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 EndDescribeAffectedEntities
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
IAsyncResult BeginDescribeAffectedEntities(DescribeAffectedEntitiesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeAffectedEntities operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAffectedEntities.</param>
///
/// <returns>Returns a DescribeAffectedEntitiesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
DescribeAffectedEntitiesResponse EndDescribeAffectedEntities(IAsyncResult asyncResult);
#endregion
#region DescribeAffectedEntitiesForOrganization
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
DescribeAffectedEntitiesForOrganizationResponse DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeAffectedEntitiesForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeAffectedEntitiesForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
IAsyncResult BeginDescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeAffectedEntitiesForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAffectedEntitiesForOrganization.</param>
///
/// <returns>Returns a DescribeAffectedEntitiesForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
DescribeAffectedEntitiesForOrganizationResponse EndDescribeAffectedEntitiesForOrganization(IAsyncResult asyncResult);
#endregion
#region DescribeEntityAggregates
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates service method.</param>
///
/// <returns>The response from the DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
DescribeEntityAggregatesResponse DescribeEntityAggregates(DescribeEntityAggregatesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEntityAggregates operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates operation on AmazonAWSHealthClient.</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 EndDescribeEntityAggregates
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
IAsyncResult BeginDescribeEntityAggregates(DescribeEntityAggregatesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEntityAggregates operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEntityAggregates.</param>
///
/// <returns>Returns a DescribeEntityAggregatesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
DescribeEntityAggregatesResponse EndDescribeEntityAggregates(IAsyncResult asyncResult);
#endregion
#region DescribeEventAggregates
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates service method.</param>
///
/// <returns>The response from the DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
DescribeEventAggregatesResponse DescribeEventAggregates(DescribeEventAggregatesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventAggregates operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates operation on AmazonAWSHealthClient.</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 EndDescribeEventAggregates
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
IAsyncResult BeginDescribeEventAggregates(DescribeEventAggregatesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventAggregates operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventAggregates.</param>
///
/// <returns>Returns a DescribeEventAggregatesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
DescribeEventAggregatesResponse EndDescribeEventAggregates(IAsyncResult asyncResult);
#endregion
#region DescribeEventDetails
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails service method.</param>
///
/// <returns>The response from the DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
DescribeEventDetailsResponse DescribeEventDetails(DescribeEventDetailsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventDetails operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails operation on AmazonAWSHealthClient.</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 EndDescribeEventDetails
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
IAsyncResult BeginDescribeEventDetails(DescribeEventDetailsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventDetails operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventDetails.</param>
///
/// <returns>Returns a DescribeEventDetailsResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
DescribeEventDetailsResponse EndDescribeEventDetails(IAsyncResult asyncResult);
#endregion
#region DescribeEventDetailsForOrganization
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
DescribeEventDetailsForOrganizationResponse DescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventDetailsForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeEventDetailsForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
IAsyncResult BeginDescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventDetailsForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventDetailsForOrganization.</param>
///
/// <returns>Returns a DescribeEventDetailsForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
DescribeEventDetailsForOrganizationResponse EndDescribeEventDetailsForOrganization(IAsyncResult asyncResult);
#endregion
#region DescribeEvents
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents service method.</param>
///
/// <returns>The response from the DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
DescribeEventsResponse DescribeEvents(DescribeEventsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEvents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents operation on AmazonAWSHealthClient.</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 EndDescribeEvents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
IAsyncResult BeginDescribeEvents(DescribeEventsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEvents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEvents.</param>
///
/// <returns>Returns a DescribeEventsResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
DescribeEventsResponse EndDescribeEvents(IAsyncResult asyncResult);
#endregion
#region DescribeEventsForOrganization
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
DescribeEventsForOrganizationResponse DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventsForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeEventsForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
IAsyncResult BeginDescribeEventsForOrganization(DescribeEventsForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventsForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventsForOrganization.</param>
///
/// <returns>Returns a DescribeEventsForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
DescribeEventsForOrganizationResponse EndDescribeEventsForOrganization(IAsyncResult asyncResult);
#endregion
#region DescribeEventTypes
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes service method.</param>
///
/// <returns>The response from the DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
DescribeEventTypesResponse DescribeEventTypes(DescribeEventTypesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeEventTypes operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes operation on AmazonAWSHealthClient.</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 EndDescribeEventTypes
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
IAsyncResult BeginDescribeEventTypes(DescribeEventTypesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeEventTypes operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeEventTypes.</param>
///
/// <returns>Returns a DescribeEventTypesResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
DescribeEventTypesResponse EndDescribeEventTypes(IAsyncResult asyncResult);
#endregion
#region DescribeHealthServiceStatusForOrganization
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization service method.</param>
///
/// <returns>The response from the DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
DescribeHealthServiceStatusForOrganizationResponse DescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeHealthServiceStatusForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization operation on AmazonAWSHealthClient.</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 EndDescribeHealthServiceStatusForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
IAsyncResult BeginDescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeHealthServiceStatusForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeHealthServiceStatusForOrganization.</param>
///
/// <returns>Returns a DescribeHealthServiceStatusForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
DescribeHealthServiceStatusForOrganizationResponse EndDescribeHealthServiceStatusForOrganization(IAsyncResult asyncResult);
#endregion
#region DisableHealthServiceAccessForOrganization
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
DisableHealthServiceAccessForOrganizationResponse DisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DisableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization operation on AmazonAWSHealthClient.</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 EndDisableHealthServiceAccessForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
IAsyncResult BeginDisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DisableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableHealthServiceAccessForOrganization.</param>
///
/// <returns>Returns a DisableHealthServiceAccessForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
DisableHealthServiceAccessForOrganizationResponse EndDisableHealthServiceAccessForOrganization(IAsyncResult asyncResult);
#endregion
#region EnableHealthServiceAccessForOrganization
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
EnableHealthServiceAccessForOrganizationResponse EnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request);
/// <summary>
/// Initiates the asynchronous execution of the EnableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization operation on AmazonAWSHealthClient.</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 EndEnableHealthServiceAccessForOrganization
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
IAsyncResult BeginEnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the EnableHealthServiceAccessForOrganization operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableHealthServiceAccessForOrganization.</param>
///
/// <returns>Returns a EnableHealthServiceAccessForOrganizationResult from AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
EnableHealthServiceAccessForOrganizationResponse EndEnableHealthServiceAccessForOrganization(IAsyncResult asyncResult);
#endregion
}
}
| 956 |
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 health-2016-08-04.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.AWSHealth.Model;
using Amazon.AWSHealth.Model.Internal.MarshallTransformations;
using Amazon.AWSHealth.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSHealth
{
/// <summary>
/// Implementation for accessing AWSHealth
///
/// Health
/// <para>
/// The Health API provides access to the Health information that appears in the <a href="https://health.aws.amazon.com/health/home">Health
/// Dashboard</a>. You can use the API operations to get information about events that
/// might affect your Amazon Web Services and resources.
/// </para>
///
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
///
/// <para>
/// For API access, you need an access key ID and a secret access key. Use temporary credentials
/// instead of long-term access keys when possible. Temporary credentials include an access
/// key ID, a secret access key, and a security token that indicates when the credentials
/// expire. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best
/// practices for managing Amazon Web Services access keys</a> in the <i>Amazon Web Services
/// General Reference</i>.
/// </para>
///
/// <para>
/// You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the
/// Health API operations. Health supports a multi-Region application architecture and
/// has two regional endpoints in an active-passive configuration. You can use the high
/// availability endpoint example to determine which Amazon Web Services Region is active,
/// so that you can get the latest information from the API. For more information, see
/// <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the
/// Health API</a> in the <i>Health User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// If your Amazon Web Services account is part of Organizations, you can use the Health
/// organizational view feature. This feature provides a centralized view of Health events
/// across all accounts in your organization. You can aggregate Health events in real
/// time to identify accounts in your organization that are affected by an operational
/// event or get notified of security vulnerabilities. Use the organizational view API
/// operations to enable this feature and return event information. For more information,
/// see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// <note>
/// <para>
/// When you use the Health API operations to return Health events, see the following
/// recommendations:
/// </para>
/// <ul> <li>
/// <para>
/// Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
/// parameter to specify whether to return Health events that are public or account-specific.
/// </para>
/// </li> <li>
/// <para>
/// Use pagination to view all events from the response. For example, if you call the
/// <code>DescribeEventsForOrganization</code> operation to get all events in your organization,
/// you might receive several page results. Specify the <code>nextToken</code> in the
/// next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial class AmazonAWSHealthClient : AmazonServiceClient, IAmazonAWSHealth
{
private static IServiceMetadata serviceMetadata = new AmazonAWSHealthMetadata();
private IAWSHealthPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAWSHealthPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSHealthPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSHealthConfig()) { }
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSHealthConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(AmazonAWSHealthConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSHealthClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSHealthClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSHealthConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials and an
/// AmazonAWSHealthClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(AWSCredentials credentials, AmazonAWSHealthConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSHealthConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSHealthClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSHealthConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSHealthConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSHealthClient 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 AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSHealthConfig 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 AmazonAWSHealthEndpointResolver());
}
/// <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 DescribeAffectedAccountsForOrganization
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
public virtual DescribeAffectedAccountsForOrganizationResponse DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedAccountsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedAccountsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedAccountsForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization 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 DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
public virtual Task<DescribeAffectedAccountsForOrganizationResponse> DescribeAffectedAccountsForOrganizationAsync(DescribeAffectedAccountsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedAccountsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedAccountsForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAffectedAccountsForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAffectedEntities
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities service method.</param>
///
/// <returns>The response from the DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
public virtual DescribeAffectedEntitiesResponse DescribeAffectedEntities(DescribeAffectedEntitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedEntitiesResponse>(request, options);
}
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities 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 DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
public virtual Task<DescribeAffectedEntitiesResponse> DescribeAffectedEntitiesAsync(DescribeAffectedEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAffectedEntitiesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAffectedEntitiesForOrganization
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
public virtual DescribeAffectedEntitiesForOrganizationResponse DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedEntitiesForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization 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 DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
public virtual Task<DescribeAffectedEntitiesForOrganizationResponse> DescribeAffectedEntitiesForOrganizationAsync(DescribeAffectedEntitiesForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAffectedEntitiesForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEntityAggregates
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates service method.</param>
///
/// <returns>The response from the DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
public virtual DescribeEntityAggregatesResponse DescribeEntityAggregates(DescribeEntityAggregatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEntityAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEntityAggregatesResponseUnmarshaller.Instance;
return Invoke<DescribeEntityAggregatesResponse>(request, options);
}
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates 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 DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
public virtual Task<DescribeEntityAggregatesResponse> DescribeEntityAggregatesAsync(DescribeEntityAggregatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEntityAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEntityAggregatesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEntityAggregatesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventAggregates
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates service method.</param>
///
/// <returns>The response from the DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
public virtual DescribeEventAggregatesResponse DescribeEventAggregates(DescribeEventAggregatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventAggregatesResponseUnmarshaller.Instance;
return Invoke<DescribeEventAggregatesResponse>(request, options);
}
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates 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 DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
public virtual Task<DescribeEventAggregatesResponse> DescribeEventAggregatesAsync(DescribeEventAggregatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventAggregatesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventAggregatesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventDetails
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails service method.</param>
///
/// <returns>The response from the DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
public virtual DescribeEventDetailsResponse DescribeEventDetails(DescribeEventDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsResponseUnmarshaller.Instance;
return Invoke<DescribeEventDetailsResponse>(request, options);
}
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails 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 DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
public virtual Task<DescribeEventDetailsResponse> DescribeEventDetailsAsync(DescribeEventDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventDetailsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventDetailsForOrganization
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
public virtual DescribeEventDetailsForOrganizationResponse DescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeEventDetailsForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization 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 DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
public virtual Task<DescribeEventDetailsForOrganizationResponse> DescribeEventDetailsForOrganizationAsync(DescribeEventDetailsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventDetailsForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEvents
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents service method.</param>
///
/// <returns>The response from the DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
public virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;
return Invoke<DescribeEventsResponse>(request, options);
}
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents 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 DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
public virtual Task<DescribeEventsResponse> DescribeEventsAsync(DescribeEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventsForOrganization
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
public virtual DescribeEventsForOrganizationResponse DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeEventsForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization 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 DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
public virtual Task<DescribeEventsForOrganizationResponse> DescribeEventsForOrganizationAsync(DescribeEventsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventsForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventTypes
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes service method.</param>
///
/// <returns>The response from the DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
public virtual DescribeEventTypesResponse DescribeEventTypes(DescribeEventTypesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventTypesResponseUnmarshaller.Instance;
return Invoke<DescribeEventTypesResponse>(request, options);
}
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes 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 DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
public virtual Task<DescribeEventTypesResponse> DescribeEventTypesAsync(DescribeEventTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventTypesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventTypesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeHealthServiceStatusForOrganization
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization service method.</param>
///
/// <returns>The response from the DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
public virtual DescribeHealthServiceStatusForOrganizationResponse DescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHealthServiceStatusForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHealthServiceStatusForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeHealthServiceStatusForOrganizationResponse>(request, options);
}
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization 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 DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
public virtual Task<DescribeHealthServiceStatusForOrganizationResponse> DescribeHealthServiceStatusForOrganizationAsync(DescribeHealthServiceStatusForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHealthServiceStatusForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHealthServiceStatusForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeHealthServiceStatusForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DisableHealthServiceAccessForOrganization
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
public virtual DisableHealthServiceAccessForOrganizationResponse DisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return Invoke<DisableHealthServiceAccessForOrganizationResponse>(request, options);
}
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization 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 DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
public virtual Task<DisableHealthServiceAccessForOrganizationResponse> DisableHealthServiceAccessForOrganizationAsync(DisableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DisableHealthServiceAccessForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region EnableHealthServiceAccessForOrganization
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
public virtual EnableHealthServiceAccessForOrganizationResponse EnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return Invoke<EnableHealthServiceAccessForOrganizationResponse>(request, options);
}
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization 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 EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
public virtual Task<EnableHealthServiceAccessForOrganizationResponse> EnableHealthServiceAccessForOrganizationAsync(EnableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<EnableHealthServiceAccessForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 1,511 |
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 health-2016-08-04.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSHealth.Model;
namespace Amazon.AWSHealth
{
/// <summary>
/// Interface for accessing AWSHealth
///
/// Health
/// <para>
/// The Health API provides access to the Health information that appears in the <a href="https://health.aws.amazon.com/health/home">Health
/// Dashboard</a>. You can use the API operations to get information about events that
/// might affect your Amazon Web Services and resources.
/// </para>
///
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
///
/// <para>
/// For API access, you need an access key ID and a secret access key. Use temporary credentials
/// instead of long-term access keys when possible. Temporary credentials include an access
/// key ID, a secret access key, and a security token that indicates when the credentials
/// expire. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best
/// practices for managing Amazon Web Services access keys</a> in the <i>Amazon Web Services
/// General Reference</i>.
/// </para>
///
/// <para>
/// You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the
/// Health API operations. Health supports a multi-Region application architecture and
/// has two regional endpoints in an active-passive configuration. You can use the high
/// availability endpoint example to determine which Amazon Web Services Region is active,
/// so that you can get the latest information from the API. For more information, see
/// <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the
/// Health API</a> in the <i>Health User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// If your Amazon Web Services account is part of Organizations, you can use the Health
/// organizational view feature. This feature provides a centralized view of Health events
/// across all accounts in your organization. You can aggregate Health events in real
/// time to identify accounts in your organization that are affected by an operational
/// event or get notified of security vulnerabilities. Use the organizational view API
/// operations to enable this feature and return event information. For more information,
/// see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// <note>
/// <para>
/// When you use the Health API operations to return Health events, see the following
/// recommendations:
/// </para>
/// <ul> <li>
/// <para>
/// Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
/// parameter to specify whether to return Health events that are public or account-specific.
/// </para>
/// </li> <li>
/// <para>
/// Use pagination to view all events from the response. For example, if you call the
/// <code>DescribeEventsForOrganization</code> operation to get all events in your organization,
/// you might receive several page results. Specify the <code>nextToken</code> in the
/// next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial interface IAmazonAWSHealth : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IAWSHealthPaginatorFactory Paginators { get; }
#region DescribeAffectedAccountsForOrganization
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
DescribeAffectedAccountsForOrganizationResponse DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request);
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization 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 DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
Task<DescribeAffectedAccountsForOrganizationResponse> DescribeAffectedAccountsForOrganizationAsync(DescribeAffectedAccountsForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAffectedEntities
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities service method.</param>
///
/// <returns>The response from the DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
DescribeAffectedEntitiesResponse DescribeAffectedEntities(DescribeAffectedEntitiesRequest request);
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities 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 DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
Task<DescribeAffectedEntitiesResponse> DescribeAffectedEntitiesAsync(DescribeAffectedEntitiesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAffectedEntitiesForOrganization
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization service method.</param>
///
/// <returns>The response from the DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
DescribeAffectedEntitiesForOrganizationResponse DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request);
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization 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 DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
Task<DescribeAffectedEntitiesForOrganizationResponse> DescribeAffectedEntitiesForOrganizationAsync(DescribeAffectedEntitiesForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEntityAggregates
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates service method.</param>
///
/// <returns>The response from the DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
DescribeEntityAggregatesResponse DescribeEntityAggregates(DescribeEntityAggregatesRequest request);
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates 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 DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
Task<DescribeEntityAggregatesResponse> DescribeEntityAggregatesAsync(DescribeEntityAggregatesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventAggregates
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates service method.</param>
///
/// <returns>The response from the DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
DescribeEventAggregatesResponse DescribeEventAggregates(DescribeEventAggregatesRequest request);
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates 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 DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
Task<DescribeEventAggregatesResponse> DescribeEventAggregatesAsync(DescribeEventAggregatesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventDetails
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails service method.</param>
///
/// <returns>The response from the DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
DescribeEventDetailsResponse DescribeEventDetails(DescribeEventDetailsRequest request);
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails 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 DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
Task<DescribeEventDetailsResponse> DescribeEventDetailsAsync(DescribeEventDetailsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventDetailsForOrganization
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
DescribeEventDetailsForOrganizationResponse DescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request);
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization 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 DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
Task<DescribeEventDetailsForOrganizationResponse> DescribeEventDetailsForOrganizationAsync(DescribeEventDetailsForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEvents
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents service method.</param>
///
/// <returns>The response from the DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
DescribeEventsResponse DescribeEvents(DescribeEventsRequest request);
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents 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 DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
Task<DescribeEventsResponse> DescribeEventsAsync(DescribeEventsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventsForOrganization
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization service method.</param>
///
/// <returns>The response from the DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
DescribeEventsForOrganizationResponse DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request);
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization 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 DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
Task<DescribeEventsForOrganizationResponse> DescribeEventsForOrganizationAsync(DescribeEventsForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventTypes
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes service method.</param>
///
/// <returns>The response from the DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
DescribeEventTypesResponse DescribeEventTypes(DescribeEventTypesRequest request);
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes 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 DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
Task<DescribeEventTypesResponse> DescribeEventTypesAsync(DescribeEventTypesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeHealthServiceStatusForOrganization
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization service method.</param>
///
/// <returns>The response from the DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
DescribeHealthServiceStatusForOrganizationResponse DescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request);
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization 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 DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
Task<DescribeHealthServiceStatusForOrganizationResponse> DescribeHealthServiceStatusForOrganizationAsync(DescribeHealthServiceStatusForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisableHealthServiceAccessForOrganization
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
DisableHealthServiceAccessForOrganizationResponse DisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request);
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization 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 DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
Task<DisableHealthServiceAccessForOrganizationResponse> DisableHealthServiceAccessForOrganizationAsync(DisableHealthServiceAccessForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region EnableHealthServiceAccessForOrganization
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization service method.</param>
///
/// <returns>The response from the EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
EnableHealthServiceAccessForOrganizationResponse EnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request);
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization 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 EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
Task<EnableHealthServiceAccessForOrganizationResponse> EnableHealthServiceAccessForOrganizationAsync(EnableHealthServiceAccessForOrganizationRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 1,121 |
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 health-2016-08-04.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.AWSHealth.Model;
using Amazon.AWSHealth.Model.Internal.MarshallTransformations;
using Amazon.AWSHealth.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSHealth
{
/// <summary>
/// Implementation for accessing AWSHealth
///
/// Health
/// <para>
/// The Health API provides access to the Health information that appears in the <a href="https://health.aws.amazon.com/health/home">Health
/// Dashboard</a>. You can use the API operations to get information about events that
/// might affect your Amazon Web Services and resources.
/// </para>
///
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
///
/// <para>
/// For API access, you need an access key ID and a secret access key. Use temporary credentials
/// instead of long-term access keys when possible. Temporary credentials include an access
/// key ID, a secret access key, and a security token that indicates when the credentials
/// expire. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best
/// practices for managing Amazon Web Services access keys</a> in the <i>Amazon Web Services
/// General Reference</i>.
/// </para>
///
/// <para>
/// You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the
/// Health API operations. Health supports a multi-Region application architecture and
/// has two regional endpoints in an active-passive configuration. You can use the high
/// availability endpoint example to determine which Amazon Web Services Region is active,
/// so that you can get the latest information from the API. For more information, see
/// <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the
/// Health API</a> in the <i>Health User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// If your Amazon Web Services account is part of Organizations, you can use the Health
/// organizational view feature. This feature provides a centralized view of Health events
/// across all accounts in your organization. You can aggregate Health events in real
/// time to identify accounts in your organization that are affected by an operational
/// event or get notified of security vulnerabilities. Use the organizational view API
/// operations to enable this feature and return event information. For more information,
/// see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// <note>
/// <para>
/// When you use the Health API operations to return Health events, see the following
/// recommendations:
/// </para>
/// <ul> <li>
/// <para>
/// Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
/// parameter to specify whether to return Health events that are public or account-specific.
/// </para>
/// </li> <li>
/// <para>
/// Use pagination to view all events from the response. For example, if you call the
/// <code>DescribeEventsForOrganization</code> operation to get all events in your organization,
/// you might receive several page results. Specify the <code>nextToken</code> in the
/// next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial class AmazonAWSHealthClient : AmazonServiceClient, IAmazonAWSHealth
{
private static IServiceMetadata serviceMetadata = new AmazonAWSHealthMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSHealthConfig()) { }
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSHealthConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(AmazonAWSHealthConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSHealthClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSHealthClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSHealthConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Credentials and an
/// AmazonAWSHealthClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(AWSCredentials credentials, AmazonAWSHealthConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSHealthConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSHealthClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSHealthConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSHealthConfig())
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient 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 AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSHealthConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSHealthClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSHealthClient 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 AmazonAWSHealthClient Configuration Object</param>
public AmazonAWSHealthClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSHealthConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IAWSHealthPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAWSHealthPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSHealthPaginatorFactory(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 AmazonAWSHealthEndpointResolver());
}
/// <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 DescribeAffectedAccountsForOrganization
internal virtual DescribeAffectedAccountsForOrganizationResponse DescribeAffectedAccountsForOrganization(DescribeAffectedAccountsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedAccountsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedAccountsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedAccountsForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization 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 DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
public virtual Task<DescribeAffectedAccountsForOrganizationResponse> DescribeAffectedAccountsForOrganizationAsync(DescribeAffectedAccountsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedAccountsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedAccountsForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAffectedAccountsForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAffectedEntities
internal virtual DescribeAffectedEntitiesResponse DescribeAffectedEntities(DescribeAffectedEntitiesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedEntitiesResponse>(request, options);
}
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities 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 DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
public virtual Task<DescribeAffectedEntitiesResponse> DescribeAffectedEntitiesAsync(DescribeAffectedEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAffectedEntitiesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAffectedEntitiesForOrganization
internal virtual DescribeAffectedEntitiesForOrganizationResponse DescribeAffectedEntitiesForOrganization(DescribeAffectedEntitiesForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeAffectedEntitiesForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization 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 DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
public virtual Task<DescribeAffectedEntitiesForOrganizationResponse> DescribeAffectedEntitiesForOrganizationAsync(DescribeAffectedEntitiesForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAffectedEntitiesForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAffectedEntitiesForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAffectedEntitiesForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEntityAggregates
internal virtual DescribeEntityAggregatesResponse DescribeEntityAggregates(DescribeEntityAggregatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEntityAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEntityAggregatesResponseUnmarshaller.Instance;
return Invoke<DescribeEntityAggregatesResponse>(request, options);
}
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates 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 DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
public virtual Task<DescribeEntityAggregatesResponse> DescribeEntityAggregatesAsync(DescribeEntityAggregatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEntityAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEntityAggregatesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEntityAggregatesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventAggregates
internal virtual DescribeEventAggregatesResponse DescribeEventAggregates(DescribeEventAggregatesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventAggregatesResponseUnmarshaller.Instance;
return Invoke<DescribeEventAggregatesResponse>(request, options);
}
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates 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 DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
public virtual Task<DescribeEventAggregatesResponse> DescribeEventAggregatesAsync(DescribeEventAggregatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventAggregatesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventAggregatesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventAggregatesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventDetails
internal virtual DescribeEventDetailsResponse DescribeEventDetails(DescribeEventDetailsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsResponseUnmarshaller.Instance;
return Invoke<DescribeEventDetailsResponse>(request, options);
}
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails 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 DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
public virtual Task<DescribeEventDetailsResponse> DescribeEventDetailsAsync(DescribeEventDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventDetailsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventDetailsForOrganization
internal virtual DescribeEventDetailsForOrganizationResponse DescribeEventDetailsForOrganization(DescribeEventDetailsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeEventDetailsForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization 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 DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
public virtual Task<DescribeEventDetailsForOrganizationResponse> DescribeEventDetailsForOrganizationAsync(DescribeEventDetailsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventDetailsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventDetailsForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventDetailsForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEvents
internal virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;
return Invoke<DescribeEventsResponse>(request, options);
}
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents 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 DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
public virtual Task<DescribeEventsResponse> DescribeEventsAsync(DescribeEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventsForOrganization
internal virtual DescribeEventsForOrganizationResponse DescribeEventsForOrganization(DescribeEventsForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeEventsForOrganizationResponse>(request, options);
}
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization 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 DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
public virtual Task<DescribeEventsForOrganizationResponse> DescribeEventsForOrganizationAsync(DescribeEventsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventsForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventsForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventsForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeEventTypes
internal virtual DescribeEventTypesResponse DescribeEventTypes(DescribeEventTypesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventTypesResponseUnmarshaller.Instance;
return Invoke<DescribeEventTypesResponse>(request, options);
}
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes 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 DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
public virtual Task<DescribeEventTypesResponse> DescribeEventTypesAsync(DescribeEventTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeEventTypesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeEventTypesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeEventTypesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeHealthServiceStatusForOrganization
internal virtual DescribeHealthServiceStatusForOrganizationResponse DescribeHealthServiceStatusForOrganization(DescribeHealthServiceStatusForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHealthServiceStatusForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHealthServiceStatusForOrganizationResponseUnmarshaller.Instance;
return Invoke<DescribeHealthServiceStatusForOrganizationResponse>(request, options);
}
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization 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 DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
public virtual Task<DescribeHealthServiceStatusForOrganizationResponse> DescribeHealthServiceStatusForOrganizationAsync(DescribeHealthServiceStatusForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHealthServiceStatusForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHealthServiceStatusForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DescribeHealthServiceStatusForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region DisableHealthServiceAccessForOrganization
internal virtual DisableHealthServiceAccessForOrganizationResponse DisableHealthServiceAccessForOrganization(DisableHealthServiceAccessForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return Invoke<DisableHealthServiceAccessForOrganizationResponse>(request, options);
}
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization 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 DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
public virtual Task<DisableHealthServiceAccessForOrganizationResponse> DisableHealthServiceAccessForOrganizationAsync(DisableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<DisableHealthServiceAccessForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
#region EnableHealthServiceAccessForOrganization
internal virtual EnableHealthServiceAccessForOrganizationResponse EnableHealthServiceAccessForOrganization(EnableHealthServiceAccessForOrganizationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return Invoke<EnableHealthServiceAccessForOrganizationResponse>(request, options);
}
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization 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 EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
public virtual Task<EnableHealthServiceAccessForOrganizationResponse> EnableHealthServiceAccessForOrganizationAsync(EnableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableHealthServiceAccessForOrganizationRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableHealthServiceAccessForOrganizationResponseUnmarshaller.Instance;
return InvokeAsync<EnableHealthServiceAccessForOrganizationResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 1,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 health-2016-08-04.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSHealth.Model;
namespace Amazon.AWSHealth
{
/// <summary>
/// Interface for accessing AWSHealth
///
/// Health
/// <para>
/// The Health API provides access to the Health information that appears in the <a href="https://health.aws.amazon.com/health/home">Health
/// Dashboard</a>. You can use the API operations to get information about events that
/// might affect your Amazon Web Services and resources.
/// </para>
///
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
///
/// <para>
/// For API access, you need an access key ID and a secret access key. Use temporary credentials
/// instead of long-term access keys when possible. Temporary credentials include an access
/// key ID, a secret access key, and a security token that indicates when the credentials
/// expire. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best
/// practices for managing Amazon Web Services access keys</a> in the <i>Amazon Web Services
/// General Reference</i>.
/// </para>
///
/// <para>
/// You can use the Health endpoint health.us-east-1.amazonaws.com (HTTPS) to call the
/// Health API operations. Health supports a multi-Region application architecture and
/// has two regional endpoints in an active-passive configuration. You can use the high
/// availability endpoint example to determine which Amazon Web Services Region is active,
/// so that you can get the latest information from the API. For more information, see
/// <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the
/// Health API</a> in the <i>Health User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// If your Amazon Web Services account is part of Organizations, you can use the Health
/// organizational view feature. This feature provides a centralized view of Health events
/// across all accounts in your organization. You can aggregate Health events in real
/// time to identify accounts in your organization that are affected by an operational
/// event or get notified of security vulnerabilities. Use the organizational view API
/// operations to enable this feature and return event information. For more information,
/// see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// <note>
/// <para>
/// When you use the Health API operations to return Health events, see the following
/// recommendations:
/// </para>
/// <ul> <li>
/// <para>
/// Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>
/// parameter to specify whether to return Health events that are public or account-specific.
/// </para>
/// </li> <li>
/// <para>
/// Use pagination to view all events from the response. For example, if you call the
/// <code>DescribeEventsForOrganization</code> operation to get all events in your organization,
/// you might receive several page results. Specify the <code>nextToken</code> in the
/// next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
public partial interface IAmazonAWSHealth : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAWSHealthPaginatorFactory Paginators { get; }
#endif
#region DescribeAffectedAccountsForOrganization
/// <summary>
/// Returns a list of accounts in the organization from Organizations that are affected
/// by the provided event. For more information about the different types of Health events,
/// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
///
///
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedAccountsForOrganization 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 DescribeAffectedAccountsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization">REST API Reference for DescribeAffectedAccountsForOrganization Operation</seealso>
Task<DescribeAffectedAccountsForOrganizationResponse> DescribeAffectedAccountsForOrganizationAsync(DescribeAffectedAccountsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAffectedEntities
/// <summary>
/// Returns a list of entities that have been affected by the specified events, based
/// on the specified filter criteria. Entities can refer to individual customer resources,
/// groups of customer resources, or any other construct, depending on the Amazon Web
/// Service. Events that have impact beyond that of the affected entities, or where the
/// extent of impact is unknown, include at least one entity indicating this.
///
///
/// <para>
/// At least one event ARN is required.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntities 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 DescribeAffectedEntities service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities">REST API Reference for DescribeAffectedEntities Operation</seealso>
Task<DescribeAffectedEntitiesResponse> DescribeAffectedEntitiesAsync(DescribeAffectedEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAffectedEntitiesForOrganization
/// <summary>
/// Returns a list of entities that have been affected by one or more events for one or
/// more accounts in your organization in Organizations, based on the filter criteria.
/// Entities can refer to individual customer resources, groups of customer resources,
/// or any other construct, depending on the Amazon Web Service.
///
///
/// <para>
/// At least one event Amazon Resource Name (ARN) and account ID are required.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note> <ul> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> <li>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAffectedEntitiesForOrganization 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 DescribeAffectedEntitiesForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization">REST API Reference for DescribeAffectedEntitiesForOrganization Operation</seealso>
Task<DescribeAffectedEntitiesForOrganizationResponse> DescribeAffectedEntitiesForOrganizationAsync(DescribeAffectedEntitiesForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEntityAggregates
/// <summary>
/// Returns the number of entities that are affected by each of the specified events.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEntityAggregates 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 DescribeEntityAggregates service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEntityAggregates">REST API Reference for DescribeEntityAggregates Operation</seealso>
Task<DescribeEntityAggregatesResponse> DescribeEntityAggregatesAsync(DescribeEntityAggregatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventAggregates
/// <summary>
/// Returns the number of events of each event type (issue, scheduled change, and account
/// notification). If no filter is specified, the counts of all events in each category
/// are returned.
///
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventAggregates 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 DescribeEventAggregates service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates">REST API Reference for DescribeEventAggregates Operation</seealso>
Task<DescribeEventAggregatesResponse> DescribeEventAggregatesAsync(DescribeEventAggregatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventDetails
/// <summary>
/// Returns detailed information about one or more specified events. Information includes
/// standard event data (Amazon Web Services Region, service, and so on, as returned by
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>),
/// a detailed event description, and possible additional metadata that depends upon the
/// nature of the event. Affected entities are not included. To retrieve the entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operation.
///
///
/// <para>
/// If a specified event can't be retrieved, an error message is returned for that event.
/// </para>
/// <note>
/// <para>
/// This operation supports resource-level permissions. You can use this operation to
/// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetails 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 DescribeEventDetails service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails">REST API Reference for DescribeEventDetails Operation</seealso>
Task<DescribeEventDetailsResponse> DescribeEventDetailsAsync(DescribeEventDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventDetailsForOrganization
/// <summary>
/// Returns detailed information about one or more specified events for one or more Amazon
/// Web Services accounts in your organization. This information includes standard event
/// data (such as the Amazon Web Services Region and service), an event description, and
/// (depending on the event) possible metadata. This operation doesn't return affected
/// entities, such as the resources related to the event. To return affected entities,
/// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
/// operation.
///
/// <note>
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// </note>
/// <para>
/// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
/// the <code>organizationEventDetailFilters</code> object in the request. Depending on
/// the Health event type, note the following differences:
/// </para>
/// <ul> <li>
/// <para>
/// To return event details for a public event, you must specify a null value for the
/// <code>awsAccountId</code> parameter. If you specify an account ID for a public event,
/// Health returns an error message because public events aren't specific to an account.
/// </para>
/// </li> <li>
/// <para>
/// To return event details for an event that is specific to an account in your organization,
/// you must specify the <code>awsAccountId</code> parameter in the request. If you don't
/// specify an account ID, Health returns an error message because the event is specific
/// to an account in your organization.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// <note>
/// <para>
/// This operation doesn't support resource-level permissions. You can't use this operation
/// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource-
/// and action-based conditions</a> in the <i>Health User Guide</i>.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventDetailsForOrganization 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 DescribeEventDetailsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization">REST API Reference for DescribeEventDetailsForOrganization Operation</seealso>
Task<DescribeEventDetailsForOrganizationResponse> DescribeEventDetailsForOrganizationAsync(DescribeEventDetailsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEvents
/// <summary>
/// Returns information about events that meet the specified filter criteria. Events
/// are returned in a summary form and do not include the detailed description, any additional
/// metadata that depends on the event type, or any affected resources. To retrieve that
/// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a>
/// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a>
/// operations.
///
///
/// <para>
/// If no filter criteria are specified, all events are returned. Results are sorted by
/// <code>lastModifiedTime</code>, starting with the most recent event.
/// </para>
/// <note> <ul> <li>
/// <para>
/// When you call the <code>DescribeEvents</code> operation and specify an entity for
/// the <code>entityValues</code> parameter, Health might return public events that aren't
/// specific to that resource. For example, if you call <code>DescribeEvents</code> and
/// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might
/// return events that aren't specific to that resource or service. To get events that
/// are specific to a service, use the <code>services</code> parameter in the <code>filter</code>
/// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
/// </li> <li>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEvents 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 DescribeEvents service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents">REST API Reference for DescribeEvents Operation</seealso>
Task<DescribeEventsResponse> DescribeEventsAsync(DescribeEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventsForOrganization
/// <summary>
/// Returns information about events across your organization in Organizations. You can
/// use the<code>filters</code> parameter to specify the events that you want to return.
/// Events are returned in a summary form and don't include the affected accounts, detailed
/// description, any additional metadata that depends on the event type, or any affected
/// resources. To retrieve that information, use the following operations:
///
/// <ul> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
///
/// </para>
/// </li> <li>
/// <para>
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
///
/// </para>
/// </li> </ul>
/// <para>
/// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code>
/// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>,
/// starting with the most recent event.
/// </para>
///
/// <para>
/// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.
/// </para>
///
/// <para>
/// Before you can call this operation, you must first enable Health to work with Organizations.
/// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// operation from your organization's management account.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventsForOrganization 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 DescribeEventsForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization">REST API Reference for DescribeEventsForOrganization Operation</seealso>
Task<DescribeEventsForOrganizationResponse> DescribeEventsForOrganizationAsync(DescribeEventsForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeEventTypes
/// <summary>
/// Returns the event types that meet the specified filter criteria. You can use this
/// API operation to find information about the Health event, such as the category, Amazon
/// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a>
/// object.
///
///
/// <para>
/// If you don't specify a filter criteria, the API operation returns all event types,
/// in no particular order.
/// </para>
/// <note>
/// <para>
/// This API operation uses pagination. Specify the <code>nextToken</code> parameter in
/// the next request to return more results.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeEventTypes 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 DescribeEventTypes service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.InvalidPaginationTokenException">
/// The specified pagination token (<code>nextToken</code>) is not valid.
/// </exception>
/// <exception cref="Amazon.AWSHealth.Model.UnsupportedLocaleException">
/// The specified locale is not supported.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes">REST API Reference for DescribeEventTypes Operation</seealso>
Task<DescribeEventTypesResponse> DescribeEventTypesAsync(DescribeEventTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeHealthServiceStatusForOrganization
/// <summary>
/// This operation provides status information on enabling or disabling Health to work
/// with your organization. To call this operation, you must use the organization's management
/// account.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeHealthServiceStatusForOrganization 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 DescribeHealthServiceStatusForOrganization service method, as returned by AWSHealth.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeHealthServiceStatusForOrganization">REST API Reference for DescribeHealthServiceStatusForOrganization Operation</seealso>
Task<DescribeHealthServiceStatusForOrganizationResponse> DescribeHealthServiceStatusForOrganizationAsync(DescribeHealthServiceStatusForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DisableHealthServiceAccessForOrganization
/// <summary>
/// Disables Health from working with Organizations. To call this operation, you must
/// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
///
///
/// <para>
/// This operation doesn't remove the service-linked role from the management account
/// in your organization. You must use the IAM console, API, or Command Line Interface
/// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting
/// a Service-Linked Role</a> in the <i>IAM User Guide</i>.
/// </para>
/// <note>
/// <para>
/// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a>
/// API operation. After you call this operation, Health stops aggregating events for
/// all other Amazon Web Services accounts in your organization. If you call the Health
/// API operations for organizational view, Health returns an error. Health continues
/// to aggregate health events for your Amazon Web Services account.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DisableHealthServiceAccessForOrganization 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 DisableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DisableHealthServiceAccessForOrganization">REST API Reference for DisableHealthServiceAccessForOrganization Operation</seealso>
Task<DisableHealthServiceAccessForOrganizationResponse> DisableHealthServiceAccessForOrganizationAsync(DisableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region EnableHealthServiceAccessForOrganization
/// <summary>
/// Enables Health to work with Organizations. You can use the organizational view feature
/// to aggregate events from all Amazon Web Services accounts in your organization in
/// a centralized location.
///
///
/// <para>
/// This operation also creates a service-linked role for the management account in the
/// organization.
/// </para>
/// <note>
/// <para>
/// To call this operation, you must meet the following requirements:
/// </para>
/// <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a> to use the Health API. If you call the Health API from an
/// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise
/// Support plan, you receive a <code>SubscriptionRequiredException</code> error.
/// </para>
/// </li> <li>
/// <para>
/// You must have permission to call this operation from the organization's management
/// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health
/// identity-based policy examples</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// If you don't have the required support plan, you can instead use the Health console
/// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
/// Health events</a> in the <i>Health User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the EnableHealthServiceAccessForOrganization 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 EnableHealthServiceAccessForOrganization service method, as returned by AWSHealth.</returns>
/// <exception cref="Amazon.AWSHealth.Model.ConcurrentModificationException">
/// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
/// is already in progress. Wait for the action to complete before trying again. To get
/// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a>
/// operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/EnableHealthServiceAccessForOrganization">REST API Reference for EnableHealthServiceAccessForOrganization Operation</seealso>
Task<EnableHealthServiceAccessForOrganizationResponse> EnableHealthServiceAccessForOrganizationAsync(EnableHealthServiceAccessForOrganizationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 668 |
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.AWSHealth")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Health APIs and Notifications. The AWS Health API serves as the primary source for you to receive personalized information related to your AWS infrastructure, guiding your through scheduled changes, and accelerating the troubleshooting of issues impacting your AWS resources and accounts.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Health APIs and Notifications. The AWS Health API serves as the primary source for you to receive personalized information related to your AWS infrastructure, guiding your through scheduled changes, and accelerating the troubleshooting of issues impacting your AWS resources and accounts.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Health APIs and Notifications. The AWS Health API serves as the primary source for you to receive personalized information related to your AWS infrastructure, guiding your through scheduled changes, and accelerating the troubleshooting of issues impacting your AWS resources and accounts.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Health APIs and Notifications. The AWS Health API serves as the primary source for you to receive personalized information related to your AWS infrastructure, guiding your through scheduled changes, and accelerating the troubleshooting of issues impacting your AWS resources and 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.101.19")]
[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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.AWSMarketplaceCommerceAnalytics.Internal;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Configuration for accessing Amazon AWSMarketplaceCommerceAnalytics service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonAWSMarketplaceCommerceAnalyticsConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonAWSMarketplaceCommerceAnalyticsConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAWSMarketplaceCommerceAnalyticsDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "marketplacecommerceanalytics";
this.EndpointProvider = new AmazonAWSMarketplaceCommerceAnalyticsEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "marketplacecommerceanalytics";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2015-07-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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Configuration for accessing Amazon AWSMarketplaceCommerceAnalytics service
/// </summary>
public static class AmazonAWSMarketplaceCommerceAnalyticsDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// AWSMarketplaceCommerceAnalytics
/// </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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Endpoints
{
/// <summary>
/// Contains parameters used for resolving AWSMarketplaceCommerceAnalytics endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal AWSMarketplaceCommerceAnalyticsEndpointProvider and AWSMarketplaceCommerceAnalyticsEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class AWSMarketplaceCommerceAnalyticsEndpointParameters : EndpointParameters
{
/// <summary>
/// AWSMarketplaceCommerceAnalyticsEndpointParameters constructor
/// </summary>
public AWSMarketplaceCommerceAnalyticsEndpointParameters()
{
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
///<summary>
/// Common exception for the AWSMarketplaceCommerceAnalytics service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonAWSMarketplaceCommerceAnalyticsException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonAWSMarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="message"></param>
public AmazonAWSMarketplaceCommerceAnalyticsException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonAWSMarketplaceCommerceAnalyticsException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="innerException"></param>
public AmazonAWSMarketplaceCommerceAnalyticsException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAWSMarketplaceCommerceAnalyticsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceCommerceAnalyticsException
/// </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 AmazonAWSMarketplaceCommerceAnalyticsException(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 AmazonAWSMarketplaceCommerceAnalyticsException 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 AmazonAWSMarketplaceCommerceAnalyticsException(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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Constants used for properties of type DataSetType.
/// </summary>
public class DataSetType : ConstantClass
{
/// <summary>
/// Constant Customer_profile_by_geography for DataSetType
/// </summary>
public static readonly DataSetType Customer_profile_by_geography = new DataSetType("customer_profile_by_geography");
/// <summary>
/// Constant CustomerProfileByIndustry for DataSetType
/// </summary>
public static readonly DataSetType CustomerProfileByIndustry = new DataSetType("customer_profile_by_industry");
/// <summary>
/// Constant CustomerProfileByRevenue for DataSetType
/// </summary>
public static readonly DataSetType CustomerProfileByRevenue = new DataSetType("customer_profile_by_revenue");
/// <summary>
/// Constant CustomerSubscriberAnnualSubscriptions for DataSetType
/// </summary>
public static readonly DataSetType CustomerSubscriberAnnualSubscriptions = new DataSetType("customer_subscriber_annual_subscriptions");
/// <summary>
/// Constant CustomerSubscriberHourlyMonthlySubscriptions for DataSetType
/// </summary>
public static readonly DataSetType CustomerSubscriberHourlyMonthlySubscriptions = new DataSetType("customer_subscriber_hourly_monthly_subscriptions");
/// <summary>
/// Constant DailyBusinessCanceledProductSubscribers for DataSetType
/// </summary>
public static readonly DataSetType DailyBusinessCanceledProductSubscribers = new DataSetType("daily_business_canceled_product_subscribers");
/// <summary>
/// Constant DailyBusinessFees for DataSetType
/// </summary>
public static readonly DataSetType DailyBusinessFees = new DataSetType("daily_business_fees");
/// <summary>
/// Constant DailyBusinessFreeTrialConversions for DataSetType
/// </summary>
public static readonly DataSetType DailyBusinessFreeTrialConversions = new DataSetType("daily_business_free_trial_conversions");
/// <summary>
/// Constant DailyBusinessNewInstances for DataSetType
/// </summary>
public static readonly DataSetType DailyBusinessNewInstances = new DataSetType("daily_business_new_instances");
/// <summary>
/// Constant DailyBusinessNewProductSubscribers for DataSetType
/// </summary>
public static readonly DataSetType DailyBusinessNewProductSubscribers = new DataSetType("daily_business_new_product_subscribers");
/// <summary>
/// Constant DailyBusinessUsageByInstanceType for DataSetType
/// </summary>
public static readonly DataSetType DailyBusinessUsageByInstanceType = new DataSetType("daily_business_usage_by_instance_type");
/// <summary>
/// Constant Disbursed_amount_by_age_of_past_due_funds for DataSetType
/// </summary>
public static readonly DataSetType Disbursed_amount_by_age_of_past_due_funds = new DataSetType("disbursed_amount_by_age_of_past_due_funds");
/// <summary>
/// Constant Disbursed_amount_by_instance_hours for DataSetType
/// </summary>
public static readonly DataSetType Disbursed_amount_by_instance_hours = new DataSetType("disbursed_amount_by_instance_hours");
/// <summary>
/// Constant Disbursed_amount_by_product_with_uncollected_funds for DataSetType
/// </summary>
public static readonly DataSetType Disbursed_amount_by_product_with_uncollected_funds = new DataSetType("disbursed_amount_by_product_with_uncollected_funds");
/// <summary>
/// Constant Disbursed_amount_by_uncollected_funds_breakdown for DataSetType
/// </summary>
public static readonly DataSetType Disbursed_amount_by_uncollected_funds_breakdown = new DataSetType("disbursed_amount_by_uncollected_funds_breakdown");
/// <summary>
/// Constant DisbursedAmountByAgeOfDisbursedFunds for DataSetType
/// </summary>
public static readonly DataSetType DisbursedAmountByAgeOfDisbursedFunds = new DataSetType("disbursed_amount_by_age_of_disbursed_funds");
/// <summary>
/// Constant DisbursedAmountByAgeOfUncollectedFunds for DataSetType
/// </summary>
public static readonly DataSetType DisbursedAmountByAgeOfUncollectedFunds = new DataSetType("disbursed_amount_by_age_of_uncollected_funds");
/// <summary>
/// Constant DisbursedAmountByCustomerGeo for DataSetType
/// </summary>
public static readonly DataSetType DisbursedAmountByCustomerGeo = new DataSetType("disbursed_amount_by_customer_geo");
/// <summary>
/// Constant DisbursedAmountByProduct for DataSetType
/// </summary>
public static readonly DataSetType DisbursedAmountByProduct = new DataSetType("disbursed_amount_by_product");
/// <summary>
/// Constant Monthly_revenue_field_demonstration_usage for DataSetType
/// </summary>
public static readonly DataSetType Monthly_revenue_field_demonstration_usage = new DataSetType("monthly_revenue_field_demonstration_usage");
/// <summary>
/// Constant Monthly_revenue_flexible_payment_schedule for DataSetType
/// </summary>
public static readonly DataSetType Monthly_revenue_flexible_payment_schedule = new DataSetType("monthly_revenue_flexible_payment_schedule");
/// <summary>
/// Constant MonthlyRevenueAnnualSubscriptions for DataSetType
/// </summary>
public static readonly DataSetType MonthlyRevenueAnnualSubscriptions = new DataSetType("monthly_revenue_annual_subscriptions");
/// <summary>
/// Constant MonthlyRevenueBillingAndRevenueData for DataSetType
/// </summary>
public static readonly DataSetType MonthlyRevenueBillingAndRevenueData = new DataSetType("monthly_revenue_billing_and_revenue_data");
/// <summary>
/// Constant Sales_compensation_billed_revenue for DataSetType
/// </summary>
public static readonly DataSetType Sales_compensation_billed_revenue = new DataSetType("sales_compensation_billed_revenue");
/// <summary>
/// Constant Us_sales_and_use_tax_records for DataSetType
/// </summary>
public static readonly DataSetType Us_sales_and_use_tax_records = new DataSetType("us_sales_and_use_tax_records");
/// <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 DataSetType(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 DataSetType FindValue(string value)
{
return FindValue<DataSetType>(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 DataSetType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type SupportDataSetType.
/// </summary>
public class SupportDataSetType : ConstantClass
{
/// <summary>
/// Constant Customer_support_contacts_data for SupportDataSetType
/// </summary>
public static readonly SupportDataSetType Customer_support_contacts_data = new SupportDataSetType("customer_support_contacts_data");
/// <summary>
/// Constant Test_customer_support_contacts_data for SupportDataSetType
/// </summary>
public static readonly SupportDataSetType Test_customer_support_contacts_data = new SupportDataSetType("test_customer_support_contacts_data");
/// <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 SupportDataSetType(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 SupportDataSetType FindValue(string value)
{
return FindValue<SupportDataSetType>(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 SupportDataSetType(string value)
{
return FindValue(value);
}
}
}
| 218 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Internal
{
/// <summary>
/// Amazon AWSMarketplaceCommerceAnalytics endpoint provider.
/// Resolves endpoint for given set of AWSMarketplaceCommerceAnalyticsEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonAWSMarketplaceCommerceAnalyticsEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for AWSMarketplaceCommerceAnalyticsEndpointParameters
/// </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 ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null)
{
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 (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://marketplacecommerceanalytics-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://marketplacecommerceanalytics-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://marketplacecommerceanalytics.{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://marketplacecommerceanalytics.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("Cannot resolve endpoint");
}
}
}
| 99 |
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using Amazon.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.AWSMarketplaceCommerceAnalytics.Endpoints;
#pragma warning disable 1591
namespace Amazon.AWSMarketplaceCommerceAnalytics.Internal
{
/// <summary>
/// Amazon AWSMarketplaceCommerceAnalytics endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AWSMarketplaceCommerceAnalytics service requests.
/// Collects values for AWSMarketplaceCommerceAnalyticsEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AWSMarketplaceCommerceAnalyticsEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonAWSMarketplaceCommerceAnalyticsEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonAWSMarketplaceCommerceAnalyticsConfig)requestContext.ClientConfig;
var result = new AWSMarketplaceCommerceAnalyticsEndpointParameters();
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Internal
{
/// <summary>
/// Service metadata for Amazon AWSMarketplaceCommerceAnalytics service
/// </summary>
public partial class AmazonAWSMarketplaceCommerceAnalyticsMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Marketplace Commerce Analytics";
}
}
/// <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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Base class for AWSMarketplaceCommerceAnalytics operation requests.
/// </summary>
public partial class AmazonAWSMarketplaceCommerceAnalyticsRequest : 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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model
{
/// <summary>
/// Container for the parameters to the GenerateDataSet operation.
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
public partial class GenerateDataSetRequest : AmazonAWSMarketplaceCommerceAnalyticsRequest
{
private Dictionary<string, string> _customerDefinedValues = new Dictionary<string, string>();
private DateTime? _dataSetPublicationDate;
private DataSetType _dataSetType;
private string _destinations3BucketName;
private string _destinations3Prefix;
private string _roleNameArn;
private string _snsTopicArn;
/// <summary>
/// Gets and sets the property CustomerDefinedValues. (Optional) Key-value pairs which
/// will be returned, unmodified, in the Amazon SNS notification message and the data
/// set metadata file. These key-value pairs can be used to correlated responses with
/// tracking information from other systems.
/// </summary>
[AWSProperty(Min=1, Max=5)]
public Dictionary<string, string> CustomerDefinedValues
{
get { return this._customerDefinedValues; }
set { this._customerDefinedValues = value; }
}
// Check to see if CustomerDefinedValues property is set
internal bool IsSetCustomerDefinedValues()
{
return this._customerDefinedValues != null && this._customerDefinedValues.Count > 0;
}
/// <summary>
/// Gets and sets the property DataSetPublicationDate. The date a data set was published.
/// For daily data sets, provide a date with day-level granularity for the desired day.
/// For monthly data sets except those with prefix disbursed_amount, provide a date with
/// month-level granularity for the desired month (the day value will be ignored). For
/// data sets with prefix disbursed_amount, provide a date with day-level granularity
/// for the desired day. For these data sets we will look backwards in time over the range
/// of 31 days until the first data set is found (the latest one).
/// </summary>
[AWSProperty(Required=true)]
public DateTime DataSetPublicationDate
{
get { return this._dataSetPublicationDate.GetValueOrDefault(); }
set { this._dataSetPublicationDate = value; }
}
// Check to see if DataSetPublicationDate property is set
internal bool IsSetDataSetPublicationDate()
{
return this._dataSetPublicationDate.HasValue;
}
/// <summary>
/// Gets and sets the property DataSetType.
/// <para>
/// The desired data set type.
/// </para>
///
/// <para>
/// <ul> <li> <strong>customer_subscriber_hourly_monthly_subscriptions</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>customer_subscriber_annual_subscriptions</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>daily_business_usage_by_instance_type</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>daily_business_fees</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>daily_business_free_trial_conversions</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>daily_business_new_instances</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>daily_business_new_product_subscribers</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>daily_business_canceled_product_subscribers</strong>
/// <para>
/// From 2017-09-15 to present: Available daily by 24:00 UTC.
/// </para>
/// </li> <li> <strong>monthly_revenue_billing_and_revenue_data</strong>
/// <para>
/// From 2017-09-15 to present: Available monthly on the 15th day of the month by 24:00
/// UTC. Data includes metered transactions (e.g. hourly) from one month prior.
/// </para>
/// </li> <li> <strong>monthly_revenue_annual_subscriptions</strong>
/// <para>
/// From 2017-09-15 to present: Available monthly on the 15th day of the month by 24:00
/// UTC. Data includes up-front software charges (e.g. annual) from one month prior.
/// </para>
/// </li> <li> <strong>monthly_revenue_field_demonstration_usage</strong>
/// <para>
/// From 2018-03-15 to present: Available monthly on the 15th day of the month by 24:00
/// UTC.
/// </para>
/// </li> <li> <strong>monthly_revenue_flexible_payment_schedule</strong>
/// <para>
/// From 2018-11-15 to present: Available monthly on the 15th day of the month by 24:00
/// UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_product</strong>
/// <para>
/// From 2017-09-15 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_instance_hours</strong>
/// <para>
/// From 2017-09-15 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_customer_geo</strong>
/// <para>
/// From 2017-09-15 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_age_of_uncollected_funds</strong>
/// <para>
/// From 2017-09-15 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_age_of_disbursed_funds</strong>
/// <para>
/// From 2017-09-15 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_age_of_past_due_funds</strong>
/// <para>
/// From 2018-04-07 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_uncollected_funds_breakdown</strong>
/// <para>
/// From 2019-10-04 to present: Available every 30 days by 24:00 UTC.
/// </para>
/// </li> <li> <strong>sales_compensation_billed_revenue</strong>
/// <para>
/// From 2017-09-15 to present: Available monthly on the 15th day of the month by 24:00
/// UTC. Data includes metered transactions (e.g. hourly) from one month prior, and up-front
/// software charges (e.g. annual) from one month prior.
/// </para>
/// </li> <li> <strong>us_sales_and_use_tax_records</strong>
/// <para>
/// From 2017-09-15 to present: Available monthly on the 15th day of the month by 24:00
/// UTC.
/// </para>
/// </li> <li> <strong>disbursed_amount_by_product_with_uncollected_funds</strong>
/// <para>
/// This data set is deprecated. Download related reports from AMMP instead!
/// </para>
/// </li> <li> <strong>customer_profile_by_industry</strong>
/// <para>
/// This data set is deprecated. Download related reports from AMMP instead!
/// </para>
/// </li> <li> <strong>customer_profile_by_revenue</strong>
/// <para>
/// This data set is deprecated. Download related reports from AMMP instead!
/// </para>
/// </li> <li> <strong>customer_profile_by_geography</strong>
/// <para>
/// This data set is deprecated. Download related reports from AMMP instead!
/// </para>
/// </li> </ul>
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public DataSetType DataSetType
{
get { return this._dataSetType; }
set { this._dataSetType = value; }
}
// Check to see if DataSetType property is set
internal bool IsSetDataSetType()
{
return this._dataSetType != null;
}
/// <summary>
/// Gets and sets the property DestinationS3BucketName. The name (friendly name, not ARN)
/// of the destination S3 bucket.
/// </summary>
[AWSProperty(Required=true, Min=1)]
public string DestinationS3BucketName
{
get { return this._destinations3BucketName; }
set { this._destinations3BucketName = value; }
}
// Check to see if DestinationS3BucketName property is set
internal bool IsSetDestinationS3BucketName()
{
return this._destinations3BucketName != null;
}
/// <summary>
/// Gets and sets the property DestinationS3Prefix. (Optional) The desired S3 prefix for
/// the published data set, similar to a directory path in standard file systems. For
/// example, if given the bucket name "mybucket" and the prefix "myprefix/mydatasets",
/// the output file "outputfile" would be published to "s3://mybucket/myprefix/mydatasets/outputfile".
/// If the prefix directory structure does not exist, it will be created. If no prefix
/// is provided, the data set will be published to the S3 bucket root.
/// </summary>
public string DestinationS3Prefix
{
get { return this._destinations3Prefix; }
set { this._destinations3Prefix = value; }
}
// Check to see if DestinationS3Prefix property is set
internal bool IsSetDestinationS3Prefix()
{
return this._destinations3Prefix != null;
}
/// <summary>
/// Gets and sets the property RoleNameArn. The Amazon Resource Name (ARN) of the Role
/// with an attached permissions policy to interact with the provided AWS services.
/// </summary>
[AWSProperty(Required=true, Min=1)]
public string RoleNameArn
{
get { return this._roleNameArn; }
set { this._roleNameArn = value; }
}
// Check to see if RoleNameArn property is set
internal bool IsSetRoleNameArn()
{
return this._roleNameArn != null;
}
/// <summary>
/// Gets and sets the property SnsTopicArn. Amazon Resource Name (ARN) for the SNS Topic
/// that will be notified when the data set has been published or if an error has occurred.
/// </summary>
[AWSProperty(Required=true, Min=1)]
public string SnsTopicArn
{
get { return this._snsTopicArn; }
set { this._snsTopicArn = value; }
}
// Check to see if SnsTopicArn property is set
internal bool IsSetSnsTopicArn()
{
return this._snsTopicArn != null;
}
}
}
| 296 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model
{
/// <summary>
/// Container for the result of the GenerateDataSet operation.
/// </summary>
public partial class GenerateDataSetResponse : AmazonWebServiceResponse
{
private string _dataSetRequestId;
/// <summary>
/// Gets and sets the property DataSetRequestId. A unique identifier representing a specific
/// request to the GenerateDataSet operation. This identifier can be used to correlate
/// a request with notifications from the SNS topic.
/// </summary>
public string DataSetRequestId
{
get { return this._dataSetRequestId; }
set { this._dataSetRequestId = value; }
}
// Check to see if DataSetRequestId property is set
internal bool IsSetDataSetRequestId()
{
return this._dataSetRequestId != null;
}
}
}
| 56 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model
{
/// <summary>
/// This exception is thrown when an internal service error occurs.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class MarketplaceCommerceAnalyticsException : AmazonAWSMarketplaceCommerceAnalyticsException
{
/// <summary>
/// Constructs a new MarketplaceCommerceAnalyticsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public MarketplaceCommerceAnalyticsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of MarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public MarketplaceCommerceAnalyticsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of MarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="innerException"></param>
public MarketplaceCommerceAnalyticsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of MarketplaceCommerceAnalyticsException
/// </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 MarketplaceCommerceAnalyticsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of MarketplaceCommerceAnalyticsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public MarketplaceCommerceAnalyticsException(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 MarketplaceCommerceAnalyticsException 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 MarketplaceCommerceAnalyticsException(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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model
{
/// <summary>
/// Container for the parameters to the StartSupportDataExport operation.
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
public partial class StartSupportDataExportRequest : AmazonAWSMarketplaceCommerceAnalyticsRequest
{
private Dictionary<string, string> _customerDefinedValues = new Dictionary<string, string>();
private SupportDataSetType _dataSetType;
private string _destinations3BucketName;
private string _destinations3Prefix;
private DateTime? _fromDate;
private string _roleNameArn;
private string _snsTopicArn;
/// <summary>
/// Gets and sets the property CustomerDefinedValues. (Optional) Key-value pairs which
/// will be returned, unmodified, in the Amazon SNS notification message and the data
/// set metadata file.
/// </summary>
[AWSProperty(Min=1, Max=5)]
public Dictionary<string, string> CustomerDefinedValues
{
get { return this._customerDefinedValues; }
set { this._customerDefinedValues = value; }
}
// Check to see if CustomerDefinedValues property is set
internal bool IsSetCustomerDefinedValues()
{
return this._customerDefinedValues != null && this._customerDefinedValues.Count > 0;
}
/// <summary>
/// Gets and sets the property DataSetType.
/// <para>
/// Specifies the data set type to be written to the output csv file. The data set types
/// customer_support_contacts_data and test_customer_support_contacts_data both result
/// in a csv file containing the following fields: Product Id, Product Code, Customer
/// Guid, Subscription Guid, Subscription Start Date, Organization, AWS Account Id, Given
/// Name, Surname, Telephone Number, Email, Title, Country Code, ZIP Code, Operation Type,
/// and Operation Time.
/// </para>
///
/// <para>
/// <ul> <li><i>customer_support_contacts_data</i> Customer support contact data. The
/// data set will contain all changes (Creates, Updates, and Deletes) to customer support
/// contact data from the date specified in the from_date parameter.</li> <li><i>test_customer_support_contacts_data</i>
/// An example data set containing static test data in the same format as customer_support_contacts_data</li>
/// </ul>
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public SupportDataSetType DataSetType
{
get { return this._dataSetType; }
set { this._dataSetType = value; }
}
// Check to see if DataSetType property is set
internal bool IsSetDataSetType()
{
return this._dataSetType != null;
}
/// <summary>
/// Gets and sets the property DestinationS3BucketName. The name (friendly name, not ARN)
/// of the destination S3 bucket.
/// </summary>
[AWSProperty(Required=true, Min=1)]
public string DestinationS3BucketName
{
get { return this._destinations3BucketName; }
set { this._destinations3BucketName = value; }
}
// Check to see if DestinationS3BucketName property is set
internal bool IsSetDestinationS3BucketName()
{
return this._destinations3BucketName != null;
}
/// <summary>
/// Gets and sets the property DestinationS3Prefix. (Optional) The desired S3 prefix for
/// the published data set, similar to a directory path in standard file systems. For
/// example, if given the bucket name "mybucket" and the prefix "myprefix/mydatasets",
/// the output file "outputfile" would be published to "s3://mybucket/myprefix/mydatasets/outputfile".
/// If the prefix directory structure does not exist, it will be created. If no prefix
/// is provided, the data set will be published to the S3 bucket root.
/// </summary>
public string DestinationS3Prefix
{
get { return this._destinations3Prefix; }
set { this._destinations3Prefix = value; }
}
// Check to see if DestinationS3Prefix property is set
internal bool IsSetDestinationS3Prefix()
{
return this._destinations3Prefix != null;
}
/// <summary>
/// Gets and sets the property FromDate. The start date from which to retrieve the data
/// set in UTC. This parameter only affects the customer_support_contacts_data data set
/// type.
/// </summary>
[AWSProperty(Required=true)]
public DateTime FromDate
{
get { return this._fromDate.GetValueOrDefault(); }
set { this._fromDate = value; }
}
// Check to see if FromDate property is set
internal bool IsSetFromDate()
{
return this._fromDate.HasValue;
}
/// <summary>
/// Gets and sets the property RoleNameArn. The Amazon Resource Name (ARN) of the Role
/// with an attached permissions policy to interact with the provided AWS services.
/// </summary>
[AWSProperty(Required=true, Min=1)]
public string RoleNameArn
{
get { return this._roleNameArn; }
set { this._roleNameArn = value; }
}
// Check to see if RoleNameArn property is set
internal bool IsSetRoleNameArn()
{
return this._roleNameArn != null;
}
/// <summary>
/// Gets and sets the property SnsTopicArn. Amazon Resource Name (ARN) for the SNS Topic
/// that will be notified when the data set has been published or if an error has occurred.
/// </summary>
[AWSProperty(Required=true, Min=1)]
public string SnsTopicArn
{
get { return this._snsTopicArn; }
set { this._snsTopicArn = value; }
}
// Check to see if SnsTopicArn property is set
internal bool IsSetSnsTopicArn()
{
return this._snsTopicArn != null;
}
}
}
| 193 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model
{
/// <summary>
/// Container for the result of the StartSupportDataExport operation.
/// </summary>
public partial class StartSupportDataExportResponse : AmazonWebServiceResponse
{
private string _dataSetRequestId;
/// <summary>
/// Gets and sets the property DataSetRequestId. A unique identifier representing a specific
/// request to the StartSupportDataExport operation. This identifier can be used to correlate
/// a request with notifications from the SNS topic.
/// </summary>
public string DataSetRequestId
{
get { return this._dataSetRequestId; }
set { this._dataSetRequestId = value; }
}
// Check to see if DataSetRequestId property is set
internal bool IsSetDataSetRequestId()
{
return this._dataSetRequestId != null;
}
}
}
| 56 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations
{
/// <summary>
/// GenerateDataSet Request Marshaller
/// </summary>
public class GenerateDataSetRequestMarshaller : IMarshaller<IRequest, GenerateDataSetRequest> , 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((GenerateDataSetRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(GenerateDataSetRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSMarketplaceCommerceAnalytics");
string target = "MarketplaceCommerceAnalytics20150701.GenerateDataSet";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-07-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCustomerDefinedValues())
{
context.Writer.WritePropertyName("customerDefinedValues");
context.Writer.WriteObjectStart();
foreach (var publicRequestCustomerDefinedValuesKvp in publicRequest.CustomerDefinedValues)
{
context.Writer.WritePropertyName(publicRequestCustomerDefinedValuesKvp.Key);
var publicRequestCustomerDefinedValuesValue = publicRequestCustomerDefinedValuesKvp.Value;
context.Writer.Write(publicRequestCustomerDefinedValuesValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetDataSetPublicationDate())
{
context.Writer.WritePropertyName("dataSetPublicationDate");
context.Writer.Write(publicRequest.DataSetPublicationDate);
}
if(publicRequest.IsSetDataSetType())
{
context.Writer.WritePropertyName("dataSetType");
context.Writer.Write(publicRequest.DataSetType);
}
if(publicRequest.IsSetDestinationS3BucketName())
{
context.Writer.WritePropertyName("destinationS3BucketName");
context.Writer.Write(publicRequest.DestinationS3BucketName);
}
if(publicRequest.IsSetDestinationS3Prefix())
{
context.Writer.WritePropertyName("destinationS3Prefix");
context.Writer.Write(publicRequest.DestinationS3Prefix);
}
if(publicRequest.IsSetRoleNameArn())
{
context.Writer.WritePropertyName("roleNameArn");
context.Writer.Write(publicRequest.RoleNameArn);
}
if(publicRequest.IsSetSnsTopicArn())
{
context.Writer.WritePropertyName("snsTopicArn");
context.Writer.Write(publicRequest.SnsTopicArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static GenerateDataSetRequestMarshaller _instance = new GenerateDataSetRequestMarshaller();
internal static GenerateDataSetRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GenerateDataSetRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 147 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for GenerateDataSet operation
/// </summary>
public class GenerateDataSetResponseUnmarshaller : 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)
{
GenerateDataSetResponse response = new GenerateDataSetResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataSetRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DataSetRequestId = 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("MarketplaceCommerceAnalyticsException"))
{
return MarketplaceCommerceAnalyticsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSMarketplaceCommerceAnalyticsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static GenerateDataSetResponseUnmarshaller _instance = new GenerateDataSetResponseUnmarshaller();
internal static GenerateDataSetResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static GenerateDataSetResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for MarketplaceCommerceAnalyticsException Object
/// </summary>
public class MarketplaceCommerceAnalyticsExceptionUnmarshaller : IErrorResponseUnmarshaller<MarketplaceCommerceAnalyticsException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public MarketplaceCommerceAnalyticsException 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 MarketplaceCommerceAnalyticsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
MarketplaceCommerceAnalyticsException unmarshalledObject = new MarketplaceCommerceAnalyticsException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static MarketplaceCommerceAnalyticsExceptionUnmarshaller _instance = new MarketplaceCommerceAnalyticsExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static MarketplaceCommerceAnalyticsExceptionUnmarshaller 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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartSupportDataExport Request Marshaller
/// </summary>
public class StartSupportDataExportRequestMarshaller : IMarshaller<IRequest, StartSupportDataExportRequest> , 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((StartSupportDataExportRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartSupportDataExportRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSMarketplaceCommerceAnalytics");
string target = "MarketplaceCommerceAnalytics20150701.StartSupportDataExport";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-07-01";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCustomerDefinedValues())
{
context.Writer.WritePropertyName("customerDefinedValues");
context.Writer.WriteObjectStart();
foreach (var publicRequestCustomerDefinedValuesKvp in publicRequest.CustomerDefinedValues)
{
context.Writer.WritePropertyName(publicRequestCustomerDefinedValuesKvp.Key);
var publicRequestCustomerDefinedValuesValue = publicRequestCustomerDefinedValuesKvp.Value;
context.Writer.Write(publicRequestCustomerDefinedValuesValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetDataSetType())
{
context.Writer.WritePropertyName("dataSetType");
context.Writer.Write(publicRequest.DataSetType);
}
if(publicRequest.IsSetDestinationS3BucketName())
{
context.Writer.WritePropertyName("destinationS3BucketName");
context.Writer.Write(publicRequest.DestinationS3BucketName);
}
if(publicRequest.IsSetDestinationS3Prefix())
{
context.Writer.WritePropertyName("destinationS3Prefix");
context.Writer.Write(publicRequest.DestinationS3Prefix);
}
if(publicRequest.IsSetFromDate())
{
context.Writer.WritePropertyName("fromDate");
context.Writer.Write(publicRequest.FromDate);
}
if(publicRequest.IsSetRoleNameArn())
{
context.Writer.WritePropertyName("roleNameArn");
context.Writer.Write(publicRequest.RoleNameArn);
}
if(publicRequest.IsSetSnsTopicArn())
{
context.Writer.WritePropertyName("snsTopicArn");
context.Writer.Write(publicRequest.SnsTopicArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static StartSupportDataExportRequestMarshaller _instance = new StartSupportDataExportRequestMarshaller();
internal static StartSupportDataExportRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartSupportDataExportRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 147 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartSupportDataExport operation
/// </summary>
public class StartSupportDataExportResponseUnmarshaller : 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)
{
StartSupportDataExportResponse response = new StartSupportDataExportResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("dataSetRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DataSetRequestId = 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("MarketplaceCommerceAnalyticsException"))
{
return MarketplaceCommerceAnalyticsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSMarketplaceCommerceAnalyticsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartSupportDataExportResponseUnmarshaller _instance = new StartSupportDataExportResponseUnmarshaller();
internal static StartSupportDataExportResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartSupportDataExportResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations;
using Amazon.AWSMarketplaceCommerceAnalytics.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Implementation for accessing AWSMarketplaceCommerceAnalytics
///
/// Provides AWS Marketplace business intelligence data on-demand.
/// </summary>
public partial class AmazonAWSMarketplaceCommerceAnalyticsClient : AmazonServiceClient, IAmazonAWSMarketplaceCommerceAnalytics
{
private static IServiceMetadata serviceMetadata = new AmazonAWSMarketplaceCommerceAnalyticsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSMarketplaceCommerceAnalyticsConfig()) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AmazonAWSMarketplaceCommerceAnalyticsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials, AmazonAWSMarketplaceCommerceAnalyticsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSMarketplaceCommerceAnalyticsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSMarketplaceCommerceAnalyticsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSMarketplaceCommerceAnalyticsConfig 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 AmazonAWSMarketplaceCommerceAnalyticsEndpointResolver());
}
/// <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 GenerateDataSet
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet service method.</param>
///
/// <returns>The response from the GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
public virtual GenerateDataSetResponse GenerateDataSet(GenerateDataSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GenerateDataSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GenerateDataSetResponseUnmarshaller.Instance;
return Invoke<GenerateDataSetResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GenerateDataSet operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet operation on AmazonAWSMarketplaceCommerceAnalyticsClient.</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 EndGenerateDataSet
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
public virtual IAsyncResult BeginGenerateDataSet(GenerateDataSetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GenerateDataSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GenerateDataSetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GenerateDataSet operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGenerateDataSet.</param>
///
/// <returns>Returns a GenerateDataSetResult from AWSMarketplaceCommerceAnalytics.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
public virtual GenerateDataSetResponse EndGenerateDataSet(IAsyncResult asyncResult)
{
return EndInvoke<GenerateDataSetResponse>(asyncResult);
}
#endregion
#region StartSupportDataExport
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport service method.</param>
///
/// <returns>The response from the StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
public virtual StartSupportDataExportResponse StartSupportDataExport(StartSupportDataExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSupportDataExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSupportDataExportResponseUnmarshaller.Instance;
return Invoke<StartSupportDataExportResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartSupportDataExport operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport operation on AmazonAWSMarketplaceCommerceAnalyticsClient.</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 EndStartSupportDataExport
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
public virtual IAsyncResult BeginStartSupportDataExport(StartSupportDataExportRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSupportDataExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSupportDataExportResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartSupportDataExport operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSupportDataExport.</param>
///
/// <returns>Returns a StartSupportDataExportResult from AWSMarketplaceCommerceAnalytics.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
public virtual StartSupportDataExportResponse EndStartSupportDataExport(IAsyncResult asyncResult)
{
return EndInvoke<StartSupportDataExportResponse>(asyncResult);
}
#endregion
}
}
| 380 |
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSMarketplaceCommerceAnalytics.Model;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Interface for accessing AWSMarketplaceCommerceAnalytics
///
/// Provides AWS Marketplace business intelligence data on-demand.
/// </summary>
public partial interface IAmazonAWSMarketplaceCommerceAnalytics : IAmazonService, IDisposable
{
#region GenerateDataSet
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet service method.</param>
///
/// <returns>The response from the GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
GenerateDataSetResponse GenerateDataSet(GenerateDataSetRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GenerateDataSet operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet operation on AmazonAWSMarketplaceCommerceAnalyticsClient.</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 EndGenerateDataSet
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
IAsyncResult BeginGenerateDataSet(GenerateDataSetRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GenerateDataSet operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGenerateDataSet.</param>
///
/// <returns>Returns a GenerateDataSetResult from AWSMarketplaceCommerceAnalytics.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
GenerateDataSetResponse EndGenerateDataSet(IAsyncResult asyncResult);
#endregion
#region StartSupportDataExport
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport service method.</param>
///
/// <returns>The response from the StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
StartSupportDataExportResponse StartSupportDataExport(StartSupportDataExportRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartSupportDataExport operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport operation on AmazonAWSMarketplaceCommerceAnalyticsClient.</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 EndStartSupportDataExport
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
IAsyncResult BeginStartSupportDataExport(StartSupportDataExportRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartSupportDataExport operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartSupportDataExport.</param>
///
/// <returns>Returns a StartSupportDataExportResult from AWSMarketplaceCommerceAnalytics.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
StartSupportDataExportResponse EndStartSupportDataExport(IAsyncResult asyncResult);
#endregion
}
}
| 144 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations;
using Amazon.AWSMarketplaceCommerceAnalytics.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Implementation for accessing AWSMarketplaceCommerceAnalytics
///
/// Provides AWS Marketplace business intelligence data on-demand.
/// </summary>
public partial class AmazonAWSMarketplaceCommerceAnalyticsClient : AmazonServiceClient, IAmazonAWSMarketplaceCommerceAnalytics
{
private static IServiceMetadata serviceMetadata = new AmazonAWSMarketplaceCommerceAnalyticsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSMarketplaceCommerceAnalyticsConfig()) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AmazonAWSMarketplaceCommerceAnalyticsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials, AmazonAWSMarketplaceCommerceAnalyticsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSMarketplaceCommerceAnalyticsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSMarketplaceCommerceAnalyticsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSMarketplaceCommerceAnalyticsConfig 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 AmazonAWSMarketplaceCommerceAnalyticsEndpointResolver());
}
/// <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 GenerateDataSet
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet service method.</param>
///
/// <returns>The response from the GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
public virtual GenerateDataSetResponse GenerateDataSet(GenerateDataSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GenerateDataSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GenerateDataSetResponseUnmarshaller.Instance;
return Invoke<GenerateDataSetResponse>(request, options);
}
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet 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 GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
public virtual Task<GenerateDataSetResponse> GenerateDataSetAsync(GenerateDataSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GenerateDataSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GenerateDataSetResponseUnmarshaller.Instance;
return InvokeAsync<GenerateDataSetResponse>(request, options, cancellationToken);
}
#endregion
#region StartSupportDataExport
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport service method.</param>
///
/// <returns>The response from the StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
public virtual StartSupportDataExportResponse StartSupportDataExport(StartSupportDataExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSupportDataExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSupportDataExportResponseUnmarshaller.Instance;
return Invoke<StartSupportDataExportResponse>(request, options);
}
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport 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 StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
public virtual Task<StartSupportDataExportResponse> StartSupportDataExportAsync(StartSupportDataExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSupportDataExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSupportDataExportResponseUnmarshaller.Instance;
return InvokeAsync<StartSupportDataExportResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 377 |
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSMarketplaceCommerceAnalytics.Model;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Interface for accessing AWSMarketplaceCommerceAnalytics
///
/// Provides AWS Marketplace business intelligence data on-demand.
/// </summary>
public partial interface IAmazonAWSMarketplaceCommerceAnalytics : IAmazonService, IDisposable
{
#region GenerateDataSet
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet service method.</param>
///
/// <returns>The response from the GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
GenerateDataSetResponse GenerateDataSet(GenerateDataSetRequest request);
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet 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 GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
Task<GenerateDataSetResponse> GenerateDataSetAsync(GenerateDataSetRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartSupportDataExport
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport service method.</param>
///
/// <returns>The response from the StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
StartSupportDataExportResponse StartSupportDataExport(StartSupportDataExportRequest request);
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport 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 StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
Task<StartSupportDataExportResponse> StartSupportDataExportAsync(StartSupportDataExportRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 142 |
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 marketplacecommerceanalytics-2015-07-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.AWSMarketplaceCommerceAnalytics.Model;
using Amazon.AWSMarketplaceCommerceAnalytics.Model.Internal.MarshallTransformations;
using Amazon.AWSMarketplaceCommerceAnalytics.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Implementation for accessing AWSMarketplaceCommerceAnalytics
///
/// Provides AWS Marketplace business intelligence data on-demand.
/// </summary>
public partial class AmazonAWSMarketplaceCommerceAnalyticsClient : AmazonServiceClient, IAmazonAWSMarketplaceCommerceAnalytics
{
private static IServiceMetadata serviceMetadata = new AmazonAWSMarketplaceCommerceAnalyticsMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSMarketplaceCommerceAnalyticsConfig()) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AmazonAWSMarketplaceCommerceAnalyticsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Credentials and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(AWSCredentials credentials, AmazonAWSMarketplaceCommerceAnalyticsConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSMarketplaceCommerceAnalyticsConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSMarketplaceCommerceAnalyticsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSMarketplaceCommerceAnalyticsConfig())
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSMarketplaceCommerceAnalyticsConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSMarketplaceCommerceAnalyticsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSMarketplaceCommerceAnalyticsClient 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 AmazonAWSMarketplaceCommerceAnalyticsClient Configuration Object</param>
public AmazonAWSMarketplaceCommerceAnalyticsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSMarketplaceCommerceAnalyticsConfig 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>
/// 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 AmazonAWSMarketplaceCommerceAnalyticsEndpointResolver());
}
/// <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 GenerateDataSet
internal virtual GenerateDataSetResponse GenerateDataSet(GenerateDataSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GenerateDataSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GenerateDataSetResponseUnmarshaller.Instance;
return Invoke<GenerateDataSetResponse>(request, options);
}
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet 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 GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
public virtual Task<GenerateDataSetResponse> GenerateDataSetAsync(GenerateDataSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GenerateDataSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GenerateDataSetResponseUnmarshaller.Instance;
return InvokeAsync<GenerateDataSetResponse>(request, options, cancellationToken);
}
#endregion
#region StartSupportDataExport
internal virtual StartSupportDataExportResponse StartSupportDataExport(StartSupportDataExportRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSupportDataExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSupportDataExportResponseUnmarshaller.Instance;
return Invoke<StartSupportDataExportResponse>(request, options);
}
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport 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 StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
public virtual Task<StartSupportDataExportResponse> StartSupportDataExportAsync(StartSupportDataExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSupportDataExportRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSupportDataExportResponseUnmarshaller.Instance;
return InvokeAsync<StartSupportDataExportResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 343 |
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 marketplacecommerceanalytics-2015-07-01.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSMarketplaceCommerceAnalytics.Model;
namespace Amazon.AWSMarketplaceCommerceAnalytics
{
/// <summary>
/// Interface for accessing AWSMarketplaceCommerceAnalytics
///
/// Provides AWS Marketplace business intelligence data on-demand.
/// </summary>
public partial interface IAmazonAWSMarketplaceCommerceAnalytics : IAmazonService, IDisposable
{
#region GenerateDataSet
/// <summary>
/// Given a data set type and data set publication date, asynchronously publishes the
/// requested data set to the specified S3 bucket and notifies the specified SNS topic
/// once the data is available. Returns a unique request identifier that can be used to
/// correlate requests with notifications from the SNS topic. Data sets will be published
/// in comma-separated values (CSV) format with the file name {data_set_type}_YYYY-MM-DD.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GenerateDataSet 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 GenerateDataSet service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet">REST API Reference for GenerateDataSet Operation</seealso>
Task<GenerateDataSetResponse> GenerateDataSetAsync(GenerateDataSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartSupportDataExport
/// <summary>
/// Given a data set type and a from date, asynchronously publishes the requested customer
/// support data to the specified S3 bucket and notifies the specified SNS topic once
/// the data is available. Returns a unique request identifier that can be used to correlate
/// requests with notifications from the SNS topic. Data sets will be published in comma-separated
/// values (CSV) format with the file name {data_set_type}_YYYY-MM-DD'T'HH-mm-ss'Z'.csv.
/// If a file with the same name already exists (e.g. if the same data set is requested
/// twice), the original file will be overwritten by the new file. Requires a Role with
/// an attached permissions policy providing Allow permissions for the following actions:
/// s3:PutObject, s3:GetBucketLocation, sns:GetTopicAttributes, sns:Publish, iam:GetRolePolicy.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartSupportDataExport 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 StartSupportDataExport service method, as returned by AWSMarketplaceCommerceAnalytics.</returns>
/// <exception cref="Amazon.AWSMarketplaceCommerceAnalytics.Model.MarketplaceCommerceAnalyticsException">
/// This exception is thrown when an internal service error occurs.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport">REST API Reference for StartSupportDataExport Operation</seealso>
Task<StartSupportDataExportResponse> StartSupportDataExportAsync(StartSupportDataExportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 98 |
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.AWSMarketplaceCommerceAnalytics")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Marketplace Commerce Analytics. The AWS Marketplace Commerce Analytics service allows marketplace partners to programmatically request business intelligence data from AWS Marketplace. This service provides the same data that was previously only available through the AWS Marketplace Management Portal, but offers the data in a fully-machine-readable format and available in fine-grained data sets rather than large reports.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Marketplace Commerce Analytics. The AWS Marketplace Commerce Analytics service allows marketplace partners to programmatically request business intelligence data from AWS Marketplace. This service provides the same data that was previously only available through the AWS Marketplace Management Portal, but offers the data in a fully-machine-readable format and available in fine-grained data sets rather than large reports.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Marketplace Commerce Analytics. The AWS Marketplace Commerce Analytics service allows marketplace partners to programmatically request business intelligence data from AWS Marketplace. This service provides the same data that was previously only available through the AWS Marketplace Management Portal, but offers the data in a fully-machine-readable format and available in fine-grained data sets rather than large reports.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Marketplace Commerce Analytics. The AWS Marketplace Commerce Analytics service allows marketplace partners to programmatically request business intelligence data from AWS Marketplace. This service provides the same data that was previously only available through the AWS Marketplace Management Portal, but offers the data in a fully-machine-readable format and available in fine-grained data sets rather than large reports.")]
#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.100.147")]
[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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.AWSMarketplaceMetering.Internal;
namespace Amazon.AWSMarketplaceMetering
{
/// <summary>
/// Configuration for accessing Amazon AWSMarketplaceMetering service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonAWSMarketplaceMeteringConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonAWSMarketplaceMeteringConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAWSMarketplaceMeteringDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "aws-marketplace";
this.EndpointProvider = new AmazonAWSMarketplaceMeteringEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "metering.marketplace";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2016-01-14";
}
}
/// <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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceMetering
{
/// <summary>
/// Configuration for accessing Amazon AWSMarketplaceMetering service
/// </summary>
public static class AmazonAWSMarketplaceMeteringDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// AWSMarketplaceMetering
/// </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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.AWSMarketplaceMetering.Endpoints
{
/// <summary>
/// Contains parameters used for resolving AWSMarketplaceMetering endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal AWSMarketplaceMeteringEndpointProvider and AWSMarketplaceMeteringEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class AWSMarketplaceMeteringEndpointParameters : EndpointParameters
{
/// <summary>
/// AWSMarketplaceMeteringEndpointParameters constructor
/// </summary>
public AWSMarketplaceMeteringEndpointParameters()
{
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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceMetering
{
///<summary>
/// Common exception for the AWSMarketplaceMetering service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonAWSMarketplaceMeteringException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonAWSMarketplaceMeteringException
/// </summary>
/// <param name="message"></param>
public AmazonAWSMarketplaceMeteringException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceMeteringException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonAWSMarketplaceMeteringException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceMeteringException
/// </summary>
/// <param name="innerException"></param>
public AmazonAWSMarketplaceMeteringException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceMeteringException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAWSMarketplaceMeteringException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonAWSMarketplaceMeteringException
/// </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 AmazonAWSMarketplaceMeteringException(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 AmazonAWSMarketplaceMeteringException 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 AmazonAWSMarketplaceMeteringException(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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceMetering
{
/// <summary>
/// Constants used for properties of type UsageRecordResultStatus.
/// </summary>
public class UsageRecordResultStatus : ConstantClass
{
/// <summary>
/// Constant CustomerNotSubscribed for UsageRecordResultStatus
/// </summary>
public static readonly UsageRecordResultStatus CustomerNotSubscribed = new UsageRecordResultStatus("CustomerNotSubscribed");
/// <summary>
/// Constant DuplicateRecord for UsageRecordResultStatus
/// </summary>
public static readonly UsageRecordResultStatus DuplicateRecord = new UsageRecordResultStatus("DuplicateRecord");
/// <summary>
/// Constant Success for UsageRecordResultStatus
/// </summary>
public static readonly UsageRecordResultStatus Success = new UsageRecordResultStatus("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 UsageRecordResultStatus(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 UsageRecordResultStatus FindValue(string value)
{
return FindValue<UsageRecordResultStatus>(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 UsageRecordResultStatus(string value)
{
return FindValue(value);
}
}
}
| 80 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Internal
{
/// <summary>
/// Amazon AWSMarketplaceMetering endpoint provider.
/// Resolves endpoint for given set of AWSMarketplaceMeteringEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonAWSMarketplaceMeteringEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for AWSMarketplaceMeteringEndpointParameters
/// </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 ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null)
{
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 (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://metering.marketplace-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://metering.marketplace-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://metering.marketplace.{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://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("Cannot resolve endpoint");
}
}
}
| 99 |
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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using System;
using Amazon.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.AWSMarketplaceMetering.Endpoints;
#pragma warning disable 1591
namespace Amazon.AWSMarketplaceMetering.Internal
{
/// <summary>
/// Amazon AWSMarketplaceMetering endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AWSMarketplaceMetering service requests.
/// Collects values for AWSMarketplaceMeteringEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AWSMarketplaceMeteringEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonAWSMarketplaceMeteringEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonAWSMarketplaceMeteringConfig)requestContext.ClientConfig;
var result = new AWSMarketplaceMeteringEndpointParameters();
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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.AWSMarketplaceMetering.Internal
{
/// <summary>
/// Service metadata for Amazon AWSMarketplaceMetering service
/// </summary>
public partial class AmazonAWSMarketplaceMeteringMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Marketplace Metering";
}
}
/// <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 meteringmarketplace-2016-01-14.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSMarketplaceMetering
{
/// <summary>
/// Base class for AWSMarketplaceMetering operation requests.
/// </summary>
public partial class AmazonAWSMarketplaceMeteringRequest : 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Container for the parameters to the BatchMeterUsage operation.
/// <code>BatchMeterUsage</code> is called from a SaaS application listed on AWS Marketplace
/// to post metering records for a set of customers.
///
///
/// <para>
/// For identical requests, the API is idempotent; requests can be retried with the same
/// records or a subset of the input records.
/// </para>
///
/// <para>
/// Every request to <code>BatchMeterUsage</code> is for one product. If you need to meter
/// usage for multiple products, you must make multiple calls to <code>BatchMeterUsage</code>.
/// </para>
///
/// <para>
/// Usage records are expected to be submitted as quickly as possible after the event
/// that is being recorded, and are not accepted more than 6 hours after the event.
/// </para>
///
/// <para>
/// <code>BatchMeterUsage</code> can process up to 25 <code>UsageRecords</code> at a
/// time.
/// </para>
///
/// <para>
/// A <code>UsageRecord</code> can optionally include multiple usage allocations, to provide
/// customers with usage data split into buckets by tags that you define (or allow the
/// customer to define).
/// </para>
///
/// <para>
/// <code>BatchMeterUsage</code> returns a list of <code>UsageRecordResult</code> objects,
/// showing the result for each <code>UsageRecord</code>, as well as a list of <code>UnprocessedRecords</code>,
/// indicating errors in the service side that you should retry.
/// </para>
///
/// <para>
/// <code>BatchMeterUsage</code> requests must be less than 1MB in size.
/// </para>
/// <note>
/// <para>
/// For an example of using <code>BatchMeterUsage</code>, see <a href="https://docs.aws.amazon.com/marketplace/latest/userguide/saas-code-examples.html#saas-batchmeterusage-example">
/// BatchMeterUsage code example</a> in the <i>AWS Marketplace Seller Guide</i>.
/// </para>
/// </note>
/// </summary>
public partial class BatchMeterUsageRequest : AmazonAWSMarketplaceMeteringRequest
{
private string _productCode;
private List<UsageRecord> _usageRecords = new List<UsageRecord>();
/// <summary>
/// Gets and sets the property ProductCode.
/// <para>
/// Product code is used to uniquely identify a product in AWS Marketplace. The product
/// code should be the same as the one used during the publishing of a new product.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProductCode
{
get { return this._productCode; }
set { this._productCode = value; }
}
// Check to see if ProductCode property is set
internal bool IsSetProductCode()
{
return this._productCode != null;
}
/// <summary>
/// Gets and sets the property UsageRecords.
/// <para>
/// The set of <code>UsageRecords</code> to submit. <code>BatchMeterUsage</code> accepts
/// up to 25 <code>UsageRecords</code> at a time.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=25)]
public List<UsageRecord> UsageRecords
{
get { return this._usageRecords; }
set { this._usageRecords = value; }
}
// Check to see if UsageRecords property is set
internal bool IsSetUsageRecords()
{
return this._usageRecords != null && this._usageRecords.Count > 0;
}
}
}
| 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Contains the <code>UsageRecords</code> processed by <code>BatchMeterUsage</code> and
/// any records that have failed due to transient error.
/// </summary>
public partial class BatchMeterUsageResponse : AmazonWebServiceResponse
{
private List<UsageRecordResult> _results = new List<UsageRecordResult>();
private List<UsageRecord> _unprocessedRecords = new List<UsageRecord>();
/// <summary>
/// Gets and sets the property Results.
/// <para>
/// Contains all <code>UsageRecords</code> processed by <code>BatchMeterUsage</code>.
/// These records were either honored by AWS Marketplace Metering Service or were invalid.
/// Invalid records should be fixed before being resubmitted.
/// </para>
/// </summary>
public List<UsageRecordResult> Results
{
get { return this._results; }
set { this._results = value; }
}
// Check to see if Results property is set
internal bool IsSetResults()
{
return this._results != null && this._results.Count > 0;
}
/// <summary>
/// Gets and sets the property UnprocessedRecords.
/// <para>
/// Contains all <code>UsageRecords</code> that were not processed by <code>BatchMeterUsage</code>.
/// This is a list of <code>UsageRecords</code>. You can retry the failed request by making
/// another <code>BatchMeterUsage</code> call with this list as input in the <code>BatchMeterUsageRequest</code>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=25)]
public List<UsageRecord> UnprocessedRecords
{
get { return this._unprocessedRecords; }
set { this._unprocessedRecords = value; }
}
// Check to see if UnprocessedRecords property is set
internal bool IsSetUnprocessedRecords()
{
return this._unprocessedRecords != null && this._unprocessedRecords.Count > 0;
}
}
}
| 82 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Exception thrown when the customer does not have a valid subscription for the product.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class CustomerNotEntitledException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new CustomerNotEntitledException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public CustomerNotEntitledException(string message)
: base(message) {}
/// <summary>
/// Construct instance of CustomerNotEntitledException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public CustomerNotEntitledException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of CustomerNotEntitledException
/// </summary>
/// <param name="innerException"></param>
public CustomerNotEntitledException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of CustomerNotEntitledException
/// </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 CustomerNotEntitledException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of CustomerNotEntitledException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public CustomerNotEntitledException(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 CustomerNotEntitledException 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 CustomerNotEntitledException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The API is disabled in the Region.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class DisabledApiException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new DisabledApiException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public DisabledApiException(string message)
: base(message) {}
/// <summary>
/// Construct instance of DisabledApiException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public DisabledApiException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of DisabledApiException
/// </summary>
/// <param name="innerException"></param>
public DisabledApiException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of DisabledApiException
/// </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 DisabledApiException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of DisabledApiException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public DisabledApiException(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 DisabledApiException 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 DisabledApiException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// A metering record has already been emitted by the same EC2 instance, ECS task, or
/// EKS pod for the given {<code>usageDimension</code>, <code>timestamp</code>} with a
/// different <code>usageQuantity</code>.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class DuplicateRequestException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new DuplicateRequestException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public DuplicateRequestException(string message)
: base(message) {}
/// <summary>
/// Construct instance of DuplicateRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public DuplicateRequestException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of DuplicateRequestException
/// </summary>
/// <param name="innerException"></param>
public DuplicateRequestException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of DuplicateRequestException
/// </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 DuplicateRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of DuplicateRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public DuplicateRequestException(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 DuplicateRequestException 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 DuplicateRequestException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The submitted registration token has expired. This can happen if the buyer's browser
/// takes too long to redirect to your page, the buyer has resubmitted the registration
/// token, or your application has held on to the registration token for too long. Your
/// SaaS registration website should redeem this token as soon as it is submitted by the
/// buyer's browser.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ExpiredTokenException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new ExpiredTokenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ExpiredTokenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ExpiredTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ExpiredTokenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ExpiredTokenException
/// </summary>
/// <param name="innerException"></param>
public ExpiredTokenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ExpiredTokenException
/// </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 ExpiredTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ExpiredTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ExpiredTokenException(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 ExpiredTokenException 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 ExpiredTokenException(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
}
}
| 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// An internal error has occurred. Retry your request. If the problem persists, post
/// a message with details on the AWS forums.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServiceErrorException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InternalServiceErrorException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServiceErrorException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServiceErrorException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="innerException"></param>
public InternalServiceErrorException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </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 InternalServiceErrorException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServiceErrorException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServiceErrorException(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 InternalServiceErrorException 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 InternalServiceErrorException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// You have metered usage for a <code>CustomerIdentifier</code> that does not exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidCustomerIdentifierException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidCustomerIdentifierException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidCustomerIdentifierException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidCustomerIdentifierException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidCustomerIdentifierException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidCustomerIdentifierException
/// </summary>
/// <param name="innerException"></param>
public InvalidCustomerIdentifierException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidCustomerIdentifierException
/// </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 InvalidCustomerIdentifierException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidCustomerIdentifierException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidCustomerIdentifierException(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 InvalidCustomerIdentifierException 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 InvalidCustomerIdentifierException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The endpoint being called is in a AWS Region different from your EC2 instance, ECS
/// task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of
/// the resource must match.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidEndpointRegionException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidEndpointRegionException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidEndpointRegionException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidEndpointRegionException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidEndpointRegionException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidEndpointRegionException
/// </summary>
/// <param name="innerException"></param>
public InvalidEndpointRegionException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidEndpointRegionException
/// </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 InvalidEndpointRegionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidEndpointRegionException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidEndpointRegionException(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 InvalidEndpointRegionException 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 InvalidEndpointRegionException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The product code passed does not match the product code used for publishing the product.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidProductCodeException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidProductCodeException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidProductCodeException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidProductCodeException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidProductCodeException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidProductCodeException
/// </summary>
/// <param name="innerException"></param>
public InvalidProductCodeException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidProductCodeException
/// </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 InvalidProductCodeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidProductCodeException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidProductCodeException(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 InvalidProductCodeException 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 InvalidProductCodeException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Public Key version is invalid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidPublicKeyVersionException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidPublicKeyVersionException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidPublicKeyVersionException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidPublicKeyVersionException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidPublicKeyVersionException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidPublicKeyVersionException
/// </summary>
/// <param name="innerException"></param>
public InvalidPublicKeyVersionException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidPublicKeyVersionException
/// </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 InvalidPublicKeyVersionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidPublicKeyVersionException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidPublicKeyVersionException(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 InvalidPublicKeyVersionException 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 InvalidPublicKeyVersionException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The tag is invalid, or the number of tags is greater than 5.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidTagException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidTagException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidTagException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidTagException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidTagException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidTagException
/// </summary>
/// <param name="innerException"></param>
public InvalidTagException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidTagException
/// </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 InvalidTagException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidTagException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidTagException(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 InvalidTagException 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 InvalidTagException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Registration token is invalid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidTokenException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidTokenException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidTokenException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidTokenException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </summary>
/// <param name="innerException"></param>
public InvalidTokenException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </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 InvalidTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidTokenException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidTokenException(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 InvalidTokenException 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 InvalidTokenException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The usage allocation objects are invalid, or the number of allocations is greater
/// than 500 for a single usage record.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidUsageAllocationsException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidUsageAllocationsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidUsageAllocationsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidUsageAllocationsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidUsageAllocationsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidUsageAllocationsException
/// </summary>
/// <param name="innerException"></param>
public InvalidUsageAllocationsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidUsageAllocationsException
/// </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 InvalidUsageAllocationsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidUsageAllocationsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidUsageAllocationsException(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 InvalidUsageAllocationsException 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 InvalidUsageAllocationsException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The usage dimension does not match one of the <code>UsageDimensions</code> associated
/// with products.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InvalidUsageDimensionException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new InvalidUsageDimensionException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InvalidUsageDimensionException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InvalidUsageDimensionException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InvalidUsageDimensionException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InvalidUsageDimensionException
/// </summary>
/// <param name="innerException"></param>
public InvalidUsageDimensionException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InvalidUsageDimensionException
/// </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 InvalidUsageDimensionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InvalidUsageDimensionException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InvalidUsageDimensionException(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 InvalidUsageDimensionException 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 InvalidUsageDimensionException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Container for the parameters to the MeterUsage operation.
/// API to emit metering records. For identical requests, the API is idempotent. It simply
/// returns the metering record ID.
///
///
/// <para>
/// <code>MeterUsage</code> is authenticated on the buyer's AWS account using credentials
/// from the EC2 instance, ECS task, or EKS pod.
/// </para>
///
/// <para>
/// <code>MeterUsage</code> can optionally include multiple usage allocations, to provide
/// customers with usage data split into buckets by tags that you define (or allow the
/// customer to define).
/// </para>
///
/// <para>
/// Usage records are expected to be submitted as quickly as possible after the event
/// that is being recorded, and are not accepted more than 6 hours after the event.
/// </para>
/// </summary>
public partial class MeterUsageRequest : AmazonAWSMarketplaceMeteringRequest
{
private bool? _dryRun;
private string _productCode;
private DateTime? _timestamp;
private List<UsageAllocation> _usageAllocations = new List<UsageAllocation>();
private string _usageDimension;
private int? _usageQuantity;
/// <summary>
/// Gets and sets the property DryRun.
/// <para>
/// Checks whether you have the permissions required for the action, but does not make
/// the request. If you have the permissions, the request returns <code>DryRunOperation</code>;
/// otherwise, it returns <code>UnauthorizedException</code>. Defaults to <code>false</code>
/// if not specified.
/// </para>
/// </summary>
public bool DryRun
{
get { return this._dryRun.GetValueOrDefault(); }
set { this._dryRun = value; }
}
// Check to see if DryRun property is set
internal bool IsSetDryRun()
{
return this._dryRun.HasValue;
}
/// <summary>
/// Gets and sets the property ProductCode.
/// <para>
/// Product code is used to uniquely identify a product in AWS Marketplace. The product
/// code should be the same as the one used during the publishing of a new product.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProductCode
{
get { return this._productCode; }
set { this._productCode = value; }
}
// Check to see if ProductCode property is set
internal bool IsSetProductCode()
{
return this._productCode != null;
}
/// <summary>
/// Gets and sets the property Timestamp.
/// <para>
/// Timestamp, in UTC, for which the usage is being reported. Your application can meter
/// usage for up to one hour in the past. Make sure the <code>timestamp</code> value is
/// not before the start of the software usage.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set { this._timestamp = value; }
}
// Check to see if Timestamp property is set
internal bool IsSetTimestamp()
{
return this._timestamp.HasValue;
}
/// <summary>
/// Gets and sets the property UsageAllocations.
/// <para>
/// The set of <code>UsageAllocations</code> to submit.
/// </para>
///
/// <para>
/// The sum of all <code>UsageAllocation</code> quantities must equal the <code>UsageQuantity</code>
/// of the <code>MeterUsage</code> request, and each <code>UsageAllocation</code> must
/// have a unique set of tags (include no tags).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2500)]
public List<UsageAllocation> UsageAllocations
{
get { return this._usageAllocations; }
set { this._usageAllocations = value; }
}
// Check to see if UsageAllocations property is set
internal bool IsSetUsageAllocations()
{
return this._usageAllocations != null && this._usageAllocations.Count > 0;
}
/// <summary>
/// Gets and sets the property UsageDimension.
/// <para>
/// It will be one of the fcp dimension name provided during the publishing of the product.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string UsageDimension
{
get { return this._usageDimension; }
set { this._usageDimension = value; }
}
// Check to see if UsageDimension property is set
internal bool IsSetUsageDimension()
{
return this._usageDimension != null;
}
/// <summary>
/// Gets and sets the property UsageQuantity.
/// <para>
/// Consumption value for the hour. Defaults to <code>0</code> if not specified.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2147483647)]
public int UsageQuantity
{
get { return this._usageQuantity.GetValueOrDefault(); }
set { this._usageQuantity = value; }
}
// Check to see if UsageQuantity property is set
internal bool IsSetUsageQuantity()
{
return this._usageQuantity.HasValue;
}
}
}
| 188 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// This is the response object from the MeterUsage operation.
/// </summary>
public partial class MeterUsageResponse : AmazonWebServiceResponse
{
private string _meteringRecordId;
/// <summary>
/// Gets and sets the property MeteringRecordId.
/// <para>
/// Metering record id.
/// </para>
/// </summary>
public string MeteringRecordId
{
get { return this._meteringRecordId; }
set { this._meteringRecordId = value; }
}
// Check to see if MeteringRecordId property is set
internal bool IsSetMeteringRecordId()
{
return this._meteringRecordId != 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// AWS Marketplace does not support metering usage from the underlying platform. Currently,
/// Amazon ECS, Amazon EKS, and AWS Fargate are supported.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class PlatformNotSupportedException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new PlatformNotSupportedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public PlatformNotSupportedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of PlatformNotSupportedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public PlatformNotSupportedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of PlatformNotSupportedException
/// </summary>
/// <param name="innerException"></param>
public PlatformNotSupportedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of PlatformNotSupportedException
/// </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 PlatformNotSupportedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of PlatformNotSupportedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public PlatformNotSupportedException(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 PlatformNotSupportedException 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 PlatformNotSupportedException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Container for the parameters to the RegisterUsage operation.
/// Paid container software products sold through AWS Marketplace must integrate with
/// the AWS Marketplace Metering Service and call the <code>RegisterUsage</code> operation
/// for software entitlement and metering. Free and BYOL products for Amazon ECS or Amazon
/// EKS aren't required to call <code>RegisterUsage</code>, but you may choose to do so
/// if you would like to receive usage data in your seller reports. The sections below
/// explain the behavior of <code>RegisterUsage</code>. <code>RegisterUsage</code> performs
/// two primary functions: metering and entitlement.
///
/// <ul> <li>
/// <para>
/// <i>Entitlement</i>: <code>RegisterUsage</code> allows you to verify that the customer
/// running your paid software is subscribed to your product on AWS Marketplace, enabling
/// you to guard against unauthorized use. Your container image that integrates with <code>RegisterUsage</code>
/// is only required to guard against unauthorized use at container startup, as such a
/// <code>CustomerNotSubscribedException</code> or <code>PlatformNotSupportedException</code>
/// will only be thrown on the initial call to <code>RegisterUsage</code>. Subsequent
/// calls from the same Amazon ECS task instance (e.g. task-id) or Amazon EKS pod will
/// not throw a <code>CustomerNotSubscribedException</code>, even if the customer unsubscribes
/// while the Amazon ECS task or Amazon EKS pod is still running.
/// </para>
/// </li> <li>
/// <para>
/// <i>Metering</i>: <code>RegisterUsage</code> meters software use per ECS task, per
/// hour, or per pod for Amazon EKS with usage prorated to the second. A minimum of 1
/// minute of usage applies to tasks that are short lived. For example, if a customer
/// has a 10 node Amazon ECS or Amazon EKS cluster and a service configured as a Daemon
/// Set, then Amazon ECS or Amazon EKS will launch a task on all 10 cluster nodes and
/// the customer will be charged: (10 * hourly_rate). Metering for software use is automatically
/// handled by the AWS Marketplace Metering Control Plane -- your software is not required
/// to perform any metering specific actions, other than call <code>RegisterUsage</code>
/// once for metering of software use to commence. The AWS Marketplace Metering Control
/// Plane will also continue to bill customers for running ECS tasks and Amazon EKS pods,
/// regardless of the customers subscription state, removing the need for your software
/// to perform entitlement checks at runtime.
/// </para>
/// </li> </ul>
/// </summary>
public partial class RegisterUsageRequest : AmazonAWSMarketplaceMeteringRequest
{
private string _nonce;
private string _productCode;
private int? _publicKeyVersion;
/// <summary>
/// Gets and sets the property Nonce.
/// <para>
/// (Optional) To scope down the registration to a specific running software instance
/// and guard against replay attacks.
/// </para>
/// </summary>
[AWSProperty(Max=255)]
public string Nonce
{
get { return this._nonce; }
set { this._nonce = value; }
}
// Check to see if Nonce property is set
internal bool IsSetNonce()
{
return this._nonce != null;
}
/// <summary>
/// Gets and sets the property ProductCode.
/// <para>
/// Product code is used to uniquely identify a product in AWS Marketplace. The product
/// code should be the same as the one used during the publishing of a new product.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProductCode
{
get { return this._productCode; }
set { this._productCode = value; }
}
// Check to see if ProductCode property is set
internal bool IsSetProductCode()
{
return this._productCode != null;
}
/// <summary>
/// Gets and sets the property PublicKeyVersion.
/// <para>
/// Public Key Version provided by AWS Marketplace
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1)]
public int PublicKeyVersion
{
get { return this._publicKeyVersion.GetValueOrDefault(); }
set { this._publicKeyVersion = value; }
}
// Check to see if PublicKeyVersion property is set
internal bool IsSetPublicKeyVersion()
{
return this._publicKeyVersion.HasValue;
}
}
}
| 136 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// This is the response object from the RegisterUsage operation.
/// </summary>
public partial class RegisterUsageResponse : AmazonWebServiceResponse
{
private DateTime? _publicKeyRotationTimestamp;
private string _signature;
/// <summary>
/// Gets and sets the property PublicKeyRotationTimestamp.
/// <para>
/// (Optional) Only included when public key version has expired
/// </para>
/// </summary>
public DateTime PublicKeyRotationTimestamp
{
get { return this._publicKeyRotationTimestamp.GetValueOrDefault(); }
set { this._publicKeyRotationTimestamp = value; }
}
// Check to see if PublicKeyRotationTimestamp property is set
internal bool IsSetPublicKeyRotationTimestamp()
{
return this._publicKeyRotationTimestamp.HasValue;
}
/// <summary>
/// Gets and sets the property Signature.
/// <para>
/// JWT Token
/// </para>
/// </summary>
public string Signature
{
get { return this._signature; }
set { this._signature = value; }
}
// Check to see if Signature property is set
internal bool IsSetSignature()
{
return this._signature != null;
}
}
}
| 76 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Container for the parameters to the ResolveCustomer operation.
/// <code>ResolveCustomer</code> is called by a SaaS application during the registration
/// process. When a buyer visits your website during the registration process, the buyer
/// submits a registration token through their browser. The registration token is resolved
/// through this API to obtain a <code>CustomerIdentifier</code> along with the <code>CustomerAWSAccountId</code>
/// and <code>ProductCode</code>.
///
/// <note>
/// <para>
/// The API needs to called from the seller account id used to publish the SaaS application
/// to successfully resolve the token.
/// </para>
///
/// <para>
/// For an example of using <code>ResolveCustomer</code>, see <a href="https://docs.aws.amazon.com/marketplace/latest/userguide/saas-code-examples.html#saas-resolvecustomer-example">
/// ResolveCustomer code example</a> in the <i>AWS Marketplace Seller Guide</i>.
/// </para>
/// </note>
/// </summary>
public partial class ResolveCustomerRequest : AmazonAWSMarketplaceMeteringRequest
{
private string _registrationToken;
/// <summary>
/// Gets and sets the property RegistrationToken.
/// <para>
/// When a buyer visits your website during the registration process, the buyer submits
/// a registration token through the browser. The registration token is resolved to obtain
/// a <code>CustomerIdentifier</code> along with the <code>CustomerAWSAccountId</code>
/// and <code>ProductCode</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RegistrationToken
{
get { return this._registrationToken; }
set { this._registrationToken = value; }
}
// Check to see if RegistrationToken property is set
internal bool IsSetRegistrationToken()
{
return this._registrationToken != 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The result of the <code>ResolveCustomer</code> operation. Contains the <code>CustomerIdentifier</code>
/// along with the <code>CustomerAWSAccountId</code> and <code>ProductCode</code>.
/// </summary>
public partial class ResolveCustomerResponse : AmazonWebServiceResponse
{
private string _customerAWSAccountId;
private string _customerIdentifier;
private string _productCode;
/// <summary>
/// Gets and sets the property CustomerAWSAccountId.
/// <para>
/// The <code>CustomerAWSAccountId</code> provides the AWS account ID associated with
/// the <code>CustomerIdentifier</code> for the individual customer.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string CustomerAWSAccountId
{
get { return this._customerAWSAccountId; }
set { this._customerAWSAccountId = value; }
}
// Check to see if CustomerAWSAccountId property is set
internal bool IsSetCustomerAWSAccountId()
{
return this._customerAWSAccountId != null;
}
/// <summary>
/// Gets and sets the property CustomerIdentifier.
/// <para>
/// The <code>CustomerIdentifier</code> is used to identify an individual customer in
/// your application. Calls to <code>BatchMeterUsage</code> require <code>CustomerIdentifiers</code>
/// for each <code>UsageRecord</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string CustomerIdentifier
{
get { return this._customerIdentifier; }
set { this._customerIdentifier = value; }
}
// Check to see if CustomerIdentifier property is set
internal bool IsSetCustomerIdentifier()
{
return this._customerIdentifier != null;
}
/// <summary>
/// Gets and sets the property ProductCode.
/// <para>
/// The product code is returned to confirm that the buyer is registering for your product.
/// Subsequent <code>BatchMeterUsage</code> calls should be made using this product code.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ProductCode
{
get { return this._productCode; }
set { this._productCode = value; }
}
// Check to see if ProductCode property is set
internal bool IsSetProductCode()
{
return this._productCode != 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Metadata assigned to an allocation. Each tag is made up of a <code>key</code> and
/// a <code>value</code>.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// One part of a key-value pair that makes up a <code>tag</code>. A <code>key</code>
/// is a label that acts like a category for the specific tag values.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=100)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// One part of a key-value pair that makes up a <code>tag</code>. A <code>value</code>
/// acts as a descriptor within a tag category (key). The value can be empty or null.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 81 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The calls to the API are throttled.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ThrottlingException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new ThrottlingException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ThrottlingException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ThrottlingException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="innerException"></param>
public ThrottlingException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </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 ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(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 ThrottlingException 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 ThrottlingException(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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// The <code>timestamp</code> value passed in the <code>UsageRecord</code> is out of
/// allowed range.
///
///
/// <para>
/// For <code>BatchMeterUsage</code>, if any of the records are outside of the allowed
/// range, the entire batch is not processed. You must remove invalid records and try
/// again.
/// </para>
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TimestampOutOfBoundsException : AmazonAWSMarketplaceMeteringException
{
/// <summary>
/// Constructs a new TimestampOutOfBoundsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TimestampOutOfBoundsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TimestampOutOfBoundsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TimestampOutOfBoundsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TimestampOutOfBoundsException
/// </summary>
/// <param name="innerException"></param>
public TimestampOutOfBoundsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TimestampOutOfBoundsException
/// </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 TimestampOutOfBoundsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TimestampOutOfBoundsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TimestampOutOfBoundsException(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 TimestampOutOfBoundsException 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 TimestampOutOfBoundsException(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
}
}
| 132 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// Usage allocations allow you to split usage into buckets by tags.
///
///
/// <para>
/// Each <code>UsageAllocation</code> indicates the usage quantity for a specific set
/// of tags.
/// </para>
/// </summary>
public partial class UsageAllocation
{
private int? _allocatedUsageQuantity;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property AllocatedUsageQuantity.
/// <para>
/// The total quantity allocated to this bucket of usage.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=2147483647)]
public int AllocatedUsageQuantity
{
get { return this._allocatedUsageQuantity.GetValueOrDefault(); }
set { this._allocatedUsageQuantity = value; }
}
// Check to see if AllocatedUsageQuantity property is set
internal bool IsSetAllocatedUsageQuantity()
{
return this._allocatedUsageQuantity.HasValue;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The set of tags that define the bucket of usage. For the bucket of items with no tags,
/// this parameter can be left out.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=5)]
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// A <code>UsageRecord</code> indicates a quantity of usage for a given product, customer,
/// dimension and time.
///
///
/// <para>
/// Multiple requests with the same <code>UsageRecords</code> as input will be de-duplicated
/// to prevent double charges.
/// </para>
/// </summary>
public partial class UsageRecord
{
private string _customerIdentifier;
private string _dimension;
private int? _quantity;
private DateTime? _timestamp;
private List<UsageAllocation> _usageAllocations = new List<UsageAllocation>();
/// <summary>
/// Gets and sets the property CustomerIdentifier.
/// <para>
/// The <code>CustomerIdentifier</code> is obtained through the <code>ResolveCustomer</code>
/// operation and represents an individual buyer in your application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string CustomerIdentifier
{
get { return this._customerIdentifier; }
set { this._customerIdentifier = value; }
}
// Check to see if CustomerIdentifier property is set
internal bool IsSetCustomerIdentifier()
{
return this._customerIdentifier != null;
}
/// <summary>
/// Gets and sets the property Dimension.
/// <para>
/// During the process of registering a product on AWS Marketplace, dimensions are specified.
/// These represent different units of value in your application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Dimension
{
get { return this._dimension; }
set { this._dimension = value; }
}
// Check to see if Dimension property is set
internal bool IsSetDimension()
{
return this._dimension != null;
}
/// <summary>
/// Gets and sets the property Quantity.
/// <para>
/// The quantity of usage consumed by the customer for the given dimension and time. Defaults
/// to <code>0</code> if not specified.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=2147483647)]
public int Quantity
{
get { return this._quantity.GetValueOrDefault(); }
set { this._quantity = value; }
}
// Check to see if Quantity property is set
internal bool IsSetQuantity()
{
return this._quantity.HasValue;
}
/// <summary>
/// Gets and sets the property Timestamp.
/// <para>
/// Timestamp, in UTC, for which the usage is being reported.
/// </para>
///
/// <para>
/// Your application can meter usage for up to one hour in the past. Make sure the <code>timestamp</code>
/// value is not before the start of the software usage.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set { this._timestamp = value; }
}
// Check to see if Timestamp property is set
internal bool IsSetTimestamp()
{
return this._timestamp.HasValue;
}
/// <summary>
/// Gets and sets the property UsageAllocations.
/// <para>
/// The set of <code>UsageAllocations</code> to submit. The sum of all <code>UsageAllocation</code>
/// quantities must equal the Quantity of the <code>UsageRecord</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2500)]
public List<UsageAllocation> UsageAllocations
{
get { return this._usageAllocations; }
set { this._usageAllocations = value; }
}
// Check to see if UsageAllocations property is set
internal bool IsSetUsageAllocations()
{
return this._usageAllocations != null && this._usageAllocations.Count > 0;
}
}
}
| 154 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model
{
/// <summary>
/// A <code>UsageRecordResult</code> indicates the status of a given <code>UsageRecord</code>
/// processed by <code>BatchMeterUsage</code>.
/// </summary>
public partial class UsageRecordResult
{
private string _meteringRecordId;
private UsageRecordResultStatus _status;
private UsageRecord _usageRecord;
/// <summary>
/// Gets and sets the property MeteringRecordId.
/// <para>
/// The <code>MeteringRecordId</code> is a unique identifier for this metering event.
/// </para>
/// </summary>
public string MeteringRecordId
{
get { return this._meteringRecordId; }
set { this._meteringRecordId = value; }
}
// Check to see if MeteringRecordId property is set
internal bool IsSetMeteringRecordId()
{
return this._meteringRecordId != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The <code>UsageRecordResult</code> <code>Status</code> indicates the status of an
/// individual <code>UsageRecord</code> processed by <code>BatchMeterUsage</code>.
/// </para>
/// <ul> <li>
/// <para>
/// <i>Success</i>- The <code>UsageRecord</code> was accepted and honored by <code>BatchMeterUsage</code>.
/// </para>
/// </li> <li>
/// <para>
/// <i>CustomerNotSubscribed</i>- The <code>CustomerIdentifier</code> specified is not
/// able to use your product. The <code>UsageRecord</code> was not honored. There are
/// three causes for this result:
/// </para>
/// <ul> <li>
/// <para>
/// The customer identifier is invalid.
/// </para>
/// </li> <li>
/// <para>
/// The customer identifier provided in the metering record does not have an active agreement
/// or subscription with this product. Future <code>UsageRecords</code> for this customer
/// will fail until the customer subscribes to your product.
/// </para>
/// </li> <li>
/// <para>
/// The customer's AWS account was suspended.
/// </para>
/// </li> </ul> </li> <li>
/// <para>
/// <i>DuplicateRecord</i>- Indicates that the <code>UsageRecord</code> was invalid and
/// not honored. A previously metered <code>UsageRecord</code> had the same customer,
/// dimension, and time, but a different quantity.
/// </para>
/// </li> </ul>
/// </summary>
public UsageRecordResultStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property UsageRecord.
/// <para>
/// The <code>UsageRecord</code> that was part of the <code>BatchMeterUsage</code> request.
/// </para>
/// </summary>
public UsageRecord UsageRecord
{
get { return this._usageRecord; }
set { this._usageRecord = value; }
}
// Check to see if UsageRecord property is set
internal bool IsSetUsageRecord()
{
return this._usageRecord != null;
}
}
}
| 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchMeterUsage Request Marshaller
/// </summary>
public class BatchMeterUsageRequestMarshaller : IMarshaller<IRequest, BatchMeterUsageRequest> , 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((BatchMeterUsageRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchMeterUsageRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSMarketplaceMetering");
string target = "AWSMPMeteringService.BatchMeterUsage";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-01-14";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetProductCode())
{
context.Writer.WritePropertyName("ProductCode");
context.Writer.Write(publicRequest.ProductCode);
}
if(publicRequest.IsSetUsageRecords())
{
context.Writer.WritePropertyName("UsageRecords");
context.Writer.WriteArrayStart();
foreach(var publicRequestUsageRecordsListValue in publicRequest.UsageRecords)
{
context.Writer.WriteObjectStart();
var marshaller = UsageRecordMarshaller.Instance;
marshaller.Marshall(publicRequestUsageRecordsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static BatchMeterUsageRequestMarshaller _instance = new BatchMeterUsageRequestMarshaller();
internal static BatchMeterUsageRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchMeterUsageRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 119 |
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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchMeterUsage operation
/// </summary>
public class BatchMeterUsageResponseUnmarshaller : 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)
{
BatchMeterUsageResponse response = new BatchMeterUsageResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Results", targetDepth))
{
var unmarshaller = new ListUnmarshaller<UsageRecordResult, UsageRecordResultUnmarshaller>(UsageRecordResultUnmarshaller.Instance);
response.Results = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("UnprocessedRecords", targetDepth))
{
var unmarshaller = new ListUnmarshaller<UsageRecord, UsageRecordUnmarshaller>(UsageRecordUnmarshaller.Instance);
response.UnprocessedRecords = 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("DisabledApiException"))
{
return DisabledApiExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceErrorException"))
{
return InternalServiceErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidCustomerIdentifierException"))
{
return InvalidCustomerIdentifierExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidProductCodeException"))
{
return InvalidProductCodeExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTagException"))
{
return InvalidTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidUsageAllocationsException"))
{
return InvalidUsageAllocationsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidUsageDimensionException"))
{
return InvalidUsageDimensionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TimestampOutOfBoundsException"))
{
return TimestampOutOfBoundsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSMarketplaceMeteringException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static BatchMeterUsageResponseUnmarshaller _instance = new BatchMeterUsageResponseUnmarshaller();
internal static BatchMeterUsageResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchMeterUsageResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CustomerNotEntitledException Object
/// </summary>
public class CustomerNotEntitledExceptionUnmarshaller : IErrorResponseUnmarshaller<CustomerNotEntitledException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CustomerNotEntitledException 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 CustomerNotEntitledException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
CustomerNotEntitledException unmarshalledObject = new CustomerNotEntitledException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static CustomerNotEntitledExceptionUnmarshaller _instance = new CustomerNotEntitledExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CustomerNotEntitledExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DisabledApiException Object
/// </summary>
public class DisabledApiExceptionUnmarshaller : IErrorResponseUnmarshaller<DisabledApiException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public DisabledApiException 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 DisabledApiException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
DisabledApiException unmarshalledObject = new DisabledApiException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static DisabledApiExceptionUnmarshaller _instance = new DisabledApiExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DisabledApiExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DuplicateRequestException Object
/// </summary>
public class DuplicateRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<DuplicateRequestException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public DuplicateRequestException 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 DuplicateRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
DuplicateRequestException unmarshalledObject = new DuplicateRequestException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static DuplicateRequestExceptionUnmarshaller _instance = new DuplicateRequestExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DuplicateRequestExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ExpiredTokenException Object
/// </summary>
public class ExpiredTokenExceptionUnmarshaller : IErrorResponseUnmarshaller<ExpiredTokenException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ExpiredTokenException 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 ExpiredTokenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ExpiredTokenException unmarshalledObject = new ExpiredTokenException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ExpiredTokenExceptionUnmarshaller _instance = new ExpiredTokenExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ExpiredTokenExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServiceErrorException Object
/// </summary>
public class InternalServiceErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServiceErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServiceErrorException 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 InternalServiceErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServiceErrorException unmarshalledObject = new InternalServiceErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServiceErrorExceptionUnmarshaller _instance = new InternalServiceErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServiceErrorExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidCustomerIdentifierException Object
/// </summary>
public class InvalidCustomerIdentifierExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidCustomerIdentifierException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidCustomerIdentifierException 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 InvalidCustomerIdentifierException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidCustomerIdentifierException unmarshalledObject = new InvalidCustomerIdentifierException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidCustomerIdentifierExceptionUnmarshaller _instance = new InvalidCustomerIdentifierExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidCustomerIdentifierExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidEndpointRegionException Object
/// </summary>
public class InvalidEndpointRegionExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidEndpointRegionException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidEndpointRegionException 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 InvalidEndpointRegionException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidEndpointRegionException unmarshalledObject = new InvalidEndpointRegionException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidEndpointRegionExceptionUnmarshaller _instance = new InvalidEndpointRegionExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidEndpointRegionExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidProductCodeException Object
/// </summary>
public class InvalidProductCodeExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidProductCodeException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidProductCodeException 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 InvalidProductCodeException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidProductCodeException unmarshalledObject = new InvalidProductCodeException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidProductCodeExceptionUnmarshaller _instance = new InvalidProductCodeExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidProductCodeExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidPublicKeyVersionException Object
/// </summary>
public class InvalidPublicKeyVersionExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidPublicKeyVersionException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidPublicKeyVersionException 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 InvalidPublicKeyVersionException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidPublicKeyVersionException unmarshalledObject = new InvalidPublicKeyVersionException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidPublicKeyVersionExceptionUnmarshaller _instance = new InvalidPublicKeyVersionExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidPublicKeyVersionExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidRegionException Object
/// </summary>
public class InvalidRegionExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidRegionException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidRegionException 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 InvalidRegionException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidRegionException unmarshalledObject = new InvalidRegionException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidRegionExceptionUnmarshaller _instance = new InvalidRegionExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidRegionExceptionUnmarshaller 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 meteringmarketplace-2016-01-14.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.AWSMarketplaceMetering.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSMarketplaceMetering.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InvalidTagException Object
/// </summary>
public class InvalidTagExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidTagException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InvalidTagException 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 InvalidTagException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InvalidTagException unmarshalledObject = new InvalidTagException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InvalidTagExceptionUnmarshaller _instance = new InvalidTagExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InvalidTagExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.