/*
* 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 service-quotas-2019-06-24.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.ServiceQuotas.Model;
using Amazon.ServiceQuotas.Model.Internal.MarshallTransformations;
using Amazon.ServiceQuotas.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.ServiceQuotas
{
///
/// Implementation for accessing ServiceQuotas
///
/// With Service Quotas, you can view and manage your quotas easily as your AWS workloads
/// grow. Quotas, also referred to as limits, are the maximum number of resources that
/// you can create in your AWS account. For more information, see the Service
/// Quotas User Guide.
///
public partial class AmazonServiceQuotasClient : AmazonServiceClient, IAmazonServiceQuotas
{
private static IServiceMetadata serviceMetadata = new AmazonServiceQuotasMetadata();
#region Constructors
///
/// Constructs AmazonServiceQuotasClient 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 AmazonServiceQuotasClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonServiceQuotasConfig()) { }
///
/// Constructs AmazonServiceQuotasClient 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 AmazonServiceQuotasClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonServiceQuotasConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonServiceQuotasClient 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 AmazonServiceQuotasClient Configuration Object
public AmazonServiceQuotasClient(AmazonServiceQuotasConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonServiceQuotasClient with AWS Credentials
///
/// AWS Credentials
public AmazonServiceQuotasClient(AWSCredentials credentials)
: this(credentials, new AmazonServiceQuotasConfig())
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonServiceQuotasClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonServiceQuotasConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Credentials and an
/// AmazonServiceQuotasClient Configuration object.
///
/// AWS Credentials
/// The AmazonServiceQuotasClient Configuration Object
public AmazonServiceQuotasClient(AWSCredentials credentials, AmazonServiceQuotasConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonServiceQuotasClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonServiceQuotasConfig())
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonServiceQuotasClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonServiceQuotasConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonServiceQuotasClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonServiceQuotasClient Configuration Object
public AmazonServiceQuotasClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonServiceQuotasConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonServiceQuotasClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonServiceQuotasConfig())
{
}
///
/// Constructs AmazonServiceQuotasClient 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 AmazonServiceQuotasClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonServiceQuotasConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonServiceQuotasClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonServiceQuotasClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonServiceQuotasClient Configuration Object
public AmazonServiceQuotasClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonServiceQuotasConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IServiceQuotasPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IServiceQuotasPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new ServiceQuotasPaginatorFactory(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 AmazonServiceQuotasEndpointResolver());
}
///
/// 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 AssociateServiceQuotaTemplate
internal virtual AssociateServiceQuotaTemplateResponse AssociateServiceQuotaTemplate(AssociateServiceQuotaTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateServiceQuotaTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateServiceQuotaTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Associates your quota request template with your organization. When a new account
/// is created in your organization, the quota increase requests in the template are automatically
/// applied to the account. You can add a quota increase request for any adjustable quota
/// to your template.
///
/// Container for the necessary parameters to execute the AssociateServiceQuotaTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateServiceQuotaTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// The account making this call is not a member of an organization.
///
///
/// The organization that your account belongs to is not in All Features mode.
///
///
/// Something went wrong.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for AssociateServiceQuotaTemplate Operation
public virtual Task AssociateServiceQuotaTemplateAsync(AssociateServiceQuotaTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateServiceQuotaTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateServiceQuotaTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteServiceQuotaIncreaseRequestFromTemplate
internal virtual DeleteServiceQuotaIncreaseRequestFromTemplateResponse DeleteServiceQuotaIncreaseRequestFromTemplate(DeleteServiceQuotaIncreaseRequestFromTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteServiceQuotaIncreaseRequestFromTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteServiceQuotaIncreaseRequestFromTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the quota increase request for the specified quota from your quota request
/// template.
///
/// Container for the necessary parameters to execute the DeleteServiceQuotaIncreaseRequestFromTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteServiceQuotaIncreaseRequestFromTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// Invalid input was provided.
///
///
/// The account making this call is not a member of an organization.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for DeleteServiceQuotaIncreaseRequestFromTemplate Operation
public virtual Task DeleteServiceQuotaIncreaseRequestFromTemplateAsync(DeleteServiceQuotaIncreaseRequestFromTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteServiceQuotaIncreaseRequestFromTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteServiceQuotaIncreaseRequestFromTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateServiceQuotaTemplate
internal virtual DisassociateServiceQuotaTemplateResponse DisassociateServiceQuotaTemplate(DisassociateServiceQuotaTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateServiceQuotaTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateServiceQuotaTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Disables your quota request template. After a template is disabled, the quota increase
/// requests in the template are not applied to new accounts in your organization. Disabling
/// a quota request template does not apply its quota increase requests.
///
/// Container for the necessary parameters to execute the DisassociateServiceQuotaTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateServiceQuotaTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// The account making this call is not a member of an organization.
///
///
/// Something went wrong.
///
///
/// The quota request template is not associated with your organization.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for DisassociateServiceQuotaTemplate Operation
public virtual Task DisassociateServiceQuotaTemplateAsync(DisassociateServiceQuotaTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateServiceQuotaTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateServiceQuotaTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAssociationForServiceQuotaTemplate
internal virtual GetAssociationForServiceQuotaTemplateResponse GetAssociationForServiceQuotaTemplate(GetAssociationForServiceQuotaTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssociationForServiceQuotaTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssociationForServiceQuotaTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the status of the association for the quota request template.
///
/// Container for the necessary parameters to execute the GetAssociationForServiceQuotaTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAssociationForServiceQuotaTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// The account making this call is not a member of an organization.
///
///
/// Something went wrong.
///
///
/// The quota request template is not associated with your organization.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for GetAssociationForServiceQuotaTemplate Operation
public virtual Task GetAssociationForServiceQuotaTemplateAsync(GetAssociationForServiceQuotaTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAssociationForServiceQuotaTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAssociationForServiceQuotaTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAWSDefaultServiceQuota
internal virtual GetAWSDefaultServiceQuotaResponse GetAWSDefaultServiceQuota(GetAWSDefaultServiceQuotaRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAWSDefaultServiceQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAWSDefaultServiceQuotaResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the default value for the specified quota. The default value does not reflect
/// any quota increases.
///
/// Container for the necessary parameters to execute the GetAWSDefaultServiceQuota service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAWSDefaultServiceQuota service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for GetAWSDefaultServiceQuota Operation
public virtual Task GetAWSDefaultServiceQuotaAsync(GetAWSDefaultServiceQuotaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAWSDefaultServiceQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAWSDefaultServiceQuotaResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetRequestedServiceQuotaChange
internal virtual GetRequestedServiceQuotaChangeResponse GetRequestedServiceQuotaChange(GetRequestedServiceQuotaChangeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRequestedServiceQuotaChangeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRequestedServiceQuotaChangeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information about the specified quota increase request.
///
/// Container for the necessary parameters to execute the GetRequestedServiceQuotaChange service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetRequestedServiceQuotaChange service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for GetRequestedServiceQuotaChange Operation
public virtual Task GetRequestedServiceQuotaChangeAsync(GetRequestedServiceQuotaChangeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetRequestedServiceQuotaChangeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetRequestedServiceQuotaChangeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetServiceQuota
internal virtual GetServiceQuotaResponse GetServiceQuota(GetServiceQuotaRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServiceQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServiceQuotaResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the applied quota value for the specified quota. For some quotas, only the
/// default values are available. If the applied quota value is not available for a quota,
/// the quota is not retrieved.
///
/// Container for the necessary parameters to execute the GetServiceQuota service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetServiceQuota service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for GetServiceQuota Operation
public virtual Task GetServiceQuotaAsync(GetServiceQuotaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServiceQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServiceQuotaResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetServiceQuotaIncreaseRequestFromTemplate
internal virtual GetServiceQuotaIncreaseRequestFromTemplateResponse GetServiceQuotaIncreaseRequestFromTemplate(GetServiceQuotaIncreaseRequestFromTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServiceQuotaIncreaseRequestFromTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServiceQuotaIncreaseRequestFromTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves information about the specified quota increase request in your quota request
/// template.
///
/// Container for the necessary parameters to execute the GetServiceQuotaIncreaseRequestFromTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetServiceQuotaIncreaseRequestFromTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// Invalid input was provided.
///
///
/// The account making this call is not a member of an organization.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for GetServiceQuotaIncreaseRequestFromTemplate Operation
public virtual Task GetServiceQuotaIncreaseRequestFromTemplateAsync(GetServiceQuotaIncreaseRequestFromTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetServiceQuotaIncreaseRequestFromTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetServiceQuotaIncreaseRequestFromTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAWSDefaultServiceQuotas
internal virtual ListAWSDefaultServiceQuotasResponse ListAWSDefaultServiceQuotas(ListAWSDefaultServiceQuotasRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAWSDefaultServiceQuotasRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAWSDefaultServiceQuotasResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the default values for the quotas for the specified AWS service. A default value
/// does not reflect any quota increases.
///
/// Container for the necessary parameters to execute the ListAWSDefaultServiceQuotas service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAWSDefaultServiceQuotas service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListAWSDefaultServiceQuotas Operation
public virtual Task ListAWSDefaultServiceQuotasAsync(ListAWSDefaultServiceQuotasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAWSDefaultServiceQuotasRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAWSDefaultServiceQuotasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListRequestedServiceQuotaChangeHistory
internal virtual ListRequestedServiceQuotaChangeHistoryResponse ListRequestedServiceQuotaChangeHistory(ListRequestedServiceQuotaChangeHistoryRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRequestedServiceQuotaChangeHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRequestedServiceQuotaChangeHistoryResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the quota increase requests for the specified service.
///
/// Container for the necessary parameters to execute the ListRequestedServiceQuotaChangeHistory service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListRequestedServiceQuotaChangeHistory service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListRequestedServiceQuotaChangeHistory Operation
public virtual Task ListRequestedServiceQuotaChangeHistoryAsync(ListRequestedServiceQuotaChangeHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRequestedServiceQuotaChangeHistoryRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRequestedServiceQuotaChangeHistoryResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListRequestedServiceQuotaChangeHistoryByQuota
internal virtual ListRequestedServiceQuotaChangeHistoryByQuotaResponse ListRequestedServiceQuotaChangeHistoryByQuota(ListRequestedServiceQuotaChangeHistoryByQuotaRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRequestedServiceQuotaChangeHistoryByQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRequestedServiceQuotaChangeHistoryByQuotaResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Retrieves the quota increase requests for the specified quota.
///
/// Container for the necessary parameters to execute the ListRequestedServiceQuotaChangeHistoryByQuota service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListRequestedServiceQuotaChangeHistoryByQuota service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListRequestedServiceQuotaChangeHistoryByQuota Operation
public virtual Task ListRequestedServiceQuotaChangeHistoryByQuotaAsync(ListRequestedServiceQuotaChangeHistoryByQuotaRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListRequestedServiceQuotaChangeHistoryByQuotaRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListRequestedServiceQuotaChangeHistoryByQuotaResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListServiceQuotaIncreaseRequestsInTemplate
internal virtual ListServiceQuotaIncreaseRequestsInTemplateResponse ListServiceQuotaIncreaseRequestsInTemplate(ListServiceQuotaIncreaseRequestsInTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServiceQuotaIncreaseRequestsInTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServiceQuotaIncreaseRequestsInTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the quota increase requests in the specified quota request template.
///
/// Container for the necessary parameters to execute the ListServiceQuotaIncreaseRequestsInTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListServiceQuotaIncreaseRequestsInTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// Invalid input was provided.
///
///
/// The account making this call is not a member of an organization.
///
///
/// Something went wrong.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListServiceQuotaIncreaseRequestsInTemplate Operation
public virtual Task ListServiceQuotaIncreaseRequestsInTemplateAsync(ListServiceQuotaIncreaseRequestsInTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServiceQuotaIncreaseRequestsInTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServiceQuotaIncreaseRequestsInTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListServiceQuotas
internal virtual ListServiceQuotasResponse ListServiceQuotas(ListServiceQuotasRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServiceQuotasRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServiceQuotasResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the applied quota values for the specified AWS service. For some quotas, only
/// the default values are available. If the applied quota value is not available for
/// a quota, the quota is not retrieved.
///
/// Container for the necessary parameters to execute the ListServiceQuotas service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListServiceQuotas service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListServiceQuotas Operation
public virtual Task ListServiceQuotasAsync(ListServiceQuotasRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServiceQuotasRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServiceQuotasResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListServices
internal virtual ListServicesResponse ListServices(ListServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the names and codes for the services integrated with Service Quotas.
///
/// Container for the necessary parameters to execute the ListServices service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListServices service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// Invalid input was provided.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListServices Operation
public virtual Task ListServicesAsync(ListServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of the tags assigned to the specified applied quota.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutServiceQuotaIncreaseRequestIntoTemplate
internal virtual PutServiceQuotaIncreaseRequestIntoTemplateResponse PutServiceQuotaIncreaseRequestIntoTemplate(PutServiceQuotaIncreaseRequestIntoTemplateRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutServiceQuotaIncreaseRequestIntoTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutServiceQuotaIncreaseRequestIntoTemplateResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds a quota increase request to your quota request template.
///
/// Container for the necessary parameters to execute the PutServiceQuotaIncreaseRequestIntoTemplate service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutServiceQuotaIncreaseRequestIntoTemplate service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// The action you attempted is not allowed unless Service Access with Service Quotas
/// is enabled in your organization.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// Invalid input was provided.
///
///
/// The account making this call is not a member of an organization.
///
///
/// The specified resource does not exist.
///
///
/// You have exceeded your service quota. To perform the requested action, remove some
/// of the relevant resources, or use Service Quotas to request a service quota increase.
///
///
/// Something went wrong.
///
///
/// The Service Quotas template is not available in this AWS Region.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for PutServiceQuotaIncreaseRequestIntoTemplate Operation
public virtual Task PutServiceQuotaIncreaseRequestIntoTemplateAsync(PutServiceQuotaIncreaseRequestIntoTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutServiceQuotaIncreaseRequestIntoTemplateRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutServiceQuotaIncreaseRequestIntoTemplateResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RequestServiceQuotaIncrease
internal virtual RequestServiceQuotaIncreaseResponse RequestServiceQuotaIncrease(RequestServiceQuotaIncreaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RequestServiceQuotaIncreaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = RequestServiceQuotaIncreaseResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Submits a quota increase request for the specified quota.
///
/// Container for the necessary parameters to execute the RequestServiceQuotaIncrease service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RequestServiceQuotaIncrease service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// You can't perform this action because a dependency does not have access.
///
///
/// Invalid input was provided.
///
///
/// The resource is in an invalid state.
///
///
/// The specified resource does not exist.
///
///
/// You have exceeded your service quota. To perform the requested action, remove some
/// of the relevant resources, or use Service Quotas to request a service quota increase.
///
///
/// The specified resource already exists.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for RequestServiceQuotaIncrease Operation
public virtual Task RequestServiceQuotaIncreaseAsync(RequestServiceQuotaIncreaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RequestServiceQuotaIncreaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = RequestServiceQuotaIncreaseResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds tags to the specified applied quota. You can include one or more tags to add
/// to the quota.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// The specified tag is a reserved word and cannot be used.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
///
/// You've exceeded the number of tags allowed for a resource. For more information, see
/// Tag
/// restrictions in the Service Quotas User Guide.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes tags from the specified applied quota. You can specify one or more tags to
/// remove.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by ServiceQuotas.
///
/// You do not have sufficient permission to perform this action.
///
///
/// Invalid input was provided.
///
///
/// The specified resource does not exist.
///
///
/// Something went wrong.
///
///
/// Due to throttling, the request was denied. Slow down the rate of request calls, or
/// request an increase for this quota.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}