/*
* 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 support-2013-04-15.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.AWSSupport.Model;
using Amazon.AWSSupport.Model.Internal.MarshallTransformations;
using Amazon.AWSSupport.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSSupport
{
///
/// Implementation for accessing AWSSupport
///
/// Amazon Web Services Support
///
/// The Amazon Web Services Support API Reference is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// You can also use the Amazon Web Services Support API to access features for Trusted
/// Advisor. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
///
///
///
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
///
/// -
///
/// The CreateCase, DescribeCases, DescribeAttachment, and ResolveCase
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
///
///
-
///
/// The DescribeCommunications, AddCommunicationToCase, and AddAttachmentsToSet
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
///
///
-
///
/// The DescribeServices and DescribeSeverityLevels operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the CreateCase operation.
///
///
///
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see Trusted Advisor
/// in the Amazon Web Services Support User Guide.
///
///
///
/// For authentication of requests, Amazon Web Services Support uses Signature
/// Version 4 Signing Process.
///
///
///
/// For more information about this service and the endpoints to use, see About
/// the Amazon Web Services Support API in the Amazon Web Services Support User
/// Guide.
///
///
public partial class AmazonAWSSupportClient : AmazonServiceClient, IAmazonAWSSupport
{
private static IServiceMetadata serviceMetadata = new AmazonAWSSupportMetadata();
#region Constructors
///
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonAWSSupportClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig()) { }
///
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonAWSSupportClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonAWSSupportClient Configuration Object
public AmazonAWSSupportClient(AmazonAWSSupportConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonAWSSupportClient with AWS Credentials
///
/// AWS Credentials
public AmazonAWSSupportClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSSupportConfig())
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonAWSSupportClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Credentials and an
/// AmazonAWSSupportClient Configuration object.
///
/// AWS Credentials
/// The AmazonAWSSupportClient Configuration Object
public AmazonAWSSupportClient(AWSCredentials credentials, AmazonAWSSupportConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig())
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonAWSSupportClient Configuration Object
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig())
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonAWSSupportClient Configuration Object
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IAWSSupportPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IAWSSupportPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSSupportPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonAWSSupportEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AddAttachmentsToSet
internal virtual AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds one or more attachments to an attachment set.
///
///
///
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The expiryTime
/// returned in the response is when the set expires.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the AddAttachmentsToSet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AddAttachmentsToSet service method, as returned by AWSSupport.
///
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
///
///
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
///
///
/// An attachment set with the specified ID could not be found.
///
///
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
///
///
/// An internal server error occurred.
///
/// REST API Reference for AddAttachmentsToSet Operation
public virtual Task AddAttachmentsToSetAsync(AddAttachmentsToSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region AddCommunicationToCase
internal virtual AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the caseId
parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the ccEmailAddresses
/// parameter. The communicationBody
value contains the text of the communication.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the AddCommunicationToCase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AddCommunicationToCase service method, as returned by AWSSupport.
///
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
///
///
/// An attachment set with the specified ID could not be found.
///
///
/// The requested caseId
couldn't be located.
///
///
/// An internal server error occurred.
///
/// REST API Reference for AddCommunicationToCase Operation
public virtual Task AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateCase
internal virtual CreateCaseResponse CreateCase(CreateCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center Create
/// Case page.
///
///
///
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
///
///
///
/// A successful CreateCase
request returns an Amazon Web Services Support
/// case number. You can use the DescribeCases operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// AddCommunicationToCase operation to add additional communication or attachments
/// to an existing case.
///
///
///
/// The caseId
is separate from the displayId
that appears in
/// the Amazon Web Services Support Center.
/// Use the DescribeCases operation to get the displayId
.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the CreateCase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateCase service method, as returned by AWSSupport.
///
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
///
///
/// An attachment set with the specified ID could not be found.
///
///
/// The case creation limit for the account has been exceeded.
///
///
/// An internal server error occurred.
///
/// REST API Reference for CreateCase Operation
public virtual Task CreateCaseAsync(CreateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAttachment
internal virtual DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the AttachmentDetails objects that are returned
/// by the DescribeCommunications operation.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeAttachment service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAttachment service method, as returned by AWSSupport.
///
/// An attachment with the specified ID could not be found.
///
///
/// The limit for the number of DescribeAttachment requests in a short period of
/// time has been exceeded.
///
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeAttachment Operation
public virtual Task DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeCases
internal virtual DescribeCasesResponse DescribeCases(DescribeCasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the afterTime
and beforeTime
parameters to filter the
/// cases by date. You can set values for the includeResolvedCases
and includeCommunications
/// parameters to specify how much information to return.
///
///
///
/// The response returns the following in JSON format:
///
/// -
///
/// One or more CaseDetails
/// data types.
///
///
-
///
/// One or more
nextToken
values, which specify where to paginate the returned
/// records represented by the CaseDetails
objects.
///
///
///
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeCases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeCases service method, as returned by AWSSupport.
///
/// The requested caseId
couldn't be located.
///
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeCases Operation
public virtual Task DescribeCasesAsync(DescribeCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeCommunications
internal virtual DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns communications and attachments for one or more support cases. Use the afterTime
/// and beforeTime
parameters to filter by date. You can use the caseId
/// parameter to restrict the results to a specific case.
///
///
///
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
///
///
///
/// You can use the maxResults
and nextToken
parameters to control
/// the pagination of the results. Set maxResults
to the number of cases
/// that you want to display on each page, and use nextToken
to specify the
/// resumption of pagination.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeCommunications service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeCommunications service method, as returned by AWSSupport.
///
/// The requested caseId
couldn't be located.
///
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeCommunications Operation
public virtual Task DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeCreateCaseOptions
internal virtual DescribeCreateCaseOptionsResponse DescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the language
categoryCode
,
/// issueType
and serviceCode
used to retrieve the CreateCaseOptions.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
///
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
///
/// REST API Reference for DescribeCreateCaseOptions Operation
public virtual Task DescribeCreateCaseOptionsAsync(DescribeCreateCaseOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeServices
internal virtual DescribeServicesResponse DescribeServices()
{
return DescribeServices(new DescribeServicesRequest());
}
internal virtual DescribeServicesResponse DescribeServices(DescribeServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your CreateCase
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
///
/// The service codes and category codes correspond to the values that appear in the Service
/// and Category lists on the Amazon Web Services Support Center Create
/// Case page. The values in those fields don't necessarily match the service codes
/// and categories returned by the DescribeServices
operation. Always use
/// the service codes and categories that the DescribeServices
operation
/// returns, so that you have the most recent set of service and category codes.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeServices service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeServices Operation
public virtual Task DescribeServicesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DescribeServicesAsync(new DescribeServicesRequest(), cancellationToken);
}
///
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your CreateCase
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
///
/// The service codes and category codes correspond to the values that appear in the Service
/// and Category lists on the Amazon Web Services Support Center Create
/// Case page. The values in those fields don't necessarily match the service codes
/// and categories returned by the DescribeServices
operation. Always use
/// the service codes and categories that the DescribeServices
operation
/// returns, so that you have the most recent set of service and category codes.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeServices service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeServices service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeServices Operation
public virtual Task DescribeServicesAsync(DescribeServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSeverityLevels
internal virtual DescribeSeverityLevelsResponse DescribeSeverityLevels()
{
return DescribeSeverityLevels(new DescribeSeverityLevelsRequest());
}
internal virtual DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the CaseDetails data type that you include
/// for a CreateCase request.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSeverityLevels service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeSeverityLevels Operation
public virtual Task DescribeSeverityLevelsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DescribeSeverityLevelsAsync(new DescribeSeverityLevelsRequest(), cancellationToken);
}
///
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the CaseDetails data type that you include
/// for a CreateCase request.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeSeverityLevels service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSeverityLevels service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
/// REST API Reference for DescribeSeverityLevels Operation
public virtual Task DescribeSeverityLevelsAsync(DescribeSeverityLevelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSupportedLanguages
internal virtual DescribeSupportedLanguagesResponse DescribeSupportedLanguages(DescribeSupportedLanguagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of supported languages for a specified categoryCode
, issueType
/// and serviceCode
. The returned supported languages will include a ISO
/// 639-1 code for the language
, and the language display name.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the DescribeSupportedLanguages service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
///
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
///
/// REST API Reference for DescribeSupportedLanguages Operation
public virtual Task DescribeSupportedLanguagesAsync(DescribeSupportedLanguagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
internal virtual DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the DescribeTrustedAdvisorChecks
/// operation.
///
///
///
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the DescribeTrustedAdvisorCheckRefreshStatuses
operation. If
/// you call this operation for these checks, you might see an InvalidParameterValue
/// error.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see About
/// the Amazon Web Services Support API in the Amazon Web Services Support User
/// Guide.
///
///
/// Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
///
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
///
/// REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation
public virtual Task DescribeTrustedAdvisorCheckRefreshStatusesAsync(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckResult
internal virtual DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the DescribeTrustedAdvisorChecks operation.
///
///
///
/// The response contains a TrustedAdvisorCheckResult object, which contains these
/// three objects:
///
///
///
/// In addition, the response contains these fields:
///
/// -
///
/// status - The alert status of the check can be
ok
(green), warning
/// (yellow), error
(red), or not_available
.
///
/// -
///
/// timestamp - The time of the last refresh of the check.
///
///
-
///
/// checkId - The unique identifier for the check.
///
///
-
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see About
/// the Amazon Web Services Support API in the Amazon Web Services Support User
/// Guide.
///
///
/// Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
///
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
///
/// REST API Reference for DescribeTrustedAdvisorCheckResult Operation
public virtual Task DescribeTrustedAdvisorCheckResultAsync(DescribeTrustedAdvisorCheckResultRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorChecks
internal virtual DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
///
/// The response contains a TrustedAdvisorCheckDescription object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
/// -
///
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
///
///
///
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see About
/// the Amazon Web Services Support API in the Amazon Web Services Support User
/// Guide.
///
///
/// Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
///
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
///
/// REST API Reference for DescribeTrustedAdvisorChecks Operation
public virtual Task DescribeTrustedAdvisorChecksAsync(DescribeTrustedAdvisorChecksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckSummaries
internal virtual DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the DescribeTrustedAdvisorChecks
/// operation.
///
///
///
/// The response contains an array of TrustedAdvisorCheckSummary objects.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see About
/// the Amazon Web Services Support API in the Amazon Web Services Support User
/// Guide.
///
///
/// Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
///
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
///
/// REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation
public virtual Task DescribeTrustedAdvisorCheckSummariesAsync(DescribeTrustedAdvisorCheckSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RefreshTrustedAdvisorCheck
internal virtual RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the DescribeTrustedAdvisorChecks operation.
///
///
///
/// Some checks are refreshed automatically. If you call the RefreshTrustedAdvisorCheck
/// operation to refresh them, you might see the InvalidParameterValue
error.
///
///
///
/// The response contains a TrustedAdvisorCheckRefreshStatus object.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see About
/// the Amazon Web Services Support API in the Amazon Web Services Support User
/// Guide.
///
///
/// Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.
///
/// An internal server error occurred.
///
/// REST API Reference for RefreshTrustedAdvisorCheck Operation
public virtual Task RefreshTrustedAdvisorCheckAsync(RefreshTrustedAdvisorCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ResolveCase
internal virtual ResolveCaseResponse ResolveCase(ResolveCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Resolves a support case. This operation takes a caseId
and returns the
/// initial and final state of the case.
///
/// -
///
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
///
///
-
///
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredException
/// error message appears. For information about changing your support plan, see Amazon
/// Web Services Support.
///
///
///
/// Container for the necessary parameters to execute the ResolveCase service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ResolveCase service method, as returned by AWSSupport.
///
/// The requested caseId
couldn't be located.
///
///
/// An internal server error occurred.
///
/// REST API Reference for ResolveCase Operation
public virtual Task ResolveCaseAsync(ResolveCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}